public void SaveTotalCost() { Receipt GRV = new Receipt(); GRV.LoadByPrimaryKey(ReceiptID); GRV.TotalValue = _SubTotal; GRV.Save(); }
public void SaveInsurance() { Receipt GRV = new Receipt(); GRV.LoadByPrimaryKey(ReceiptID); GRV.Insurance = _Insurance; GRV.Provision = _OtherExpense; 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"); }
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"); }