Description
We change the Paramter from Input to InputOutput. So consider the Backward-Compatibility, we create V01 method for ApiUpdateDeductionDetail method.
Update Deduction DInvoice and generate postings for Multi Companies. It is called by outside "TPM". TPM will change the status to "APPROVEDFORWRITEOFF" or reject the deduction. They also could adjust deduction detail to add/remove deductions.
Parameters
Internal usage
unused
program code (program9/bdinvoicemulticy.p)
/* ===================================================================== */
/* The method will be called by TPM.
It will be used for processing financial deductions.
It could update detailed deduction information( deduction categories,
deduction detail amounts,reject/approve detailed deductions etc).
If users approve one deduction line, it will debit on the expense
account,credit on the customer deduction control account.
It also allows for cross-company posting if deduction expensed entity
is not same as the entity that deduction invoice belongs to. */
/* ===================================================================== */
assign oiReturnStatus = -98.
<M-58 run UpdateDeductionDetailCyV01
(input-output tApiUpdateDeductionDetail (tApiUpdateDeductionDetail),
input false (ilIsCalledFromFinancial),
output viFcReturnSuper (oiReturnStatus)) in BDInvoiceMultiCy>
assign oiReturnStatus = viFcReturnSuper.