Fix: Because of changes in bill loading, there were errors in

reprint/split and other functions where inventories from
     old vouchers was added to new voucher.
This commit is contained in:
tanshu 2016-04-13 15:08:20 +05:30
parent 19353005a5
commit 7050ff5bd3
2 changed files with 5 additions and 1 deletions

View File

@ -192,7 +192,9 @@ namespace Tanshu.Accounts.PointOfSale
ClearBill();
if (_editVoucherID.HasValue)
{
FoodTable ft = new FoodTableBI().Get(x => x.VoucherID == _editVoucherID.Value);
FoodTable ft;
using (var bi = new FoodTableBI())
ft = bi.Get(x => x.VoucherID == _editVoucherID.Value);
if (ft == null)
{
_editVoucherID = null;

View File

@ -95,6 +95,8 @@ namespace Tanshu.Accounts.Repository
NHibernateUtil.Initialize(item.Product.ProductGroup);
foreach (var inmod in item.InventoryModifier)
NHibernateUtil.Initialize(inmod.Modifier);
NHibernateUtil.Initialize(item.Vat);
NHibernateUtil.Initialize(item.ServiceTax);
}
}
foreach (var item in voucher.Settlements)