CalculateBestAmount

Calculate Best Amount

Minor Business Rule

Object Name: N5300006

Parent DLL: CAEC

Location: Client/Server

Language: NER

Functional Description

This program will automatically calculate the BEST amount for a change request detail line item record for Cost, 

Revenue or Subcontract record types.


Best Amount is calculated as follows:


If a detail line item for either Cost, Revenue, or Subcontract has a final amount then the final amount is the best amount.

If a detail line item for either Cost, Revenue, or Subcontract has no final amount but has a quoted amount, then the 

quoted amount is the best amount.

If a detail line item for either Cost, Revenue, or Subcontract has no final amount, no quoted amount but has an original 

amount, then the original amount is the best amount. 


Example:


Original amount:$ 1500

Quoted amount:    2500

Final amount:    2125

Best amount:    2125

Original amount:$ 1500

Quoted amount:    2500

Final amount:           0 

Best amount:    2500

Original amount:    1500
Quoted amount:                0

Final amount:                     0

Best amount:    1500

 

Data Structure

D5300006 - Calculate Best Amount

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostCenterMCUcharOPTNONE

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.

mnChangeOrderNumberCONOMATH_NUMERICOPTNONE

The number assigned to the change request for a particular job.

mnLastRequoteNumberREQBMATH_NUMERICOPTNONE

The last requote number for the change request. A requote is a snapshot of the change request at a particular point in time. You can create 
requotes when you change the information for a change request, such as when you change statuses or amounts. Requotes provide a 
record of the changes leading up to the current information for the change request.

mnLineNumberLNIDMATH_NUMERICOPTNONE

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.

szStatusCodeCostSCOScharOPTNONE

A user defined code (53/ST) that specifies the status of a cost change request for a selected job and line item. The system uses this code 
in the approval process of the change request, and determines which ledger type is updated in the Account Balances table (F0902).

szStatusCodeRevenueSREVcharOPTNONE

A user defined code (53/ST) that specifies the status of a revenue change request for a selected job and line item. The system uses this 
code in the approval process of the change request, and determines which ledger type is updated in the Account Balances table (F0902).

szStatusCodeSubcontractSSUBcharOPTNONE

A user defined code (53/ST) that specifies the status of a subcontract change request for a selected job and line item. The system uses this 
code in the approval process of the change request, and determines which ledger type is updated in the Account Balances table (F0902).

mnAmountOriginalCostCOAMMATH_NUMERICOPTNONE

The original amount for a cost change request detail item.

mnAmountOriginalRevenueROAMMATH_NUMERICOPTNONE

The original amount for a revenue change request detail item.

mnAmountOriginalSubcontractSOAMMATH_NUMERICOPTNONE

The original amount for a subcontract change request detail item.

mnAmountQuotedCost9CQAMMATH_NUMERICOPTNONE

The quoted amount for a detail item for a request for a cost change.

mnAmountQuotedRevenue9RQAMMATH_NUMERICOPTNONE

The quoted revenue amount for a line item in the change request.

mnAmountQuotedSubcontract9SQAMMATH_NUMERICOPTNONE

The quoted subcontract amount for a line item in the change request.

mnAmountFinalCostCFAMMATH_NUMERICOPTNONE

The final amount for a detail item for a request for a cost change.

mnAmountFinalRevenueFRAMMATH_NUMERICOPTNONE

The final revenue amount for a line item in the change request.

mnAmountFinalSubcontractSFAMMATH_NUMERICOPTNONE

The final subcontract amount for a line item in the change request.

mnAmountBestCostBCAMMATH_NUMERICOPTNONE

The best amount for a detail item on a request for a cost change.

mnAmountBestRevenueBRAMMATH_NUMERICOPTNONE

The best amount for a detail item on a request for a revenue change.

mnAmountBestSubcontract9BSAMMATH_NUMERICOPTNONE

The best amount for a detail item on a request for a subcontract change.

cForceBestToZeroCostCFB0charOPTNONE

A code that indicates whether the best cost amount for a detail line item for a change request should be zero.

cForceBestToZeroRevenueRFB0charOPTNONE

A code that indicates whether the best revenue amount for a line item in the change request should be zero.

cForceBestToZeroSubcontractSFB0charOPTNONE

A code that specifies whether the best subcontract amount for a line item in the change request should be zero.

mnUnitRateOriginalCostCUROMATH_NUMERICOPTNONE

The original cost of a unit rate that is associated with a change request detail line item.

mnUnitRateOriginalRevenueRUROMATH_NUMERICOPTNONE

The original revenue unit rate associated with a change request detail line item.

mnUnitRateOriginalSubcontractSUROMATH_NUMERICOPTNONE

The original subcontract unit rate for a line item in the change request.

mnUnitRateQuotedCostCURQMATH_NUMERICOPTNONE

The quoted cost of a unit rate that is associated with a change request detail line item.

mnUnitRateQuotedRevenueRURQMATH_NUMERICOPTNONE

The quoted revenue unit rate associated with a change request detail line item.

mnUnitRateQuotedSubcontractSURQMATH_NUMERICOPTNONE

The quoted subcontract unit rate for a line item in the change request.

mnUnitRateFinalCostFURCMATH_NUMERICOPTNONE

The final cost for a unit rate that is associated with a change request detail line item.

mnUnitRateFinalRevenueFURRMATH_NUMERICOPTNONE

The final revenue unit rate for a line item in the change request.

mnUnitRateFinalSubcontractFURSMATH_NUMERICOPTNONE

The final subcontract unit rate for a line item in the change request.

mnUnitRateBestCostBURCMATH_NUMERICOPTNONE

The best cost for a unit rate that is associated with a change request detail line item.

mnUnitRateBestRevenueFURBMATH_NUMERICOPTNONE

The best revenue unit rate that is associated with a change request detail line item.

mnUnitRateBestSubcontractBURSMATH_NUMERICOPTNONE

The best subcontract unit rate that is associated with a detail line item for a change request.

mnQuantityOriginalCostOQTCMATH_NUMERICOPTNONE

The original cost quantity for a line item in the change request.

mnQuantityOriginalRevenueRQTOMATH_NUMERICOPTNONE

The original revenue quantity for a line item in the change request.

mnQuantityOriginalSubcontractSQTOMATH_NUMERICOPTNONE

The original subcontract quantity for a line item in the change request.

mnQuantityquotedCostQQTCMATH_NUMERICOPTNONE

The quoted quantity associated with a detail line item for a request for a cost change.

mnQuantityQuotedRevenueRQTQMATH_NUMERICOPTNONE

The quoted revenue quantity for a line item in the change request.

mnQuantityQuotedSubcontractSQTQMATH_NUMERICOPTNONE

The quoted subcontract quantity for a line item in the change request.

mnQuantityFinalCostCQTFMATH_NUMERICOPTNONE

The final quantity associated with a detail line item for a request for a cost change.

mnQuantityFinalRevenueRQTFMATH_NUMERICOPTNONE

The final revenue quantity for a line item in the change request.

mnQuantityFinalSubcontractSQTFMATH_NUMERICOPTNONE

The final subcontract quantity for a line item in the change request.

mnQuantityBestCostCBTFMATH_NUMERICOPTNONE

The best quantity associated with a detail line item for a request for a cost change.

mnQuantityBestRevenueRQTBMATH_NUMERICOPTNONE

The best revenue quantity for a line item in the change request.

mnQuantityBestSubcontractSQTBMATH_NUMERICOPTNONE

The best subcontract quantity for a line item in the change request.

Related Functions

None

Related Tables

None