PM_Create_Paid_Trx_HIST_Record
Module:
Payables Management
Script type:
Global
Form (If a form global):
Category:
Posting
Description:
This script will take the values passed to it and will create a record in the PM_Paid_Transaction_HIST table. The multicurrency record associated with this document will be created here if it does not already exist.
NOTE: Do not call this script directly. The necessary dependencies have not been documented. The interface is given with the sole intention to provide an integration point for script level triggers.
Prerequisites:
Undocumented
Parameters:
inout table PM_Paid_Transaction_HIST, {unpositioned}
PM_Key_MSTR. {positioned}
inout PMShadowTables IO_PMShadowTables.
inout DBTransactionData IO_DBTransactionData.
in string IN_Voucher_Number,
IN_Vendor_ID.
in integer IN_Document_Type.
in date IN_Document_Date.
in string IN_Document_Number,
IN_Batch_Number.
in date IN_Discount_Date,
IN_Due_Date.
in string IN_PO_Number,
IN_Tax_Schedule_ID,
IN_Purchase_Schedule_ID,
IN_Freight_Schedule_ID,
IN_Misc_Schedule_ID,
IN_Shipping_Method,
IN_Payment_Terms_ID,
IN_Currency_ID. (Not used in SBF.)
in dollar IN_Dollar_Parms[TRX_AMT_NUM].{ 1) Purchases_Amount,
2) Trade_Discount_Amount,
3) Misc_Charges_Amount,
4) Freight_Amount,
5) Tax_Amount,
6) Total_Payments,
7) 1099_Amount,
8) Write_Off_Amount,
9) Discount_Available_Taken /
Discount_Amount_Available,
10) PPS_Amount_Deducted,
11) GST_Discount_Amount,
(Not used in SBF.)
12) Unapplied 1099 Amount
13) Document_Amount,
14) Current_Trx_Amount,
15) Discount_Taken_Amount,
16) Backout Purchases Amount
17) Backout Freight Amount
18) Backout Misc Amount
19) Percent Discount
20) Discount Dollar Amount
21) Backout Trade Discount}
in string IN_Trx_Description,
IN_Checkbook_ID,
IN_Batch_Source,
IN_TRX_Source.
in 'Note Index' IN_Note_Index.
in 'PPS Tax Rate' IN_PPS_Tax_Rate.
in 'Percent Of Gross Amount Subject'
IN_PPS_Percent_Subject.
in integer IN_Payment_Entry_Type.
in string IN_Card_Name.
in date IN_GL_Posting_Date,
IN_Date_Inv_Paid_Off.
In integer IN_MC_Update_Status. {-- Indicator how/if associated
MC_PM_Transactions record is updated
0 = Do not update.
1 = Update doc status only for existing.
2 = Create new one if one doesn't exist.
This is also indicated by having the
PM_Key_MSTR buffer filled in. --}
(Not used in SBF.)
in boolean fICTrx.
in date IN_Tax_Date.
in 'Apply Withholding' IN_fApplyWithholding;
in boolean I_fEcTrx;
in 'Tax Invoice Required' I_fTaxInvReqd;
in string sCheckName;
in Electronic I_fElectronic;
in ‘Vendor Address Code – Remit To’ VendorAddressRemitToID;
in ‘1099 Type’ ten99Type;
in ‘1099 Box Number’ ten99BoxNumber;