F48520Update

F48520 Update Access Summary

Minor Business Rule

Object Name: N48S0660

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.1Purpose
The purpose of this business function event rule is to update the Invoice Summary Access file (F48520).  The file is a cumulative summary file that stores 
invoice amounts by invoice G/L date, employee/supplier number, business unit, object account, subsidiary, contract information, component code and 

currency codes, and is used for reporting purposes.  The cumulative amounts are kept by the Invoice G/L date of the invoice (WDIDGJ).  So, if there are 

records existing for 01/10/99, 01/30/99 and 02/28/99 and a record needs to be added for 01/15/99.  The amounts from 01/10/99 need to be used as the starting 

point for the amounts to be updated for 01/15/99.  Also, the amounts from 01/15/99 need to be added to the 01/30/99 and 02/28/99 amounts.  If the 01/15/99 

record already existed, the 01/15/99, 01/30/99 and 02/28/99 records need to be updated with additional amounts passed in. The function also handles 

subtracting amounts from the F48520 records when an invoice is voided. If all the amounts become zero, then the F48520 record is deleted.



Updates/Adds


UPDATE 

The Update/Add function is called during the Create A/R Entries process if the Billing Constants are set to maintain the Invoice Summary 
Access file (F48520).  


The following example would use keys: DOCO, DCTO, KCOO, COCH, LIND, AN8, MCU, OBJ,                  
SUB, CCOD, CRCD, CRCF, IDGL

Only the IDGL (invoice G/L date) would change for each record. All other key values would be the same for all records selected.


Send in Key info and amounts. If key exists update record and subsequent records with new amount.

Example: Using current records with the amounts shown starting on 01/10/99 through 02/28/99 for the following dates below.

0 1/10/9901/15/9901/30/9902/28/99
$100  $200$300$400

Now add $50 for  01/15/99 which adds that amount to  01/15/99 and all records with a date greater than 01/15/99.

$100$250$350$450


ADD -

The following example would use keys: DOCO, DCTO, KCOO, COCH, LIND, AN8, MCU, OBJ,                  
SUB, CCOD, CRCD, CRCF, IDGL

Only the IDGL (invoice G/L date) would change for each record. All other key values would be the same for all records selected


Send in Key info and amounts. If key doesn't exists insert record and update subsequent records by adding new amount.

Example: Using current records with the amounts shown starting on 01/10/99 through 02/28/99 for the following dates below.

0 1/10/9901/30/9902/28/99
$100  $200$300

Now add  $50 for 01/15/99 by inserting a new record for date of 01/15/99 and adding amounts from previous record and going forward.

01/10/9901/15/9901/30/9902/28/99

$100$150$350$450


Voids


UPDATE 

The following example would use keys: DOCO, DCTO, KCOO, COCH, LIND, AN8, MCU, OBJ,                  
SUB, CCOD, CRCD, CRCF, IDGL

Only the IDGL (invoice G/L date) would change for each record. All other key values would be the same for all records selected


Send in Key info and amounts. Update record and subsequent records by subtracting  void amount.


Example: Using current records with the amounts shown starting on 01/10/99 through 02/28/99 for the following dates below

0 1/10/99 01/15/9901/30/9902/28/99
$100  $200$300$400

Now void  $50 for  01/15/99 by subtracting amount from 01/15/99 going forward:

$100$150$250$350


Delete  Amounts are zero

The following example would use keys: DOCO, DCTO, KCOO, COCH, LIND, AN8, MCU, OBJ,                  
SUB, CCOD, CRCD, CRCF, IDGL

Only the IDGL (invoice G/L date) would change for each record. All other key values would be the same for all records selected


Send in Key info and amounts. Delete record if amount becomes zero and update subsequent records by  subtracting amount.

Example: Using current records with the amounts shown starting on 01/10/99 through 02/28/99 for the following dates below


0 1/10/9901/15/9901/30/9902/28/99
$100  $200$300$400

Now void $200 for 01/15/99 by subtracting amount from 01/15/99 going forward. Delete 01/15/99 record after amount becomes zero.

01/10/9901/30/9902/28/99

$100$100$200



1.2Setup Notes and Prerequisites

• The NER will be called from the Invoice History Review (N48S0410) only if the Billing Constants are set to update the Invoice Summary Access file 
(WZISAC = 1).

• This function should only be called when the eligibility code for the records is a '1' or a '0'.

1.3Special Logic


Data Structure

D48S0660 - F48520 Update

2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
AN8      Employee/Supplier No      IY

MCU      Business Unit            IY

OBJ      Object Account            IY

SUB      Subsidiary                  IY

DOCO      Contract No                  IY

DCTO      Contract Document Type      IY

KCOO      Contract Key Co            IY

COCH      Contract Change Order      IY

LNID                Contract Line No                                                 IY

CCOD                Component Code                                                 IY

CRCD                Base Currency                                                 IY

CRCF                Foreign Currency                                                IY

ITOL                Invoice Total Amount                                 I              Y

ITXA                Invoice Taxable Amount                                 I              Y

ITAM                Invoice Tax Amount                                 IY

IDSC                Invoice Discount Amount                                 IY

CITL                Foreign Invoice Total Amount                 IY

CITA                 Foreign Invoice Taxable Amount                 IY

CITX                Foreign Invoice Tax Amount                 IY

CIDS                Foreign Invoice Discount Amount                 IY

U                Units                                                                 IY

AA                Cost Amount                                                 IY

IDGJ      Invoice Journal Date      IY

EV01                Update Or Void flag                                 IY





^

Parameter NameData ItemData TypeReq/OptI/O/Both
EmpSuppNoAN8MATH_NUMERICREQNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

BusinessUnitMCUcharREQNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

ObjectAcctOBJcharREQNONE

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

SubsidiarySUBcharREQNONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

ContractNoDOCOMATH_NUMERICREQNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

ContractDocTyDCTOcharREQNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

ContractKeyCoKCOOcharREQNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

ContractChgOrderCOCHcharREQNONE

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

ContractLineNoLNIDMATH_NUMERICREQNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

CompCodeCCODcharREQNONE

A component code identifies a provisional burden that is accounted for at the billing detail transaction level.

BaseCurrencyCRCDcharREQNONE

A code that identifies the currency of a transaction. 

ForeignCurrencyCRCFcharREQNONE

The currency code of the insured amount.

InvTotalAmtITOLMATH_NUMERICREQNONE

The invoice amount for a billing detail transaction.

InvTaxableAmtITXAMATH_NUMERICREQNONE

The portion of the invoice amount that is subject to tax.

InvTaxAmtITAMMATH_NUMERICREQNONE

The tax amount in the invoice.  This can be either the sales, use or VAT tax.

InvDiscountAmtIDSCMATH_NUMERICREQNONE

The amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is based on the 
invoice amount rather than the revenue amount.

ForInvTotalAmtCITLMATH_NUMERICREQNONE

The total amount of the invoice in foreign currency.

ForInvTaxableAmtCITAMATH_NUMERICREQNONE

The portion of the foreign invoice amount that is subject to tax.

ForInvTaxAmtCITXMATH_NUMERICREQNONE

The tax amount on the invoice in foreign currency.  This can be either the sales, use or VAT tax.

ForInvDiscountAmtCIDSMATH_NUMERICREQNONE

The foreign currency amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is 
based on the foreign invoice amount.

UnitsUMATH_NUMERICREQNONE

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

CostAmountAAMATH_NUMERICREQNONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

InvJrnlDateIDGJJDEDATEREQNONE

Special Input Expected
DELETE THIS SECTION IF IT DOES NOT APPLY.


Special Output Returned

DELETE THIS SECTION IF IT DOES NOT APPLY.


Significant Data Values

x - xxxxxxxxxxxxx

x - xxxxxxxxxxxxx

x - xxxxxxxxxxxxx

DELETE THIS SECTION IF IT DOES NOT APPLY.



^

UpdateOrVoidEV01charREQNONE

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None