CreateCBDefaultInvoiceRecord

Create CB Workfile Records (Inv placeholders and Revenue)

Minor Business Rule

Object Name: N5200200

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Create Default F4812 Invoice Workfile Record

Source Name:
N5200200
Data Structure: D5200200

Function Name:
CreateCBDefaultInvoiceRecord
System Code:52
Function Category:
BAT
Function Use:
UPD
Designer:
Ira Frosch
Programmer:Ira Frosch




Revisions Log 
  Date  Modified bySAR NumberDescription
28 Sep, 1999Ira Frosch3303189Create



1.Functional Description

1.1Purpose
In the Contract Billing Invoice Generation Program, for every billing line type, except Time and 
Material and Components, the system creates a Default Billing Line if it is initialized to zero or any 

other billing type.  This routine assists in the automation of that creation.


1.2Setup Notes and Prerequisites

All of the basic information from the Billing Line Detail File (F5202) and Contract Master (F5201) 
that is required for writing the record should be retrieved and passed in.  If not, the system will 

retrieve the information.  The taxable amount should be passed into the system.


1.3Special Logic

This business function handles all currency and tax issues.  It will also create the BCI number for 
the record.  


1.4Open Issues


1.What about the 3 category codes on the F4812 record, if they are not sent in?


2.Technical Specifications


2.1Parameters:

See attachment of D5200200.

2.2Related Tables 

Table Table Description
F5201Contract Master
F5202Billing Line Details

F0901Account Master

F0006Business Unit Master

F4812Detail Workfile


2.3Related Business Functions

Source NameFunction Name
N48S0120Get Business Unit Information

N48S0200Calculate Billing Amounts

XX0901Check For Account Existence

X0010X0010  Get Next Number


2.4Processing 


//

// This adds a record to the F4812 Cache 

//

BF cErrorCode = ' '

//

// If retrieve values flag is on, retrieve information from F5201/F5202

//

If cRetrieveContractValues = '1'

F5201.Fetch (DOCO,DCTO,KCOO)

F5202.Fetch (DOCO,DCTO,KCOO)

// If either does not exist, send error

If EOF

evt_cErrorStatus = '1'

Endif

Endif

//  

// Continue only if no errors

//

If evt_cErrorStatus = ''

//

// Derive BCI Number

//

Call X0010  Get Next Number (X0010)
(Use system code '48', Index '02')


//

// Derive Account Information

//

Call Check For Account Existence (XX0901) (with parameters szBusinessUnit, szObject, 
szSubsidiary)

If  evt_cErrorCode = ' '

If BF cAccountOvr = '1'

set MCU, OBJ,SUB,AID

Else
set MCU, AID5

Endif
// Issue: Set three category codes here??????

Endif
//

// Get RP12 category code from Host Business Unit

// 

If BF szHostBusinessUnit <> '            '
Call Get Business Unit Information (N48S0120) 

BF szHostBusinessUnit as parameter, retrieve RP12
Endif
//

// Get RP11 category code from Project No

// 

If BF szProjectNo <> '            '
Call Get Business Unit Information (N48S0120)  

BF szProjectNo as parameter, retrieve RP11
Endif
//

// If Vertex, Get Values

//

If BF VertexActive = '1'

Call Vertex Values (N48S0205)
Endif
//

// Perform Tax Calculations 

//

Call Calculate Billing Amounts (N48S0200)
//

// Write the Default Invoice Workfile Record with all numbers

//

F4812.Insert
// Endif  Error Status

Endif

//

// Return Error Status

//

BF cErrorCode = evt_cErrorStatus


Data Structure

D5200200 - Create Default Invoice Workfile Record

D5200200
Create Default Invoice Workfile Record


Parameters:


Data

ItemData Structure DescriptionI/ORequiredNotes

DOCOmnContractNoIY

DCTOszContractDocumentTypeIY

KCOOszContractKeyCoIY

COCHszContractChangeOrderIY

LNIDmnContractLineNoIY

ICUmnBatchNoIY

DOCZmnInvoiceNoIY

DCTIszInvoiceDocumentTypeIY

KCOIszInvoiceKeyCo IY

SFXszPayItemIYThis is the pay item of

the billing line on the

invoice.

EV01cRetrieveContractValuesINIf '1', the associated

F5201/F5202 values will

be retrieved.

ERRCcErrorCodeIN

APDTjdApplicationDateIY

DGJjdWorkfileGLDateIY

CTRYmnGLCenturyINIf zeros, rederived

FYmnFiscalYearINIf zeros, rederived

PNmnPeriodNoINIf zeros, rederived

DSVJjdServiceDateIY

TBDTjdTableBasisDateIY

ERDBcExchangeRateDateBasisIYUsed for currency

calculations

CRCDszBaseCurrencyINIf multicurrency is on,

this field is required.

CRCFszForeignCurrencyINIf multicurrency is on,

this field is required.

CRRMcCurrencyModeINIf multicurrency is on,

this field is required.

This is the mode from

the contract.

CRRDmnCurrencyRateINIf multicurrency is on,

this field is required.

This is the rate calculated

for this date.

AN8OmnCustomerNumberIN

COCompanyIN

PCTNszParentContractNoIN

PCTTszParentContractTypeIN

PCKOszParentContractKeyCoIN

JMCUszHostBusinessUnitIYUsed to determine the RP12

from the Business Unit 

Master.(From F5201)

DL01szBillingLineDescriptionIN

OPIMszBillingLineIN

PRTPcBillingLineTypeIN

MCUSszProjectNoINUsed to determine the RP11.

Should be from F5202 table.

EXR1szTaxExplanationCodeIN

TXA1szTaxRateAreaIN

ACCOcAccountOverINDetermines whether to set

override revenue account

MCUszBusinessUnitIYBusiness Unit from F5202

OBJszObjectINNeeded only for override

revenue account

SUBszSubsidiary INNeeded only for override

revenue account

SBLszSubledgerIN

SBLTszSubledgerTypeIN

DL01szMPEventDescriptionINRequired for Milestone/Progress

R001szCategoryCode1INFrom Lump Sum

R002szCategoryCode2INFrom Lump Sum

R003szCategoryCode3INFrom Lump Sum

VVTXcVertexActiveINRequired for Vertex

JOBSmnVertexJobNumberINRequired for Vertex

ITOLmnInvTotalAmtON

ITXAmnTaxableAmountI/ONThis is the amount taxes

should be based on.

ITAMmnInvTaxAmtON

IDSCmnInvDiscountAmtON

JTAXmnJrnlTaxAmtON

CITLmnForInvTotalAmtON

CTXAmnForInvTaxableAmtI/ON

CTAMmnForInvTaxAmtON

CDSmnForDiscountAmtON

JTXFmnForJrnlTaxAmtON


Parameter NameData ItemData TypeReq/OptI/O/Both
mnContractNoDOCOMATH_NUMERICOPTINPUT

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.

szContractDocumentTypeDCTOcharOPTINPUT

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

szContractKeyCoKCOOcharOPTINPUT

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.

szContractChangeOrderCOCHcharOPTINPUT

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.

mnContractLineNoLNIDMATH_NUMERICOPTINPUT

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.

mnBatchNoICUMATH_NUMERICOPTINPUT

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.

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

szInvoiceDocumentTypeDCTIcharOPTINPUT

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.

szInvoiceKeyCoKCOIcharOPTINPUT

Invoice Document Company.

szPayItemSFXcharOPTINPUT

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.

cRetrieveContractValuesEV01charOPTINPUT

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

cErrorCodeERRCcharOPTOUTPUT

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

jdApplicationDateAPDTJDEDATEOPTINPUT

The date of the last or current application. (An application is assigned each time an invoice is issued for the contract.)

jdWorkfileGLDateDGJJDEDATEOPTINPUT

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

mnCenturyCTRYMATH_NUMERICOPTNONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnFiscalYearFYMATH_NUMERICOPTNONE

A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

mnPeriodNoPNMATH_NUMERICOPTNONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

jdServiceDateDSVJJDEDATEOPTINPUT

A date that indicates when you purchased goods or services, or when you incurred a tax liability. 

jdTableBasisDateTBDTJDEDATEOPTINPUT

This date is used as the basis for comparison to the effective dates of the various tables used by the Service Billing system.  This date is 
determined by the values set up in the Service Billing Constants at the time the Service Billing Work File (F4812) is generated.

cExchangeRateDateBasisERDBcharOPTINPUT

A code that controls which date the system uses to retrieve the exchange rate for the invoice. Valid values are: 1 Use the invoice date 
(default). 2 Use the G/L date of the invoice.

szBaseCurrencyCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

szForeignCurrencyCRCFcharOPTINPUT

The currency code of the insured amount.

cCurrencyModeCRRMcharOPTINPUT

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

mnCurrencyRateCRRDMATH_NUMERICOPTINPUT

A number (exchange rate) that a foreign currency amount is divided by to calculate a domestic currency amount. The number you enter in 
this field can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

mnCustomerNoAN8OMATH_NUMERICOPTINPUT

The address book number to which the system posts billing and accounts receivable transactions.

mnParentContractNoPCTNMATH_NUMERICOPTINPUT

The parent contract number to which this particular contract is attached.

szParentContractTypePCTTcharOPTINPUT

The parent contract type to which this particular contract is attached.

szParentContractKeyCoPCKOcharOPTINPUT

Parent Contract Document Company.

szHostBusinessUnitJMCUcharOPTINPUT

The Business Unit responsible for the job.  This is particularly useful during transfer pricing.

szBillingLineDescriptionDL01charOPTINPUT

A user defined name or remark.

szBillingLineOPIMcharOPTINPUT

The pay item number as defined by the owner. This field is alphanumeric and can be up to 15 characters in length. It is recommended that 
you use numeric information for this pay item number.

cBillingLineTypePRTPcharOPTINPUT

A code that specifies the billing terms that are defined by the billing line on the contract. The system uses the predefined codes for the 
pricing type to access formulas and other information related to the calculation of billing and revenue amounts for the billing line. Valid alphabetic 
codes are: B Burden T Time and Materials U Unit Price L Lump Sum F Fee Line C Component M Milestone P Progress D Direct Draw R Rated 
Draw Valid numeric codes are: 0 Burden 1 Time and Materials 2 Unit Price 3 Lump Sum 4 Fee Line 5 Component 6 Milestone 7 Progress 8 Direct 
Draw 9 Rated Draw

szProjectNoMCUScharOPTINPUT

Either a subsequent business unit or a project number. A subsequent business unit specifies where to charge costs (or revenues) when the 
original business unit has been closed or suspended. For example, the subsequent business unit can be used in corporate reorganizations 
when you close a business unit and direct all costs to the subsequent business unit. In this situation, you must enter journal entries to transfer 
existing balances. A project number is used to group business units within an overall business unit. For example, you can group jobs by 
project. In this case, the project business unit can also have accounts for tracking overhead costs that can be allocated to jobs.

szTaxExplanationCodeEXR1charOPTINPUT

A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The 
system uses the tax explanation code in conjunction with the tax rate area and tax rules to determine how the tax is calculated. Each 
transaction pay item can be defined with a different tax explanation code.

szTaxRateAreaTXA1charOPTINPUT

A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter 
against the Tax Areas table (F4008). The system uses the tax rate area in conjunction with the tax explanation code and tax rules to calculate tax 
and G/L distribution amounts when you create an invoice or voucher.

mnInvTaxableAmtITXAMATH_NUMERICOPTBOTH

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

cAccountOverrideFlagACCOcharOPTINPUT

An option that specifies whether the account information for a billing line identifies a revenue or cost (source) account. The system 
automatically supplies the account information (business unit, object, subsidiary, subledger, and subledger type) from the automatic accounting 
instructions (system 52, code BC). You can also enter a specific account. All billing lines, with the exception of T and M, use the account 
information.  Note: When this option is set to 1, the account information identifies a cost account. The system processes the billing line against the 
Billing AAI Information table (F48S95) during journal generation. This is similar to how the system processes a T and M billing line.

szBusinessUnitMCUcharOPTINPUT

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.

szObjectOBJcharOPTINPUT

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.

szSubsidiarySUBcharOPTINPUT

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

szSubledgerSBLcharOPTINPUT

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

cSubledgerTypeSBLTcharOPTINPUT

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szCategoryCode1R001charOPTNONE

Category code 1 associated with the Account Master table (F0901). This is a user defined code (09/01) for use in flex account mapping and 
in printing selected information on reports.

szCategoryCode2R002charOPTNONE

Category code 2 associated with the Account Master table (F0901). This is a user defined code (09/02) for use in flex account mapping and 
in printing selected account information on reports.

szCategoryCode3R003charOPTNONE

Category code 3 associated with the Account Master table (F0901). The system uses this user defined code (09/03) in mapping flexible 
account numbers and printing selected account information on reports.

cActivateVertexTaxCompliaVVTXcharOPTINPUT

This flag determines whether to use the Vertex Tax Compliance system for tax calculations.  Values are: Y  Use Vertex system to calculate 
taxes.  N Do not use Vertex system to calculate taxes.  Instead, use JDE tax calculations. 

mnVertexJobNumberJOBSMATH_NUMERICOPTBOTH

The job number (work station ID) which executed the particular job.

mnInvTotalAmtITOLMATH_NUMERICOPTOUTPUT

The invoice amount for a billing detail transaction.

mnInvTaxAmountITAMMATH_NUMERICOPTOUTPUT

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

mnInvoiceDiscountAmtIDSCMATH_NUMERICOPTOUTPUT

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.

mnJrnlTaxAmtJTAXMATH_NUMERICOPTOUTPUT

The portion of the tax amount calculated for this entry that is not automatically generated by the post program.

mnForInvTotalAmtCITLMATH_NUMERICOPTOUTPUT

The total amount of the invoice in foreign currency.

mnForInvTaxableAmtCTXAMATH_NUMERICOPTOUTPUT

That portion of the sale that is subject to tax in foreign currency.

mnForTaxAmtCTAMMATH_NUMERICOPTOUTPUT

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

mnForDiscountAmtCDSMATH_NUMERICOPTOUTPUT

The foreign amount of the discount available as opposed to the amount of the discount actually taken.

mnForJrnlTaxAmtJTXFMATH_NUMERICOPTOUTPUT

The portion of the tax amount calculated for this entry that is not automatically generated by the post program.

mnInvoiceUnitsUMATH_NUMERICOPTNONE

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.

szPaymentTermsPTCcharOPTINPUT

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

szVendorInvoiceNumberVINVcharOPTINPUT

The supplier's invoice number that is used for voucher entry. Voucher entry allows only one invoice per voucher number. If multiple invoice 
numbers exist on a voucher, you must set them up as multiple vouchers or combine the invoices and enter them as one voucher. Depending 
on how you have your accounts payable constants set, the system can do one of the following:   o  Accept a duplicate invoice number 
without warning or error   o  Generate a warning message in which the duplicate invoice number can still be accepted   o  Generate an error 
message Blank values are treated in the same manner as any other invoice number. Two blank invoice numbers are treated as duplicates. To test 
for duplicate invoice numbers that might have been entered in error, run the Suspected Duplicate Payments report (R04601). Note: The 
duplicate invoice number validation is not run for vouchers with document type NO. These vouchers are created by the Generate Reimbursements 
program (R03B610).

szComponentCostRateCCRcharOPTINPUT

A code that identifies a component cost rate table to use for this entry in the Billing Rate / Mark up Table (F48096). The component table 
identifies the components and their calculation rules. These component amounts are applied as overhead to the original cost. You set up 
component tables on the Component Table Revisions form.

szCallingProgramIdPIDcharOPTINPUT

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.

szUnitOfMeasureUMcharOPTINPUT

A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box, 
cubic meter, liter, hour, and so on.

szCompanyCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szGlClassGLCcharOPTINPUT

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

szGlOffsetRetentionRGLCcharOPTINPUT

A code that designates the offset accounts for retainage, for example RETN or 1225. You set up the code as an automatic accounting 
instruction. Note:  Do not use code 9999. This is reserved for the post program and indicates that offsets should not be created.

cFeeBasisFBAScharOPTINPUT

The fee basis the system will use when it derives the billing amount for the fee line. Valid values:    1 Use Invoice Amount.    2 Use Cost 
Amount.

mnMarkUpPercentMKRPMATH_NUMERICOPTINPUT

Percent of markup you want the system to use when it calculates the billing amounts for fee lines for owner pay items. You enter either a 
percent in this field or a rate code in the Rate Code field. Enter the percentage as a whole number. For example, you enter 10% as 10

szVertexTransactionTypeVVTYcharOPTINPUT

Vertex Sales and Use Tax transaction type.

szVertexProductCategoryVVTCcharOPTINPUT

User defined code used in the Vertex Tax Decision Maker for products or services that are non-taxable or are at a non-stanard rate.

mnCostAmountAAMATH_NUMERICOPTOUTPUT

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. 

mnBillingControlIdBCIMATH_NUMERICOPTOUTPUT

A unique number that the system assigns to each billing record. The system assigns the number from the Next Numbers - Automatic table 
(F0002) for system 15, line 2 (Billing Control).

cGenerationTypeServiceGTYPcharOPTINPUT

A code that determines the batch types and markup rules for invoice, revenue, and component amounts. The system assigns the batch 
type when the batch is created. Depending on how you define the billing constants, different markup rules can apply to different amounts. Valid 
values are: 1 Apply the markup rule to invoice, revenue, and component amounts. If the billing constants specify that invoice and revenue 
amounts are always the same, the markup rule applies to revenue, invoice, and component amounts. If the billing constants specify that the 
invoice and revenue amounts can be different, the markup rule still applies to revenue, invoice, and component amounts if no type 2 rule 
exists. 2 Apply the markup rule to revenue and component amounts. If the billing constants specify that the invoice and revenue amounts can be 
different, the markup rule applies to revenue and component amounts only. 3 Apply the markup rule to component amounts only. This rule is not 
dependent on billing constants settings.

mnNTECacheJobNoJOBSMATH_NUMERICOPTBOTH

The job number (work station ID) which executed the particular job.

cNTEAmtExceedFlagEV01charOPTOUTPUT

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

cNTELevelExceedFlagEV01charOPTOUTPUT

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

Related Functions

None

Related Tables

None
ute; left: 0.500000in">the billing line on the

invoice. <