Creating Ledger with GST details from TDL code.

Discussion in 'Requests' started by karthik loganadin, Jun 27, 2019.

         
  1. karthik loganadin

    karthik loganadin New Member


    Hi fellow developers, Please help me in this. I am trying to create a new ledger with GST details, But the GST details are not populated in the ledger. Please correct me. I shared my ledger creation code with 5% GST below.

    1c : NEW OBJECT : Ledger
    1d : Set Value : Name : "GST 5% Sales"
    1e : Set Value : Parent : "Sales"
    1ea : Set Value : GSTApplicable : @@SysNameApplicable
    1eb : Set Value :GSTTYPEOFSUPPLY :$$SysName:Goods; or $$SysName:Services
    1ec : Set Value :VATAPPLICABLE :mad:@SysNameApplicable
    1e0 : Set Value :ISGSTAPPLICABLE : Yes
    1e1 : Set Value :isExempted : No
    1e2 : INSERT COLLECTION OBJECT : GSTDETAILS
    1e3 : SET TARGET : GSTDETAILS
    1e4 : Set Value : Taxability :$$SysName:Taxable
    1e5 : Set Value : GSTNATUREOFTRANSACTION : "Sales Taxable"


    1e7 : INSERT COLLECTION OBJECT : STATEWISEDETAILS
    1e8 : SET TARGET : STATEWISEDETAILS
    1e9 : Set Value :STATENAME :$$SysName:Any
    1e10 : INSERT COLLECTION OBJECT :RATEDETAILS
    1e11: SET TARGET : RATEDETAILS
    1e12: Set Value :GSTRATEDUTYHEAD : $$SysName:CGST
    1e12a: Set Value :GSTRATE :2.5
    1e13: Set Value :GSTRATEVALUATIONTYPE :$$SysName:OnValue
    1e14 : Set Target:..
    1e15: INSERT COLLECTION OBJECT :RATEDETAILS
    1e16: SET TARGET : RATEDETAILS
    1e17: Set Value :GSTRATEDUTYHEAD : $$SysName:UTGST
    1e17a: Set Value :GSTRATE :2.5
    1e18: Set Value :GSTRATEVALUATIONTYPE :$$SysName:OnValue
    1e19: Set Target:..
    1e20: INSERT COLLECTION OBJECT :RATEDETAILS
    1e21: SET TARGET : RATEDETAILS
    1e22: Set Value :GSTRATEDUTYHEAD : $$SysName:IGST
    1e22a: Set Value :GSTRATE :5.0
    1e23: Set Value :GSTRATEVALUATIONTYPE :$$SysName:OnValue
    1e24: Set Target:..
    1e25: INSERT COLLECTION OBJECT :RATEDETAILS
    1e26: SET TARGET : RATEDETAILS
    1e27: Set Value :GSTRATEDUTYHEAD : $$SysName:Cess
    1e27a: Set Value :GSTRATE :0.0
    1e28: Set Value :GSTRATEVALUATIONTYPE :$$SysName:OnValue
    1e29: Set Target:..
    1e40: INSERT COLLECTION OBJECT :RATEDETAILS
    1e41 : SET TARGET : RATEDETAILS
    1e42: Set Value :GSTRATEDUTYHEAD : $$SysName:CessQty
    1e42a: Set Value :GSTRATE :0.0
    1e43: Set Value :GSTRATEVALUATIONTYPE :$$SysName:OnValue
    1e44: Set Target:..
    1e45: Set Target:.. ; closing Statewise GSt details
    1e46:Set Target:.. ;closing GST details
    1e47:CREATE TARGET
     


  2. balajimg

    balajimg Member


    INSERT COLLECTION OBJECT : STATEWISEDETAILS is actually
    INSERT COLLECTION OBJECT : GSTSTATEWISEDETAILS

    and

    INSERT COLLECTION OBJECT :RATEDETAILS is actual
    INSERT COLLECTION OBJECT :GSTRATEDETAILS
     


Share This Page