1. View, filter, and save Product Permutation. \n 2. Synchronised with Product Category page and all common functionality moved into base and base table css, js, and python files.

This commit is contained in:
2024-09-24 23:25:52 +01:00
parent 2954b2050c
commit 45ac0405b4
243 changed files with 6596 additions and 4460 deletions

View File

@@ -1,7 +1,7 @@
-- Shop Recurrence Interval
CREATE OR REPLACE FUNCTION before_insert_Shop_Recurrence_Interval()
CREATE OR REPLACE FUNCTION before_insert_Shop_Interval_Recurrence()
RETURNS TRIGGER AS $$
BEGIN
NEW.created_on = CURRENT_TIMESTAMP;
@@ -11,13 +11,13 @@ BEGIN
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE TRIGGER tri_before_insert_Shop_Recurrence_Interval
BEFORE INSERT ON Shop_Recurrence_Interval
CREATE OR REPLACE TRIGGER tri_before_insert_Shop_Interval_Recurrence
BEFORE INSERT ON Shop_Interval_Recurrence
FOR EACH ROW
EXECUTE FUNCTION before_insert_Shop_Recurrence_Interval();
EXECUTE FUNCTION before_insert_Shop_Interval_Recurrence();
CREATE OR REPLACE FUNCTION before_update_Shop_Recurrence_Interval()
CREATE OR REPLACE FUNCTION before_update_Shop_Interval_Recurrence()
RETURNS TRIGGER AS $$
BEGIN
IF OLD.id_change_set IS NOT DISTINCT FROM NEW.id_change_set THEN
@@ -25,7 +25,7 @@ BEGIN
USING ERRCODE = '45000';
END IF;
INSERT INTO Shop_Recurrence_Interval_Audit (
INSERT INTO Shop_Interval_Recurrence_Audit (
id_interval,
name_field,
value_prev,
@@ -53,7 +53,7 @@ BEGIN
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE TRIGGER tri_before_update_Shop_Recurrence_Interval
BEFORE UPDATE ON Shop_Recurrence_Interval
CREATE OR REPLACE TRIGGER tri_before_update_Shop_Interval_Recurrence
BEFORE UPDATE ON Shop_Interval_Recurrence
FOR EACH ROW
EXECUTE FUNCTION before_update_Shop_Recurrence_Interval();
EXECUTE FUNCTION before_update_Shop_Interval_Recurrence();