Esempio n. 1
0
        public void CreatePurchaseInvoiceInventoryTransaction(Session session, Guid purchaseInvoiceId, Guid accountingPeriodId, DateTime issueDate, Guid inventoryId, XPCollection <BillItem> billItems, string code, string description)
        {
            InventoryTransactionBO invTransactionBO = new InventoryTransactionBO();

            invTransactionBO.ReceiptType = Utility.Constant.RECEIPT_PURCHASE;
            //invTransactionBO.CreatePurchaseInvoiceInventoryTransaction(session, purchaseInvoiceId, accountingPeriodId, issueDate, inventoryId, billItems, code, description);

            invTransactionBO.CreateInventoryTransaction(session, inventoryId, code, description, issueDate, billItems);
        }
Esempio n. 2
0
        protected void GridDeliveryPlanning_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            e.Cancel = true;
            GridDeliveryPlanning.CancelEdit();
            InventoryTransactionBO purchaseInvoiceTransactionBO = new InventoryTransactionBO();

            purchaseInvoiceTransactionBO.CreateInventoryTransaction(session, BillId, (DateTime)e.NewValues["IssueDate"], (string)e.NewValues["Code"], (string)e.NewValues["Description"]);
            GridDeliveryPlanning.DataSource = purchaseInvoiceTransactionBO.GetDeliveryPlanningForBill <PurchaseInvoice>(session, BillId);
            GridDeliveryPlanning.DataBind();
        }