Here's hoping I catch you before you finish up!
I have a file watcher that creates a cash book receipt batch. The client wants each payment to be auto allocated against the oldest invoice etc for each debtor.
I can see "Automatic Allocation" in debtor maintenance and "Auto Allocate .." in debtor allocations in Jiwa ... but can't figure how to call these programmatically.
- Code: Select all
If cashBook.CashBookTransactions.Count > 0 Then
cashBook.Save()
For Each transaction As CashBookTransaction In cashBook.CashBookTransactions
Dim debtor As JiwaApplication.Entities.Debtor.Debtor = New JiwaApplication.Entities.Debtor.Debtor
debtor.ReadRecord(transaction.DebtorCreditorAccountID)
'debtor.AUTOMATICALLOCATION()
Next
End If
Can you point me in the right direction?
Cheers,
Neil.



