negative stock

Discussion in 'Free Source Codes' started by praveen_pan, Oct 3, 2019.

    
  1. praveen_pan

    praveen_pan New Member


    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:mad:@FinalStockTotal

    [#Field : VCH Batch NrmlBQty]

    Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    $$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal

    [#Field : VCH Batch jrnlBQty]

    Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    $$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal

    [#Field : VCH NrmlActualQty]

    Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    $$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal

    [#Field : VCH NrmlBilledQty]

    Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    $$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal

    ;[#Field : VCH JrnlBilledQty]
    ;Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    ;$$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal



    [#Field: VCHSTKJrnl BilledQty]

    Control : NegativeStock : ##VCFGNegativeStock AND @@InvoiceInCreate AND $$IsNegative:mad:@FinalStockTotal
     


  2. s.santhnam

    s.santhnam New Member


    [#Field : VCH Batch NrmlAQty]
    option:Test : @@ISSales
    [!field:Test]
    Control : Negative Stock : ##VCFGNegativeStock AND ($$InCreateMode OR +
    $$InAlterMode) AND $$IsNegative:mad:@FinalStockTotal
    ;; then apply the conditions
     


  3. praveen_pan

    praveen_pan New Member


    thanks but still not working on purchase
     


  4. pravin bhau

    pravin bhau New Member


    Code not Working in POS Voucher....


    [#Field: VCH POSActualQty]

    Add : Option : VCH POSActualQtyNgt : @@isSales

    [!Field : VCH POSActualQtyNgt]

    Control : NegativeStockPOS : ##ICFGNegativeStock AND @@InvoiceInCreate AND ($$IsNegative:mad:@FinalStockTotalPOS) and NOT $$IsCMPOwner

    [#Field: VCH POSBilledQty]
    ;
    ;Add : Option : VCH POSBilledQtyNgt : @@isSales
    ;
    ;[!Field : VCH POSBilledQtyNgt]

    Control : NegativeStockPOS : ##ICFGNegativeStock AND @@InvoiceInCreate AND ($$IsNegative:mad:@FinalStockTotalPOS) AND NOT ($DiffActualQty AND $$IsEqual:$$Value:$ActualQty) and NOT $$IsCMPOwner
    Delete : Skip
     


Share This Page