VoidInvoice

Void Invoice

Major Business Rule

Object Name: B03B0015

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose
This business function will update the void date and void reason code in F03B11 table.  Update 
Invoice flag will update the original invoice.


The purpose of this business function is to void a posted invoice by updating the void date and void 

reason code in the F03B11 table.  It will also reset the posted code, pay status and amounts of a 

voided record.  An F03B112 record will also be written.


Setup Notes and Prerequisites

In order to void a transaction the key to the transaction needs to be acquired and passed over in the 

parameters.  These keys include:  Document Number(DOC), Document Type(DCT), Document Company(KCO) and 

Document Pay Item(SFX).


Special Logic

None.



Technical Specification



Parameters

ItemDescriptionI/OReq?Notes

DOCmnDocVoucherInvoiceeIYPart of primary key to F03B11 record

DCTszDocumentTypeIYPart of primary key to F03B11 record

KCOszCompanyKeyIYPart of primary key to F03B11 record

SFXszDocumentPayItemIYPart of primary key to F03B11 record

EV01 cUpdateInvoiceFlagIY'1' to create an Invoice Adjustment

record

VDGJjdVoidDateForGLIYDate to use as void date

AREszAdjustmentReasonCodeINReason code to use for adjustment record


Related Tables 

F03B11Customer Ledger Master
F0010Company Constants

F03B112A/R Adjustments


Related Business Functions

B9800100Get Audit Info
X0903Return Fiscal Year Period Number

B03B0021Create Invoice Adjustment Record


Processing

1.  Open file.
2.  Retrieve record from F03B11.

3.  Retrieve Company Constants F0010.

4.  Retrieve Period Number.

5.  Update Void Date and Void Reason Code in F03B11.

6.  Update Non-amount field changes.

7.  Retrieve JOB information.

8.  Update amount field changes.

9.  Load F03B112 fields.

10. Write F03B112 record if "UpdateInvoiceFlag" is '1'.

11. Update invoice record if "UpdateInvoiceFlag" is '1'.

10. Close file.


^

Data Structure

D03B0015 - VoidInvoice

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocVoucherInvoiceeDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szCompanyKeyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

szDocumentPayItemSFXcharNONENONE

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

cUpdateInvoiceFlagEV01charNONENONE

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

jdVoidDateForGLVDGJJDEDATENONENONE

The date that specifies the financial period to which the voided transaction is to be posted. Financial periods are set up in the Company 
Constants table (F0010).

szAdjustmentReasonCodeAREcharNONENONE

A code that identifies the reason that an invoice pay item was voided.

Related Functions

B03B0021 F03B112 Create Invoice Revision
B9800100 Get Audit Information
X0903 Fiscal Date Edits +

Related Tables

F0010 Company Constants
F03B11 Customer Ledger