//Test Methods private Txpd Gettxpdata(GST_TRN_INVOICE txpddata) { Txpd txpd = new Txpd(); txpd.pos = Convert.ToString(txpddata.TaxBenefitingState); txpd.sply_ty = txpddata.IsInter == true ? "INTER" : "INTRA"; foreach (var data in txpddata.GST_TRN_INVOICE_DATA) { txpd.itms.Add(GetItm7(data)); } return(txpd); }
private Txpd Gettxpdata(GST_TRN_OFFLINE_INVOICE txpddata) { Txpd txpd = new Txpd(); txpd.pos = Convert.ToString(txpddata.PlaceofSupply); txpd.sply_ty = txpddata.SupplyType == 0 ? "INTER" : "INTRA"; foreach (var data in txpddata.GST_TRN_OFFLINE_INVOICE_DATAITEM) { txpd.itms.Add(GetItm7(data)); } return(txpd); }