In this code we have select a default godown but i have a stock but they say my stock is negtive

Discussion in 'Free Source Codes' started by Rohit001, Dec 4, 2019.

    
  1. Rohit001

    Rohit001 Member


    [#Part : VTYP Behaviour];;VTYP BehaviourMain]
    Add : Line : At End :Use Default Godown,Default Godown Name
    [Line :Use Default Godown]
    Space Bottom : 0.2
    Field : Medium Prompt,Use Default Godown
    Local : Field : Medium Prompt : Set As : If ($$IsSales:$Parent Or $$IsPurchase:$Parent) Then "Use Default Godown" else ""
    Local : Field : Medium Prompt :Invisible : NOT $$IsMultiGodownOn
    [Field : Use Default Godown]
    Use : Logical Field
    Storage : UseDefaultGodown
    Inactive : NOT ($$IsSales:$Parent Or $$IsPurchase:$Parent)
    Invisible : NOT $$IsMultiGodownOn
    [Line :Default Godown Name]
    Field : Medium Prompt,Default Godown Name
    Local : Field : Medium Prompt : Set As : "Default Godown Name"
    Local : Field : Medium Prompt : Inactive : If $UseDefaultGodown= "Yes" then No else Yes
    [Field : Default Godown Name]
    Use : Godown Name Field
    Table : List of Godowns
    sHOW Table : Always
    Style : Small Bold
    Width : @@VCHGodownNameWidth
    Inactive : If $UseDefaultGodown= "Yes" then No else Yes
    Keys : Create Godown, Alter Godown
    Variable : SV Godown
    Storage : DefaultGodownName

    [System : UDF]

    UseDefaultGodown : Logical: 2000
    DefaultGodownName : String: 2000
    [System : Formula]
    UseDefaultGodown : $UseDefaultGodown:VoucherType:##SVVoucherType = "Yes"
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [#Field:VCHBatchGodown]
    Option: VCS_VCH Batch Godown: @@UseDefaultGodown
    [!Field: VCS_VCH Batch Godown]
    Add:Table : List of Godowns, End of List:$$Line = 1
    Add:Table : End of List:$$Line > 1

    Set as : $DefaultGodownName:VoucherType:##SVVoucherType
    Set always : Yes
    Skip:If $$Line = 1 Then Yes else No
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Check your previous entries, and what godown has been specified within it.
     


  3. Rohit001

    Rohit001 Member


    Sir, i have check my entries.but they also alert msg of negative stock .please check the code sir and help me
     


Share This Page