Dropped many columns for Prodct Table.
Merged product and account menu on page top. Product working now.
This commit is contained in:
@ -16,3 +16,27 @@ CREATE TABLE "Entities_Ledgers" ("LedgerID" guid NOT NULL, "Code" integer NOT NU
|
||||
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;
|
||||
DROP TABLE "Entities_Ledgers_old";
|
||||
|
||||
ALTER TABLE "Entities_Products" RENAME TO "Entities_Products_old";
|
||||
CREATE TABLE [Entities_Products] (
|
||||
"ProductID" guid NOT NULL,
|
||||
"Code" integer NOT NULL,
|
||||
"Name" nvarchar(150) NOT NULL COLLATE NOCASE,
|
||||
"Units" nvarchar(50) NOT NULL COLLATE NOCASE,
|
||||
"Fraction" numeric NOT NULL,
|
||||
"FractionUnits" nvarchar(255) NOT NULL COLLATE NOCASE,
|
||||
"Yeild" numeric NOT NULL,
|
||||
"ShowForPurchase" bit NOT NULL,
|
||||
"Price" numeric,
|
||||
"Discontinued" bit NOT NULL,
|
||||
"ProductGroupID" guid,
|
||||
"LedgerID" guid,
|
||||
PRIMARY KEY ([ProductID])
|
||||
,
|
||||
FOREIGN KEY ([LedgerID])
|
||||
REFERENCES [Entities_Ledgers]([LedgerID]),
|
||||
FOREIGN KEY ([ProductGroupID])
|
||||
REFERENCES [Entities_ProductGroups]([ProductGroupID])
|
||||
);
|
||||
INSERT INTO "Entities_Products" SELECT "ProductID", "Code", "Name", "Units", "Fraction", "FractionUnits", "Yeild", "ShowForPurchase", "PurchasePrice", "Discontinued", "ProductGroupID", "PurchaseLedgerID" FROM "Entities_Products_old";
|
||||
DROP TABLE "Entities_Products_old";
|
||||
|
||||
Reference in New Issue
Block a user