ContractBillingBatchDelete

Contract Billing Invoice/Batch Delete

Minor Business Rule

Object Name: N5200810

Parent DLL: CCRIN

Location: Client/Server

Language: NER

This function will perform the following for the entire Contract Billing Batch or for individual invoices in the Contract Billing batch:
1.Remove the batch number from the Contract Master (F5201) records using N5200010- Get Update Contract Master Record.
2.Update Prior Billed Amounts for Adjustment Invoices using N5200202- Adjust F4822 Subsequent Invoices.

3.Delete Dummy F4812 records using N48S0415- Delete Dummy records.

4.     Delete (R)etainage F4812 records using N48S0790- Delete Retainage records.

5.Reset billing Workfile records (F4812)-using N48S0310-Clear invoice information.

6.Delete Invoice Summary (F4822) records using Table I/O.

7.Delete batch header record (F48011) using N48S0290- Delete F48011 batch header records.

The program ID will determine if the entire batch or an individual invoice is being deleted. This function can be called from P48221 Service Billing Batch 

Review which will delete all invoices in the batch, P48222 Invoice Entry Review which will delete an individual invoice or from P5222 Billing Line Inquiry 

which will delete an individual invoice. The batch header record will be deleted if no invoices remain in the batch.


Data Structure

D5200810 - Contract Billing Batch Delete

ICUBatch NoIR
EV01Type of DeleteIR

EV01Clear ModeIR

BCTYBatch Type-SBIR

PIDProgram IDIR

DOCZInvoice NumberIR

DCTIInvoice Doc TypIR

KCOIInv Doc CoIR


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnBatchNumberICUMATH_NUMERICREQINPUT

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

cTypeofDeleteEV01charREQINPUT

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

cClearModeEV01charREQINPUT

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

szProgramIdPIDcharREQINPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cBatchTypeServBillBCTYcharREQINPUT

A code that specifies whether the batch is from the Service Billing system or the Contract Billing system. Valid values are: 3 Service 
Billing 4 Contract Billing For Contract Billing Revenue processing, the batch type is always 3.

mnInvoiceNoDOCZMATH_NUMERICOPTINPUT

The original document number.  This can be a voucher, an invoice, unapplied cash, a journal entry number, etc.  Matching document 
numbers are also used to identify related documents in the Accounts Receivable and Accounts Payable systems.  See matching document 
(DOCM).  This document number (DOCO) is always the original document number, and the matching document number (DOCM) is the check, 
adjustment, or credit to be applied against the original document. For example: A/P Automated/Manual Payment: Original (DOCO) - Voucher; 
Matching Document (DOCM) - Payment  A/R Original Invoice: Original (DOCO) - Invoice  Receipt Application: Original (DOCO) - Invoice; Matching 
Document (DOCM) - Receipt Credit Memo/Adjustment: Original (DOCO) - Invoice; Matching Document (DOCM) -Credit Memo  Unapplied 
Case: Original (DOCO) - Receipt

szInvoiceTypeDCTIcharOPTINPUT

A user defined (00/DI) document type for invoice entry. Any document type set up for invoice-only entry should begin with the letter R 
(receivables). The default is RI, RR, or RM. Reserved document types have been defined for vouchers, invoices, receipts, and time sheets. The 
reserved document types are: P_ Accounts Payable Documents R_Accounts Receivable Documents T_ Payroll Documents I_Inventory 
Documents O_ Order Processing Documents  Note: Verify that the default document type for invoices is set up in both UDC 00/DT and UDC 00/DI.

szInvoiceCompanyKCOIcharOPTINPUT

Invoice Document Company.

Related Functions

None

Related Tables

None