feat(UI): Stock Items page added with getting, filtering, and saving data.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
# Stock Stock Item
|
||||
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_Stock_Item;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Stock_Item';
|
||||
|
||||
@@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS Shop_Stock_Item (
|
||||
CONSTRAINT FK_Shop_Stock_Item_id_permutation
|
||||
FOREIGN KEY (id_permutation)
|
||||
REFERENCES Shop_Product_Permutation(id_permutation),
|
||||
date_purchased TIMESTAMP NOT NULL,
|
||||
date_received TIMESTAMP NULL,
|
||||
date_purchased DATETIME NOT NULL,
|
||||
date_received DATETIME NULL,
|
||||
id_location_storage INT NOT NULL,
|
||||
CONSTRAINT FK_Shop_Stock_Item_id_location_storage
|
||||
FOREIGN KEY (id_location_storage)
|
||||
@@ -21,15 +21,15 @@ CREATE TABLE IF NOT EXISTS Shop_Stock_Item (
|
||||
CONSTRAINT FK_Shop_Stock_Item_id_currency
|
||||
FOREIGN KEY (id_currency_cost)
|
||||
REFERENCES Shop_Currency(id_currency),
|
||||
cost_local_VAT_incl FLOAT NOT NULL,
|
||||
cost_local_VAT_excl FLOAT NOT NULL,
|
||||
cost_local_VAT_incl FLOAT NULL,
|
||||
cost_local_VAT_excl FLOAT NULL,
|
||||
is_sealed BIT NOT NULL DEFAULT 1,
|
||||
date_unsealed TIMESTAMP NULL,
|
||||
date_expiration TIMESTAMP NOT NULL,
|
||||
date_unsealed DATETIME NULL,
|
||||
date_expiration DATETIME NOT NULL,
|
||||
is_consumed BIT NOT NULL DEFAULT 0,
|
||||
date_consumed TIMESTAMP NULL,
|
||||
date_consumed DATETIME NULL,
|
||||
active BIT NOT NULL DEFAULT 1,
|
||||
created_on TIMESTAMP,
|
||||
created_on DATETIME,
|
||||
created_by INT,
|
||||
id_change_set INT,
|
||||
CONSTRAINT FK_Shop_Stock_Item_id_change_set
|
||||
|
||||
Reference in New Issue
Block a user