Functional Description
Purpose
This function is used to maintain the Receipt Header (F03B13) table for the Standard Receipts Entry
(P03B102) and Draft Entry (P03B602) applications. The function performs adds and updates to the
database. Deletes, voids, and NSFs are handled through the F03B13 Void/NSF Receipt (B03B0019) function.
Setup Notes and Prerequisites
The Edit Receipt Header (B03B0138) function must be called to validate the transaction before calling
this function to perform the actual database operation.
Special Logic
If currency is on, only one side of the transaction needs to be passed. The function will perform
currency conversion for the other side of the transaction. For example, if the receipt is entered in
foreign mode, only pass the foreign receipt and unapplied amounts.
Technical Specification
Parameters
ItemDescriptionI/OReq?Notes
EV01cTransactionModeIY'A' for add, 'C' for update.
PYIDmnPaymentIDIYMust pass the Payment ID from next
numbers for add, the existing Payment
ID for update.
CKNUszReceiptNumberIYCustomers check number - reference only
AN8mnCustomerNumberIYCustomer Number
Required unless a General Ledger
receipt.
ALKYszCustomerNumberEdit Not used in this function.
PYRmnPayorNumberIYRequired unless a General Ledger
receipt.
ALKYszPayorNumberEdit Not used in this function.
DMTJjdDateReceiptIYReceipt Date
DGJjdDateGLIYReceipt G/L Date
VLDTjdDateValueIYReceipt Value Date
ISTRcJEMethodINBlank will be used unless a '1' is
passed.
GLCszUnappliedGLOffsetIYUnapplied G/L Offset
AIDszUnappliedAccountIDIYUnapplied G/L account short ID number.
Required if amount unapplied is not
zero.
CTRYmnCenturyINWill default from the G/L date if not
passed.
FYmnFiscalYearINWill default from the G/L date if not
passed.
PNmnPeriodNumberINWill default from the G/L date if not
passed.
COszCompanyIY
ICUTszBatchTypeIY
ICUmnBatchNumberIY
DICJjdDateBatchIY
PA8mnParentNumberINWill be retrieved from Address Book if
not passed.
CKAMmnAmountReceiptIYRequired if currency is off or currency
mode is domestic.
AAPmnAmountUnappliedIYRequired if currency is off or currency
mode is domestic.
BCRCszBaseCurrencyIYCurrency of the Receipt's Company.
Required if currency is on.
CRRMcCurrencyModeIY'D' for domestic, 'F' for foreign.
Required if currency is on.
CRCDszTransactionCurrencyIYReceipt's Currency.
Required if currency is on.
CRRmnExchangeRateIYReceipt to Base Company Currency
exchange rate.
Required if currency mode is foreign.
FCAMmnAmountForeignReceiptIYRequired if currency mode is foreign.
FAPmnAmountForeignUnappliedIYRequired if currency mode is foreign.
GLBAszBankAccountIDIYBank Account G/L account short ID
number.Required if receipt amount is
not zero and receipt is not a Draft.
ANIszBankAccountEdit Not used in this function.
AMcBankAccountModeIYRequired if receipt amount is not zero
and receipt is not a Draft.
TYINcReceiptTypeCodeIY
EXRszRemarkIN
RYINcPaymentInstrumentIN
ALPHszCustomerNameINWill be retrieved from Address Book if
not passed.
DOCGmnJEDocumentNumberIN
DCTGszJEDocumentTypeIN
KCOGszJEDocumentCompanyIN
CBNKszCustomerBankAccountIN
TNSTszCustomerBankTransitNumbeIN
DDSTcDraftStatusIYRequired if receipt is a Draft.
PIDszProgramIDIY
CRRmnTriangulationRate1RecIY Required if currency mode is foreign &
rate is triangulated
CRRmnTriangulationRate2RecIYRequired if currency mode is foreign &
rate is triangulated
CRCMcCurrencyConversionMethdIYRequired if currency mode is foreign &
uses the No Inverse Rule
EFTjdTransactionDateRecIYRequired if currency mode is foreign &
rate uses the No Inverse or
Triangulation rules.
RREFszReceiptReferenceIN
Related Tables
F03B13Receipts Header File
Related Business Functions
B0000027Currency Conversion, Calculate
B0100002F0150 Get Parent Address
B0100039F0101 Get Address Book Description Trigger
B9800100Get Audit Information
X0903F0008 Get Fiscal Year Period Number
Processing
Retrieve currency constant.
If cJEMethod is not equal to '1',
Set cJEMethod to blank.
If mnCentury, mnFiscalYear, or mnPeriodNumber is equal to zero,
Call the X0903 function using jdDateGL to load mnCentury,
mnFiscalYear, and mnPeriodNumber.
If cReceiptTypeCode is not equal to 'G' (General Ledger),
If mnParentNumber is equal to zero,
Call the B0100002 function to load mnParentNumber.
If mnParentNumber is equal to zero,
Set mnParentNumber equal to mnCustomerNumber.
If szCustomerName is blank,
Call the B0100039 function to load szCustomerName.
Open the F03B13 table.
If cTransactionMode is equal to 'C' (update),
Retrieve existing F03B13 record.
If cTransactionMode is equal to 'A' (add) or the receipt has not
been posted,
If currency is on and cCurrencyMode is equal to 'F' (foreign),
If cTransactionMode is equal to 'A' (add),
Call the B0000027 function to calculate the domestic
currency amounts.
Else,
If the foreign receipt amount has changed,
Call the B0000027 function to calculate the domestic
adjustment amount.
Adjust the domestic currency amounts.
Else,
If cTransactionMode is equal to 'C' (update),
If the domestic receipt amount has changed,
Adjust the domestic currency amounts.
Load F03B13 fields.
Call the B9800100 function to load audit information.
If cTransactionMode is equal to 'A' (add),
Insert F03B13 record.
Else,
Update F03B13 record.
Close F03B13 table.
D03B0138 - F03B13 Maintain Receipt Header
ItemDescriptionI/OReq?Notes
EV01cTransactionModeIY'A' for add, 'C' for update.
PYIDmnPaymentIDIYMust pass the Payment ID from next
numbers for add, the existing
Payment
ID for update.
CKNUszReceiptNumberIYCustomers check number reference
only.
AN8mnCustomerNumberIYCustomer Number
Required unless a General Ledger
receipt.
ALKYszCustomerNumberEditO Used in Edit function.
PYRmnPayorNumberIYRequired unless a General Ledger
receipt.
ALKYszPayorNumberEditO Used in Edit function.
DMTJjdDateReceiptIYReceipt Date
DGJjdDateGLIYReceipt G/L Date
VLDTjdDateValueIYReceipt Value Date
ISTRcJEMethodINBlank will be used unless a '1' is
passed.
GLCszUnappliedGLOffsetIYUnapplied G/L Offset
AIDszUnappliedAccountIDIYUnapplied G/L account short ID
number.
Required if amount unapplied is
not zero.
CTRYmnCenturyINWill default from the G/L date if
not passed.
FYmnFiscalYearINWill default from the G/L date if
not passed.
PNmnPeriodNumberINWill default from the G/L date if
not passed.
COszCompanyIY
ICUTszBatchTypeIY
ICUmnBatchNumberIY
DICJjdDateBatchIY
PA8mnParentNumberINWill be retrieved from Address
Book if not passed.
CKAMmnAmountReceiptIYRequired if currency is off or
currency mode is domestic.
AAPmnAmountUnappliedIYRequired if currency is off or
currency mode is domestic.
BCRCszBaseCurrencyIYCurrency of the Receipt's Company.
Required if currency is on.
CRRMcCurrencyModeIY'D' for domestic, 'F' for foreign.
Required if currency is on.
CRCDszTransactionCurrencyIYReceipt's Currency.
Required if currency is on.
CRRmnExchangeRateIYReceipt to Base Company Currency
exchange rate.
Required if currency mode is
foreign.
FCAMmnAmountForeignReceiptIYRequired if currency mode is
foreign.
FAPmnAmountForeignUnappliedIYRequired if currency mode is
foreign.
GLBAszBankAccountIDIYBank Account G/L account short ID
number.Required if receipt amount
is not zero and receipt is not a
Draft.
ANIszBankAccountEditO Used in Edit function.
AMcBankAccountModeIYRequired if receipt amount is not
zero and receipt is not a Draft.
TYINcReceiptTypeCodeIY
EXRszRemarkIN
RYINcPaymentInstrumentIN
ALPHszCustomerNameINWill be retrieved from Address
Book if not passed.
DOCGmnJEDocumentNumberIN
DCTGszJEDocumentTypeIN
KCOGszJEDocumentCompanyIN
CBNKszCustomerBankAccountIN
TNSTszCustomerBankTransitNumbeIN
DDSTcDraftStatusIYRequired if receipt is a Draft.
PIDszProgramIDIY
CRRmnTriangulationRate1RecIY Required if currency mode is
foreign & rate is triangulated
CRRmnTriangulationRate2RecIYRequired if currency mode is
foreign & rate is triangulated
CRCMcCurrencyConversionMethdIYRequired if currency mode is
foreign & uses the No Inverse Rule
EFTjdTransactionDateRecIYRequired if currency mode is
foreign & rate uses the No Inverse
or Triangulation rules.
RREFszReceiptReference I N
ATCS cAutoCash I N Pass in the value from the customer master
if the customer can be processed through
Auto Cash.
EUFB cUploadFromTapeBatchEntry I N Code that indicates how a receipt,
uploaded by the Batch
Receipts Upload program, will be
applied to invoices.
2 Invoices Without Remittance
3 Invoices With Remittance
4 Statements
5 Invoices and Statements
ASTA cAutoReceiptStatusFlag I N A code that indicates the status of
a receipt. Valid values
are:
Blank May be applied by either
Manual Rweceipts or
Auto Cash
1 May only be applied by Auto
Match program
2 Unsuccessfully matched by Auto
Match program
3 Successfully matched by Auto
Match program
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cTransactionMode | EV01 | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnPaymentID | PYID | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szReceiptNumber | CKNU | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnCustomerNumber | AN8 | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szCustomerNumberEdit | ALKY | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnPayorNumber | PYR | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szPayorNumberEdit | ALKY | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
jdDateReceipt | DMTJ | JDEDATE | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
jdDateGL | DGJ | JDEDATE | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
jdDateValue | VLDT | JDEDATE | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cJEMethod | ISTR | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szUnappliedGLOffset | GLC | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szUnappliedAccountID | AID | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnCentury | CTRY | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnFiscalYear | FY | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnPeriodNumber | PN | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szCompany | CO | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szBatchType | ICUT | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
jdDateBatch | DICJ | JDEDATE | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnParentNumber | PA8 | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnAmountReceipt | CKAM | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnAmountUnapplied | AAP | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szBaseCurrency | BCRC | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cCurrencyMode | CRRM | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szTransactionCurrency | CRCD | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnExchangeRate | CRR | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnAmountForeignReceipt | FCAM | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnAmountForeignUnapplied | FAP | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szBankAccountID | GLBA | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szBankAccountEdit | ANI | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cBankAccountMode | AM | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cReceiptTypeCode | TYIN | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szRemark | EXR | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cPaymentInstrument | RYIN | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szCustomerName | ALPH | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnJEDocumentNumber | DOCG | MATH_NUMERIC | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szJEDocumentType | DCTG | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szJEDocumentCompany | KCOG | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szCustomerBankAccount | CBNK | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szCustomerBankTransitNumber | TNST | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cDraftStatus | DDST | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szProgramID | PID | char | NONE | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnTriangulationRate1Rec | CRR | MATH_NUMERIC | OPT | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
mnTriangulationRate2Rec | CRR | MATH_NUMERIC | OPT | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cCurrencyConversionMethodRec | CRCM | char | OPT | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
jdTransactionDateRec | EFT | JDEDATE | OPT | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
szReceiptReference | RREF | char | OPT | NONE |
Itemab Descriptionab I/Oab Req?ab Notes
| ||||
cAutoCash | ATCS | char | OPT | NONE |
An option that specifies whether a customer or company is eligible to process receipts in the Accounts Receivable system using the
| ||||
cUploadedFromTapeBatchEntry | EUFB | char | OPT | NONE |
A code that specifies which algorithm to use based on the information provided on the electronic receipt and the execution list specified.
| ||||
szClerk | ECLK | char | OPT | NONE |
The user ID of the person who ran the Update Receipts Header program (R03B551) or the Draft Remittance program (R03B672]. | ||||
cAutoReceiptStatusFlag | ASTA | char | OPT | NONE |
A code that indicates whether the receipt has been processed successfully. Valid values are:
Blank
The receipt has not been processed.
| ||||
cAllowNegativeReceipt | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnNetTransactionID | NETTCID | MATH_NUMERIC | OPT | NONE |
A number that identifies a netting transaction. The system assigns it using the Next Numbers program (P0002). A netting transaction could
| ||||
mnNetDocNumber | NETDOC | MATH_NUMERIC | OPT | NONE |
A number that the system uses to cross reference netting source documents from which netting transfer and netting result documents are
| ||||
cReconciledROrBlank | RCND | char | OPT | INPUT |
A code that indicates whether a transaction in the Account Ledger table (F0911) is reconciled. The codes are defined in User Defined Code
| ||||
szReference3AccountReconci | R3 | char | OPT | INPUT |
Number that provides an audit trail for specific transactions. Used primarily in the G/L Account Reconciliation program (P09131). |
B0000027 CurrencyConvForAndDom | ||||
B0100002 A/B - Get Parent Address | ||||
B0100039 Is Address Number in Address Book Master Table | ||||
B9800100 Get Audit Information | ||||
X0903 Fiscal Date Edits + |
F03B13 Receipts Header |