custom due date calculation
Hi,
Jiwa 7.0.115,
The requirement is to update the due date on dbtrans when Sales Order is being processed (i.e. due date will be recorded as custom field in SO History).
I'm thinking of using SalesOrder.JournalSet.SaveEnd, get DBTransID from SO History, read the transaction and update/save. However, I cannot find a read function on JiwaDebtors.DebtorTransaction object.
Also thought about Debtor.Transactions.SaveStart, though it doesn't quite make sense as I only care about transactions type of invoice.
Anyway, can you please point me to the right direction, sample plugin will be much appreciated.
Regards,
Jiwa 7.0.115,
The requirement is to update the due date on dbtrans when Sales Order is being processed (i.e. due date will be recorded as custom field in SO History).
I'm thinking of using SalesOrder.JournalSet.SaveEnd, get DBTransID from SO History, read the transaction and update/save. However, I cannot find a read function on JiwaDebtors.DebtorTransaction object.
Also thought about Debtor.Transactions.SaveStart, though it doesn't quite make sense as I only care about transactions type of invoice.
Anyway, can you please point me to the right direction, sample plugin will be much appreciated.
Regards,