From dc3576437fd29499fabad7a91b17a39a793742ac Mon Sep 17 00:00:00 2001 From: tanshu Date: Sun, 2 Nov 2014 13:42:32 +0530 Subject: [PATCH] Fix: Table two also pointed to voucher one only. --- Tanshu.Accounts.Repository/VoucherBI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tanshu.Accounts.Repository/VoucherBI.cs b/Tanshu.Accounts.Repository/VoucherBI.cs index d70ae20..83c94cf 100644 --- a/Tanshu.Accounts.Repository/VoucherBI.cs +++ b/Tanshu.Accounts.Repository/VoucherBI.cs @@ -276,7 +276,7 @@ namespace Tanshu.Accounts.Repository _session.Update(tableFirst); var tableSecond = _session.QueryOver().Where(x => x.FoodTableID == second.Table.FoodTableID).SingleOrDefault(); - tableSecond.VoucherID = first.VoucherID; + tableSecond.VoucherID = second.VoucherID; tableSecond.Status = status; _session.Update(tableFirst); }