Re: email single invoice to multiple recipients
Hence currently, no code change is required except for setting the last parameter as false in reports that need to be emailed to multiple entities!
Either I am misunderstanding what this means, or this is not the case.
I think this means that in rep107.php if I change this line:
$contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], true);
to this:
$contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
the mail should send to both contacts. I had actually tried this before, based on the content of one of the posts you pointed me at earlier. If I put the sales/includes/db/branches_db.inc file back to how it was originally and change true to false as described above, it throws this error on the screen when I send an email:
You have no email contact defined for this type of document for 'Computerisms'.
If I am misunderstanding, can you please clarify?