project QadFinancials > class BPaymentSelection > method ApiConfirmPaymentSelInBatch

Description

API to confirm the specified Supplier Payment Selection


Parameters


icPaymentSelectionCodeinputcharacterPayment Selection Code to confirm
itExecutionDateinputdateEffective Date of Payment Selection - this will default to the existing Payment Selection Execution Date. The posting is created on the execution date you specify and not the date on which you create the Supplier Payment Selection Confirm record - if these dates are different.
iiPostingYearinputintegerPosting Year for the selection - defaults to current year if not set
iiPostingPeriodinputintegerSelection Posting Period
itPostingDateinputdateSelection Posting Date - defaults to today if not set
icPostingJournalinputcharacterPosting Journal
icActivityCodeinputcharacterActivity code, for example Register, Unconfirm.
olEndProcoutputlogical
oiExeCountoutputinteger
ilDocumentPerDueDateinputlogical
ilCreditDirectlyOnBankinputlogical
ocPreviousStatusoutputcharacter
t_sPaySelPayCodeRefinputtemp-table
icBackupPayStatusinputcharacterThe original PaySel status which before Confirm/Unconfirm processing.
biMaxBatchSizeinput-outputintegerMaximum batch size
biMinBatchSizeinput-outputintegerMinium batch size
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFitnesse
method BPaymentSelection.ApiPaymentSelectionConfirm


program code (program3/bpaymentselection.p)

assign vcActivityCode = icActivityCode
        vcOriginalPayStatus = icBackupPayStatus.

/* Get max and min batch size */
/*Set min batch size to 1 for reducing the payment number*/
if biMaxBatchSize <> 0  and biMaxBatchSize <> ? 
then do:
    assign viMaxBatchSize = biMaxBatchSize
           viMinBatchSize = 1.
end.
else do:
    /* assign default value */
    assign biMaxBatchSize = viMaxBatchSize
           biMinBatchSize = 1.
end.

<M-23 run ChangeStatusPaymentSelInBatch
   (input  icPaymentSelectionCode (icPaymentSelectionCode), 
    input  icPostingJournal (icPostingJournal), 
    input  iiPostingPeriod (iiPostingPeriod), 
    input  iiPostingYear (iiPostingYear), 
    input  itExecutionDate (itExecutionDate), 
    input  itPostingDate (itPostingDate), 
    output olEndProc (olEndOfProcessing), 
    output oiExeCount (oiExecutedLines), 
    input  ilDocumentPerDueDate (ilDocumentPerDueDate), 
    input  ilCreditDirectlyOnBank (ilCreditDirectlyOnBank), 
    output ocPreviousStatus (ocPreviousStatus), 
    input  t_sPaySelPayCodeRef (t_sPaySelPayCodeRef), 
    output viFcReturnSuper (oiReturnStatus)) in BPaymentSelection>

assign oiReturnStatus = viFcReturnSuper.