CoreBOSBB
Sending e-mails from purchaseorders - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Sending e-mails from purchaseorders (/showthread.php?tid=1973)



Sending e-mails from purchaseorders - Guido1982 - 10-06-2020

I want to add an actionlink in Purchaseorders to send an e-mail from there. There is a UI10 field for the account, so I can modify the business action javascript to get the account ID from there. The problem is, is that the window is not present in the DOM. Is there an easy way to get that going and can I use fields from the PurchaseOrder as mergefields in templates I subsequently select?


RE: Sending e-mails from purchaseorders - joebordes - 10-07-2020

I suppose you mean in the list view, because the screen is present in the detail view. My first suggestion would be to add the action on the detail view. If you need the code in the listview, add an email field to the module and the code will be included then add a business action with MailJS (search for that in the link label and duplicate one of the existing records)

If you send in the ID of the PO (as the send email with PDF action probably does) you will be able to merge with the fields of the PO and the related account


RE: Sending e-mails from purchaseorders - Guido1982 - 10-08-2020

(10-07-2020, 10:36 PM)joebordes Wrote: I suppose you mean in the list view, because the screen is present in the detail view. My first suggestion would be to add the action on the detail view. If you need the code in the listview, add an email field to the module and the code will be included then add a business action with MailJS (search for that in the link label and duplicate one of the existing records)

If you send in the ID of the PO (as the send email with PDF action probably does) you will be able to merge with the fields of the PO and the related account

Well I need to test that again then, since I remember not having the screen available in the detailview DOM


RE: Sending e-mails from purchaseorders - Guido1982 - 10-12-2020

I can confirm you can't just add a businessaction to the PurchaseOrders. The problem is that there is no DIV with an ID of 'sendmail_cont', that the JS code is looking for, so the DOM is not prepared for sending e-mails from PurchaseOrders. How could we fix this?