You are on page 1of 1

Change the Title to "Amt of Dis" as it appears in the Invoice

[#Line: EI ColumnOne]
Add: Option: Disc EI ColumnOne: @@IsSales
;;Optional definition for the line "Disc EI ColumnOne"

[!Line: Disc EI ColumnOne]


Local: Field: VCH DiscTitle: Set as: "Amt of Dis"

;;Change the title to "Amt of Dis" as it appears in the Batch subform

[#Line: VCHBATCH ColumnOne]


Add: Option: Disc EI ColumnName: @@IsSales
;;Optional definition
[!Line: Disc EI ColumnName]
Local: Field: VCH DiscTitle: Info: "Amt of Dis"

;;Change the Title to "Discount Amt" as it appears in the Multiple Price list
report
[#Field: MPSDiscountTitle]
Set as: "Discount Amt"
;;Reclaculate formula's
[System: Formula]
CalcedAmt: ($Rate * $BilledQty) - $BatchDiscount

NrmlAmount: ($BilledQty * $Rate) - $BatchDiscount

;;Update the format attribute for Discount field as it appears in the Invoice

[#Field: VCH Discount]


Delete: Format
Add: Format: "Nopercent,NoZero"
;;Update the format attribute for Discount field as it appears in Batch sub-form

[#Field: VCHBATCH Discount]


Delete: Format
Add: Format: "Nopercent,NoZero"
;;Required if there are no batch Allocations
[#Field: VCH Value]
Resetval: if (@@NoBaseUnits OR $$IsEmpty:BilledQty) then $$Value else (($Rate *
$BilledQty) - $Discount)

You might also like