Trying to add/ change Sales Order Journal

Discussions relating to breakout scripting, .NET and COM programming with Jiwa objects.

Trying to add/ change Sales Order Journal

Postby Ernst » Thu Mar 30, 2023 3:02 pm

Hi, In JIWA 721 is it possible to add lines to the end of the sales order journal that has been generated.
Client want to 2 freight cost lines and also change the debtor freight line depending on logic.

Ive tried this code as per below to get to it. But get a Compiler Error: Type Expected? The Types look good to me??

I can load up a full plugin.

Public Sub Setup(ByVal JiwaBusinessLogic As JiwaApplication.IJiwaBusinessLogic, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaBusinessLogicPlugin.Setup
If TypeOf JiwaBusinessLogic Is JiwaSales.SalesOrder.SalesOrder Then
Dim salesOrder As JiwaSales.SalesOrder.SalesOrder = DirectCast(JiwaBusinessLogic, JiwaSales.SalesOrder.SalesOrder)
AddHandler salesOrder.Process_DebtorTransactionsStart, AddressOf Process_DebtorTransactionsStart

Private Sub Process_DebtorTransactionsStart(ByVal SalesOrder As JiwaSales.SalesOrder.SalesOrder, ByRef DebtorTransactions As system.Collections.Generic.List(Of JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder.DebtorTransaction ), ByRef JournalSets As system.Collections.Generic.List(Of JiwaFinancials.Jiwa.JiwaJournalSets ))

Compiler Error: Type Expected?
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Trying to add/ change Sales Order Journal

Postby Mike.Sheen » Thu Mar 30, 2023 3:04 pm

Ernst wrote:Hi, In JIWA 721 is it possible to add lines to the end of the sales order journal that has been generated.


Post the question in the Jiwa 7 forums and find out!

You've posted this in the version 6 forums.
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: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Trying to add/ change Sales Order Journal

Postby Ernst » Thu Mar 30, 2023 4:30 pm

OK Moved to JIWA7
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12


Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 3 guests