Example #1
0
        public void SaveTotalCost()
        {
            Receipt GRV = new Receipt();

            GRV.LoadByPrimaryKey(ReceiptID);
            GRV.TotalValue = _SubTotal;
            GRV.Save();
        }
Example #2
0
        public void SaveInsurance()
        {
            Receipt GRV = new Receipt();

            GRV.LoadByPrimaryKey(ReceiptID);
            GRV.Insurance = _Insurance;
            GRV.Provision = _OtherExpense;
            GRV.Save();
        }
Example #3
0
        private void btnSTV_Click(object sender, EventArgs e)
        {
            BLL.Receipt receipt = new BLL.Receipt();
            receipt.LoadByPrimaryKey(ReceiptID);
            receipt.STVOrInvoiceNo = txtSTVNo.EditValue.ToString();
            receipt.Save();
            ReceiptInvoice invoice = new ReceiptInvoice();

            invoice.LoadByPrimaryKey(receipt.ReceiptInvoiceID);
            invoice.STVOrInvoiceNo = txtSTVNo.EditValue.ToString();
            invoice.Save();
            this.LogActivity("Set-New-STV-No", ReceiptID);
            XtraMessageBox.Show("STV Number has been saved");
        }
 public void SaveInsurance()
 {
     Receipt GRV = new Receipt();
        GRV.LoadByPrimaryKey(ReceiptID);
        GRV.Insurance = _Insurance;
        GRV.Provision = _OtherExpense;
        GRV.Save();
 }
 public void SaveTotalCost()
 {
     Receipt GRV = new Receipt();
     GRV.LoadByPrimaryKey(ReceiptID);
     GRV.TotalValue = _SubTotal;
     GRV.Save();
 }
 private void btnSTV_Click(object sender, EventArgs e)
 {
     BLL.Receipt receipt = new BLL.Receipt();
     receipt.LoadByPrimaryKey(ReceiptID);
     receipt.STVOrInvoiceNo = txtSTVNo.EditValue.ToString();
     receipt.Save();
     ReceiptInvoice invoice = new ReceiptInvoice();
     invoice.LoadByPrimaryKey(receipt.ReceiptInvoiceID);
     invoice.STVOrInvoiceNo = txtSTVNo.EditValue.ToString();
     invoice.Save();
     this.LogActivity("Set-New-STV-No", ReceiptID);
     XtraMessageBox.Show("STV Number has been saved");
 }