Adding a JobNo to a CashBookTransaction

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

Adding a JobNo to a CashBookTransaction

Postby neil.interactit » Fri May 06, 2016 2:56 pm

Hi guys,

I have a file watcher creating a cashbook batch from imported data.

Code: Select all
Do While ...
   Dim NewKey = 0
   cashBookPayment.AddNewTransaction(JiwaCashBook.CashBookTransactionCollection.TransactionTypes.Other, "", NewKey)
   Dim newCashBookLine As JiwaCashBook.CashBookTransaction = cashBookPayment.CashBookTransactions(NewKey)
   newCashBookLine.TranDate = System.DateTime.Today
   newCashBookLine.RemitNo = "Card Purchases"
   ' etc ... etc ...
Loop

A new requirement is to now add a job number. I can simply:
Code: Select all
newCashBookLine.JobNo = CSVJobNo

however, looking in the database after adding a jobno in Jiwa, the line item's JobChargeAmount has been adjusted as well.

So my question ... is there a correct way via Jiwa classes and business logic to implement this?

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 6 guests