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
1 changed files with 2 additions and 4 deletions

View File

@ -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;