//For PurchaseItem Details public INV_Sales GetSalesDetail(int depId, int id) { INV_Sales detail = new INV_Sales(); detail.INV_SalesBillDetail = GetSales(depId, id); detail.INV_SalesItemList = GetSalesItemList(depId, id); return(detail); }
//For PurchaseItem Listing public INV_Sales GetSalesListDetail(int depid, string fromdate, string todate, string billno, int vendorId) { INV_Sales detail = new INV_Sales(); detail.INV_SalesBillList = GetSalesList(depid, fromdate, todate, billno, vendorId); for (int i = 0; i < detail.INV_SalesBillList.Count; i++) { detail.INV_SalesBillList[i].InventorySalesItemByBillSalesIdList = GetSalesItemListByBillSalesId(depid, detail.INV_SalesBillList[i].SalesBillId); } // detail.AssetPurchaseItems = GetPurchaseItemList(orgid); return(detail); }