(In 6.5.13) I have the following snippet of code for allocating a payment to a purchase invoice:
Code:
- Code: Select all
Set creditor = GetCreditor(creditor, creditorID)
allocID = ""
Set newAllocation = creditor.Allocations.Add( _
allocID, _
rs("DebitTransID"), _
newItem.CRTransID, _
newItem.SupplierTransAmount, _
newItem.HomeTransAmount, _
newItem.HomeTransAmount, _
newItem.CurrencyRateUsed, _
newItem.CurrencyRateUsed, _
False, _
False, _
newItem.ReceiptDate)
creditor.SaveRecord
where newItem is a JiwaCRBatchTX.clsCRBatchTranLine, and rs is an ADODB.RecordSet querying the Purchase Invoice.
It seems to work ok, except that when I look at the main creditor transaction screen, the transactions don't appear allocated. However when I click either transaction's 'allocate' button, it looks like it's already allocated, and it won't let me change anything.
Have I missed a step ?
/Ryan