コード例 #1
0
        //For PurchaseItem Details
        public INV_Purchase GetPurchaseDetail(int depId, int id)
        {
            INV_Purchase detail = new INV_Purchase();

            detail.INV_PurchaseBillDetail = GetPurchase(depId, id);
            detail.INV_PurchaseItemList   = GetPurchaseItemList(depId, id);

            return(detail);
        }
コード例 #2
0
        //For PurchaseItem Listing
        public INV_Purchase GetPurchaseListDetail(int depid, string fromdate, string todate, string billno, int vendorId)
        {
            INV_Purchase detail = new INV_Purchase();

            detail.INV_PurchaseBillList = GetPurchaseList(depid, fromdate, todate, billno, vendorId);
            for (int i = 0; i < detail.INV_PurchaseBillList.Count; i++)
            {
                detail.INV_PurchaseBillList[i].InventoryPurchaseItemByBillPurshaseIdList = GetPurchaseItemListByBillPurshaseId(depid, detail.INV_PurchaseBillList[i].PurchaseBillId);
            }

            // detail.AssetPurchaseItems = GetPurchaseItemList(orgid);
            return(detail);
        }