@fayz-ai/plugin-inventory 0.20.1 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{InventoryPage-JLFAXKRO.js → InventoryPage-IGUR2EOE.js} +17 -9
- package/dist/InventoryPage-IGUR2EOE.js.map +1 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/main.browser.js +2 -1
- package/dist/migrations/main.browser.js.map +1 -1
- package/dist/migrations/main.js +18 -2
- package/dist/migrations/main.js.map +1 -1
- package/dist/views/ProductListView.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/InventoryPage-JLFAXKRO.js.map +0 -1
|
@@ -32,6 +32,7 @@ export declare const MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED = "-- ==============
|
|
|
32
32
|
export declare const MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW = "-- ============================================================================\n-- 031 \u2014 the stock says when it runs low\n--\n-- A product's minimum (plg_inventory_product_settings.min_quantity) only ever\n-- fed a count and a filter: \"estoque baixo\" was something you found by opening\n-- the Estoque screen or asking the assistant. Nothing told anyone.\n--\n-- Now the moment a product's balance CROSSES its minimum \u2014 from above it to at\n-- or below it \u2014 the database records the fact `inventory.stock_low` in the\n-- event log, with what anyone acting on it needs: the product, the scope, the\n-- balance and the minimum. That is all it does.\n--\n-- WHO is told and HOW is not decided here (ADR 0003, \"where logic lives\"):\n-- the Integration service reads these facts, rings the bell for whoever can\n-- read the stock \u2014 asking this database who that is \u2014 and is where WhatsApp\n-- or e-mail would be added. The detection stays here because only the\n-- transaction that moves the stock sees the balance before and after it.\n--\n-- The rules are the ones v_inventory_low_stock already states, so the alert and\n-- the screen never disagree:\n-- - a minimum applies when it is > 0;\n-- - \"low\" is on_hand <= min_quantity;\n-- - a settings row with unit_id set watches that unit's positions; the row\n-- with unit_id NULL watches the product across the whole tenant.\n--\n-- EDGE, not level. The fact is the crossing, not every movement while the\n-- product stays low \u2014 selling the tenth bottle of a product already at its\n-- minimum must not tell anyone ten times. It re-arms by itself: once a receipt\n-- lifts the balance above the minimum, the next fall is recorded again. The same crossing\n-- is checked when the minimum itself changes: raising it above what is on the\n-- shelf is as much \"this is now low\" as selling down to it.\n--\n-- PER TRANSACTION, not per statement. Every position write goes through\n-- app.inventory_apply_to_position, one position per call, so a transfer is two\n-- statements \u2014 the source goes down, then the destination goes up \u2014 and a\n-- recipe consumes ingredient by ingredient. Checked per statement, a transfer\n-- between two units of a product sitting near its minimum would dip the tenant\n-- total in between and report a crossing for a balance that never changed. So:\n-- - a BEFORE row trigger records, on the first touch of a transaction, the\n-- balance of each scope it touches (the product across the tenant, and the\n-- unit) in a transaction-local setting \u2014 that is the balance BEFORE;\n-- - a DEFERRED constraint trigger runs at COMMIT, when every statement of\n-- the transaction has landed, compares each minimum's scope against what\n-- was recorded, records a crossing, and moves the record forward so the\n-- other rows of the same commit do not record it again.\n\n-- A failure here never takes the stock write with it: everything runs inside\n-- exception blocks that only warn.\n-- ============================================================================\n\n-- Record one minimum that has just been crossed.\nCREATE OR REPLACE FUNCTION app.inventory_record_stock_low(\n p_setting_id uuid,\n p_tenant_id uuid,\n p_product_id uuid,\n p_unit_id uuid,\n p_on_hand numeric,\n p_min numeric\n)\nRETURNS void\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\nDECLARE\n v_name text;\n v_measure text;\n v_unit text;\nBEGIN\n BEGIN\n SELECT pl.name INTO v_name FROM app.inventory_product_label(p_product_id) pl(name, sku);\n SELECT nullif(btrim(coalesce(p.unit, '')), '') INTO v_measure\n FROM public.products p WHERE p.id = p_product_id;\n IF p_unit_id IS NOT NULL THEN\n SELECT u.name INTO v_unit FROM app.units u WHERE u.id = p_unit_id;\n END IF;\n\n PERFORM public.plg_emit_event(\n 'inventory.stock_low',\n jsonb_build_object(\n 'settingId', p_setting_id,\n 'productId', p_product_id,\n 'productName', v_name,\n 'measure', v_measure,\n 'unitId', p_unit_id,\n 'unitName', v_unit,\n 'onHand', p_on_hand,\n 'minQuantity', p_min),\n 'product', p_product_id::text, p_tenant_id);\n EXCEPTION WHEN OTHERS THEN\n RAISE WARNING 'inventory_record_stock_low: %', SQLERRM;\n END;\nEND;\n$$;\n\n-- The balance a minimum watches: the unit's positions, or the tenant's.\nCREATE OR REPLACE FUNCTION app.inventory_scope_on_hand(p_tenant_id uuid, p_product_id uuid, p_unit_id uuid)\nRETURNS numeric\nLANGUAGE sql\nSTABLE\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\n SELECT coalesce(sum(p.quantity), 0)\n FROM public.plg_inventory_stock_positions p\n WHERE p.tenant_id = p_tenant_id\n AND p.product_id = p_product_id\n AND (p_unit_id IS NULL OR p.unit_id = p_unit_id);\n$$;\n\n-- The transaction-local setting holding a scope's balance before this\n-- transaction. md5 keeps the name a plain identifier of fixed length.\nCREATE OR REPLACE FUNCTION app.inventory_low_stock_key(p_tenant_id uuid, p_product_id uuid, p_unit_id uuid)\nRETURNS text\nLANGUAGE sql\nIMMUTABLE\nSET search_path TO ''\nAS $$\n SELECT 'fayz_low_stock.s' || md5(p_tenant_id::text || '|' || p_product_id::text || '|' || coalesce(p_unit_id::text, '*'));\n$$;\n\n-- BEFORE each position write: remember the balances as they were when this\n-- transaction first touched them. A key already set means \"already touched\".\nCREATE OR REPLACE FUNCTION app.trg_inventory_positions_low_stock_snapshot()\nRETURNS trigger\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\nDECLARE\n r record;\n v_k text;\nBEGIN\n BEGIN\n FOR r IN\n SELECT DISTINCT x.tenant_id, x.product_id, x.unit_id\n FROM (SELECT NEW.tenant_id, NEW.product_id, NEW.unit_id WHERE TG_OP <> 'DELETE'\n UNION ALL\n SELECT OLD.tenant_id, OLD.product_id, OLD.unit_id WHERE TG_OP <> 'INSERT') AS x(tenant_id, product_id, unit_id)\n WHERE x.tenant_id IS NOT NULL AND x.product_id IS NOT NULL\n LOOP\n v_k := app.inventory_low_stock_key(r.tenant_id, r.product_id, NULL);\n IF coalesce(current_setting(v_k, true), '') = '' THEN\n PERFORM set_config(v_k, app.inventory_scope_on_hand(r.tenant_id, r.product_id, NULL)::text, true);\n END IF;\n IF r.unit_id IS NOT NULL THEN\n v_k := app.inventory_low_stock_key(r.tenant_id, r.product_id, r.unit_id);\n IF coalesce(current_setting(v_k, true), '') = '' THEN\n PERFORM set_config(v_k, app.inventory_scope_on_hand(r.tenant_id, r.product_id, r.unit_id)::text, true);\n END IF;\n END IF;\n END LOOP;\n EXCEPTION WHEN OTHERS THEN\n RAISE WARNING 'trg_inventory_positions_low_stock_snapshot: %', SQLERRM;\n END;\n RETURN CASE WHEN TG_OP = 'DELETE' THEN OLD ELSE NEW END;\nEND;\n$$;\n\n-- At COMMIT, once per written row: every minimum of the row's product whose\n-- scope this transaction touched is compared against the recorded balance.\nCREATE OR REPLACE FUNCTION app.trg_inventory_positions_low_stock_check()\nRETURNS trigger\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\nDECLARE\n v_tenant uuid;\n v_product uuid;\n s record;\n v_k text;\n v_before text;\n v_now numeric;\nBEGIN\n -- Everything, the reads of OLD/NEW included, inside the block that only\n -- warns: this runs at COMMIT, and an error here would undo the sale.\n BEGIN\n IF TG_OP = 'DELETE' THEN\n v_tenant := OLD.tenant_id; v_product := OLD.product_id;\n ELSE\n v_tenant := NEW.tenant_id; v_product := NEW.product_id;\n END IF;\n FOR s IN\n SELECT st.id, st.tenant_id, st.product_id, st.unit_id, st.min_quantity\n FROM public.plg_inventory_product_settings st\n WHERE st.tenant_id = v_tenant AND st.product_id = v_product AND st.min_quantity > 0\n LOOP\n v_k := app.inventory_low_stock_key(s.tenant_id, s.product_id, s.unit_id);\n v_before := current_setting(v_k, true);\n CONTINUE WHEN coalesce(v_before, '') = '';\n v_now := app.inventory_scope_on_hand(s.tenant_id, s.product_id, s.unit_id);\n IF v_now <= s.min_quantity AND v_before::numeric > s.min_quantity THEN\n PERFORM app.inventory_record_stock_low(\n s.id, s.tenant_id, s.product_id, s.unit_id, v_now, s.min_quantity);\n END IF;\n -- Forward: the next row of this commit compares against now.\n PERFORM set_config(v_k, v_now::text, true);\n END LOOP;\n EXCEPTION WHEN OTHERS THEN\n RAISE WARNING 'trg_inventory_positions_low_stock_check: %', SQLERRM;\n END;\n RETURN NULL;\nEND;\n$$;\n\nDROP TRIGGER IF EXISTS plg_inventory_stock_positions_low_stock_snapshot ON public.plg_inventory_stock_positions;\nCREATE TRIGGER plg_inventory_stock_positions_low_stock_snapshot\n BEFORE INSERT OR UPDATE OR DELETE ON public.plg_inventory_stock_positions\n FOR EACH ROW EXECUTE FUNCTION app.trg_inventory_positions_low_stock_snapshot();\n\nDROP TRIGGER IF EXISTS plg_inventory_stock_positions_low_stock_check ON public.plg_inventory_stock_positions;\nCREATE CONSTRAINT TRIGGER plg_inventory_stock_positions_low_stock_check\n AFTER INSERT OR UPDATE OR DELETE ON public.plg_inventory_stock_positions\n DEFERRABLE INITIALLY DEFERRED\n FOR EACH ROW EXECUTE FUNCTION app.trg_inventory_positions_low_stock_check();\n\n-- The minimum moved: low now and not low under the old minimum is a crossing.\n-- A new minimum on a product that has never been stocked is not a crossing.\nCREATE OR REPLACE FUNCTION app.trg_inventory_minimum_check_low_stock()\nRETURNS trigger\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\nDECLARE\n v_on_hand numeric;\n v_old_min numeric := 0;\nBEGIN\n BEGIN\n IF TG_OP = 'UPDATE' THEN v_old_min := OLD.min_quantity; END IF;\n IF coalesce(NEW.min_quantity, 0) <= 0 THEN RETURN NULL; END IF;\n -- A minimum set on a product nobody has stocked yet is the product being\n -- registered, not stock running out: every new item would be reported\n -- low before its first receipt. Only a product with positions counts.\n IF TG_OP = 'INSERT' AND NOT EXISTS (\n SELECT 1 FROM public.plg_inventory_stock_positions p\n WHERE p.tenant_id = NEW.tenant_id AND p.product_id = NEW.product_id) THEN\n RETURN NULL;\n END IF;\n v_on_hand := app.inventory_scope_on_hand(NEW.tenant_id, NEW.product_id, NEW.unit_id);\n IF v_on_hand <= NEW.min_quantity\n AND NOT (coalesce(v_old_min, 0) > 0 AND v_on_hand <= v_old_min) THEN\n PERFORM app.inventory_record_stock_low(\n NEW.id, NEW.tenant_id, NEW.product_id, NEW.unit_id, v_on_hand, NEW.min_quantity);\n END IF;\n EXCEPTION WHEN OTHERS THEN\n RAISE WARNING 'trg_inventory_minimum_check_low_stock: %', SQLERRM;\n END;\n RETURN NULL;\nEND;\n$$;\n\nDROP TRIGGER IF EXISTS plg_inventory_product_settings_low_stock ON public.plg_inventory_product_settings;\nCREATE TRIGGER plg_inventory_product_settings_low_stock\n AFTER INSERT OR UPDATE OF min_quantity ON public.plg_inventory_product_settings\n FOR EACH ROW EXECUTE FUNCTION app.trg_inventory_minimum_check_low_stock();\n\n-- Internal machinery: nobody calls these over PostgREST.\nREVOKE ALL ON FUNCTION app.inventory_low_stock_key(uuid, uuid, uuid) FROM PUBLIC;\nREVOKE ALL ON FUNCTION app.inventory_record_stock_low(uuid, uuid, uuid, uuid, numeric, numeric) FROM PUBLIC;\nREVOKE ALL ON FUNCTION app.inventory_scope_on_hand(uuid, uuid, uuid) FROM PUBLIC;\nREVOKE ALL ON FUNCTION app.trg_inventory_positions_low_stock_snapshot() FROM PUBLIC;\nREVOKE ALL ON FUNCTION app.trg_inventory_positions_low_stock_check() FROM PUBLIC;\nREVOKE ALL ON FUNCTION app.trg_inventory_minimum_check_low_stock() FROM PUBLIC;\n";
|
|
33
33
|
export declare const MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD = "-- ============================================================================\n-- 032 \u2014 a product says where it is sold\n--\n-- The Produtos list could filter by kind, category and status, and nothing\n-- else: which products are on the storefront, on the delivery menu (iFood and\n-- own delivery) or on the counter was a question nobody could ask. The answer\n-- already exists in the plugins that sell them:\n--\n-- site an active storefront listing (plg_shop_products.status) for it\n-- delivery a menu item for it available for delivery\n-- (plg_menu_items.available_for_delivery)\n-- pos a menu item for it available at the counter\n-- (plg_menu_items.available_for_pos)\n--\n-- They are exposed as COMPUTED COLUMNS of v_inventory_products \u2014 functions\n-- taking the view's row \u2014 which PostgREST can filter on (`sold_on_site=is.true`)\n-- without the client shipping a list of ids, which for a house with seven\n-- hundred menu items does not fit in a URL.\n--\n-- plpgsql, so a database without the shop or the menu plugin still builds:\n-- relations are resolved when the function runs, and a missing table answers\n-- false. SECURITY INVOKER: the caller's RLS decides what they can see.\n-- ============================================================================\n\nCREATE OR REPLACE FUNCTION public.sold_on_site(p public.v_inventory_products)\nRETURNS boolean\nLANGUAGE plpgsql\nSTABLE\nSET search_path TO ''\nAS $$\nBEGIN\n IF to_regclass('public.plg_shop_products') IS NULL THEN RETURN false; END IF;\n RETURN EXISTS (SELECT 1 FROM public.plg_shop_products s\n WHERE s.tenant_id = p.tenant_id AND s.product_id = p.id AND s.status = 'active');\nEND;\n$$;\n\nCREATE OR REPLACE FUNCTION public.sold_on_delivery(p public.v_inventory_products)\nRETURNS boolean\nLANGUAGE plpgsql\nSTABLE\nSET search_path TO ''\nAS $$\nBEGIN\n IF to_regclass('public.plg_menu_items') IS NULL THEN RETURN false; END IF;\n RETURN EXISTS (SELECT 1 FROM public.plg_menu_items m\n WHERE m.tenant_id = p.tenant_id AND m.product_id = p.id AND m.available_for_delivery);\nEND;\n$$;\n\nCREATE OR REPLACE FUNCTION public.sold_on_pos(p public.v_inventory_products)\nRETURNS boolean\nLANGUAGE plpgsql\nSTABLE\nSET search_path TO ''\nAS $$\nBEGIN\n IF to_regclass('public.plg_menu_items') IS NULL THEN RETURN false; END IF;\n RETURN EXISTS (SELECT 1 FROM public.plg_menu_items m\n WHERE m.tenant_id = p.tenant_id AND m.product_id = p.id AND m.available_for_pos);\nEND;\n$$;\n\nDO $$\nDECLARE\n f text;\nBEGIN\n FOREACH f IN ARRAY ARRAY['sold_on_site', 'sold_on_delivery', 'sold_on_pos'] LOOP\n EXECUTE format('REVOKE ALL ON FUNCTION public.%I(public.v_inventory_products) FROM PUBLIC', f);\n IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'anon') THEN\n EXECUTE format('REVOKE ALL ON FUNCTION public.%I(public.v_inventory_products) FROM anon', f);\n END IF;\n IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'authenticated') THEN\n EXECUTE format('GRANT EXECUTE ON FUNCTION public.%I(public.v_inventory_products) TO authenticated', f);\n END IF;\n END LOOP;\nEND $$;\n";
|
|
34
34
|
export declare const MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT = "-- ============================================================================\n-- 033 \u2014 the stock-low fact names its product\n--\n-- 031 read the product's name through app.inventory_product_label, which only\n-- answers for the CALLER's tenant. Stock moved without a member session \u2014 by\n-- the Integration service (a marketplace order, a delivery) or a migration \u2014\n-- recorded `inventory.stock_low` with no productName, and the bell said\n-- \"Estoque baixo: produto\" (seen on Artorius QA, 2026-10-24). The name and the\n-- measure are now read by the product's own tenant.\n-- ============================================================================\n\nCREATE OR REPLACE FUNCTION app.inventory_record_stock_low(\n p_setting_id uuid,\n p_tenant_id uuid,\n p_product_id uuid,\n p_unit_id uuid,\n p_on_hand numeric,\n p_min numeric\n)\nRETURNS void\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path TO ''\nAS $$\nDECLARE\n v_name text;\n v_measure text;\n v_unit text;\nBEGIN\n BEGIN\n -- By the product's own tenant, not the caller's: app.inventory_product_label\n -- answers only inside a member's session, and stock also moves under the\n -- service (a marketplace order, a delivery) or a migration.\n SELECT p.name, nullif(btrim(coalesce(p.unit, '')), '') INTO v_name, v_measure\n FROM public.products p WHERE p.id = p_product_id AND p.tenant_id = p_tenant_id;\n IF p_unit_id IS NOT NULL THEN\n SELECT u.name INTO v_unit FROM app.units u WHERE u.id = p_unit_id;\n END IF;\n\n PERFORM public.plg_emit_event(\n 'inventory.stock_low',\n jsonb_build_object(\n 'settingId', p_setting_id,\n 'productId', p_product_id,\n 'productName', v_name,\n 'measure', v_measure,\n 'unitId', p_unit_id,\n 'unitName', v_unit,\n 'onHand', p_on_hand,\n 'minQuantity', p_min),\n 'product', p_product_id::text, p_tenant_id);\n EXCEPTION WHEN OTHERS THEN\n RAISE WARNING 'inventory_record_stock_low: %', SQLERRM;\n END;\nEND;\n$$;\n\n\nREVOKE ALL ON FUNCTION app.inventory_record_stock_low(uuid, uuid, uuid, uuid, numeric, numeric) FROM PUBLIC;\n";
|
|
35
|
+
export declare const MIGRATION_034_OWN_DELIVERY_IS_THE_SITE = "-- ============================================================================\n-- 034 \u2014 own delivery is the site\n--\n-- 032 offered three channels and one of them was not one. \"Delivery\" read\n-- plg_menu_items.available_for_delivery, a V1 flag that defaults to TRUE: it\n-- says \"on the menu and not opted out\", not \"sold on delivery\". In the Control\n-- apps the house's own delivery IS the storefront \u2014 a site order lands on the\n-- PDV's delivery board beside the marketplaces \u2014 so the filter calls the site\n-- \"Delivery pr\u00F3prio (site)\" and the false channel goes. A marketplace channel\n-- (iFood) returns when a product is linked to its menu; today nothing links\n-- them (plg_orders_marketplace_links is empty on every house).\n-- ============================================================================\n\nDROP FUNCTION IF EXISTS public.sold_on_delivery(public.v_inventory_products);\n";
|
|
35
36
|
export declare const MIGRATIONS: Array<{
|
|
36
37
|
id: string;
|
|
37
38
|
sql: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,yn7NAy+GlC,CAAA;AAED,eAAO,MAAM,sDAAsD,g0bA+QlE,CAAA;AAED,eAAO,MAAM,uCAAuC,ymbAsRnD,CAAA;AAED,eAAO,MAAM,+CAA+C,+zNAmK3D,CAAA;AAED,eAAO,MAAM,4CAA4C,szYAsLxD,CAAA;AAED,eAAO,MAAM,mDAAmD,g5JA0E/D,CAAA;AAED,eAAO,MAAM,4CAA4C,60nBAuUxD,CAAA;AAED,eAAO,MAAM,kCAAkC,oxSA+L9C,CAAA;AAED,eAAO,MAAM,qDAAqD,6yCA0BjE,CAAA;AAED,eAAO,MAAM,uDAAuD,s+XA4KnE,CAAA;AAED,eAAO,MAAM,0CAA0C,gm4BA4atD,CAAA;AAED,eAAO,MAAM,wCAAwC,y43BAsgBpD,CAAA;AAED,eAAO,MAAM,sEAAsE,o1ZAmRlF,CAAA;AAED,eAAO,MAAM,gDAAgD,2uXAmQ5D,CAAA;AAED,eAAO,MAAM,yCAAyC,umXA6PrD,CAAA;AAED,eAAO,MAAM,6CAA6C,w9WA2PzD,CAAA;AAED,eAAO,MAAM,4CAA4C,k8XAoQxD,CAAA;AAED,eAAO,MAAM,8CAA8C,okPA4K1D,CAAA;AAED,eAAO,MAAM,qCAAqC,umWAqPjD,CAAA;AAED,eAAO,MAAM,oCAAoC,skQA0LhD,CAAA;AAED,eAAO,MAAM,sDAAsD,6ufAwTlE,CAAA;AAED,eAAO,MAAM,sCAAsC,onPAsIlD,CAAA;AAED,eAAO,MAAM,+CAA+C,o9JAiF3D,CAAA;AAED,eAAO,MAAM,gDAAgD,myCAoB5D,CAAA;AAED,eAAO,MAAM,kDAAkD,otFAuD9D,CAAA;AAED,eAAO,MAAM,yCAAyC,25eAgTrD,CAAA;AAED,eAAO,MAAM,2CAA2C,2tOAwIvD,CAAA;AAED,eAAO,MAAM,mDAAmD,+5DAoC/D,CAAA;AAED,eAAO,MAAM,yCAAyC,4xEA0CrD,CAAA;AAED,eAAO,MAAM,gDAAgD,ikEAqC5D,CAAA;AAED,eAAO,MAAM,sCAAsC,02EA6ClD,CAAA;AAED,eAAO,MAAM,6CAA6C,ghXAyQzD,CAAA;AAED,eAAO,MAAM,6CAA6C,moGA6EzD,CAAA;AAED,eAAO,MAAM,kDAAkD,ipEA2D9D,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,yn7NAy+GlC,CAAA;AAED,eAAO,MAAM,sDAAsD,g0bA+QlE,CAAA;AAED,eAAO,MAAM,uCAAuC,ymbAsRnD,CAAA;AAED,eAAO,MAAM,+CAA+C,+zNAmK3D,CAAA;AAED,eAAO,MAAM,4CAA4C,szYAsLxD,CAAA;AAED,eAAO,MAAM,mDAAmD,g5JA0E/D,CAAA;AAED,eAAO,MAAM,4CAA4C,60nBAuUxD,CAAA;AAED,eAAO,MAAM,kCAAkC,oxSA+L9C,CAAA;AAED,eAAO,MAAM,qDAAqD,6yCA0BjE,CAAA;AAED,eAAO,MAAM,uDAAuD,s+XA4KnE,CAAA;AAED,eAAO,MAAM,0CAA0C,gm4BA4atD,CAAA;AAED,eAAO,MAAM,wCAAwC,y43BAsgBpD,CAAA;AAED,eAAO,MAAM,sEAAsE,o1ZAmRlF,CAAA;AAED,eAAO,MAAM,gDAAgD,2uXAmQ5D,CAAA;AAED,eAAO,MAAM,yCAAyC,umXA6PrD,CAAA;AAED,eAAO,MAAM,6CAA6C,w9WA2PzD,CAAA;AAED,eAAO,MAAM,4CAA4C,k8XAoQxD,CAAA;AAED,eAAO,MAAM,8CAA8C,okPA4K1D,CAAA;AAED,eAAO,MAAM,qCAAqC,umWAqPjD,CAAA;AAED,eAAO,MAAM,oCAAoC,skQA0LhD,CAAA;AAED,eAAO,MAAM,sDAAsD,6ufAwTlE,CAAA;AAED,eAAO,MAAM,sCAAsC,onPAsIlD,CAAA;AAED,eAAO,MAAM,+CAA+C,o9JAiF3D,CAAA;AAED,eAAO,MAAM,gDAAgD,myCAoB5D,CAAA;AAED,eAAO,MAAM,kDAAkD,otFAuD9D,CAAA;AAED,eAAO,MAAM,yCAAyC,25eAgTrD,CAAA;AAED,eAAO,MAAM,2CAA2C,2tOAwIvD,CAAA;AAED,eAAO,MAAM,mDAAmD,+5DAoC/D,CAAA;AAED,eAAO,MAAM,yCAAyC,4xEA0CrD,CAAA;AAED,eAAO,MAAM,gDAAgD,ikEAqC5D,CAAA;AAED,eAAO,MAAM,sCAAsC,02EA6ClD,CAAA;AAED,eAAO,MAAM,6CAA6C,ghXAyQzD,CAAA;AAED,eAAO,MAAM,6CAA6C,moGA6EzD,CAAA;AAED,eAAO,MAAM,kDAAkD,ipEA2D9D,CAAA;AAED,eAAO,MAAM,sCAAsC,s6BAclD,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAoCzD,CAAA"}
|
|
@@ -33,8 +33,9 @@ var MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED = "";
|
|
|
33
33
|
var MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW = "";
|
|
34
34
|
var MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD = "";
|
|
35
35
|
var MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT = "";
|
|
36
|
+
var MIGRATION_034_OWN_DELIVERY_IS_THE_SITE = "";
|
|
36
37
|
var MIGRATIONS = [];
|
|
37
38
|
|
|
38
|
-
export { MIGRATIONS, MIGRATION_000_BASELINE, MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED, MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE, MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER, MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA, MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO, MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO, MIGRATION_007_A_PRODUCAO_ATRAVESSA, MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA, MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO, MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA, MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS, MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA, MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA, MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA, MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL, MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA, MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS, MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA, MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA, MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO, MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO, MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR, MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO, MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO, MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO, MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY, MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM, MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT, MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT, MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED, MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW, MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD, MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT };
|
|
39
|
+
export { MIGRATIONS, MIGRATION_000_BASELINE, MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED, MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE, MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER, MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA, MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO, MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO, MIGRATION_007_A_PRODUCAO_ATRAVESSA, MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA, MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO, MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA, MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS, MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA, MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA, MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA, MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL, MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA, MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS, MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA, MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA, MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO, MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO, MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR, MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO, MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO, MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO, MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY, MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM, MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT, MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT, MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED, MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW, MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD, MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT, MIGRATION_034_OWN_DELIVERY_IS_THE_SITE };
|
|
39
40
|
//# sourceMappingURL=main.browser.js.map
|
|
40
41
|
//# sourceMappingURL=main.browser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../node_modules/.cache/fayz-migration-stubs/main.ts"],"names":[],"mappings":";AAEO,IAAM,sBAAA,GAAyB;AAC/B,IAAM,sDAAA,GAAyD;AAC/D,IAAM,uCAAA,GAA0C;AAChD,IAAM,+CAAA,GAAkD;AACxD,IAAM,4CAAA,GAA+C;AACrD,IAAM,mDAAA,GAAsD;AAC5D,IAAM,4CAAA,GAA+C;AACrD,IAAM,kCAAA,GAAqC;AAC3C,IAAM,qDAAA,GAAwD;AAC9D,IAAM,uDAAA,GAA0D;AAChE,IAAM,0CAAA,GAA6C;AACnD,IAAM,wCAAA,GAA2C;AACjD,IAAM,sEAAA,GAAyE;AAC/E,IAAM,gDAAA,GAAmD;AACzD,IAAM,yCAAA,GAA4C;AAClD,IAAM,6CAAA,GAAgD;AACtD,IAAM,4CAAA,GAA+C;AACrD,IAAM,8CAAA,GAAiD;AACvD,IAAM,qCAAA,GAAwC;AAC9C,IAAM,oCAAA,GAAuC;AAC7C,IAAM,sDAAA,GAAyD;AAC/D,IAAM,sCAAA,GAAyC;AAC/C,IAAM,+CAAA,GAAkD;AACxD,IAAM,gDAAA,GAAmD;AACzD,IAAM,kDAAA,GAAqD;AAC3D,IAAM,yCAAA,GAA4C;AAClD,IAAM,2CAAA,GAA8C;AACpD,IAAM,mDAAA,GAAsD;AAC5D,IAAM,yCAAA,GAA4C;AAClD,IAAM,gDAAA,GAAmD;AACzD,IAAM,sCAAA,GAAyC;AAC/C,IAAM,6CAAA,GAAgD;AACtD,IAAM,6CAAA,GAAgD;AACtD,IAAM,kDAAA,GAAqD;AAC3D,IAAM,aAAiD","file":"main.browser.js","sourcesContent":["// GENERATED by scripts/tsup-migrations.mjs — the browser build of a\n// migrations barrel: the same names, no SQL. See that script for why.\nexport const MIGRATION_000_BASELINE = ''\nexport const MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED = ''\nexport const MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE = ''\nexport const MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER = ''\nexport const MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA = ''\nexport const MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO = ''\nexport const MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO = ''\nexport const MIGRATION_007_A_PRODUCAO_ATRAVESSA = ''\nexport const MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA = ''\nexport const MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO = ''\nexport const MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA = ''\nexport const MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS = ''\nexport const MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA = ''\nexport const MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA = ''\nexport const MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA = ''\nexport const MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL = ''\nexport const MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA = ''\nexport const MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS = ''\nexport const MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA = ''\nexport const MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA = ''\nexport const MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO = ''\nexport const MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO = ''\nexport const MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR = ''\nexport const MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO = ''\nexport const MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO = ''\nexport const MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO = ''\nexport const MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY = ''\nexport const MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM = ''\nexport const MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT = ''\nexport const MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT = ''\nexport const MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED = ''\nexport const MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW = ''\nexport const MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD = ''\nexport const MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT = ''\nexport const MIGRATIONS: Array<{ id: string; sql: string }> = []\n"]}
|
|
1
|
+
{"version":3,"sources":["../../node_modules/.cache/fayz-migration-stubs/main.ts"],"names":[],"mappings":";AAEO,IAAM,sBAAA,GAAyB;AAC/B,IAAM,sDAAA,GAAyD;AAC/D,IAAM,uCAAA,GAA0C;AAChD,IAAM,+CAAA,GAAkD;AACxD,IAAM,4CAAA,GAA+C;AACrD,IAAM,mDAAA,GAAsD;AAC5D,IAAM,4CAAA,GAA+C;AACrD,IAAM,kCAAA,GAAqC;AAC3C,IAAM,qDAAA,GAAwD;AAC9D,IAAM,uDAAA,GAA0D;AAChE,IAAM,0CAAA,GAA6C;AACnD,IAAM,wCAAA,GAA2C;AACjD,IAAM,sEAAA,GAAyE;AAC/E,IAAM,gDAAA,GAAmD;AACzD,IAAM,yCAAA,GAA4C;AAClD,IAAM,6CAAA,GAAgD;AACtD,IAAM,4CAAA,GAA+C;AACrD,IAAM,8CAAA,GAAiD;AACvD,IAAM,qCAAA,GAAwC;AAC9C,IAAM,oCAAA,GAAuC;AAC7C,IAAM,sDAAA,GAAyD;AAC/D,IAAM,sCAAA,GAAyC;AAC/C,IAAM,+CAAA,GAAkD;AACxD,IAAM,gDAAA,GAAmD;AACzD,IAAM,kDAAA,GAAqD;AAC3D,IAAM,yCAAA,GAA4C;AAClD,IAAM,2CAAA,GAA8C;AACpD,IAAM,mDAAA,GAAsD;AAC5D,IAAM,yCAAA,GAA4C;AAClD,IAAM,gDAAA,GAAmD;AACzD,IAAM,sCAAA,GAAyC;AAC/C,IAAM,6CAAA,GAAgD;AACtD,IAAM,6CAAA,GAAgD;AACtD,IAAM,kDAAA,GAAqD;AAC3D,IAAM,sCAAA,GAAyC;AAC/C,IAAM,aAAiD","file":"main.browser.js","sourcesContent":["// GENERATED by scripts/tsup-migrations.mjs — the browser build of a\n// migrations barrel: the same names, no SQL. See that script for why.\nexport const MIGRATION_000_BASELINE = ''\nexport const MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED = ''\nexport const MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE = ''\nexport const MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER = ''\nexport const MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA = ''\nexport const MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO = ''\nexport const MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO = ''\nexport const MIGRATION_007_A_PRODUCAO_ATRAVESSA = ''\nexport const MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA = ''\nexport const MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO = ''\nexport const MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA = ''\nexport const MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS = ''\nexport const MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA = ''\nexport const MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA = ''\nexport const MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA = ''\nexport const MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL = ''\nexport const MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA = ''\nexport const MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS = ''\nexport const MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA = ''\nexport const MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA = ''\nexport const MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO = ''\nexport const MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO = ''\nexport const MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR = ''\nexport const MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO = ''\nexport const MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO = ''\nexport const MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO = ''\nexport const MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY = ''\nexport const MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM = ''\nexport const MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT = ''\nexport const MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT = ''\nexport const MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED = ''\nexport const MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW = ''\nexport const MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD = ''\nexport const MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT = ''\nexport const MIGRATION_034_OWN_DELIVERY_IS_THE_SITE = ''\nexport const MIGRATIONS: Array<{ id: string; sql: string }> = []\n"]}
|
package/dist/migrations/main.js
CHANGED
|
@@ -9728,6 +9728,21 @@ $$;
|
|
|
9728
9728
|
|
|
9729
9729
|
REVOKE ALL ON FUNCTION app.inventory_record_stock_low(uuid, uuid, uuid, uuid, numeric, numeric) FROM PUBLIC;
|
|
9730
9730
|
`;
|
|
9731
|
+
var MIGRATION_034_OWN_DELIVERY_IS_THE_SITE = `-- ============================================================================
|
|
9732
|
+
-- 034 \u2014 own delivery is the site
|
|
9733
|
+
--
|
|
9734
|
+
-- 032 offered three channels and one of them was not one. "Delivery" read
|
|
9735
|
+
-- plg_menu_items.available_for_delivery, a V1 flag that defaults to TRUE: it
|
|
9736
|
+
-- says "on the menu and not opted out", not "sold on delivery". In the Control
|
|
9737
|
+
-- apps the house's own delivery IS the storefront \u2014 a site order lands on the
|
|
9738
|
+
-- PDV's delivery board beside the marketplaces \u2014 so the filter calls the site
|
|
9739
|
+
-- "Delivery pr\xF3prio (site)" and the false channel goes. A marketplace channel
|
|
9740
|
+
-- (iFood) returns when a product is linked to its menu; today nothing links
|
|
9741
|
+
-- them (plg_orders_marketplace_links is empty on every house).
|
|
9742
|
+
-- ============================================================================
|
|
9743
|
+
|
|
9744
|
+
DROP FUNCTION IF EXISTS public.sold_on_delivery(public.v_inventory_products);
|
|
9745
|
+
`;
|
|
9731
9746
|
var MIGRATIONS = [
|
|
9732
9747
|
{ id: "000_baseline", sql: MIGRATION_000_BASELINE },
|
|
9733
9748
|
{ id: "001_the_usage_that_left_stock_can_be_audited", sql: MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED },
|
|
@@ -9762,9 +9777,10 @@ var MIGRATIONS = [
|
|
|
9762
9777
|
{ id: "030_the_minimum_can_be_saved", sql: MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED },
|
|
9763
9778
|
{ id: "031_the_stock_says_when_it_runs_low", sql: MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW },
|
|
9764
9779
|
{ id: "032_a_product_says_where_it_is_sold", sql: MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD },
|
|
9765
|
-
{ id: "033_the_stock_low_fact_names_its_product", sql: MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT }
|
|
9780
|
+
{ id: "033_the_stock_low_fact_names_its_product", sql: MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT },
|
|
9781
|
+
{ id: "034_own_delivery_is_the_site", sql: MIGRATION_034_OWN_DELIVERY_IS_THE_SITE }
|
|
9766
9782
|
];
|
|
9767
9783
|
|
|
9768
|
-
export { MIGRATIONS, MIGRATION_000_BASELINE, MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED, MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE, MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER, MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA, MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO, MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO, MIGRATION_007_A_PRODUCAO_ATRAVESSA, MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA, MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO, MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA, MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS, MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA, MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA, MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA, MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL, MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA, MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS, MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA, MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA, MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO, MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO, MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR, MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO, MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO, MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO, MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY, MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM, MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT, MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT, MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED, MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW, MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD, MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT };
|
|
9784
|
+
export { MIGRATIONS, MIGRATION_000_BASELINE, MIGRATION_001_THE_USAGE_THAT_LEFT_STOCK_CAN_BE_AUDITED, MIGRATION_002_A_AUDITORIA_FECHA_EM_LOTE, MIGRATION_003_STOCK_COUNT_CLOSES_THROUGH_LEDGER, MIGRATION_004_A_POSICAO_DE_ESTOQUE_ATRAVESSA, MIGRATION_005_A_POSICAO_E_CONSEQUENCIA_DO_MOVIMENTO, MIGRATION_006_A_PRODUCAO_TEM_ORDEM_E_ESTACAO, MIGRATION_007_A_PRODUCAO_ATRAVESSA, MIGRATION_008_O_GRUPO_DA_RECEITA_TAMBEM_E_DE_UMA_CASA, MIGRATION_009_A_DIRECAO_DO_MOVIMENTO_NAO_ESTA_NO_NUMERO, MIGRATION_010_A_ENTRADA_DE_NOTAS_ATRAVESSA, MIGRATION_011_O_CONSUMO_TEM_DUAS_ORIGENS, MIGRATION_012_O_CONSUMO_CLINICO_NAO_PRECISA_DA_TABELA_DE_ITENS_INTEIRA, MIGRATION_013_A_FILA_DE_AUDITORIA_TEM_UMA_JANELA, MIGRATION_014_A_SESSAO_SE_BUSCA_UMA_A_UMA, MIGRATION_015_LATERAL_SEM_CERCA_NAO_E_LATERAL, MIGRATION_016_A_DATA_DO_CONSUMO_E_UMA_COLUNA, MIGRATION_017_APROVAR_E_BAIXAR_SAO_DOIS_GESTOS, MIGRATION_018_O_NOME_NAO_SAI_DA_VISTA, MIGRATION_019_SEM_SALDO_NAO_SE_BAIXA, MIGRATION_020_O_PRODUTO_E_VARIAS_COISAS_AO_MESMO_TEMPO, MIGRATION_021_O_RAZAO_DIZ_DE_ONDE_VEIO, MIGRATION_022_RECEBER_ESTOQUE_VOLTA_A_FUNCIONAR, MIGRATION_023_A_RECEITA_SE_ESCREVE_COM_PERMISSAO, MIGRATION_024_A_CATEGORIA_DO_PRODUTO_E_DO_CATALOGO, MIGRATION_025_A_FICHA_TECNICA_POR_ESTACAO, MIGRATION_026_STOCK_COST_KNOWS_ITS_CURRENCY, MIGRATION_027_A_RECEIPT_NAMES_THE_LINE_IT_CAME_FROM, MIGRATION_028_A_RECEIPT_KEEPS_THE_VARIANT, MIGRATION_029_A_REVERSAL_UNDOES_THE_SAME_VARIANT, MIGRATION_030_THE_MINIMUM_CAN_BE_SAVED, MIGRATION_031_THE_STOCK_SAYS_WHEN_IT_RUNS_LOW, MIGRATION_032_A_PRODUCT_SAYS_WHERE_IT_IS_SOLD, MIGRATION_033_THE_STOCK_LOW_FACT_NAMES_ITS_PRODUCT, MIGRATION_034_OWN_DELIVERY_IS_THE_SITE };
|
|
9769
9785
|
//# sourceMappingURL=main.js.map
|
|
9770
9786
|
//# sourceMappingURL=main.js.map
|