Fix: OpenBill was not resetting _editVoucherID value before loading bill.

This commit is contained in:
tanshu 2016-04-13 15:26:02 +05:30
parent 7050ff5bd3
commit 57f3f7e08d

View File

@ -195,11 +195,9 @@ namespace Tanshu.Accounts.PointOfSale
FoodTable ft; FoodTable ft;
using (var bi = new FoodTableBI()) using (var bi = new FoodTableBI())
ft = bi.Get(x => x.VoucherID == _editVoucherID.Value); ft = bi.Get(x => x.VoucherID == _editVoucherID.Value);
if (ft == null)
{
_editVoucherID = null;
}
LoadBill(_editVoucherID.Value); LoadBill(_editVoucherID.Value);
if (ft != null)
_editVoucherID = null;
return SaleFormState.Billing; return SaleFormState.Billing;
} }
return SaleFormState.Waiting; return SaleFormState.Waiting;