dear we have made the txt file for negative stock blocking during sale, but it will also block in purchase entry item a closing qty is -6 if i purchase only 2 qty to meterlise the stock the below code not allow me post the 2 qty purchase please help code is- [#Field : VCH Batch NrmlAQty] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal [#Field : VCH Batch NrmlBQty] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal [#Field : VCH Batch jrnlBQty] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal [#Field : VCH NrmlActualQty] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal [#Field : VCH NrmlBilledQty] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal ;[#Field : VCH JrnlBilledQty] ;Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + ;$$InAlterMode) AND $$IsNegative@FinalStockTotal [#Field: VCHSTKJrnl BilledQty] Control : NegativeStock : ##VCFGNegativeStock AND @@InvoiceInCreate AND $$IsNegative@FinalStockTotal
[#Field : VCH Batch NrmlAQty] option:Test : @@ISSales [!field:Test] Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR + $$InAlterMode) AND $$IsNegative@FinalStockTotal ;; then apply the conditions
Code not Working in POS Voucher.... [#Field: VCH POSActualQty] Add : Option : VCH POSActualQtyNgt : @@isSales [!Field : VCH POSActualQtyNgt] Control : NegativeStockPOS : ##ICFGNegativeStock AND @@InvoiceInCreate AND ($$IsNegative@FinalStockTotalPOS) and NOT $$IsCMPOwner [#Field: VCH POSBilledQty] ; ;Add : Option : VCH POSBilledQtyNgt : @@isSales ; ;[!Field : VCH POSBilledQtyNgt] Control : NegativeStockPOS : ##ICFGNegativeStock AND @@InvoiceInCreate AND ($$IsNegative@FinalStockTotalPOS) AND NOT ($DiffActualQty AND $$IsEqual:$$Value:$ActualQty) and NOT $$IsCMPOwner Delete : Skip