Hello Sir, here i have attached code in which i hv given one udf at item master which is cutting cost e.g. 10 Rs. per Nos. Now at MFG Voucher i m calling the same and its getting calculated too. But infinite loop is not getting stop when we are giving enter enter for saving the same so pl guide me regarding this issue.
Code: [system : udf] CMCut : Number : 2009 [#Part: STKI Batch] Add : Line : At end : HallCutLn [line : HallCutLn] field : HallCutLnF1,HallCutLnF2 [field : HallCutLnF1] use : short prompt set as : "Cutting" color : blue space left : 5.5 mm [field : HallCutLnF2] USE : Number field set as : $CMCut storage : CMCut color : blue WIDTH : 15 MM Format: "Decimal:2" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;Production Mfg voucher customization for custting process [#Field: MfgrSJ AccDesc] Set as: If $$Line=1 Then "Cutting" Else $$Value [#Field: MfgrSJ Value] set as : If $$Line=1 Then ($$ASAMOUNT:@cmcalcItem*$$AsAmount:#MVCHBilledQty) Else if $$IsEmpty:$RateofInvoiceTax then $$Value else + @CalcVal cmcalcItem : $CMcut:stockitem:#mvchstockitem Skip on : $$IsSysName:$LedgerName Inactive : $$IsSysName:$LedgerName