From 5a8918ddf5d316088f95dcd8bb6ec9f8073bc031 Mon Sep 17 00:00:00 2001 From: Tanshu Date: Sat, 1 Dec 2012 16:19:06 +0530 Subject: [PATCH] Major error, table exists check was wrong. Did not allow opening new table. --- Tanshu.Accounts.PointOfSale/Controllers/BillController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs b/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs index 80a763c..6432fae 100644 --- a/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs +++ b/Tanshu.Accounts.PointOfSale/Controllers/BillController.cs @@ -912,7 +912,7 @@ namespace Tanshu.Accounts.PointOfSale if (updateTable) using (var ft = new FoodTableBI(session, false)) { - tableExists = ft.Get(x => x.Name == _billInfo.TableID).VoucherID == 0; + tableExists = ft.Get(x => x.Name == _billInfo.TableID).VoucherID != 0; ft.UpdateStatus(_billInfo); }