dear experts, i want help in my tdl code. This code is working fine in default sales invoice voucher but not working in newly created sales voucher with pos enabled. [#Part: VCFG Inventory] Local : Line : VCFG NegativeStock : Invisible : Yes [#Field: VCHSTKJrnl BilledQty] Control : NegativeStock : $$InCreateMode AND $$IsNegative@StockTotal Control : NegativeStock : $$InAlterMode AND $$IsNegative@StockTotal [#Field: VCHBATCH NrmlAQty] Control : NegativeStock : @@IsOutwardType AND $$InCreateMode AND $$IsNegative@StockTotal [#Field: VCHBATCH NrmlBQty] Control : NegativeStock : $$InCreateMode AND $$IsNegative@StockTotal Control : NegativeStock : $$InAlterMode AND $$IsNegative@StockTotal [#Field: VCH NrmlBilledQty] Control : NegativeStock : @@IsOutwardType AND $$InCreateMode AND $$IsNegative@StockTotal [#Field: VCH JrnlBilledQty] Control : NegativeStock : @@IsOutwardType AND $$InCreateMode AND $$IsNegative@StockTotal [#Field: VCHBATCH BilledQty] Control : NegativeStock : @@IsOutwardType AND $$InCreateMode AND $$IsNegative@StockTotal
Dear Amit sir, In tally negative stock just notifies but not restricts the billing. so i want to restrict the billing if there is negative stock.
Amit Sir, If we use control then first item gets skipped then if we go backwards and again enter item then it is controlling, can you suggest why it skips for the 1st time and again go backwards and select the item it get controlled, any solution. Thanks
Code: [#Field: VCHBATCH BilledQty] Control : NegativeStock : @@IsSales Or @@IsDelNote Or @@IsStockJrnlVch AND $$InCreateMode OR $$InAlterMode AND $$IsNegative:@@FinalStockTotal