From 57f3f7e08de36ac6040c3ef266fa8c3fb66449ad Mon Sep 17 00:00:00 2001 From: tanshu Date: Wed, 13 Apr 2016 15:26:02 +0530 Subject: [PATCH] Fix: OpenBill was not resetting _editVoucherID value before loading bill. --- Tanshu.Accounts.PointOfSale/Controllers/BillController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs b/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs index 6078ab3..10d9058 100644 --- a/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs +++ b/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs @@ -195,11 +195,9 @@ namespace Tanshu.Accounts.PointOfSale FoodTable ft; using (var bi = new FoodTableBI()) ft = bi.Get(x => x.VoucherID == _editVoucherID.Value); - if (ft == null) - { - _editVoucherID = null; - } LoadBill(_editVoucherID.Value); + if (ft != null) + _editVoucherID = null; return SaleFormState.Billing; } return SaleFormState.Waiting;