Dear Experts, I have added additional Discount Field after Default Discount, Storing & Getting Value OK, but not showing that Discount % in Sales Voucher Screen & Printing, but it is in Item Batch Allocation. Code: [Field: VCHBATCH Discount2] ;; Batch Discount Field to remove the percent format Use : Number Field Width : @@VCHDiscountWidth Style : Small Bold Align : Right Storage : Batch Discount2 Set always : Yes Skip On : If @@IsExciseSupplementaryInv Then $$Line > 1 OR @@NoBaseUnits OR $$IsEmpty:#VCHBatchOrigBilledQt Else + $$Line > 1 OR $$IsEmpty:$BilledQty OR (NOT @@DoEditAll AND $$IsValidPriceLevel:$PriceLevel AND @@StdVchFldSkipCond) Inactive : If @@IsExciseSupplementaryInv Then @@NoBaseUnits OR $$IsEmpty:#VCHBatchOrigBilledQty Else + @@NoBaseUnits OR @@BatchAllocBreak OR NOT (@@IsInvoice OR @@RejInvoice) OR (NOT $$IsDiscountsOn AND NOT $HasDiscounts) Format : "NoZero,Percentage" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [Field: VCH Discount2] ;Use: VCH Discount Use : Number Field Width : @@VCHDiscountWidth Align : Right Style : Normal Bold Storage : Discount2 Set always : Yes Format : "NoZero,Percentage" Skip on: $$GetIsVCHDiscountSkipOn:$BilledQty Invisible : If (@@IsJobOrderOut OR @@IsJobOrderIn) Then Yes Else NOT @@WithDiscount OR @@AcctsInvoice If anyone has done tdl for Double Discount, please focus on this Thanks & Regards
[Field: VCH Discount2] ;Use: VCH Discount Use : Number Field Width : @@VCHDiscountWidth Align : Right Set As : $$CollectionField:$BatchDiscount2:1:BatchAllocations Style : Normal Bold Storage : Discount2 Set always : Yes Format : "NoZero,Percentage" Skip on: $$GetIsVCHDiscountSkipOn:$BilledQty Invisible : If (@@IsJobOrderOut OR @@IsJobOrderIn) Then Yes Else NOT @@WithDiscount OR @@AcctsInvoice