Beispiel #1
0
 public void finishreceipt(float total)
 {
     this.idreceipt = receiptDAL.addreceipt(this.iduser, this.date, this.idtype, total);
     foreach (DataRow row in receiptdetail.Rows)
     {
         receiptDAL.addreceiptdetail(this.idreceipt, row["No."].ToString(), row["Item ID"].ToString(), Convert.ToInt32(row["quantity"]), float.Parse(row["Subtotal"].ToString()));
     }
 }