custom due date calculation  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

custom due date calculation

Postby perry » Mon Mar 30, 2015 11:35 am

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,
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: custom due date calculation  Topic is solved

Postby Mike.Sheen » Wed Apr 01, 2015 4:51 pm

Hi Perry,

I'd simply issue an update to the DB_Trans table inside the ProcessingEnd event of the sales order.

A sample plugin demonstrating this is attached.

Mike

Plugin Set Due Date on Sales Order Process.xml
Sample Plugin
(35.39 KiB) Downloaded 673 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: custom due date calculation

Postby perry » Thu Apr 02, 2015 10:28 am

Thanks
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 0 guests