Regression: BillItemKey added the compare methods back

Regression: PrintLocation added the compare methods back
Breaking: Kot.Code is now integers
Breaking: Kot Update is now via Stored Procedure to get DB Values
Breaking: Reprints Insert is now via Stored Procedure to get DV Values
Breaking: Voucher.BillID and KotID are now integers
Breaking: Voucher Insert/Update is now via Stored Procedures to get DV Values also Dirty Checking for Voucher has been overwritten to set dirty for LastEditDate update
Fix: Login forms simplified
Feature: PrintLocation and Products are cached application wide.
This commit is contained in:
tanshu
2014-11-02 13:33:31 +05:30
parent 45831e2e4d
commit 3ca8b29e04
33 changed files with 528 additions and 332 deletions

View File

@ -51,7 +51,6 @@ UPDATE Auth_Roles SET Name = 'Merge Kots' WHERE RoleID = 24;
UPDATE Auth_Roles SET Name = 'Move Kot to New Table' WHERE RoleID = 25;
UPDATE Auth_Roles SET Name = 'Bill Details' WHERE RoleID = 26;
UPDATE Auth_Roles SET Name = 'Open Bill' WHERE RoleID = 27;
INSERT INTO Auth_Roles (RoleID, Name) VALUES(Newid(), 'Modifiers')
COMMIT
GO
USE Sales
@ -80,17 +79,17 @@ from Gets.dbo.Entities_FoodTables as ft;
INSERT INTO Vouchers (VoucherID, Date, Pax, UserID, CreationDate, LastEditDate, BillID, TableID, WaiterID, CustomerID, Narration, Void, VoidReason, Printed, VoucherType, KotID)
SELECT ID, Date, Pax,
(SELECT u.ID FROM Gets.dbo.Auth_Users u WHERE u.UserID = v.UserID),
CreationDate, LastEditDate, BillID,
CreationDate, LastEditDate, CASE WHEN BillID LIKE 'K-%' THEN null ELSE CAST(REPLACE(REPLACE(REPLACE(BillID, '-', ''), 'NC', ''), 'ST','') AS int) END,
(SELECT t.ID FROM Gets.dbo.Entities_FoodTables t WHERE t.Name = v.TableID),
(SELECT w.ID FROM Gets.dbo.Entities_Waiters w WHERE w.WaiterID = v.WaiterID),
(SELECT c.ID FROM Gets.dbo.Entities_Customers c WHERE c.CustomerID = v.CustomerID),
Narration, Void, VoidReason, Printed, VoucherType, KotID
Narration, Void, VoidReason, Printed, VoucherType, CAST(REPLACE(KotID, 'K-', '') AS int)
from Gets.dbo.Entities_Vouchers as V;
INSERT INTO Kots (KotID, VoucherID, Code, TableID, Printed, Date, UserID)
SELECT ID,
(SELECT v.ID FROM Gets.dbo.Entities_Vouchers v WHERE v.VoucherID = k.VoucherID),
Code,
CAST(REPLACE(Code, 'S-', '') AS int),
(SELECT t.ID FROM Gets.dbo.Entities_FoodTables t WHERE t.Name = k.TableID),
Printed, Date,
(SELECT u.ID FROM Gets.dbo.Auth_Users u WHERE u.UserID = k.UserID)