ReceiptsEntryLoadInvoices

F03B11 Receipts Entry Load Invoices

Major Business Rule

Object Name: B03B0143

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This function is used to load all open invoices that match the specified criteria to an invoice 
selection cache.


Setup Notes and Prerequisites

The Invoice Selection Create Cache (B03B0172) function must be called first to create the temporary 

cache used to hold any invoice pay items found. Call the Receipts Entry Read Cache (B03B0142) function 

in a loop to retrieve each pay item from the temporary cache. Once completed, call the Invoice 

Selection Destroy Cache (B03B0172) function to free the memory used by the cache. Other functions in the 

B03B0172 family may be used to add, delete, and check for records in the cache.


Special Logic

None.



Technical Specification



Parameters

Item DescriptionI/OReq?Notes

PYRmnPayorNumberIYAll open invoices for the given payor number will be 
loaded to the cache.

ALKYszPayorNumberEditIYIf there is an error on mnPayorNumber, this field 

will be set with that error.

COszCompanyIN

CRRMcCurrencyModeIYRequired if currency is on.

CRCDszTransactionCurrencyIYRequired if currency is on and the mode is foreign.

BCRCszBaseCurrencyIYRequired if currency is on.


EV01cEditPayApprovedInvoicesIYIf this parameter is a '1', only invoices at a pay 

status of 'A' will be added to the cache.

MATH01mnRecordsSelectedO Total number of invoices that were added to the 

cache.


Related Tables

F03B11Customer Ledger File


Related Functions

B03B0158Maintain Receipts Entry Cache

Processing

Retrieve currency constant.

Validate required parameters.

Open F03B11 table.

Set F03B11 selection using specified criteria.

While a record is found,

Call the Receipts Entry Check Cache (B03B0158) function.

If the invoice is already in the Receipts Entry cache,

Skip record.

Else,

Add record to the Invoice Selection cache.

Increment mnRecordsSelected by one.

Repeat until no more records are found.

Close F03B11 table.



^

Data Structure

D03B0143 - F03B11 Receipts Entry Load Invoices

Item DescriptionI/OReq?Notes

PYRmnPayorNumberIYAll open invoices for the given payor number will be 
loaded to the cache.

ALKYszPayorNumberEditIYIf there is an error on mnPayorNumber, this field 

will be set with that error.

COszCompanyIN

CRRMcCurrencyModeIYRequired if currency is on.

CRCDszTransactionCurrencyIYRequired if currency is on and the mode is foreign.

BCRCszBaseCurrencyIYRequired if currency is on.


EV01cEditPayApprovedInvoicesIYIf this parameter is a '1', only invoices at a pay 

status of 'A' will be added to the cache.

MATH01mnRecordsSelectedO Total number of invoices that were added to the 

cache.



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnPayorNumberPYRMATH_NUMERICNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
PYRab  mnPayorNumberab  Iab  Yab All open invoices for the given payor number will be loaded to the 
cache.


^

szPayorNumberEditALKYcharNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
ALKYab  szPayorNumberEditab  Iab  Yab If there is an error on mnPayorNumber, this field will be set with 
that error.




^

szCompanyCOcharNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
COab  szCompanyab  Iab  Nab 

^

cCurrencyModeCRRMcharNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
CRRMab  cCurrencyModeab  Iab  Yab Required if currency is on.


^

szTransactionCurrencyCRCDcharNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
CRCDab  szTransactionCurrencyab  Iab  Yab Required if currency is on and the mode is foreign.


^

szBaseCurrencyBCRCcharNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
BCRCab  szBaseCurrencyab  Iab  Yab Required if currency is on.



^

cEditPayApprovedInvoicesEV01charNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
EV01ab  cEditPayApprovedInvoicesab  Iab  Yab If this parameter is a '1', only invoices at a pay status 
of 'A' will be added to the cache.



^

mnRecordsSelectedMATH01MATH_NUMERICNONENONE

Item  ab  Descriptionab  I/Oab  Req?ab Notes
MATH01ab  mnRecordsSelectedab  Oab  ab Total number of invoices that were added to the cache.


^

Related Functions

B03B0158 Maintain Receipts Entry Cache

Related Tables

F03B11 Customer Ledger