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:
parent
19353005a5
commit
7050ff5bd3
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user