Columnar Purchase Register and Sales Register with HSN code, Sales/Purchase Ledger and GST rate

Discussion in 'Free Source Codes' started by Devendra_Rawat, Dec 27, 2018.

    
  1. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    This TDL attempts to add additional columns..
    wiz HSN Code
    Sales/Purchase Ledger
    GST Rate


    How:
    Set : Display to Yes for in F5 (Columnar Report) of Sales/Purchase Register
    1. HSN/Code
    2. Non Party Ledger
    3. GST Rate


    It keeps intact all other default features of the report intact, and gives details as intended in Explode mode also.

    It is now working for all item invoices in explode mode in Columnar Format, Check posted code again ..

    It has ledger Allocation Name (Purchase/Sales Ledger) name against each item and Item IGST Rate and HSN code if defined in the master.. These three columns are not available in default columnar sales/Purchase Registers

    Code:
    [#Part: CMP COLBasics]
        Add: Lines: After: COLREGWithGSTIN:COLREGWithHSNSAC, COLREGWithLEDGER, COLREGWithGSTRate
    
    
    [Line: COLREGWithHSNSAC]
    
            Fields      : Medium Prompt, COLREGWithHSNSAC
            Local       : Field : Medium Prompt : Info : $$LocaleString:"Show HSN/SAC Code ?"                ;;; To Display Show party's GSTIN/UIN
            Invisible    : NOT @@IsGSTOn
    
           [Field: COLREGWithHSNSAC]
           Use         : Logical Field
            Modifies    : COLREGWithHSNSAC
      
    
    [Line: COLREGWithLEDGER]
    
            Fields      : Medium Prompt, COLREGWithLEDGER
            Local       : Field : Medium Prompt : Info : $$LocaleString:"Show Ledger for Entry ?"                ;;; To Display Show party's GSTIN/UIN
            Invisible    : NOT @@IsGSTOn
    
           [Field: COLREGWithLEDGER]
           Use         : Logical Field
            Modifies    : COLREGWithLEDGER
    
    [Line: COLREGWithGSTRate]
    
            Fields      : Medium Prompt, COLREGWithGSTRate
            Local       : Field : Medium Prompt : Info : $$LocaleString:"Show GST Rate ?"                ;;; To Display Show party's GSTIN/UIN
            Invisible    : NOT @@IsGSTOn
    
           [Field: COLREGWithGSTRate]
           Use         : Logical Field
            Modifies    : COLREGWithGSTRate
        
    
    [System: Variables]
        COLREGWithHSNSAC    : No
        COLREGWithLEDGER    : No
          COLREGWithGSTRate    : No
    
    
    [Variable: COLREGWithHSNSAC]
    
        Type        : Logical
        Persistent  : Yes
    
    [Variable: COLREGWithLEDGER]
    
        Type        : Logical
        Persistent  : Yes
    
    [Variable: COLREGWithGSTRate]
    
        Type        : Logical
        Persistent  : Yes
    
    
    [#Line: DSP ColVchTitle]
        Add: Field    : After: DBC GSTIN:DBC HSNSAC
        Add: Field    : After: DBC GSTIN:DBC LEDGERNP
        Add: Field    : After: DBC GSTIN:DBC GSTRATE
        Local : Field:DBC HSNSAC : Set as     : $$LocaleString:"HSN/SAC"
        Local : Field:DBC LEDGERNP : Set as     : $$LocaleString:"Non Party Ledger"
        Local : Field:DBC GSTRATE : Set as     : $$LocaleString:"GST Rate"
    
    [#Part: DBC QtyDetails]
        Local :  Field  :   DBC LEDGERNP :  Set as    : $GSTEntryLedgerName
    
    [#Line: DSP ColVchDetail]
    
        Add: Field    : After: DBC GSTIN:DBC HSNSAC
        Add: Field    : After: DBC GSTIN:DBC LEDGERNP
        Add: Field    : After: DBC GSTIN:DBC GSTRATE
    
    [Field: DBC HSNSAC]
    
            Use            : Short Name Field
            Set as        : $GSTItemHSNCodeEx;DBCHSNSAC
            Width       : 0
            Style       : Normal
            Bound       : 8,15
            Invisible    : NOT (##COLREGWithHSNSAC AND @@IsGSTOn)
            Scroll     : Yes
            Border         : Thin Left
        
    [Field: DBC LEDGERNP]
    
            Use            : Short Name Field
            Set as        : $GSTEntryLedgerName; DBCLEDGERNP
            Width       : 0
            Style       : Normal
            Bound       : 8,15
            Invisible    : NOT (##COLREGWithLEDGER AND @@IsGSTOn)
            Scroll     : Yes
            Border         : Thin Left
    
    [Field: DBC GSTRATE]
    
            Use            : Short Name Field
            Set as        : $GSTLedItemIGSTRateEx; DBCGSTRATE
            Width       : 0
            Style       : Normal
            Bound       : 8,15
            Invisible    : NOT (##COLREGWithGSTRATE AND @@IsGSTOn)
            Scroll     : Yes
            Border         : Thin Left
            Alignment    : Centre
        
    [#Collection: Columnar Vouchers of Company]
    
        Fetch :    AllInventoryEntries.GSTLedItemIGSTRateEx, AllInventoryEntries.GSTItemHSNCodeEx, AllInventoryEntries.GSTEntryLedgerName
    
    
    
     
    Last edited: Jan 3, 2019
    Bipin Damania, Neha2017 and Vashisth like this.


  2. tejeet

    tejeet Member


    SIR PLEASE CORRECT CODE, THEIR IS MISTAKE 1) GST RATE NOT SHOWING 2) ALL ITEMS HSN CODE IS SHOWN WRONG , IT IS SHOWING HSN CODE OF 1st ITEM ONLY FOR ALL THE ITEMS IN INVOICE.
     


  3. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Ok.. upload your tally data.. I do not have tally data to test it.

    Yes there is issue when voucher has multiple stock items.. I will shortly update it.
     
    Last edited: Dec 27, 2018
    Asheesh and dibyendu majumder like this.


  4. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    It is now working for all Inventory Vouchers in explode mode
     
    Vashisth likes this.


  5. Vashisth

    Vashisth New Member


    Thanks Sir..
     


  6. tejeet

    tejeet Member


    PLEASE SHARE THE LATEST & CORRECTED CODES
     


  7. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    latest code is already updated... old one has been removed.. what you see in code section, is latest code
     


  8. tejeet

    tejeet Member


    It is now working for all Inventory Vouchers in explode mode , THANK YOU VERY MUCH
     


  9. madhu.vukyam

    madhu.vukyam New Member


    gst rate is piking from based on accounting ledger.
     


  10. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Yes, it follows as..... if GST rate is empty in accounting ledger then it will pick up stock item else from accounting ledger.. see the gsttraingulationmethods tdl in tally developer..
     


  11. Neha2017

    Neha2017 New Member


    Extremely Useful TDL. How to get the Place Of Supply in one Column as well?

    There seems to be no source collection for
    Columnar Vouchers of Company?
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Refer DColl.500
     


  13. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Do you want to add it ?
     


  14. Neha2017

    Neha2017 New Member


    Yes, I was able to get it.

    But I was not able to understand - if a collection does not have a 'Type' or 'Source Collection' attribute, how does it know which object to use?
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    This is a template collection.........not specifically assigned to any report / form etc

    Other collection draws their data by using Type, Source and Filters........... for example see below........

    [Collection: Columnar Filtered Vouchers of Company]
    Source Collection : SRC Filtered Vouchers of Company
    Use : Columnar Vouchers of Company
    Filter : ForexVouchers

    In Above.... the source collection is SRC Filtered Vouchers of Company and within that collection there is TYPE, ChildOf etc etc.
     
    Neha2017 and Devendra_Rawat like this.


  16. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Then Pls upload the tdl. so that others can take benefit of your work







     


  17. Devendra_Rawat

    Devendra_Rawat Well-Known Member



    What is difference between soruce collection and Use:
     


  18. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Source Collection --- it specifies/identifies the Collection to be used for source data.

    As for USE --- it is like an indirect reference ............ similar to "Use : Name Field" Rather repeating the parameter all over different collection/field etc you can use a commonly made one.

    e.g.
    [Field : MyDefaultsettings]
    Use : Amount Field
    Width : 10
    Style : Normal Bold
    Format : :"DrCr"

    Now instead of specifying the parameters repeatedly over many fields, we can use it like under:
    [Field : MyField1]
    Use : MyDefaultsettings

    [Field : MyField2]
    Use : MyDefaultsettings............ and so on

    Am sure you know better than me in TDL............ or are you testing me?? :):):(:(
     


  19. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Ok Sir,

    I got it..

    No.. Its not that.. It didn't occurred to me.

    You have vast and in depth knowledge of TDL..

    But I know only a few specific parts of TDL .. all my TDL posted over here are just solutions to somebody's queries.. credit goes to original coder.
     


  20. Neha2017

    Neha2017 New Member


    Oh
    This is a really good explanation. Many thanks Amit Ji.
     


  21. Neha2017

    Neha2017 New Member


    It's exactly the same as your TDL, only I added a formula called GSTpartyplaceofsupply from one of the inbuilt GST TDLs.

    Thanks again for your code.
     


  22. Bipin Damania

    Bipin Damania Active Member


    Garimaji

    How to Add Godown Name Column ?
     


  23. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    a little busy for next 15 days..
     


  24. Bipin Damania

    Bipin Damania Active Member


    Ok

    I will wait

    Thank you
     


  25. praveen_pan

    praveen_pan New Member


    Cess based on value and quantity rate how to display in above code
    upload_2020-4-4_18-21-26.png
     


Share This Page