On submit of Quotation, Sales Order and Sales Invoice we trigger emails to customers and attach the relevant Print Format. Is there a way to have a different email address default for each DocType? For example the customer contact who requests the Quotation is often different to the person who needs Sales Order confirmation and VERY OFTEN different to the customer contact who should receive the invoices.
It would be beneficial to have a selection tickbox against customer contacts/emails to determine which receives what doctypes.
Also if there’s a way to default this NOW by using a script or similar please let me know.
@rmehta I have a somewhat working solution at my end now. But for some reason the behaviour is strange.
This is related to both github issue #3283 and the previously alerted behavior of the frappe.ui.form.trigger passing the first doc value on the next calls - so on the second invoice I generate all details for customer, address, etc is pushing through from the first invoice - incorrectly.