Altered the convert sql to drop ParentLedgerID from Ledgers

Changed Ledger to Account in ui and made the list and detail form + view angular.
Added partial static view for AngularJS templates
Added services / routes for user permissions and account types
Removed post_voucher and delete_voucher route as they are no longer needed
Added Account / Ledger / Permission / Cost Center / Account Type service in angular
Added routes for /Accounts
Disabled the debug toolbar
This commit is contained in:
Tanshu
2012-10-11 17:26:51 +05:30
parent 9ef3f751f9
commit 427f667f3a
47 changed files with 750 additions and 2056 deletions

View File

@ -1,11 +1,18 @@
UPDATE entities_vouchers SET date = date || ".000000", lasteditdate = lasteditdate || ".000000", creationdate = creationdate || ".000000";
UPDATE entities_attendances SET date = date || ".000000", creationdate = creationdate || ".000000";
UPDATE entities_fingerprints SET date = date || ".000000";
ALTER TABLE "Entities_Ledgers" ADD COLUMN "ledger_type" nvarchar(50) NOT NULL DEFAULT "";
ALTER TABLE "Entities_Batches" RENAME TO "Entities_Batches_old";
CREATE TABLE "Entities_Batches" ("BatchID" guid NOT NULL ,"Name" nvarchar(50) NOT NULL ,"ProductID" guid,"QuantityRemaining" numeric NOT NULL ,"Rate" numeric NOT NULL ,"Tax" numeric NOT NULL ,"Discount" numeric NOT NULL, PRIMARY KEY ([BatchID]));
INSERT INTO "Entities_Batches" SELECT "BatchID","Name","ProductID","QuantityRemaining","Rate","Tax","Discount" FROM "Entities_Batches_old";
DROP TABLE "Entities_Batches_old";
ALTER TABLE "Entities_Ledgers" RENAME TO "Entities_Ledgers_old";
CREATE TABLE "Entities_Ledgers" ("LedgerID" guid NOT NULL, "Code" integer NOT NULL, "Name" nvarchar(255) NOT NULL COLLATE NOCASE, "Type" integer NOT NULL, "ledger_type" nvarchar(50) NOT NULL, "IsActive" bit NOT NULL, "CostCenterID" guid,
PRIMARY KEY ([LedgerID]),
FOREIGN KEY ([CostCenterID]) REFERENCES [Entities_CostCenters]([CostCenterID])
);
INSERT INTO "Entities_Ledgers" SELECT "LedgerID", "Code", "Name", "Type", '', "IsActive", "CostCenterID" FROM "Entities_Ledgers_old";
UPDATE "Entities_Ledgers" SET ledger_type = 'employees' where type = 10;
ALTER TABLE "main"."Entities_Batches" RENAME TO "Entities_Batches_old";
CREATE TABLE "main"."Entities_Batches" ("BatchID" guid NOT NULL ,"Name" nvarchar(50) NOT NULL ,"ProductID" guid,"QuantityRemaining" numeric NOT NULL ,"Rate" numeric NOT NULL ,"Tax" numeric NOT NULL ,"Discount" numeric NOT NULL );
INSERT INTO "main"."Entities_Batches" SELECT "BatchID","Name","ProductID","QuantityRemaining","Rate","Tax","Discount" FROM "main"."Entities_Batches_old";
DROP TABLE "main"."Entities_Batches_old";
DROP TABLE "Entities_Ledgers_old";