The function returns a Boolean value indicating whether the AllocatePayment has been succesful or not

Note:The allocation does not need to be for the complete value of the invoice, part allocations are allowed. The dfAmount can also be less than the total value of the credit resulting in a part allocation but it must not be more than the total credit value)

 

SAGE DATA OBJECTS > C#


sage line 50 sage line 100 sage line 50 training 50 line pos sage sage line 50 financial controller 100 line sage software 50 line sage software training 50 accounting line sage software sage line 50 software sage line sage line 50 training course 50 controller financial line sage v12 sage line 50 note 100 50 line sage 50 cheap discount line sage Searches done in April 2006 Count Search Term sage software sage accounting software sage payroll software sage software inc 100 line sage software 50 line sage software training act sage software sage payroll software training sage software training 50 accounting line sage software sage software mas 90 sage line 50 software accounting sage sales software sage payroll software course sage account software discount sage software sage accounting software uk sage book keeping software form sage software sage line50 software C# .NET Visual Basic .NET VB.NET Component OCX DLL Return to Sage Data Objects for .NET homepage AllocatePayment Method

AllocatePayment Method

The AllocatePayment method allocates an amount from an existing transaction of type Credit, Discount, Payment, or Payment On Account, against an outstanding existing transaction of type Invoice.

Syntax

object.AllocatePayment(nInvoice as Long, nCredit as Long, dfAmount as Double, dDate as Date)

The AllocatePayment Method syntax has these parts;

Part Description
object An expression that evaluates to a TransactionPost object derived from a SDOPosting core object
nInvoice The record number of the invoice in Split.Dta
nCredit The record number of the payment in Split.Dta
dfAmount The amount to allocate against the invoice
dDate The date of the allocation

Return