AddVant - I see your point, but I am not sure I want to add the ability to keep the same PO # when resending. It could cause serious problems if you split the order up. But, there is an easy work around -- Just check the box to review the email before sending it and manually change the PO number. Your supplier won't get confused - You'll just need to remember, but that shouldn't be too hard.
As for invoicing, that would take a lot of work, as the pdf part would have to be rewritten. You are welcome to take a stab at it, but I'm not interested in implementing this feature at this time. One thing I have considered is creating a mod that would allow customers to print a PDF receipt. I think this would be a great alternative for customer who need to print a receipt....maybe someday.
As for sending a copy to yourself, that is easy to do. Just repeat the zen_mail function, but use your email address. There are several places you would need to do this, here is an example: For regular, non-review POs, see line 499 of send_pos:
Code:
</form><?php } else { if ($_POST[includepackinglistoption] == 'yes')
zen_mail($adresdo,$adresdo,$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS,NULL,NULL,PO_PACKINGLIST_FILENAME);
else
zen_mail($adresdo,$adresdo,$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS);
Change to:
Code:
</form><?php } else { if ($_POST[includepackinglistoption] == 'yes')
zen_mail($adresdo,$adresdo,$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS,NULL,NULL,PO_PACKINGLIST_FILENAME);
zen_mail("[email protected]","[email protected]",$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS,NULL,NULL,PO_PACKINGLIST_FILENAME);
else
zen_mail($adresdo,$adresdo,$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS);
zen_mail("[email protected]","[email protected]",$tematk,$newzawartosc,PO_FROM_EMAIL_NAME,PO_FROM_EMAIL_ADDRESS);
For reviewed emails, do the same around line 100 of send_pos. For unknown customers, do the same in send_pos_nc...just search for "zen_mail".
I'll take a look and see if there is an easy way to make this work with HTML option on, as this is clearly a feature people want. If it is easy, I'll let you know how to do it and add this to the next bug fix release.
Bookmarks