Exemplo n.º 1
0
        private void UpdateFreight()
        {
            POReturnDetails clsPOReturnDetails = new POReturnDetails();
            clsPOReturnDetails.DebitMemoID = Convert.ToInt64(lblDebitMemoID.Text);
            clsPOReturnDetails.Freight = Convert.ToDecimal(txtPODebitMemoFreight.Text);

            POReturns clsPOReturns = new POReturns();
            clsPOReturns.UpdateFreight(clsPOReturnDetails.DebitMemoID, clsPOReturnDetails.Freight);
            clsPOReturns.SynchronizeAmount(Convert.ToInt64(lblDebitMemoID.Text));
            clsPOReturnDetails = clsPOReturns.Details(Convert.ToInt64(lblDebitMemoID.Text));
            clsPOReturns.CommitAndDispose();

            UpdateFooter(clsPOReturnDetails);
        }