Different E-Mail Addresses for Remittances/Invoices/Orders.
Posted: 02 Apr 2012, 14:07
Hi,
I am trying to get my reports set-up so that different documents (i.e. statements/invoices/quotes) get sent to different e-mail addresses based upon the preferences i set in the Customer Record > Addresses & Contacts > Preferences menu. At the moment everything is 'Registered Office' but i have created contact addresses for each different e-mail address.
I think it is probably something to do with the report Joins but i am not overly familiar with them so would appreciate any help. I have posted the current account joins in raw text incase that is the problem and something needs adding/amending. I tried to copy the joins from a sage default e-mail template assuming it would be pre-configured but it messed my report up so i reverted back.
--Begin--
[INVOICE]
INNER JOIN [SALES_LEDGER] ON INVOICE.ACCOUNT_REF = SALES_LEDGER.ACCOUNT_REF
INNER JOIN [INVOICE_ITEM] ON INVOICE.INVOICE_NUMBER = INVOICE_ITEM.INVOICE_NUMBER
LEFT OUTER JOIN [PROJECT] AS [INVOICE_ITEM_PROJECT] ON INVOICE_ITEM.PROJECT_ID = INVOICE_ITEM_PROJECT.PROJECT_ID
INNER JOIN [STOCK] ON INVOICE_ITEM.STOCK_CODE = STOCK.STOCK_CODE
LEFT OUTER JOIN [COUNTRY_CODE] ON SALES_LEDGER.COUNTRY_CODE = COUNTRY_CODE.CODE
STATIC JOIN [COMPANY]
--End--
I'm guessing once that has been amended i will be able to set the e-mail 'TO:' address to SALES_DEL_ADDR.E_MAIL and it will send to the address which the preference has been set to?
Many Thanks,
Steve.
I am trying to get my reports set-up so that different documents (i.e. statements/invoices/quotes) get sent to different e-mail addresses based upon the preferences i set in the Customer Record > Addresses & Contacts > Preferences menu. At the moment everything is 'Registered Office' but i have created contact addresses for each different e-mail address.
I think it is probably something to do with the report Joins but i am not overly familiar with them so would appreciate any help. I have posted the current account joins in raw text incase that is the problem and something needs adding/amending. I tried to copy the joins from a sage default e-mail template assuming it would be pre-configured but it messed my report up so i reverted back.
--Begin--
[INVOICE]
INNER JOIN [SALES_LEDGER] ON INVOICE.ACCOUNT_REF = SALES_LEDGER.ACCOUNT_REF
INNER JOIN [INVOICE_ITEM] ON INVOICE.INVOICE_NUMBER = INVOICE_ITEM.INVOICE_NUMBER
LEFT OUTER JOIN [PROJECT] AS [INVOICE_ITEM_PROJECT] ON INVOICE_ITEM.PROJECT_ID = INVOICE_ITEM_PROJECT.PROJECT_ID
INNER JOIN [STOCK] ON INVOICE_ITEM.STOCK_CODE = STOCK.STOCK_CODE
LEFT OUTER JOIN [COUNTRY_CODE] ON SALES_LEDGER.COUNTRY_CODE = COUNTRY_CODE.CODE
STATIC JOIN [COMPANY]
--End--
I'm guessing once that has been amended i will be able to set the e-mail 'TO:' address to SALES_DEL_ADDR.E_MAIL and it will send to the address which the preference has been set to?
Many Thanks,
Steve.