Default godown at item level

Discussion in 'Free Source Codes' started by Damodaran, Oct 10, 2018.

    
  1. Damodaran

    Damodaran New Member


    Hi,
    I am new to the TDL,
    I am not getting the default godown at voucher while selecting the item, please correct the code

    [#Part: STKI Batch]

    Add : Line : At End : VCHBATCHGodownLine

    [Line : VCHBATCHGodownLine]
    Field : VCHBATCHGodownTitleFld, VCHBATCHGodownFld

    [Field : VCHBATCHGodownTitleFld]

    Info : "Rack"
    Width : 20 mms
    Color : Red
    Align : Promp

    [Field : VCHBATCHGodownFld]
    Use : Godown Name Field
    Storage : Godownv
    Table : List of Godowns, NotApplicable
    Show Table : Always
    Key : Create Godown, Alter Godown
    Background : White
    Color : Blue


    [System: UDF]

    Godownv : String : 9080



    [#Field:VCHBatchGodown]


    Use : Godown Name Field
    Type : String : Forced
    Style : Small
    Delete : Table
    Add:Table : List of Godowns, End of List:$$Line = 1
    Add:Table : End of List:$$Line > 1

    Set as : $Godownv:GodownName:StockItemName
    Set always : Yes
    Skip:If $$Line = 1 Then Yes else No
     


  2. sivam

    sivam Active Member


    Try with this Code

    Code:
    [#Part: STKI Batch]
    
    Add : Line : At End : VCHBATCHGodownLine
    
    [Line : VCHBATCHGodownLine]
    Field : VCHBATCHGodownTitleFld, VCHBATCHGodownFld
    
    [Field : VCHBATCHGodownTitleFld]
    
    Info : "Rack"
    Width : 20 mms
    Color : Red
    Align : Promp
    
    [Field : VCHBATCHGodownFld]
    Use : Godown Name Field
    Storage : Godownv
    Table : List of Godowns, NotApplicable
    Show Table : Always
    Key : Create Godown, Alter Godown
    Background : White
    Color : Blue
    
    
    [System: UDF]
    
    Godownv : String : 9080
    
    
    
    [#Field: VCHINV Godown]
       
        Add            : Option    : VCHINV Godown Sales    : @@IsSales
       
    [!Field: VCHINV Godown Sales]
       
        Delete        : Set as
        Add            : Set as    : $Godownv:StockItem:$StockItemName
     
    vinoth and Nallasivam like this.


  3. Damodaran

    Damodaran New Member


    Sir,

    I have set default godown at item level but, I want to auto select the godown while selecting the stock item in any voucher type, Please help to get the expected outcome
     


  4. sivam

    sivam Active Member


    Then you should write all type of Batch Fields. I mentioned here only for Invoice Batch Field
     


  5. narayane88

    narayane88 Active Member


    Try this one

    [#Part: STKI Batch]

    Add : Line : At End : VCHBATCHGodownLine

    [Line : VCHBATCHGodownLine]
    Field : VCHBATCHGodownTitleFld, VCHBATCHGodownFld

    [Field : VCHBATCHGodownTitleFld]

    Info : "Rack"
    Width : 20 mms
    Color : Red
    Align : Promp

    [Field : VCHBATCHGodownFld]
    Use : Godown Name Field
    Storage : Godownv
    Table : List of Godowns, NotApplicable
    Show Table : Always
    Key : Create Godown, Alter Godown
    Background : White
    Color : Blue


    [System: UDF]

    Godownv : String : 9080

    [#Field:VCHBatchGodown]
    Add : Option : VCHINV Godown Sales : @@IsSales

    [!Field: VCHINV Godown Sales]


    Add : Set as : if $Godownv:StockItem:$StockItemName="" then "Main Location" else $Godownv:StockItem:$StockItemName
    Delete : Table
    Add:Table : List of Godowns, End of List:$$Line = 1
    Add:Table : End of List:$$Line > 1
    Set always : Yes
    Skip:If $$Line = 1 Then Yes else No
     


  6. Mohan.S

    Mohan.S Member


    How to use multiple godown for one item allocation screen in Tally. see attached video.
    Ex.
    Petrol Day end report
    Nozil 1 = 150 ltr
    Nozil 2 = 500 ltr
    Nozil3 = 1000 ltr

    we want to update tat in 1 screen
     

    Attached Files:



Share This Page