@ketvietlab/ketsuite 0.1.1
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/LICENSE +21 -0
- package/README.md +19 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/account/functions.d.ts +14 -0
- package/dist/modules/account/functions.d.ts.map +1 -0
- package/dist/modules/account/functions.js +1038 -0
- package/dist/modules/account/functions.js.map +1 -0
- package/dist/modules/account/index.d.ts +5 -0
- package/dist/modules/account/index.d.ts.map +1 -0
- package/dist/modules/account/index.js +31 -0
- package/dist/modules/account/index.js.map +1 -0
- package/dist/modules/account/models.d.ts +3 -0
- package/dist/modules/account/models.d.ts.map +1 -0
- package/dist/modules/account/models.js +151 -0
- package/dist/modules/account/models.js.map +1 -0
- package/dist/modules/account/relations.d.ts +3 -0
- package/dist/modules/account/relations.d.ts.map +1 -0
- package/dist/modules/account/relations.js +35 -0
- package/dist/modules/account/relations.js.map +1 -0
- package/dist/modules/account/setup.d.ts +4 -0
- package/dist/modules/account/setup.d.ts.map +1 -0
- package/dist/modules/account/setup.js +179 -0
- package/dist/modules/account/setup.js.map +1 -0
- package/dist/modules/account/tt99.d.ts +30 -0
- package/dist/modules/account/tt99.d.ts.map +1 -0
- package/dist/modules/account/tt99.js +1661 -0
- package/dist/modules/account/tt99.js.map +1 -0
- package/dist/modules/account_activity_backend/index.d.ts +5 -0
- package/dist/modules/account_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/account_activity_backend/index.js +27 -0
- package/dist/modules/account_activity_backend/index.js.map +1 -0
- package/dist/modules/account_backend/accounting-overview-screen.d.ts +18 -0
- package/dist/modules/account_backend/accounting-overview-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/accounting-overview-screen.js +104 -0
- package/dist/modules/account_backend/accounting-overview-screen.js.map +1 -0
- package/dist/modules/account_backend/accounts-screen.d.ts +13 -0
- package/dist/modules/account_backend/accounts-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/accounts-screen.js +49 -0
- package/dist/modules/account_backend/accounts-screen.js.map +1 -0
- package/dist/modules/account_backend/customer-invoices-screen.d.ts +14 -0
- package/dist/modules/account_backend/customer-invoices-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/customer-invoices-screen.js +63 -0
- package/dist/modules/account_backend/customer-invoices-screen.js.map +1 -0
- package/dist/modules/account_backend/general-ledger-screen.d.ts +13 -0
- package/dist/modules/account_backend/general-ledger-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/general-ledger-screen.js +56 -0
- package/dist/modules/account_backend/general-ledger-screen.js.map +1 -0
- package/dist/modules/account_backend/index.d.ts +3 -0
- package/dist/modules/account_backend/index.d.ts.map +1 -0
- package/dist/modules/account_backend/index.js +1516 -0
- package/dist/modules/account_backend/index.js.map +1 -0
- package/dist/modules/account_backend/journal-entries-screen.d.ts +14 -0
- package/dist/modules/account_backend/journal-entries-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/journal-entries-screen.js +45 -0
- package/dist/modules/account_backend/journal-entries-screen.js.map +1 -0
- package/dist/modules/account_backend/journals-screen.d.ts +14 -0
- package/dist/modules/account_backend/journals-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/journals-screen.js +53 -0
- package/dist/modules/account_backend/journals-screen.js.map +1 -0
- package/dist/modules/account_backend/move-detail-screen.d.ts +10 -0
- package/dist/modules/account_backend/move-detail-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/move-detail-screen.js +100 -0
- package/dist/modules/account_backend/move-detail-screen.js.map +1 -0
- package/dist/modules/account_backend/partner-ledger-screen.d.ts +14 -0
- package/dist/modules/account_backend/partner-ledger-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/partner-ledger-screen.js +69 -0
- package/dist/modules/account_backend/partner-ledger-screen.js.map +1 -0
- package/dist/modules/account_backend/payment-terms-screen.d.ts +14 -0
- package/dist/modules/account_backend/payment-terms-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/payment-terms-screen.js +40 -0
- package/dist/modules/account_backend/payment-terms-screen.js.map +1 -0
- package/dist/modules/account_backend/payments-screen.d.ts +14 -0
- package/dist/modules/account_backend/payments-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/payments-screen.js +54 -0
- package/dist/modules/account_backend/payments-screen.js.map +1 -0
- package/dist/modules/account_backend/screens.d.ts +7 -0
- package/dist/modules/account_backend/screens.d.ts.map +1 -0
- package/dist/modules/account_backend/screens.js +7 -0
- package/dist/modules/account_backend/screens.js.map +1 -0
- package/dist/modules/account_backend/taxes-screen.d.ts +15 -0
- package/dist/modules/account_backend/taxes-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/taxes-screen.js +73 -0
- package/dist/modules/account_backend/taxes-screen.js.map +1 -0
- package/dist/modules/account_backend/trial-balance-screen.d.ts +13 -0
- package/dist/modules/account_backend/trial-balance-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/trial-balance-screen.js +62 -0
- package/dist/modules/account_backend/trial-balance-screen.js.map +1 -0
- package/dist/modules/account_backend/vendor-bills-screen.d.ts +14 -0
- package/dist/modules/account_backend/vendor-bills-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/vendor-bills-screen.js +59 -0
- package/dist/modules/account_backend/vendor-bills-screen.js.map +1 -0
- package/dist/modules/account_mail_backend/index.d.ts +5 -0
- package/dist/modules/account_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/account_mail_backend/index.js +28 -0
- package/dist/modules/account_mail_backend/index.js.map +1 -0
- package/dist/modules/account_partner/functions.d.ts +3 -0
- package/dist/modules/account_partner/functions.d.ts.map +1 -0
- package/dist/modules/account_partner/functions.js +85 -0
- package/dist/modules/account_partner/functions.js.map +1 -0
- package/dist/modules/account_partner/index.d.ts +3 -0
- package/dist/modules/account_partner/index.d.ts.map +1 -0
- package/dist/modules/account_partner/index.js +48 -0
- package/dist/modules/account_partner/index.js.map +1 -0
- package/dist/modules/account_partner_backend/index.d.ts +4 -0
- package/dist/modules/account_partner_backend/index.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/index.js +49 -0
- package/dist/modules/account_partner_backend/index.js.map +1 -0
- package/dist/modules/account_partner_backend/routes.d.ts +3 -0
- package/dist/modules/account_partner_backend/routes.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/routes.js +69 -0
- package/dist/modules/account_partner_backend/routes.js.map +1 -0
- package/dist/modules/account_partner_backend/screens.d.ts +16 -0
- package/dist/modules/account_partner_backend/screens.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens.js +26 -0
- package/dist/modules/account_partner_backend/screens.js.map +1 -0
- package/dist/modules/activity/functions.d.ts +3 -0
- package/dist/modules/activity/functions.d.ts.map +1 -0
- package/dist/modules/activity/functions.js +250 -0
- package/dist/modules/activity/functions.js.map +1 -0
- package/dist/modules/activity/index.d.ts +9 -0
- package/dist/modules/activity/index.d.ts.map +1 -0
- package/dist/modules/activity/index.js +33 -0
- package/dist/modules/activity/index.js.map +1 -0
- package/dist/modules/activity/models.d.ts +3 -0
- package/dist/modules/activity/models.d.ts.map +1 -0
- package/dist/modules/activity/models.js +81 -0
- package/dist/modules/activity/models.js.map +1 -0
- package/dist/modules/activity/operations.d.ts +39 -0
- package/dist/modules/activity/operations.d.ts.map +1 -0
- package/dist/modules/activity/operations.js +226 -0
- package/dist/modules/activity/operations.js.map +1 -0
- package/dist/modules/activity/relations.d.ts +3 -0
- package/dist/modules/activity/relations.d.ts.map +1 -0
- package/dist/modules/activity/relations.js +24 -0
- package/dist/modules/activity/relations.js.map +1 -0
- package/dist/modules/activity/target.d.ts +4 -0
- package/dist/modules/activity/target.d.ts.map +1 -0
- package/dist/modules/activity/target.js +149 -0
- package/dist/modules/activity/target.js.map +1 -0
- package/dist/modules/activity/types.d.ts +9 -0
- package/dist/modules/activity/types.d.ts.map +1 -0
- package/dist/modules/activity/types.js +5 -0
- package/dist/modules/activity/types.js.map +1 -0
- package/dist/modules/activity_backend/index.d.ts +5 -0
- package/dist/modules/activity_backend/index.d.ts.map +1 -0
- package/dist/modules/activity_backend/index.js +80 -0
- package/dist/modules/activity_backend/index.js.map +1 -0
- package/dist/modules/activity_backend/islands.d.ts +3 -0
- package/dist/modules/activity_backend/islands.d.ts.map +1 -0
- package/dist/modules/activity_backend/islands.js +20 -0
- package/dist/modules/activity_backend/islands.js.map +1 -0
- package/dist/modules/activity_backend/routes.d.ts +5 -0
- package/dist/modules/activity_backend/routes.d.ts.map +1 -0
- package/dist/modules/activity_backend/routes.js +53 -0
- package/dist/modules/activity_backend/routes.js.map +1 -0
- package/dist/modules/activity_backend/screens.d.ts +5 -0
- package/dist/modules/activity_backend/screens.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens.js +52 -0
- package/dist/modules/activity_backend/screens.js.map +1 -0
- package/dist/modules/address/data/VN/NOTICE.md +15 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0001.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0002.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0003.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0004.json +2842 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/manifest.json +77 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/policy.json +49 -0
- package/dist/modules/address/data/countries.json +11 -0
- package/dist/modules/address/data/index.json +14 -0
- package/dist/modules/address/format.d.ts +37 -0
- package/dist/modules/address/format.d.ts.map +1 -0
- package/dist/modules/address/format.js +146 -0
- package/dist/modules/address/format.js.map +1 -0
- package/dist/modules/address/functions.d.ts +3 -0
- package/dist/modules/address/functions.d.ts.map +1 -0
- package/dist/modules/address/functions.js +320 -0
- package/dist/modules/address/functions.js.map +1 -0
- package/dist/modules/address/index.d.ts +6 -0
- package/dist/modules/address/index.d.ts.map +1 -0
- package/dist/modules/address/index.js +20 -0
- package/dist/modules/address/index.js.map +1 -0
- package/dist/modules/address/loader.d.ts +74 -0
- package/dist/modules/address/loader.d.ts.map +1 -0
- package/dist/modules/address/loader.js +144 -0
- package/dist/modules/address/loader.js.map +1 -0
- package/dist/modules/address/messages.d.ts +51 -0
- package/dist/modules/address/messages.d.ts.map +1 -0
- package/dist/modules/address/messages.js +51 -0
- package/dist/modules/address/messages.js.map +1 -0
- package/dist/modules/address/models.d.ts +8 -0
- package/dist/modules/address/models.d.ts.map +1 -0
- package/dist/modules/address/models.js +98 -0
- package/dist/modules/address/models.js.map +1 -0
- package/dist/modules/address/relations.d.ts +3 -0
- package/dist/modules/address/relations.d.ts.map +1 -0
- package/dist/modules/address/relations.js +22 -0
- package/dist/modules/address/relations.js.map +1 -0
- package/dist/modules/address_backend/index.d.ts +4 -0
- package/dist/modules/address_backend/index.d.ts.map +1 -0
- package/dist/modules/address_backend/index.js +90 -0
- package/dist/modules/address_backend/index.js.map +1 -0
- package/dist/modules/address_backend/routes.d.ts +3 -0
- package/dist/modules/address_backend/routes.d.ts.map +1 -0
- package/dist/modules/address_backend/routes.js +87 -0
- package/dist/modules/address_backend/routes.js.map +1 -0
- package/dist/modules/address_backend/screens.d.ts +31 -0
- package/dist/modules/address_backend/screens.d.ts.map +1 -0
- package/dist/modules/address_backend/screens.js +147 -0
- package/dist/modules/address_backend/screens.js.map +1 -0
- package/dist/modules/attendance/functions.d.ts +3 -0
- package/dist/modules/attendance/functions.d.ts.map +1 -0
- package/dist/modules/attendance/functions.js +750 -0
- package/dist/modules/attendance/functions.js.map +1 -0
- package/dist/modules/attendance/index.d.ts +5 -0
- package/dist/modules/attendance/index.d.ts.map +1 -0
- package/dist/modules/attendance/index.js +20 -0
- package/dist/modules/attendance/index.js.map +1 -0
- package/dist/modules/attendance/messages.d.ts +41 -0
- package/dist/modules/attendance/messages.d.ts.map +1 -0
- package/dist/modules/attendance/messages.js +41 -0
- package/dist/modules/attendance/messages.js.map +1 -0
- package/dist/modules/attendance/models.d.ts +3 -0
- package/dist/modules/attendance/models.d.ts.map +1 -0
- package/dist/modules/attendance/models.js +158 -0
- package/dist/modules/attendance/models.js.map +1 -0
- package/dist/modules/attendance/relations.d.ts +3 -0
- package/dist/modules/attendance/relations.d.ts.map +1 -0
- package/dist/modules/attendance/relations.js +12 -0
- package/dist/modules/attendance/relations.js.map +1 -0
- package/dist/modules/attendance/types.d.ts +9 -0
- package/dist/modules/attendance/types.d.ts.map +1 -0
- package/dist/modules/attendance/types.js +5 -0
- package/dist/modules/attendance/types.js.map +1 -0
- package/dist/modules/attendance_backend/index.d.ts +4 -0
- package/dist/modules/attendance_backend/index.d.ts.map +1 -0
- package/dist/modules/attendance_backend/index.js +182 -0
- package/dist/modules/attendance_backend/index.js.map +1 -0
- package/dist/modules/attendance_backend/qr.d.ts +2 -0
- package/dist/modules/attendance_backend/qr.d.ts.map +1 -0
- package/dist/modules/attendance_backend/qr.js +120 -0
- package/dist/modules/attendance_backend/qr.js.map +1 -0
- package/dist/modules/attendance_backend/routes.d.ts +3 -0
- package/dist/modules/attendance_backend/routes.d.ts.map +1 -0
- package/dist/modules/attendance_backend/routes.js +131 -0
- package/dist/modules/attendance_backend/routes.js.map +1 -0
- package/dist/modules/attendance_backend/screens.d.ts +10 -0
- package/dist/modules/attendance_backend/screens.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens.js +227 -0
- package/dist/modules/attendance_backend/screens.js.map +1 -0
- package/dist/modules/backend/catalogue.d.ts +10 -0
- package/dist/modules/backend/catalogue.d.ts.map +1 -0
- package/dist/modules/backend/catalogue.js +615 -0
- package/dist/modules/backend/catalogue.js.map +1 -0
- package/dist/modules/backend/design/HANDOFF.md +356 -0
- package/dist/modules/backend/design/admin.css +4229 -0
- package/dist/modules/backend/design/client/relation-select-view.d.mts +5 -0
- package/dist/modules/backend/design/client/relation-select-view.d.mts.map +1 -0
- package/dist/modules/backend/design/client/relation-select-view.mjs +335 -0
- package/dist/modules/backend/design/client/relation-select-view.mjs.map +1 -0
- package/dist/modules/backend/design/client/relation-select.d.mts +5 -0
- package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -0
- package/dist/modules/backend/design/client/relation-select.mjs +7 -0
- package/dist/modules/backend/design/client/relation-select.mjs.map +1 -0
- package/dist/modules/backend/design/fixtures/product-back.svg +11 -0
- package/dist/modules/backend/design/fixtures/product-front.svg +9 -0
- package/dist/modules/backend/design/screenshots/apps-desktop-dark.png +0 -0
- package/dist/modules/backend/design/screenshots/list-mobile-dark.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-favorites-desktop-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-filter-desktop-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-filter-mobile-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-grouped-desktop.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-grouped-mobile.png +0 -0
- package/dist/modules/backend/design/tokens.css +132 -0
- package/dist/modules/backend/forms.d.ts +7 -0
- package/dist/modules/backend/forms.d.ts.map +1 -0
- package/dist/modules/backend/forms.js +25 -0
- package/dist/modules/backend/forms.js.map +1 -0
- package/dist/modules/backend/index.d.ts +24 -0
- package/dist/modules/backend/index.d.ts.map +1 -0
- package/dist/modules/backend/index.js +61 -0
- package/dist/modules/backend/index.js.map +1 -0
- package/dist/modules/backend/islands.d.ts +3 -0
- package/dist/modules/backend/islands.d.ts.map +1 -0
- package/dist/modules/backend/islands.js +13 -0
- package/dist/modules/backend/islands.js.map +1 -0
- package/dist/modules/backend/joints.d.ts +13 -0
- package/dist/modules/backend/joints.d.ts.map +1 -0
- package/dist/modules/backend/joints.js +33 -0
- package/dist/modules/backend/joints.js.map +1 -0
- package/dist/modules/backend/menus.d.ts +3 -0
- package/dist/modules/backend/menus.d.ts.map +1 -0
- package/dist/modules/backend/menus.js +25 -0
- package/dist/modules/backend/menus.js.map +1 -0
- package/dist/modules/backend/messages.d.ts +11 -0
- package/dist/modules/backend/messages.d.ts.map +1 -0
- package/dist/modules/backend/messages.js +161 -0
- package/dist/modules/backend/messages.js.map +1 -0
- package/dist/modules/backend/paging.d.ts +22 -0
- package/dist/modules/backend/paging.d.ts.map +1 -0
- package/dist/modules/backend/paging.js +56 -0
- package/dist/modules/backend/paging.js.map +1 -0
- package/dist/modules/backend/relation-select.d.ts +63 -0
- package/dist/modules/backend/relation-select.d.ts.map +1 -0
- package/dist/modules/backend/relation-select.js +20 -0
- package/dist/modules/backend/relation-select.js.map +1 -0
- package/dist/modules/backend/routes.d.ts +10 -0
- package/dist/modules/backend/routes.d.ts.map +1 -0
- package/dist/modules/backend/routes.js +123 -0
- package/dist/modules/backend/routes.js.map +1 -0
- package/dist/modules/backend/saved-searches.d.ts +4 -0
- package/dist/modules/backend/saved-searches.d.ts.map +1 -0
- package/dist/modules/backend/saved-searches.js +138 -0
- package/dist/modules/backend/saved-searches.js.map +1 -0
- package/dist/modules/backend/screens.d.ts +37 -0
- package/dist/modules/backend/screens.d.ts.map +1 -0
- package/dist/modules/backend/screens.js +107 -0
- package/dist/modules/backend/screens.js.map +1 -0
- package/dist/modules/calendar/functions.d.ts +3 -0
- package/dist/modules/calendar/functions.d.ts.map +1 -0
- package/dist/modules/calendar/functions.js +259 -0
- package/dist/modules/calendar/functions.js.map +1 -0
- package/dist/modules/calendar/index.d.ts +9 -0
- package/dist/modules/calendar/index.d.ts.map +1 -0
- package/dist/modules/calendar/index.js +36 -0
- package/dist/modules/calendar/index.js.map +1 -0
- package/dist/modules/calendar/jobs.d.ts +3 -0
- package/dist/modules/calendar/jobs.d.ts.map +1 -0
- package/dist/modules/calendar/jobs.js +57 -0
- package/dist/modules/calendar/jobs.js.map +1 -0
- package/dist/modules/calendar/models.d.ts +3 -0
- package/dist/modules/calendar/models.d.ts.map +1 -0
- package/dist/modules/calendar/models.js +90 -0
- package/dist/modules/calendar/models.js.map +1 -0
- package/dist/modules/calendar/operations.d.ts +45 -0
- package/dist/modules/calendar/operations.d.ts.map +1 -0
- package/dist/modules/calendar/operations.js +280 -0
- package/dist/modules/calendar/operations.js.map +1 -0
- package/dist/modules/calendar/recurrence.d.ts +28 -0
- package/dist/modules/calendar/recurrence.d.ts.map +1 -0
- package/dist/modules/calendar/recurrence.js +175 -0
- package/dist/modules/calendar/recurrence.js.map +1 -0
- package/dist/modules/calendar/relations.d.ts +3 -0
- package/dist/modules/calendar/relations.d.ts.map +1 -0
- package/dist/modules/calendar/relations.js +22 -0
- package/dist/modules/calendar/relations.js.map +1 -0
- package/dist/modules/calendar/types.d.ts +10 -0
- package/dist/modules/calendar/types.d.ts.map +1 -0
- package/dist/modules/calendar/types.js +6 -0
- package/dist/modules/calendar/types.js.map +1 -0
- package/dist/modules/calendar_activity/index.d.ts +6 -0
- package/dist/modules/calendar_activity/index.d.ts.map +1 -0
- package/dist/modules/calendar_activity/index.js +250 -0
- package/dist/modules/calendar_activity/index.js.map +1 -0
- package/dist/modules/calendar_backend/index.d.ts +5 -0
- package/dist/modules/calendar_backend/index.d.ts.map +1 -0
- package/dist/modules/calendar_backend/index.js +47 -0
- package/dist/modules/calendar_backend/index.js.map +1 -0
- package/dist/modules/calendar_backend/islands.d.ts +3 -0
- package/dist/modules/calendar_backend/islands.d.ts.map +1 -0
- package/dist/modules/calendar_backend/islands.js +12 -0
- package/dist/modules/calendar_backend/islands.js.map +1 -0
- package/dist/modules/calendar_backend/routes.d.ts +3 -0
- package/dist/modules/calendar_backend/routes.d.ts.map +1 -0
- package/dist/modules/calendar_backend/routes.js +43 -0
- package/dist/modules/calendar_backend/routes.js.map +1 -0
- package/dist/modules/calendar_backend/screens.d.ts +5 -0
- package/dist/modules/calendar_backend/screens.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens.js +4 -0
- package/dist/modules/calendar_backend/screens.js.map +1 -0
- package/dist/modules/calendar_mail_transport/index.d.ts +6 -0
- package/dist/modules/calendar_mail_transport/index.d.ts.map +1 -0
- package/dist/modules/calendar_mail_transport/index.js +138 -0
- package/dist/modules/calendar_mail_transport/index.js.map +1 -0
- package/dist/modules/catalog/index.d.ts +3 -0
- package/dist/modules/catalog/index.d.ts.map +1 -0
- package/dist/modules/catalog/index.js +68 -0
- package/dist/modules/catalog/index.js.map +1 -0
- package/dist/modules/checkout/index.d.ts +3 -0
- package/dist/modules/checkout/index.d.ts.map +1 -0
- package/dist/modules/checkout/index.js +50 -0
- package/dist/modules/checkout/index.js.map +1 -0
- package/dist/modules/company/functions.d.ts +3 -0
- package/dist/modules/company/functions.d.ts.map +1 -0
- package/dist/modules/company/functions.js +337 -0
- package/dist/modules/company/functions.js.map +1 -0
- package/dist/modules/company/index.d.ts +3 -0
- package/dist/modules/company/index.d.ts.map +1 -0
- package/dist/modules/company/index.js +23 -0
- package/dist/modules/company/index.js.map +1 -0
- package/dist/modules/company/messages.d.ts +63 -0
- package/dist/modules/company/messages.d.ts.map +1 -0
- package/dist/modules/company/messages.js +63 -0
- package/dist/modules/company/messages.js.map +1 -0
- package/dist/modules/company/models.d.ts +19 -0
- package/dist/modules/company/models.d.ts.map +1 -0
- package/dist/modules/company/models.js +61 -0
- package/dist/modules/company/models.js.map +1 -0
- package/dist/modules/company/relations.d.ts +3 -0
- package/dist/modules/company/relations.d.ts.map +1 -0
- package/dist/modules/company/relations.js +14 -0
- package/dist/modules/company/relations.js.map +1 -0
- package/dist/modules/company_backend/index.d.ts +5 -0
- package/dist/modules/company_backend/index.d.ts.map +1 -0
- package/dist/modules/company_backend/index.js +136 -0
- package/dist/modules/company_backend/index.js.map +1 -0
- package/dist/modules/company_backend/menus.d.ts +3 -0
- package/dist/modules/company_backend/menus.d.ts.map +1 -0
- package/dist/modules/company_backend/menus.js +17 -0
- package/dist/modules/company_backend/menus.js.map +1 -0
- package/dist/modules/company_backend/routes.d.ts +3 -0
- package/dist/modules/company_backend/routes.d.ts.map +1 -0
- package/dist/modules/company_backend/routes.js +269 -0
- package/dist/modules/company_backend/routes.js.map +1 -0
- package/dist/modules/company_backend/screens.d.ts +62 -0
- package/dist/modules/company_backend/screens.d.ts.map +1 -0
- package/dist/modules/company_backend/screens.js +268 -0
- package/dist/modules/company_backend/screens.js.map +1 -0
- package/dist/modules/crm/functions.d.ts +5 -0
- package/dist/modules/crm/functions.d.ts.map +1 -0
- package/dist/modules/crm/functions.js +840 -0
- package/dist/modules/crm/functions.js.map +1 -0
- package/dist/modules/crm/index.d.ts +6 -0
- package/dist/modules/crm/index.d.ts.map +1 -0
- package/dist/modules/crm/index.js +22 -0
- package/dist/modules/crm/index.js.map +1 -0
- package/dist/modules/crm/jobs.d.ts +4 -0
- package/dist/modules/crm/jobs.d.ts.map +1 -0
- package/dist/modules/crm/jobs.js +3 -0
- package/dist/modules/crm/jobs.js.map +1 -0
- package/dist/modules/crm/messages.d.ts +37 -0
- package/dist/modules/crm/messages.d.ts.map +1 -0
- package/dist/modules/crm/messages.js +68 -0
- package/dist/modules/crm/messages.js.map +1 -0
- package/dist/modules/crm/models.d.ts +3 -0
- package/dist/modules/crm/models.d.ts.map +1 -0
- package/dist/modules/crm/models.js +215 -0
- package/dist/modules/crm/models.js.map +1 -0
- package/dist/modules/crm/operations.d.ts +121 -0
- package/dist/modules/crm/operations.d.ts.map +1 -0
- package/dist/modules/crm/operations.js +744 -0
- package/dist/modules/crm/operations.js.map +1 -0
- package/dist/modules/crm/search.d.ts +67 -0
- package/dist/modules/crm/search.d.ts.map +1 -0
- package/dist/modules/crm/search.js +89 -0
- package/dist/modules/crm/search.js.map +1 -0
- package/dist/modules/crm/types.d.ts +10 -0
- package/dist/modules/crm/types.d.ts.map +1 -0
- package/dist/modules/crm/types.js +6 -0
- package/dist/modules/crm/types.js.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts +8 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs +129 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban.d.mts +3 -0
- package/dist/modules/crm_backend/client/crm-kanban.d.mts.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban.mjs +7 -0
- package/dist/modules/crm_backend/client/crm-kanban.mjs.map +1 -0
- package/dist/modules/crm_backend/client/crm.css +69 -0
- package/dist/modules/crm_backend/index.d.ts +4 -0
- package/dist/modules/crm_backend/index.d.ts.map +1 -0
- package/dist/modules/crm_backend/index.js +54 -0
- package/dist/modules/crm_backend/index.js.map +1 -0
- package/dist/modules/crm_backend/islands.d.ts +9 -0
- package/dist/modules/crm_backend/islands.d.ts.map +1 -0
- package/dist/modules/crm_backend/islands.js +13 -0
- package/dist/modules/crm_backend/islands.js.map +1 -0
- package/dist/modules/crm_backend/list-search.d.ts +21 -0
- package/dist/modules/crm_backend/list-search.d.ts.map +1 -0
- package/dist/modules/crm_backend/list-search.js +220 -0
- package/dist/modules/crm_backend/list-search.js.map +1 -0
- package/dist/modules/crm_backend/messages.d.ts +183 -0
- package/dist/modules/crm_backend/messages.d.ts.map +1 -0
- package/dist/modules/crm_backend/messages.js +182 -0
- package/dist/modules/crm_backend/messages.js.map +1 -0
- package/dist/modules/crm_backend/routes.d.ts +3 -0
- package/dist/modules/crm_backend/routes.d.ts.map +1 -0
- package/dist/modules/crm_backend/routes.js +520 -0
- package/dist/modules/crm_backend/routes.js.map +1 -0
- package/dist/modules/crm_backend/screens.d.ts +32 -0
- package/dist/modules/crm_backend/screens.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens.js +405 -0
- package/dist/modules/crm_backend/screens.js.map +1 -0
- package/dist/modules/crm_sale/index.d.ts +4 -0
- package/dist/modules/crm_sale/index.d.ts.map +1 -0
- package/dist/modules/crm_sale/index.js +18 -0
- package/dist/modules/crm_sale/index.js.map +1 -0
- package/dist/modules/crm_sale/messages.d.ts +10 -0
- package/dist/modules/crm_sale/messages.d.ts.map +1 -0
- package/dist/modules/crm_sale/messages.js +14 -0
- package/dist/modules/crm_sale/messages.js.map +1 -0
- package/dist/modules/crm_sale/models.d.ts +3 -0
- package/dist/modules/crm_sale/models.d.ts.map +1 -0
- package/dist/modules/crm_sale/models.js +16 -0
- package/dist/modules/crm_sale/models.js.map +1 -0
- package/dist/modules/crm_sale/sale-functions.d.ts +15 -0
- package/dist/modules/crm_sale/sale-functions.d.ts.map +1 -0
- package/dist/modules/crm_sale/sale-functions.js +139 -0
- package/dist/modules/crm_sale/sale-functions.js.map +1 -0
- package/dist/modules/crm_website/functions.d.ts +3 -0
- package/dist/modules/crm_website/functions.d.ts.map +1 -0
- package/dist/modules/crm_website/functions.js +65 -0
- package/dist/modules/crm_website/functions.js.map +1 -0
- package/dist/modules/crm_website/index.d.ts +3 -0
- package/dist/modules/crm_website/index.d.ts.map +1 -0
- package/dist/modules/crm_website/index.js +19 -0
- package/dist/modules/crm_website/index.js.map +1 -0
- package/dist/modules/crm_website/messages.d.ts +20 -0
- package/dist/modules/crm_website/messages.d.ts.map +1 -0
- package/dist/modules/crm_website/messages.js +34 -0
- package/dist/modules/crm_website/messages.js.map +1 -0
- package/dist/modules/crm_website/models.d.ts +3 -0
- package/dist/modules/crm_website/models.d.ts.map +1 -0
- package/dist/modules/crm_website/models.js +15 -0
- package/dist/modules/crm_website/models.js.map +1 -0
- package/dist/modules/crm_website/routes.d.ts +3 -0
- package/dist/modules/crm_website/routes.d.ts.map +1 -0
- package/dist/modules/crm_website/routes.js +71 -0
- package/dist/modules/crm_website/routes.js.map +1 -0
- package/dist/modules/crm_website/screens.d.ts +5 -0
- package/dist/modules/crm_website/screens.d.ts.map +1 -0
- package/dist/modules/crm_website/screens.js +15 -0
- package/dist/modules/crm_website/screens.js.map +1 -0
- package/dist/modules/hospitality_core/calendar.d.ts +9 -0
- package/dist/modules/hospitality_core/calendar.d.ts.map +1 -0
- package/dist/modules/hospitality_core/calendar.js +41 -0
- package/dist/modules/hospitality_core/calendar.js.map +1 -0
- package/dist/modules/hospitality_core/content.d.ts +13 -0
- package/dist/modules/hospitality_core/content.d.ts.map +1 -0
- package/dist/modules/hospitality_core/content.js +345 -0
- package/dist/modules/hospitality_core/content.js.map +1 -0
- package/dist/modules/hospitality_core/functions.d.ts +3 -0
- package/dist/modules/hospitality_core/functions.d.ts.map +1 -0
- package/dist/modules/hospitality_core/functions.js +1558 -0
- package/dist/modules/hospitality_core/functions.js.map +1 -0
- package/dist/modules/hospitality_core/housekeeping.d.ts +3 -0
- package/dist/modules/hospitality_core/housekeeping.d.ts.map +1 -0
- package/dist/modules/hospitality_core/housekeeping.js +352 -0
- package/dist/modules/hospitality_core/housekeeping.js.map +1 -0
- package/dist/modules/hospitality_core/index.d.ts +5 -0
- package/dist/modules/hospitality_core/index.d.ts.map +1 -0
- package/dist/modules/hospitality_core/index.js +41 -0
- package/dist/modules/hospitality_core/index.js.map +1 -0
- package/dist/modules/hospitality_core/inventory.d.ts +40 -0
- package/dist/modules/hospitality_core/inventory.d.ts.map +1 -0
- package/dist/modules/hospitality_core/inventory.js +627 -0
- package/dist/modules/hospitality_core/inventory.js.map +1 -0
- package/dist/modules/hospitality_core/menus.d.ts +3 -0
- package/dist/modules/hospitality_core/menus.d.ts.map +1 -0
- package/dist/modules/hospitality_core/menus.js +134 -0
- package/dist/modules/hospitality_core/menus.js.map +1 -0
- package/dist/modules/hospitality_core/messages.d.ts +3 -0
- package/dist/modules/hospitality_core/messages.d.ts.map +1 -0
- package/dist/modules/hospitality_core/messages.js +2011 -0
- package/dist/modules/hospitality_core/messages.js.map +1 -0
- package/dist/modules/hospitality_core/models.d.ts +10 -0
- package/dist/modules/hospitality_core/models.d.ts.map +1 -0
- package/dist/modules/hospitality_core/models.js +657 -0
- package/dist/modules/hospitality_core/models.js.map +1 -0
- package/dist/modules/hospitality_core/night-audit.d.ts +26 -0
- package/dist/modules/hospitality_core/night-audit.d.ts.map +1 -0
- package/dist/modules/hospitality_core/night-audit.js +381 -0
- package/dist/modules/hospitality_core/night-audit.js.map +1 -0
- package/dist/modules/hospitality_core/operations.d.ts +3 -0
- package/dist/modules/hospitality_core/operations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/operations.js +1562 -0
- package/dist/modules/hospitality_core/operations.js.map +1 -0
- package/dist/modules/hospitality_core/relations.d.ts +3 -0
- package/dist/modules/hospitality_core/relations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/relations.js +175 -0
- package/dist/modules/hospitality_core/relations.js.map +1 -0
- package/dist/modules/hospitality_core/routes.d.ts +3 -0
- package/dist/modules/hospitality_core/routes.d.ts.map +1 -0
- package/dist/modules/hospitality_core/routes.js +1556 -0
- package/dist/modules/hospitality_core/routes.js.map +1 -0
- package/dist/modules/hospitality_core/screens.d.ts +763 -0
- package/dist/modules/hospitality_core/screens.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens.js +4138 -0
- package/dist/modules/hospitality_core/screens.js.map +1 -0
- package/dist/modules/hospitality_core/services.d.ts +9 -0
- package/dist/modules/hospitality_core/services.d.ts.map +1 -0
- package/dist/modules/hospitality_core/services.js +586 -0
- package/dist/modules/hospitality_core/services.js.map +1 -0
- package/dist/modules/hospitality_core/stay-notices.d.ts +11 -0
- package/dist/modules/hospitality_core/stay-notices.d.ts.map +1 -0
- package/dist/modules/hospitality_core/stay-notices.js +338 -0
- package/dist/modules/hospitality_core/stay-notices.js.map +1 -0
- package/dist/modules/hospitality_core/types.d.ts +61 -0
- package/dist/modules/hospitality_core/types.d.ts.map +1 -0
- package/dist/modules/hospitality_core/types.js +65 -0
- package/dist/modules/hospitality_core/types.js.map +1 -0
- package/dist/modules/hr/functions.d.ts +3 -0
- package/dist/modules/hr/functions.d.ts.map +1 -0
- package/dist/modules/hr/functions.js +711 -0
- package/dist/modules/hr/functions.js.map +1 -0
- package/dist/modules/hr/index.d.ts +5 -0
- package/dist/modules/hr/index.d.ts.map +1 -0
- package/dist/modules/hr/index.js +20 -0
- package/dist/modules/hr/index.js.map +1 -0
- package/dist/modules/hr/messages.d.ts +45 -0
- package/dist/modules/hr/messages.d.ts.map +1 -0
- package/dist/modules/hr/messages.js +45 -0
- package/dist/modules/hr/messages.js.map +1 -0
- package/dist/modules/hr/models.d.ts +3 -0
- package/dist/modules/hr/models.d.ts.map +1 -0
- package/dist/modules/hr/models.js +166 -0
- package/dist/modules/hr/models.js.map +1 -0
- package/dist/modules/hr/relations.d.ts +3 -0
- package/dist/modules/hr/relations.d.ts.map +1 -0
- package/dist/modules/hr/relations.js +19 -0
- package/dist/modules/hr/relations.js.map +1 -0
- package/dist/modules/hr/types.d.ts +9 -0
- package/dist/modules/hr/types.d.ts.map +1 -0
- package/dist/modules/hr/types.js +5 -0
- package/dist/modules/hr/types.js.map +1 -0
- package/dist/modules/hr_backend/index.d.ts +4 -0
- package/dist/modules/hr_backend/index.d.ts.map +1 -0
- package/dist/modules/hr_backend/index.js +142 -0
- package/dist/modules/hr_backend/index.js.map +1 -0
- package/dist/modules/hr_backend/routes.d.ts +3 -0
- package/dist/modules/hr_backend/routes.d.ts.map +1 -0
- package/dist/modules/hr_backend/routes.js +83 -0
- package/dist/modules/hr_backend/routes.js.map +1 -0
- package/dist/modules/hr_backend/screens.d.ts +9 -0
- package/dist/modules/hr_backend/screens.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens.js +144 -0
- package/dist/modules/hr_backend/screens.js.map +1 -0
- package/dist/modules/inventory/index.d.ts +3 -0
- package/dist/modules/inventory/index.d.ts.map +1 -0
- package/dist/modules/inventory/index.js +31 -0
- package/dist/modules/inventory/index.js.map +1 -0
- package/dist/modules/loyalty/admin-functions.d.ts +3 -0
- package/dist/modules/loyalty/admin-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/admin-functions.js +692 -0
- package/dist/modules/loyalty/admin-functions.js.map +1 -0
- package/dist/modules/loyalty/engine.d.ts +31 -0
- package/dist/modules/loyalty/engine.d.ts.map +1 -0
- package/dist/modules/loyalty/engine.js +412 -0
- package/dist/modules/loyalty/engine.js.map +1 -0
- package/dist/modules/loyalty/index.d.ts +5 -0
- package/dist/modules/loyalty/index.d.ts.map +1 -0
- package/dist/modules/loyalty/index.js +24 -0
- package/dist/modules/loyalty/index.js.map +1 -0
- package/dist/modules/loyalty/jobs.d.ts +4 -0
- package/dist/modules/loyalty/jobs.d.ts.map +1 -0
- package/dist/modules/loyalty/jobs.js +103 -0
- package/dist/modules/loyalty/jobs.js.map +1 -0
- package/dist/modules/loyalty/ledger.d.ts +48 -0
- package/dist/modules/loyalty/ledger.d.ts.map +1 -0
- package/dist/modules/loyalty/ledger.js +164 -0
- package/dist/modules/loyalty/ledger.js.map +1 -0
- package/dist/modules/loyalty/membership-functions.d.ts +4 -0
- package/dist/modules/loyalty/membership-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/membership-functions.js +163 -0
- package/dist/modules/loyalty/membership-functions.js.map +1 -0
- package/dist/modules/loyalty/messages.d.ts +119 -0
- package/dist/modules/loyalty/messages.d.ts.map +1 -0
- package/dist/modules/loyalty/messages.js +119 -0
- package/dist/modules/loyalty/messages.js.map +1 -0
- package/dist/modules/loyalty/models.d.ts +3 -0
- package/dist/modules/loyalty/models.d.ts.map +1 -0
- package/dist/modules/loyalty/models.js +259 -0
- package/dist/modules/loyalty/models.js.map +1 -0
- package/dist/modules/loyalty/order-functions.d.ts +3 -0
- package/dist/modules/loyalty/order-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/order-functions.js +656 -0
- package/dist/modules/loyalty/order-functions.js.map +1 -0
- package/dist/modules/loyalty/relations.d.ts +3 -0
- package/dist/modules/loyalty/relations.d.ts.map +1 -0
- package/dist/modules/loyalty/relations.js +19 -0
- package/dist/modules/loyalty/relations.js.map +1 -0
- package/dist/modules/loyalty/types.d.ts +83 -0
- package/dist/modules/loyalty/types.d.ts.map +1 -0
- package/dist/modules/loyalty/types.js +23 -0
- package/dist/modules/loyalty/types.js.map +1 -0
- package/dist/modules/loyalty_backend/index.d.ts +3 -0
- package/dist/modules/loyalty_backend/index.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/index.js +636 -0
- package/dist/modules/loyalty_backend/index.js.map +1 -0
- package/dist/modules/loyalty_backend/messages.d.ts +162 -0
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/messages.js +318 -0
- package/dist/modules/loyalty_backend/messages.js.map +1 -0
- package/dist/modules/loyalty_backend/screens.d.ts +33 -0
- package/dist/modules/loyalty_backend/screens.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens.js +562 -0
- package/dist/modules/loyalty_backend/screens.js.map +1 -0
- package/dist/modules/loyalty_pos/functions.d.ts +19 -0
- package/dist/modules/loyalty_pos/functions.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/functions.js +274 -0
- package/dist/modules/loyalty_pos/functions.js.map +1 -0
- package/dist/modules/loyalty_pos/index.d.ts +3 -0
- package/dist/modules/loyalty_pos/index.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/index.js +45 -0
- package/dist/modules/loyalty_pos/index.js.map +1 -0
- package/dist/modules/loyalty_sale/functions.d.ts +19 -0
- package/dist/modules/loyalty_sale/functions.d.ts.map +1 -0
- package/dist/modules/loyalty_sale/functions.js +275 -0
- package/dist/modules/loyalty_sale/functions.js.map +1 -0
- package/dist/modules/loyalty_sale/index.d.ts +3 -0
- package/dist/modules/loyalty_sale/index.d.ts.map +1 -0
- package/dist/modules/loyalty_sale/index.js +45 -0
- package/dist/modules/loyalty_sale/index.js.map +1 -0
- package/dist/modules/mail/functions.d.ts +3 -0
- package/dist/modules/mail/functions.d.ts.map +1 -0
- package/dist/modules/mail/functions.js +129 -0
- package/dist/modules/mail/functions.js.map +1 -0
- package/dist/modules/mail/index.d.ts +9 -0
- package/dist/modules/mail/index.d.ts.map +1 -0
- package/dist/modules/mail/index.js +22 -0
- package/dist/modules/mail/index.js.map +1 -0
- package/dist/modules/mail/messages.d.ts +13 -0
- package/dist/modules/mail/messages.d.ts.map +1 -0
- package/dist/modules/mail/messages.js +13 -0
- package/dist/modules/mail/messages.js.map +1 -0
- package/dist/modules/mail/models.d.ts +3 -0
- package/dist/modules/mail/models.d.ts.map +1 -0
- package/dist/modules/mail/models.js +124 -0
- package/dist/modules/mail/models.js.map +1 -0
- package/dist/modules/mail/operations.d.ts +60 -0
- package/dist/modules/mail/operations.d.ts.map +1 -0
- package/dist/modules/mail/operations.js +249 -0
- package/dist/modules/mail/operations.js.map +1 -0
- package/dist/modules/mail/relations.d.ts +3 -0
- package/dist/modules/mail/relations.d.ts.map +1 -0
- package/dist/modules/mail/relations.js +41 -0
- package/dist/modules/mail/relations.js.map +1 -0
- package/dist/modules/mail/target.d.ts +16 -0
- package/dist/modules/mail/target.d.ts.map +1 -0
- package/dist/modules/mail/target.js +245 -0
- package/dist/modules/mail/target.js.map +1 -0
- package/dist/modules/mail/types.d.ts +7 -0
- package/dist/modules/mail/types.d.ts.map +1 -0
- package/dist/modules/mail/types.js +4 -0
- package/dist/modules/mail/types.js.map +1 -0
- package/dist/modules/mail_backend/index.d.ts +5 -0
- package/dist/modules/mail_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_backend/index.js +56 -0
- package/dist/modules/mail_backend/index.js.map +1 -0
- package/dist/modules/mail_backend/islands.d.ts +3 -0
- package/dist/modules/mail_backend/islands.d.ts.map +1 -0
- package/dist/modules/mail_backend/islands.js +20 -0
- package/dist/modules/mail_backend/islands.js.map +1 -0
- package/dist/modules/mail_backend/routes.d.ts +5 -0
- package/dist/modules/mail_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_backend/routes.js +37 -0
- package/dist/modules/mail_backend/routes.js.map +1 -0
- package/dist/modules/mail_backend/screens.d.ts +5 -0
- package/dist/modules/mail_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens.js +11 -0
- package/dist/modules/mail_backend/screens.js.map +1 -0
- package/dist/modules/mail_inbound/functions.d.ts +27 -0
- package/dist/modules/mail_inbound/functions.d.ts.map +1 -0
- package/dist/modules/mail_inbound/functions.js +178 -0
- package/dist/modules/mail_inbound/functions.js.map +1 -0
- package/dist/modules/mail_inbound/index.d.ts +10 -0
- package/dist/modules/mail_inbound/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound/index.js +38 -0
- package/dist/modules/mail_inbound/index.js.map +1 -0
- package/dist/modules/mail_inbound/jobs.d.ts +3 -0
- package/dist/modules/mail_inbound/jobs.d.ts.map +1 -0
- package/dist/modules/mail_inbound/jobs.js +29 -0
- package/dist/modules/mail_inbound/jobs.js.map +1 -0
- package/dist/modules/mail_inbound/models.d.ts +3 -0
- package/dist/modules/mail_inbound/models.d.ts.map +1 -0
- package/dist/modules/mail_inbound/models.js +68 -0
- package/dist/modules/mail_inbound/models.js.map +1 -0
- package/dist/modules/mail_inbound/operations.d.ts +17 -0
- package/dist/modules/mail_inbound/operations.d.ts.map +1 -0
- package/dist/modules/mail_inbound/operations.js +273 -0
- package/dist/modules/mail_inbound/operations.js.map +1 -0
- package/dist/modules/mail_inbound/relations.d.ts +3 -0
- package/dist/modules/mail_inbound/relations.d.ts.map +1 -0
- package/dist/modules/mail_inbound/relations.js +19 -0
- package/dist/modules/mail_inbound/relations.js.map +1 -0
- package/dist/modules/mail_inbound/routes.d.ts +4 -0
- package/dist/modules/mail_inbound/routes.d.ts.map +1 -0
- package/dist/modules/mail_inbound/routes.js +156 -0
- package/dist/modules/mail_inbound/routes.js.map +1 -0
- package/dist/modules/mail_inbound/types.d.ts +37 -0
- package/dist/modules/mail_inbound/types.d.ts.map +1 -0
- package/dist/modules/mail_inbound/types.js +3 -0
- package/dist/modules/mail_inbound/types.js.map +1 -0
- package/dist/modules/mail_inbound_backend/index.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/index.js +59 -0
- package/dist/modules/mail_inbound_backend/index.js.map +1 -0
- package/dist/modules/mail_inbound_backend/routes.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/routes.js +31 -0
- package/dist/modules/mail_inbound_backend/routes.js.map +1 -0
- package/dist/modules/mail_inbound_backend/screens.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens.js +25 -0
- package/dist/modules/mail_inbound_backend/screens.js.map +1 -0
- package/dist/modules/mail_transport/functions.d.ts +3 -0
- package/dist/modules/mail_transport/functions.d.ts.map +1 -0
- package/dist/modules/mail_transport/functions.js +280 -0
- package/dist/modules/mail_transport/functions.js.map +1 -0
- package/dist/modules/mail_transport/index.d.ts +11 -0
- package/dist/modules/mail_transport/index.d.ts.map +1 -0
- package/dist/modules/mail_transport/index.js +37 -0
- package/dist/modules/mail_transport/index.js.map +1 -0
- package/dist/modules/mail_transport/jobs.d.ts +3 -0
- package/dist/modules/mail_transport/jobs.d.ts.map +1 -0
- package/dist/modules/mail_transport/jobs.js +79 -0
- package/dist/modules/mail_transport/jobs.js.map +1 -0
- package/dist/modules/mail_transport/models.d.ts +3 -0
- package/dist/modules/mail_transport/models.d.ts.map +1 -0
- package/dist/modules/mail_transport/models.js +88 -0
- package/dist/modules/mail_transport/models.js.map +1 -0
- package/dist/modules/mail_transport/operations.d.ts +16 -0
- package/dist/modules/mail_transport/operations.d.ts.map +1 -0
- package/dist/modules/mail_transport/operations.js +122 -0
- package/dist/modules/mail_transport/operations.js.map +1 -0
- package/dist/modules/mail_transport/relations.d.ts +3 -0
- package/dist/modules/mail_transport/relations.d.ts.map +1 -0
- package/dist/modules/mail_transport/relations.js +19 -0
- package/dist/modules/mail_transport/relations.js.map +1 -0
- package/dist/modules/mail_transport/target.d.ts +8 -0
- package/dist/modules/mail_transport/target.d.ts.map +1 -0
- package/dist/modules/mail_transport/target.js +43 -0
- package/dist/modules/mail_transport/target.js.map +1 -0
- package/dist/modules/mail_transport/template.d.ts +4 -0
- package/dist/modules/mail_transport/template.d.ts.map +1 -0
- package/dist/modules/mail_transport/template.js +52 -0
- package/dist/modules/mail_transport/template.js.map +1 -0
- package/dist/modules/mail_transport/types.d.ts +9 -0
- package/dist/modules/mail_transport/types.d.ts.map +1 -0
- package/dist/modules/mail_transport/types.js +3 -0
- package/dist/modules/mail_transport/types.js.map +1 -0
- package/dist/modules/mail_transport_backend/index.d.ts +5 -0
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/index.js +69 -0
- package/dist/modules/mail_transport_backend/index.js.map +1 -0
- package/dist/modules/mail_transport_backend/routes.d.ts +5 -0
- package/dist/modules/mail_transport_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/routes.js +42 -0
- package/dist/modules/mail_transport_backend/routes.js.map +1 -0
- package/dist/modules/mail_transport_backend/screens.d.ts +5 -0
- package/dist/modules/mail_transport_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens.js +35 -0
- package/dist/modules/mail_transport_backend/screens.js.map +1 -0
- package/dist/modules/oauth/functions.d.ts +3 -0
- package/dist/modules/oauth/functions.d.ts.map +1 -0
- package/dist/modules/oauth/functions.js +817 -0
- package/dist/modules/oauth/functions.js.map +1 -0
- package/dist/modules/oauth/index.d.ts +4 -0
- package/dist/modules/oauth/index.d.ts.map +1 -0
- package/dist/modules/oauth/index.js +22 -0
- package/dist/modules/oauth/index.js.map +1 -0
- package/dist/modules/oauth/messages.d.ts +129 -0
- package/dist/modules/oauth/messages.d.ts.map +1 -0
- package/dist/modules/oauth/messages.js +129 -0
- package/dist/modules/oauth/messages.js.map +1 -0
- package/dist/modules/oauth/models.d.ts +4 -0
- package/dist/modules/oauth/models.d.ts.map +1 -0
- package/dist/modules/oauth/models.js +83 -0
- package/dist/modules/oauth/models.js.map +1 -0
- package/dist/modules/oauth/protocol.d.ts +54 -0
- package/dist/modules/oauth/protocol.d.ts.map +1 -0
- package/dist/modules/oauth/protocol.js +309 -0
- package/dist/modules/oauth/protocol.js.map +1 -0
- package/dist/modules/oauth/relations.d.ts +3 -0
- package/dist/modules/oauth/relations.d.ts.map +1 -0
- package/dist/modules/oauth/relations.js +18 -0
- package/dist/modules/oauth/relations.js.map +1 -0
- package/dist/modules/oauth/routes.d.ts +3 -0
- package/dist/modules/oauth/routes.d.ts.map +1 -0
- package/dist/modules/oauth/routes.js +185 -0
- package/dist/modules/oauth/routes.js.map +1 -0
- package/dist/modules/oauth_backend/index.d.ts +4 -0
- package/dist/modules/oauth_backend/index.d.ts.map +1 -0
- package/dist/modules/oauth_backend/index.js +23 -0
- package/dist/modules/oauth_backend/index.js.map +1 -0
- package/dist/modules/oauth_backend/menus.d.ts +3 -0
- package/dist/modules/oauth_backend/menus.d.ts.map +1 -0
- package/dist/modules/oauth_backend/menus.js +17 -0
- package/dist/modules/oauth_backend/menus.js.map +1 -0
- package/dist/modules/oauth_backend/messages.d.ts +169 -0
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -0
- package/dist/modules/oauth_backend/messages.js +169 -0
- package/dist/modules/oauth_backend/messages.js.map +1 -0
- package/dist/modules/oauth_backend/routes.d.ts +3 -0
- package/dist/modules/oauth_backend/routes.d.ts.map +1 -0
- package/dist/modules/oauth_backend/routes.js +231 -0
- package/dist/modules/oauth_backend/routes.js.map +1 -0
- package/dist/modules/oauth_backend/screens.d.ts +66 -0
- package/dist/modules/oauth_backend/screens.d.ts.map +1 -0
- package/dist/modules/oauth_backend/screens.js +323 -0
- package/dist/modules/oauth_backend/screens.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/functions.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/functions.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/functions.js +128 -0
- package/dist/modules/odoo_collaboration_import/functions.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/index.d.ts +6 -0
- package/dist/modules/odoo_collaboration_import/index.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/index.js +31 -0
- package/dist/modules/odoo_collaboration_import/index.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/models.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/models.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/models.js +76 -0
- package/dist/modules/odoo_collaboration_import/models.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/operations.d.ts +14 -0
- package/dist/modules/odoo_collaboration_import/operations.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/operations.js +1139 -0
- package/dist/modules/odoo_collaboration_import/operations.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/relations.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/relations.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/relations.js +19 -0
- package/dist/modules/odoo_collaboration_import/relations.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/types.d.ts +58 -0
- package/dist/modules/odoo_collaboration_import/types.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/types.js +2 -0
- package/dist/modules/odoo_collaboration_import/types.js.map +1 -0
- package/dist/modules/partner/functions.d.ts +5 -0
- package/dist/modules/partner/functions.d.ts.map +1 -0
- package/dist/modules/partner/functions.js +563 -0
- package/dist/modules/partner/functions.js.map +1 -0
- package/dist/modules/partner/index.d.ts +5 -0
- package/dist/modules/partner/index.d.ts.map +1 -0
- package/dist/modules/partner/index.js +23 -0
- package/dist/modules/partner/index.js.map +1 -0
- package/dist/modules/partner/messages.d.ts +55 -0
- package/dist/modules/partner/messages.d.ts.map +1 -0
- package/dist/modules/partner/messages.js +55 -0
- package/dist/modules/partner/messages.js.map +1 -0
- package/dist/modules/partner/models.d.ts +23 -0
- package/dist/modules/partner/models.d.ts.map +1 -0
- package/dist/modules/partner/models.js +124 -0
- package/dist/modules/partner/models.js.map +1 -0
- package/dist/modules/partner/relations.d.ts +4 -0
- package/dist/modules/partner/relations.d.ts.map +1 -0
- package/dist/modules/partner/relations.js +35 -0
- package/dist/modules/partner/relations.js.map +1 -0
- package/dist/modules/partner/types.d.ts +17 -0
- package/dist/modules/partner/types.d.ts.map +1 -0
- package/dist/modules/partner/types.js +14 -0
- package/dist/modules/partner/types.js.map +1 -0
- package/dist/modules/partner/views.d.ts +4 -0
- package/dist/modules/partner/views.d.ts.map +1 -0
- package/dist/modules/partner/views.js +19 -0
- package/dist/modules/partner/views.js.map +1 -0
- package/dist/modules/partner_backend/client/address-view.d.mts +5 -0
- package/dist/modules/partner_backend/client/address-view.d.mts.map +1 -0
- package/dist/modules/partner_backend/client/address-view.mjs +193 -0
- package/dist/modules/partner_backend/client/address-view.mjs.map +1 -0
- package/dist/modules/partner_backend/client/address.css +12 -0
- package/dist/modules/partner_backend/client/address.d.mts +5 -0
- package/dist/modules/partner_backend/client/address.d.mts.map +1 -0
- package/dist/modules/partner_backend/client/address.mjs +7 -0
- package/dist/modules/partner_backend/client/address.mjs.map +1 -0
- package/dist/modules/partner_backend/index.d.ts +5 -0
- package/dist/modules/partner_backend/index.d.ts.map +1 -0
- package/dist/modules/partner_backend/index.js +178 -0
- package/dist/modules/partner_backend/index.js.map +1 -0
- package/dist/modules/partner_backend/islands.d.ts +3 -0
- package/dist/modules/partner_backend/islands.d.ts.map +1 -0
- package/dist/modules/partner_backend/islands.js +23 -0
- package/dist/modules/partner_backend/islands.js.map +1 -0
- package/dist/modules/partner_backend/menus.d.ts +3 -0
- package/dist/modules/partner_backend/menus.d.ts.map +1 -0
- package/dist/modules/partner_backend/menus.js +11 -0
- package/dist/modules/partner_backend/menus.js.map +1 -0
- package/dist/modules/partner_backend/relation-control.d.ts +22 -0
- package/dist/modules/partner_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/partner_backend/relation-control.js +46 -0
- package/dist/modules/partner_backend/relation-control.js.map +1 -0
- package/dist/modules/partner_backend/routes.d.ts +3 -0
- package/dist/modules/partner_backend/routes.d.ts.map +1 -0
- package/dist/modules/partner_backend/routes.js +300 -0
- package/dist/modules/partner_backend/routes.js.map +1 -0
- package/dist/modules/partner_backend/screens.d.ts +53 -0
- package/dist/modules/partner_backend/screens.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens.js +169 -0
- package/dist/modules/partner_backend/screens.js.map +1 -0
- package/dist/modules/pos/functions.d.ts +6 -0
- package/dist/modules/pos/functions.d.ts.map +1 -0
- package/dist/modules/pos/functions.js +953 -0
- package/dist/modules/pos/functions.js.map +1 -0
- package/dist/modules/pos/index.d.ts +4 -0
- package/dist/modules/pos/index.d.ts.map +1 -0
- package/dist/modules/pos/index.js +34 -0
- package/dist/modules/pos/index.js.map +1 -0
- package/dist/modules/pos/models.d.ts +3 -0
- package/dist/modules/pos/models.d.ts.map +1 -0
- package/dist/modules/pos/models.js +107 -0
- package/dist/modules/pos/models.js.map +1 -0
- package/dist/modules/pos/relations.d.ts +3 -0
- package/dist/modules/pos/relations.d.ts.map +1 -0
- package/dist/modules/pos/relations.js +37 -0
- package/dist/modules/pos/relations.js.map +1 -0
- package/dist/modules/pos_backend/index.d.ts +3 -0
- package/dist/modules/pos_backend/index.d.ts.map +1 -0
- package/dist/modules/pos_backend/index.js +654 -0
- package/dist/modules/pos_backend/index.js.map +1 -0
- package/dist/modules/pos_backend/screens.d.ts +15 -0
- package/dist/modules/pos_backend/screens.d.ts.map +1 -0
- package/dist/modules/pos_backend/screens.js +320 -0
- package/dist/modules/pos_backend/screens.js.map +1 -0
- package/dist/modules/pricing/functions.d.ts +6 -0
- package/dist/modules/pricing/functions.d.ts.map +1 -0
- package/dist/modules/pricing/functions.js +318 -0
- package/dist/modules/pricing/functions.js.map +1 -0
- package/dist/modules/pricing/index.d.ts +4 -0
- package/dist/modules/pricing/index.d.ts.map +1 -0
- package/dist/modules/pricing/index.js +30 -0
- package/dist/modules/pricing/index.js.map +1 -0
- package/dist/modules/pricing/models.d.ts +3 -0
- package/dist/modules/pricing/models.d.ts.map +1 -0
- package/dist/modules/pricing/models.js +34 -0
- package/dist/modules/pricing/models.js.map +1 -0
- package/dist/modules/pricing/relations.d.ts +3 -0
- package/dist/modules/pricing/relations.d.ts.map +1 -0
- package/dist/modules/pricing/relations.js +11 -0
- package/dist/modules/pricing/relations.js.map +1 -0
- package/dist/modules/pricing_backend/index.d.ts +3 -0
- package/dist/modules/pricing_backend/index.d.ts.map +1 -0
- package/dist/modules/pricing_backend/index.js +241 -0
- package/dist/modules/pricing_backend/index.js.map +1 -0
- package/dist/modules/pricing_backend/screens.d.ts +13 -0
- package/dist/modules/pricing_backend/screens.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens.js +182 -0
- package/dist/modules/pricing_backend/screens.js.map +1 -0
- package/dist/modules/product/functions.d.ts +3 -0
- package/dist/modules/product/functions.d.ts.map +1 -0
- package/dist/modules/product/functions.js +627 -0
- package/dist/modules/product/functions.js.map +1 -0
- package/dist/modules/product/index.d.ts +6 -0
- package/dist/modules/product/index.d.ts.map +1 -0
- package/dist/modules/product/index.js +24 -0
- package/dist/modules/product/index.js.map +1 -0
- package/dist/modules/product/messages.d.ts +3 -0
- package/dist/modules/product/messages.d.ts.map +1 -0
- package/dist/modules/product/messages.js +19 -0
- package/dist/modules/product/messages.js.map +1 -0
- package/dist/modules/product/models.d.ts +11 -0
- package/dist/modules/product/models.d.ts.map +1 -0
- package/dist/modules/product/models.js +116 -0
- package/dist/modules/product/models.js.map +1 -0
- package/dist/modules/product/relations.d.ts +8 -0
- package/dist/modules/product/relations.d.ts.map +1 -0
- package/dist/modules/product/relations.js +53 -0
- package/dist/modules/product/relations.js.map +1 -0
- package/dist/modules/product/search.d.ts +73 -0
- package/dist/modules/product/search.d.ts.map +1 -0
- package/dist/modules/product/search.js +66 -0
- package/dist/modules/product/search.js.map +1 -0
- package/dist/modules/product/types.d.ts +14 -0
- package/dist/modules/product/types.d.ts.map +1 -0
- package/dist/modules/product/types.js +2 -0
- package/dist/modules/product/types.js.map +1 -0
- package/dist/modules/product/views.d.ts +4 -0
- package/dist/modules/product/views.d.ts.map +1 -0
- package/dist/modules/product/views.js +7 -0
- package/dist/modules/product/views.js.map +1 -0
- package/dist/modules/product_activity_backend/index.d.ts +5 -0
- package/dist/modules/product_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/product_activity_backend/index.js +29 -0
- package/dist/modules/product_activity_backend/index.js.map +1 -0
- package/dist/modules/product_backend/attributes-screen.d.ts +7 -0
- package/dist/modules/product_backend/attributes-screen.d.ts.map +1 -0
- package/dist/modules/product_backend/attributes-screen.js +76 -0
- package/dist/modules/product_backend/attributes-screen.js.map +1 -0
- package/dist/modules/product_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/product_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/product_backend/client/editor-view.mjs +141 -0
- package/dist/modules/product_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/product_backend/client/product.d.mts +6 -0
- package/dist/modules/product_backend/client/product.d.mts.map +1 -0
- package/dist/modules/product_backend/client/product.mjs +8 -0
- package/dist/modules/product_backend/client/product.mjs.map +1 -0
- package/dist/modules/product_backend/create-screen.d.ts +12 -0
- package/dist/modules/product_backend/create-screen.d.ts.map +1 -0
- package/dist/modules/product_backend/create-screen.js +83 -0
- package/dist/modules/product_backend/create-screen.js.map +1 -0
- package/dist/modules/product_backend/index.d.ts +20 -0
- package/dist/modules/product_backend/index.d.ts.map +1 -0
- package/dist/modules/product_backend/index.js +287 -0
- package/dist/modules/product_backend/index.js.map +1 -0
- package/dist/modules/product_backend/islands.d.ts +3 -0
- package/dist/modules/product_backend/islands.d.ts.map +1 -0
- package/dist/modules/product_backend/islands.js +13 -0
- package/dist/modules/product_backend/islands.js.map +1 -0
- package/dist/modules/product_backend/menus.d.ts +3 -0
- package/dist/modules/product_backend/menus.d.ts.map +1 -0
- package/dist/modules/product_backend/menus.js +25 -0
- package/dist/modules/product_backend/menus.js.map +1 -0
- package/dist/modules/product_backend/routes.d.ts +14 -0
- package/dist/modules/product_backend/routes.d.ts.map +1 -0
- package/dist/modules/product_backend/routes.js +990 -0
- package/dist/modules/product_backend/routes.js.map +1 -0
- package/dist/modules/product_backend/screens.d.ts +68 -0
- package/dist/modules/product_backend/screens.d.ts.map +1 -0
- package/dist/modules/product_backend/screens.js +388 -0
- package/dist/modules/product_backend/screens.js.map +1 -0
- package/dist/modules/product_mail_backend/index.d.ts +5 -0
- package/dist/modules/product_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/product_mail_backend/index.js +30 -0
- package/dist/modules/product_mail_backend/index.js.map +1 -0
- package/dist/modules/product_media/functions.d.ts +3 -0
- package/dist/modules/product_media/functions.d.ts.map +1 -0
- package/dist/modules/product_media/functions.js +183 -0
- package/dist/modules/product_media/functions.js.map +1 -0
- package/dist/modules/product_media/index.d.ts +3 -0
- package/dist/modules/product_media/index.d.ts.map +1 -0
- package/dist/modules/product_media/index.js +29 -0
- package/dist/modules/product_media/index.js.map +1 -0
- package/dist/modules/product_media/models.d.ts +4 -0
- package/dist/modules/product_media/models.d.ts.map +1 -0
- package/dist/modules/product_media/models.js +24 -0
- package/dist/modules/product_media/models.js.map +1 -0
- package/dist/modules/product_media/relations.d.ts +3 -0
- package/dist/modules/product_media/relations.d.ts.map +1 -0
- package/dist/modules/product_media/relations.js +8 -0
- package/dist/modules/product_media/relations.js.map +1 -0
- package/dist/modules/product_variant_activity_backend/index.d.ts +5 -0
- package/dist/modules/product_variant_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/product_variant_activity_backend/index.js +29 -0
- package/dist/modules/product_variant_activity_backend/index.js.map +1 -0
- package/dist/modules/product_variant_mail_backend/index.d.ts +5 -0
- package/dist/modules/product_variant_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/product_variant_mail_backend/index.js +30 -0
- package/dist/modules/product_variant_mail_backend/index.js.map +1 -0
- package/dist/modules/purchase/functions.d.ts +6 -0
- package/dist/modules/purchase/functions.d.ts.map +1 -0
- package/dist/modules/purchase/functions.js +743 -0
- package/dist/modules/purchase/functions.js.map +1 -0
- package/dist/modules/purchase/index.d.ts +4 -0
- package/dist/modules/purchase/index.d.ts.map +1 -0
- package/dist/modules/purchase/index.js +35 -0
- package/dist/modules/purchase/index.js.map +1 -0
- package/dist/modules/purchase/models.d.ts +3 -0
- package/dist/modules/purchase/models.d.ts.map +1 -0
- package/dist/modules/purchase/models.js +68 -0
- package/dist/modules/purchase/models.js.map +1 -0
- package/dist/modules/purchase/relations.d.ts +3 -0
- package/dist/modules/purchase/relations.d.ts.map +1 -0
- package/dist/modules/purchase/relations.js +20 -0
- package/dist/modules/purchase/relations.js.map +1 -0
- package/dist/modules/purchase_backend/index.d.ts +3 -0
- package/dist/modules/purchase_backend/index.d.ts.map +1 -0
- package/dist/modules/purchase_backend/index.js +615 -0
- package/dist/modules/purchase_backend/index.js.map +1 -0
- package/dist/modules/purchase_backend/screens.d.ts +29 -0
- package/dist/modules/purchase_backend/screens.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens.js +324 -0
- package/dist/modules/purchase_backend/screens.js.map +1 -0
- package/dist/modules/sale/functions.d.ts +6 -0
- package/dist/modules/sale/functions.d.ts.map +1 -0
- package/dist/modules/sale/functions.js +611 -0
- package/dist/modules/sale/functions.js.map +1 -0
- package/dist/modules/sale/index.d.ts +4 -0
- package/dist/modules/sale/index.d.ts.map +1 -0
- package/dist/modules/sale/index.js +35 -0
- package/dist/modules/sale/index.js.map +1 -0
- package/dist/modules/sale/models.d.ts +3 -0
- package/dist/modules/sale/models.d.ts.map +1 -0
- package/dist/modules/sale/models.js +46 -0
- package/dist/modules/sale/models.js.map +1 -0
- package/dist/modules/sale/relations.d.ts +3 -0
- package/dist/modules/sale/relations.d.ts.map +1 -0
- package/dist/modules/sale/relations.js +16 -0
- package/dist/modules/sale/relations.js.map +1 -0
- package/dist/modules/sale_activity_backend/index.d.ts +5 -0
- package/dist/modules/sale_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_activity_backend/index.js +29 -0
- package/dist/modules/sale_activity_backend/index.js.map +1 -0
- package/dist/modules/sale_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/sale_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/editor-view.mjs +132 -0
- package/dist/modules/sale_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/sale_backend/client/sale.d.mts +6 -0
- package/dist/modules/sale_backend/client/sale.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/sale.mjs +8 -0
- package/dist/modules/sale_backend/client/sale.mjs.map +1 -0
- package/dist/modules/sale_backend/index.d.ts +3 -0
- package/dist/modules/sale_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_backend/index.js +681 -0
- package/dist/modules/sale_backend/index.js.map +1 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts +14 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.js +36 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.js.map +1 -0
- package/dist/modules/sale_backend/islands.d.ts +3 -0
- package/dist/modules/sale_backend/islands.d.ts.map +1 -0
- package/dist/modules/sale_backend/islands.js +13 -0
- package/dist/modules/sale_backend/islands.js.map +1 -0
- package/dist/modules/sale_backend/order-detail-screen.d.ts +18 -0
- package/dist/modules/sale_backend/order-detail-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/order-detail-screen.js +217 -0
- package/dist/modules/sale_backend/order-detail-screen.js.map +1 -0
- package/dist/modules/sale_backend/quotations-screen.d.ts +15 -0
- package/dist/modules/sale_backend/quotations-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/quotations-screen.js +64 -0
- package/dist/modules/sale_backend/quotations-screen.js.map +1 -0
- package/dist/modules/sale_backend/sales-orders-screen.d.ts +12 -0
- package/dist/modules/sale_backend/sales-orders-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/sales-orders-screen.js +65 -0
- package/dist/modules/sale_backend/sales-orders-screen.js.map +1 -0
- package/dist/modules/sale_backend/screens.d.ts +23 -0
- package/dist/modules/sale_backend/screens.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens.js +275 -0
- package/dist/modules/sale_backend/screens.js.map +1 -0
- package/dist/modules/sale_mail_backend/index.d.ts +5 -0
- package/dist/modules/sale_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_mail_backend/index.js +30 -0
- package/dist/modules/sale_mail_backend/index.js.map +1 -0
- package/dist/modules/stock/functions.d.ts +10 -0
- package/dist/modules/stock/functions.d.ts.map +1 -0
- package/dist/modules/stock/functions.js +1523 -0
- package/dist/modules/stock/functions.js.map +1 -0
- package/dist/modules/stock/index.d.ts +5 -0
- package/dist/modules/stock/index.d.ts.map +1 -0
- package/dist/modules/stock/index.js +35 -0
- package/dist/modules/stock/index.js.map +1 -0
- package/dist/modules/stock/models.d.ts +3 -0
- package/dist/modules/stock/models.d.ts.map +1 -0
- package/dist/modules/stock/models.js +185 -0
- package/dist/modules/stock/models.js.map +1 -0
- package/dist/modules/stock/relations.d.ts +3 -0
- package/dist/modules/stock/relations.d.ts.map +1 -0
- package/dist/modules/stock/relations.js +40 -0
- package/dist/modules/stock/relations.js.map +1 -0
- package/dist/modules/stock/routing.d.ts +7 -0
- package/dist/modules/stock/routing.d.ts.map +1 -0
- package/dist/modules/stock/routing.js +527 -0
- package/dist/modules/stock/routing.js.map +1 -0
- package/dist/modules/stock_activity_backend/index.d.ts +5 -0
- package/dist/modules/stock_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_activity_backend/index.js +29 -0
- package/dist/modules/stock_activity_backend/index.js.map +1 -0
- package/dist/modules/stock_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/stock_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/editor-view.mjs +147 -0
- package/dist/modules/stock_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/stock_backend/client/stock.d.mts +6 -0
- package/dist/modules/stock_backend/client/stock.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock.mjs +8 -0
- package/dist/modules/stock_backend/client/stock.mjs.map +1 -0
- package/dist/modules/stock_backend/forecast-screen.d.ts +28 -0
- package/dist/modules/stock_backend/forecast-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/forecast-screen.js +108 -0
- package/dist/modules/stock_backend/forecast-screen.js.map +1 -0
- package/dist/modules/stock_backend/index.d.ts +3 -0
- package/dist/modules/stock_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/index.js +880 -0
- package/dist/modules/stock_backend/index.js.map +1 -0
- package/dist/modules/stock_backend/inventory-screen.d.ts +27 -0
- package/dist/modules/stock_backend/inventory-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/inventory-screen.js +141 -0
- package/dist/modules/stock_backend/inventory-screen.js.map +1 -0
- package/dist/modules/stock_backend/islands.d.ts +3 -0
- package/dist/modules/stock_backend/islands.d.ts.map +1 -0
- package/dist/modules/stock_backend/islands.js +13 -0
- package/dist/modules/stock_backend/islands.js.map +1 -0
- package/dist/modules/stock_backend/locations-screen.d.ts +18 -0
- package/dist/modules/stock_backend/locations-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/locations-screen.js +92 -0
- package/dist/modules/stock_backend/locations-screen.js.map +1 -0
- package/dist/modules/stock_backend/lot-screen.d.ts +30 -0
- package/dist/modules/stock_backend/lot-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/lot-screen.js +86 -0
- package/dist/modules/stock_backend/lot-screen.js.map +1 -0
- package/dist/modules/stock_backend/lots-screen.d.ts +21 -0
- package/dist/modules/stock_backend/lots-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/lots-screen.js +79 -0
- package/dist/modules/stock_backend/lots-screen.js.map +1 -0
- package/dist/modules/stock_backend/picking-types-screen.d.ts +21 -0
- package/dist/modules/stock_backend/picking-types-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/picking-types-screen.js +110 -0
- package/dist/modules/stock_backend/picking-types-screen.js.map +1 -0
- package/dist/modules/stock_backend/replenishment-screen.d.ts +29 -0
- package/dist/modules/stock_backend/replenishment-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/replenishment-screen.js +131 -0
- package/dist/modules/stock_backend/replenishment-screen.js.map +1 -0
- package/dist/modules/stock_backend/routes.d.ts +3 -0
- package/dist/modules/stock_backend/routes.d.ts.map +1 -0
- package/dist/modules/stock_backend/routes.js +950 -0
- package/dist/modules/stock_backend/routes.js.map +1 -0
- package/dist/modules/stock_backend/screens.d.ts +14 -0
- package/dist/modules/stock_backend/screens.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens.js +40 -0
- package/dist/modules/stock_backend/screens.js.map +1 -0
- package/dist/modules/stock_backend/stock-route-screen.d.ts +30 -0
- package/dist/modules/stock_backend/stock-route-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/stock-route-screen.js +129 -0
- package/dist/modules/stock_backend/stock-route-screen.js.map +1 -0
- package/dist/modules/stock_backend/stock-routes-screen.d.ts +17 -0
- package/dist/modules/stock_backend/stock-routes-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/stock-routes-screen.js +60 -0
- package/dist/modules/stock_backend/stock-routes-screen.js.map +1 -0
- package/dist/modules/stock_backend/transfer-screen.d.ts +26 -0
- package/dist/modules/stock_backend/transfer-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/transfer-screen.js +95 -0
- package/dist/modules/stock_backend/transfer-screen.js.map +1 -0
- package/dist/modules/stock_backend/transfers-screen.d.ts +21 -0
- package/dist/modules/stock_backend/transfers-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/transfers-screen.js +88 -0
- package/dist/modules/stock_backend/transfers-screen.js.map +1 -0
- package/dist/modules/stock_backend/warehouses-screen.d.ts +17 -0
- package/dist/modules/stock_backend/warehouses-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/warehouses-screen.js +96 -0
- package/dist/modules/stock_backend/warehouses-screen.js.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts +5 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.js +29 -0
- package/dist/modules/stock_lot_activity_backend/index.js.map +1 -0
- package/dist/modules/stock_lot_mail_backend/index.d.ts +5 -0
- package/dist/modules/stock_lot_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_lot_mail_backend/index.js +30 -0
- package/dist/modules/stock_lot_mail_backend/index.js.map +1 -0
- package/dist/modules/stock_mail_backend/index.d.ts +5 -0
- package/dist/modules/stock_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_mail_backend/index.js +30 -0
- package/dist/modules/stock_mail_backend/index.js.map +1 -0
- package/dist/modules/stock_mail_inbound/index.d.ts +6 -0
- package/dist/modules/stock_mail_inbound/index.d.ts.map +1 -0
- package/dist/modules/stock_mail_inbound/index.js +104 -0
- package/dist/modules/stock_mail_inbound/index.js.map +1 -0
- package/dist/modules/storage/functions.d.ts +3 -0
- package/dist/modules/storage/functions.d.ts.map +1 -0
- package/dist/modules/storage/functions.js +129 -0
- package/dist/modules/storage/functions.js.map +1 -0
- package/dist/modules/storage/index.d.ts +3 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +31 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/jobs.d.ts +3 -0
- package/dist/modules/storage/jobs.d.ts.map +1 -0
- package/dist/modules/storage/jobs.js +37 -0
- package/dist/modules/storage/jobs.js.map +1 -0
- package/dist/modules/storage/models.d.ts +3 -0
- package/dist/modules/storage/models.d.ts.map +1 -0
- package/dist/modules/storage/models.js +23 -0
- package/dist/modules/storage/models.js.map +1 -0
- package/dist/modules/storage/routes.d.ts +27 -0
- package/dist/modules/storage/routes.d.ts.map +1 -0
- package/dist/modules/storage/routes.js +180 -0
- package/dist/modules/storage/routes.js.map +1 -0
- package/dist/modules/uom/convert.d.ts +52 -0
- package/dist/modules/uom/convert.d.ts.map +1 -0
- package/dist/modules/uom/convert.js +76 -0
- package/dist/modules/uom/convert.js.map +1 -0
- package/dist/modules/uom/functions.d.ts +5 -0
- package/dist/modules/uom/functions.d.ts.map +1 -0
- package/dist/modules/uom/functions.js +235 -0
- package/dist/modules/uom/functions.js.map +1 -0
- package/dist/modules/uom/index.d.ts +5 -0
- package/dist/modules/uom/index.d.ts.map +1 -0
- package/dist/modules/uom/index.js +19 -0
- package/dist/modules/uom/index.js.map +1 -0
- package/dist/modules/uom/messages.d.ts +3 -0
- package/dist/modules/uom/messages.d.ts.map +1 -0
- package/dist/modules/uom/messages.js +19 -0
- package/dist/modules/uom/messages.js.map +1 -0
- package/dist/modules/uom/models.d.ts +4 -0
- package/dist/modules/uom/models.d.ts.map +1 -0
- package/dist/modules/uom/models.js +34 -0
- package/dist/modules/uom/models.js.map +1 -0
- package/dist/modules/uom/relations.d.ts +3 -0
- package/dist/modules/uom/relations.d.ts.map +1 -0
- package/dist/modules/uom/relations.js +7 -0
- package/dist/modules/uom/relations.js.map +1 -0
- package/dist/modules/user/functions.d.ts +8 -0
- package/dist/modules/user/functions.d.ts.map +1 -0
- package/dist/modules/user/functions.js +1094 -0
- package/dist/modules/user/functions.js.map +1 -0
- package/dist/modules/user/index.d.ts +8 -0
- package/dist/modules/user/index.d.ts.map +1 -0
- package/dist/modules/user/index.js +34 -0
- package/dist/modules/user/index.js.map +1 -0
- package/dist/modules/user/login.d.ts +28 -0
- package/dist/modules/user/login.d.ts.map +1 -0
- package/dist/modules/user/login.js +46 -0
- package/dist/modules/user/login.js.map +1 -0
- package/dist/modules/user/messages.d.ts +115 -0
- package/dist/modules/user/messages.d.ts.map +1 -0
- package/dist/modules/user/messages.js +115 -0
- package/dist/modules/user/messages.js.map +1 -0
- package/dist/modules/user/models.d.ts +16 -0
- package/dist/modules/user/models.d.ts.map +1 -0
- package/dist/modules/user/models.js +168 -0
- package/dist/modules/user/models.js.map +1 -0
- package/dist/modules/user/password.d.ts +11 -0
- package/dist/modules/user/password.d.ts.map +1 -0
- package/dist/modules/user/password.js +74 -0
- package/dist/modules/user/password.js.map +1 -0
- package/dist/modules/user/relations.d.ts +3 -0
- package/dist/modules/user/relations.d.ts.map +1 -0
- package/dist/modules/user/relations.js +31 -0
- package/dist/modules/user/relations.js.map +1 -0
- package/dist/modules/user/roles.d.ts +12 -0
- package/dist/modules/user/roles.d.ts.map +1 -0
- package/dist/modules/user/roles.js +254 -0
- package/dist/modules/user/roles.js.map +1 -0
- package/dist/modules/user/routes.d.ts +3 -0
- package/dist/modules/user/routes.d.ts.map +1 -0
- package/dist/modules/user/routes.js +244 -0
- package/dist/modules/user/routes.js.map +1 -0
- package/dist/modules/user/session-context.d.ts +10 -0
- package/dist/modules/user/session-context.d.ts.map +1 -0
- package/dist/modules/user/session-context.js +31 -0
- package/dist/modules/user/session-context.js.map +1 -0
- package/dist/modules/user_backend/index.d.ts +5 -0
- package/dist/modules/user_backend/index.d.ts.map +1 -0
- package/dist/modules/user_backend/index.js +24 -0
- package/dist/modules/user_backend/index.js.map +1 -0
- package/dist/modules/user_backend/menus.d.ts +3 -0
- package/dist/modules/user_backend/menus.d.ts.map +1 -0
- package/dist/modules/user_backend/menus.js +24 -0
- package/dist/modules/user_backend/menus.js.map +1 -0
- package/dist/modules/user_backend/messages.d.ts +189 -0
- package/dist/modules/user_backend/messages.d.ts.map +1 -0
- package/dist/modules/user_backend/messages.js +189 -0
- package/dist/modules/user_backend/messages.js.map +1 -0
- package/dist/modules/user_backend/routes.d.ts +3 -0
- package/dist/modules/user_backend/routes.d.ts.map +1 -0
- package/dist/modules/user_backend/routes.js +474 -0
- package/dist/modules/user_backend/routes.js.map +1 -0
- package/dist/modules/user_backend/screens.d.ts +70 -0
- package/dist/modules/user_backend/screens.d.ts.map +1 -0
- package/dist/modules/user_backend/screens.js +308 -0
- package/dist/modules/user_backend/screens.js.map +1 -0
- package/dist/modules/website/access.d.ts +15 -0
- package/dist/modules/website/access.d.ts.map +1 -0
- package/dist/modules/website/access.js +39 -0
- package/dist/modules/website/access.js.map +1 -0
- package/dist/modules/website/cms.d.ts +3 -0
- package/dist/modules/website/cms.d.ts.map +1 -0
- package/dist/modules/website/cms.js +1142 -0
- package/dist/modules/website/cms.js.map +1 -0
- package/dist/modules/website/content-types.d.ts +4 -0
- package/dist/modules/website/content-types.d.ts.map +1 -0
- package/dist/modules/website/content-types.js +30 -0
- package/dist/modules/website/content-types.js.map +1 -0
- package/dist/modules/website/customer-password.d.ts +4 -0
- package/dist/modules/website/customer-password.d.ts.map +1 -0
- package/dist/modules/website/customer-password.js +51 -0
- package/dist/modules/website/customer-password.js.map +1 -0
- package/dist/modules/website/customer-routes.d.ts +3 -0
- package/dist/modules/website/customer-routes.d.ts.map +1 -0
- package/dist/modules/website/customer-routes.js +322 -0
- package/dist/modules/website/customer-routes.js.map +1 -0
- package/dist/modules/website/customer.d.ts +5 -0
- package/dist/modules/website/customer.d.ts.map +1 -0
- package/dist/modules/website/customer.js +442 -0
- package/dist/modules/website/customer.js.map +1 -0
- package/dist/modules/website/functions.d.ts +3 -0
- package/dist/modules/website/functions.d.ts.map +1 -0
- package/dist/modules/website/functions.js +96 -0
- package/dist/modules/website/functions.js.map +1 -0
- package/dist/modules/website/index.d.ts +4 -0
- package/dist/modules/website/index.d.ts.map +1 -0
- package/dist/modules/website/index.js +152 -0
- package/dist/modules/website/index.js.map +1 -0
- package/dist/modules/website/jobs.d.ts +3 -0
- package/dist/modules/website/jobs.d.ts.map +1 -0
- package/dist/modules/website/jobs.js +25 -0
- package/dist/modules/website/jobs.js.map +1 -0
- package/dist/modules/website/joints.d.ts +4 -0
- package/dist/modules/website/joints.d.ts.map +1 -0
- package/dist/modules/website/joints.js +7 -0
- package/dist/modules/website/joints.js.map +1 -0
- package/dist/modules/website/models.d.ts +8 -0
- package/dist/modules/website/models.d.ts.map +1 -0
- package/dist/modules/website/models.js +260 -0
- package/dist/modules/website/models.js.map +1 -0
- package/dist/modules/website/sections.d.ts +8 -0
- package/dist/modules/website/sections.d.ts.map +1 -0
- package/dist/modules/website/sections.js +16 -0
- package/dist/modules/website/sections.js.map +1 -0
- package/dist/modules/website/tokens.d.ts +2 -0
- package/dist/modules/website/tokens.d.ts.map +1 -0
- package/dist/modules/website/tokens.js +5 -0
- package/dist/modules/website/tokens.js.map +1 -0
- package/dist/modules/website/types.d.ts +6 -0
- package/dist/modules/website/types.d.ts.map +1 -0
- package/dist/modules/website/types.js +2 -0
- package/dist/modules/website/types.js.map +1 -0
- package/dist/modules/website/views.d.ts +4 -0
- package/dist/modules/website/views.d.ts.map +1 -0
- package/dist/modules/website/views.js +5 -0
- package/dist/modules/website/views.js.map +1 -0
- package/dist/modules/website_backend/index.d.ts +3 -0
- package/dist/modules/website_backend/index.d.ts.map +1 -0
- package/dist/modules/website_backend/index.js +290 -0
- package/dist/modules/website_backend/index.js.map +1 -0
- package/dist/modules/website_backend/menus.d.ts +3 -0
- package/dist/modules/website_backend/menus.d.ts.map +1 -0
- package/dist/modules/website_backend/menus.js +54 -0
- package/dist/modules/website_backend/menus.js.map +1 -0
- package/dist/modules/website_backend/routes.d.ts +3 -0
- package/dist/modules/website_backend/routes.d.ts.map +1 -0
- package/dist/modules/website_backend/routes.js +625 -0
- package/dist/modules/website_backend/routes.js.map +1 -0
- package/dist/modules/website_backend/screens.d.ts +114 -0
- package/dist/modules/website_backend/screens.d.ts.map +1 -0
- package/dist/modules/website_backend/screens.js +625 -0
- package/dist/modules/website_backend/screens.js.map +1 -0
- package/dist/modules/website_form/functions.d.ts +3 -0
- package/dist/modules/website_form/functions.d.ts.map +1 -0
- package/dist/modules/website_form/functions.js +305 -0
- package/dist/modules/website_form/functions.js.map +1 -0
- package/dist/modules/website_form/index.d.ts +3 -0
- package/dist/modules/website_form/index.d.ts.map +1 -0
- package/dist/modules/website_form/index.js +72 -0
- package/dist/modules/website_form/index.js.map +1 -0
- package/dist/modules/website_form/models.d.ts +3 -0
- package/dist/modules/website_form/models.d.ts.map +1 -0
- package/dist/modules/website_form/models.js +46 -0
- package/dist/modules/website_form/models.js.map +1 -0
- package/dist/modules/website_form/routes.d.ts +3 -0
- package/dist/modules/website_form/routes.d.ts.map +1 -0
- package/dist/modules/website_form/routes.js +74 -0
- package/dist/modules/website_form/routes.js.map +1 -0
- package/dist/modules/website_form/sections.d.ts +3 -0
- package/dist/modules/website_form/sections.d.ts.map +1 -0
- package/dist/modules/website_form/sections.js +7 -0
- package/dist/modules/website_form/sections.js.map +1 -0
- package/dist/modules/website_hospitality/content-types.d.ts +3 -0
- package/dist/modules/website_hospitality/content-types.d.ts.map +1 -0
- package/dist/modules/website_hospitality/content-types.js +9 -0
- package/dist/modules/website_hospitality/content-types.js.map +1 -0
- package/dist/modules/website_hospitality/functions.d.ts +3 -0
- package/dist/modules/website_hospitality/functions.d.ts.map +1 -0
- package/dist/modules/website_hospitality/functions.js +296 -0
- package/dist/modules/website_hospitality/functions.js.map +1 -0
- package/dist/modules/website_hospitality/index.d.ts +3 -0
- package/dist/modules/website_hospitality/index.d.ts.map +1 -0
- package/dist/modules/website_hospitality/index.js +67 -0
- package/dist/modules/website_hospitality/index.js.map +1 -0
- package/dist/modules/website_hospitality/models.d.ts +3 -0
- package/dist/modules/website_hospitality/models.d.ts.map +1 -0
- package/dist/modules/website_hospitality/models.js +49 -0
- package/dist/modules/website_hospitality/models.js.map +1 -0
- package/dist/modules/website_hospitality/routes.d.ts +3 -0
- package/dist/modules/website_hospitality/routes.d.ts.map +1 -0
- package/dist/modules/website_hospitality/routes.js +78 -0
- package/dist/modules/website_hospitality/routes.js.map +1 -0
- package/dist/modules/website_hospitality/sections.d.ts +3 -0
- package/dist/modules/website_hospitality/sections.d.ts.map +1 -0
- package/dist/modules/website_hospitality/sections.js +11 -0
- package/dist/modules/website_hospitality/sections.js.map +1 -0
- package/dist/modules/website_menu/functions.d.ts +3 -0
- package/dist/modules/website_menu/functions.d.ts.map +1 -0
- package/dist/modules/website_menu/functions.js +79 -0
- package/dist/modules/website_menu/functions.js.map +1 -0
- package/dist/modules/website_menu/index.d.ts +3 -0
- package/dist/modules/website_menu/index.d.ts.map +1 -0
- package/dist/modules/website_menu/index.js +31 -0
- package/dist/modules/website_menu/index.js.map +1 -0
- package/dist/modules/website_menu/models.d.ts +3 -0
- package/dist/modules/website_menu/models.d.ts.map +1 -0
- package/dist/modules/website_menu/models.js +15 -0
- package/dist/modules/website_menu/models.js.map +1 -0
- package/dist/modules/website_menu/sections.d.ts +3 -0
- package/dist/modules/website_menu/sections.d.ts.map +1 -0
- package/dist/modules/website_menu/sections.js +4 -0
- package/dist/modules/website_menu/sections.js.map +1 -0
- package/dist/modules/website_menu/views.d.ts +3 -0
- package/dist/modules/website_menu/views.d.ts.map +1 -0
- package/dist/modules/website_menu/views.js +4 -0
- package/dist/modules/website_menu/views.js.map +1 -0
- package/dist/modules/website_retail/content-types.d.ts +3 -0
- package/dist/modules/website_retail/content-types.d.ts.map +1 -0
- package/dist/modules/website_retail/content-types.js +10 -0
- package/dist/modules/website_retail/content-types.js.map +1 -0
- package/dist/modules/website_retail/functions.d.ts +3 -0
- package/dist/modules/website_retail/functions.d.ts.map +1 -0
- package/dist/modules/website_retail/functions.js +321 -0
- package/dist/modules/website_retail/functions.js.map +1 -0
- package/dist/modules/website_retail/index.d.ts +3 -0
- package/dist/modules/website_retail/index.d.ts.map +1 -0
- package/dist/modules/website_retail/index.js +63 -0
- package/dist/modules/website_retail/index.js.map +1 -0
- package/dist/modules/website_retail/models.d.ts +3 -0
- package/dist/modules/website_retail/models.d.ts.map +1 -0
- package/dist/modules/website_retail/models.js +50 -0
- package/dist/modules/website_retail/models.js.map +1 -0
- package/dist/modules/website_retail/sections.d.ts +3 -0
- package/dist/modules/website_retail/sections.d.ts.map +1 -0
- package/dist/modules/website_retail/sections.js +11 -0
- package/dist/modules/website_retail/sections.js.map +1 -0
- package/dist/modules/website_search/client/search.d.mts +6 -0
- package/dist/modules/website_search/client/search.d.mts.map +1 -0
- package/dist/modules/website_search/client/search.mjs +25 -0
- package/dist/modules/website_search/client/search.mjs.map +1 -0
- package/dist/modules/website_search/fills.d.ts +3 -0
- package/dist/modules/website_search/fills.d.ts.map +1 -0
- package/dist/modules/website_search/fills.js +5 -0
- package/dist/modules/website_search/fills.js.map +1 -0
- package/dist/modules/website_search/index.d.ts +3 -0
- package/dist/modules/website_search/index.d.ts.map +1 -0
- package/dist/modules/website_search/index.js +28 -0
- package/dist/modules/website_search/index.js.map +1 -0
- package/dist/modules/website_search/islands.d.ts +7 -0
- package/dist/modules/website_search/islands.d.ts.map +1 -0
- package/dist/modules/website_search/islands.js +23 -0
- package/dist/modules/website_search/islands.js.map +1 -0
- package/dist/modules/website_seo/extend.d.ts +7 -0
- package/dist/modules/website_seo/extend.d.ts.map +1 -0
- package/dist/modules/website_seo/extend.js +20 -0
- package/dist/modules/website_seo/extend.js.map +1 -0
- package/dist/modules/website_seo/fills.d.ts +3 -0
- package/dist/modules/website_seo/fills.d.ts.map +1 -0
- package/dist/modules/website_seo/fills.js +8 -0
- package/dist/modules/website_seo/fills.js.map +1 -0
- package/dist/modules/website_seo/index.d.ts +3 -0
- package/dist/modules/website_seo/index.d.ts.map +1 -0
- package/dist/modules/website_seo/index.js +30 -0
- package/dist/modules/website_seo/index.js.map +1 -0
- package/dist/modules/website_seo/views.d.ts +3 -0
- package/dist/modules/website_seo/views.d.ts.map +1 -0
- package/dist/modules/website_seo/views.js +5 -0
- package/dist/modules/website_seo/views.js.map +1 -0
- package/dist/themes/default/index.d.ts +3 -0
- package/dist/themes/default/index.d.ts.map +1 -0
- package/dist/themes/default/index.js +16 -0
- package/dist/themes/default/index.js.map +1 -0
- package/dist/themes/default/templates/layout.ktl +7 -0
- package/dist/themes/default/templates/product.detail.ktl +10 -0
- package/dist/themes/default/templates/product.related_row.ktl +1 -0
- package/dist/themes/hospitality/assets/theme.css +109 -0
- package/dist/themes/hospitality/index.d.ts +3 -0
- package/dist/themes/hospitality/index.d.ts.map +1 -0
- package/dist/themes/hospitality/index.js +26 -0
- package/dist/themes/hospitality/index.js.map +1 -0
- package/dist/themes/hospitality/templates/layout.ktl +17 -0
- package/dist/themes/hospitality/templates/menu.item.ktl +1 -0
- package/dist/themes/hospitality/templates/menu.primary.ktl +1 -0
- package/dist/themes/hospitality/templates/website.hero.ktl +6 -0
- package/dist/themes/hospitality/templates/website.page.ktl +1 -0
- package/dist/themes/hospitality/templates/website.rich_text.ktl +3 -0
- package/dist/themes/hospitality/templates/website_form.form.ktl +1 -0
- package/dist/themes/hospitality/templates/website_hospitality.booking.ktl +1 -0
- package/dist/themes/hospitality/templates/website_hospitality.stays.ktl +1 -0
- package/dist/themes/hospitality/tokens.d.ts +2 -0
- package/dist/themes/hospitality/tokens.d.ts.map +1 -0
- package/dist/themes/hospitality/tokens.js +9 -0
- package/dist/themes/hospitality/tokens.js.map +1 -0
- package/dist/themes/paper/index.d.ts +9 -0
- package/dist/themes/paper/index.d.ts.map +1 -0
- package/dist/themes/paper/index.js +30 -0
- package/dist/themes/paper/index.js.map +1 -0
- package/dist/themes/paper/templates/layout.ktl +14 -0
- package/dist/themes/paper/templates/menu.item.ktl +3 -0
- package/dist/themes/paper/templates/menu.primary.ktl +3 -0
- package/dist/themes/paper/templates/website.hero.ktl +6 -0
- package/dist/themes/paper/templates/website.page.ktl +2 -0
- package/dist/themes/paper/templates/website.rich_text.ktl +4 -0
- package/dist/themes/paper/tokens.d.ts +2 -0
- package/dist/themes/paper/tokens.d.ts.map +1 -0
- package/dist/themes/paper/tokens.js +11 -0
- package/dist/themes/paper/tokens.js.map +1 -0
- package/dist/themes/retail/assets/theme.css +114 -0
- package/dist/themes/retail/index.d.ts +3 -0
- package/dist/themes/retail/index.d.ts.map +1 -0
- package/dist/themes/retail/index.js +26 -0
- package/dist/themes/retail/index.js.map +1 -0
- package/dist/themes/retail/templates/layout.ktl +5 -0
- package/dist/themes/retail/templates/menu.item.ktl +1 -0
- package/dist/themes/retail/templates/menu.primary.ktl +1 -0
- package/dist/themes/retail/templates/website.hero.ktl +1 -0
- package/dist/themes/retail/templates/website.page.ktl +1 -0
- package/dist/themes/retail/templates/website.rich_text.ktl +1 -0
- package/dist/themes/retail/templates/website_form.form.ktl +1 -0
- package/dist/themes/retail/templates/website_retail.cart.ktl +1 -0
- package/dist/themes/retail/templates/website_retail.products.ktl +1 -0
- package/dist/themes/retail/tokens.d.ts +2 -0
- package/dist/themes/retail/tokens.d.ts.map +1 -0
- package/dist/themes/retail/tokens.js +9 -0
- package/dist/themes/retail/tokens.js.map +1 -0
- package/dist/ui/actions.d.ts +38 -0
- package/dist/ui/actions.d.ts.map +1 -0
- package/dist/ui/actions.js +20 -0
- package/dist/ui/actions.js.map +1 -0
- package/dist/ui/activity.d.ts +4 -0
- package/dist/ui/activity.d.ts.map +1 -0
- package/dist/ui/activity.js +73 -0
- package/dist/ui/activity.js.map +1 -0
- package/dist/ui/attachments.d.ts +18 -0
- package/dist/ui/attachments.d.ts.map +1 -0
- package/dist/ui/attachments.js +15 -0
- package/dist/ui/attachments.js.map +1 -0
- package/dist/ui/auth.d.ts +9 -0
- package/dist/ui/auth.d.ts.map +1 -0
- package/dist/ui/auth.js +44 -0
- package/dist/ui/auth.js.map +1 -0
- package/dist/ui/calendar.d.ts +4 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/calendar.js +51 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/chrome.d.ts +66 -0
- package/dist/ui/chrome.d.ts.map +1 -0
- package/dist/ui/chrome.js +39 -0
- package/dist/ui/chrome.js.map +1 -0
- package/dist/ui/client/activity-view.d.mts +12 -0
- package/dist/ui/client/activity-view.d.mts.map +1 -0
- package/dist/ui/client/activity-view.mjs +393 -0
- package/dist/ui/client/activity-view.mjs.map +1 -0
- package/dist/ui/client/activity.css +269 -0
- package/dist/ui/client/activity.d.mts +11 -0
- package/dist/ui/client/activity.d.mts.map +1 -0
- package/dist/ui/client/activity.mjs +10 -0
- package/dist/ui/client/activity.mjs.map +1 -0
- package/dist/ui/client/calendar-view.d.mts +5 -0
- package/dist/ui/client/calendar-view.d.mts.map +1 -0
- package/dist/ui/client/calendar-view.mjs +266 -0
- package/dist/ui/client/calendar-view.mjs.map +1 -0
- package/dist/ui/client/calendar.css +170 -0
- package/dist/ui/client/calendar.d.mts +6 -0
- package/dist/ui/client/calendar.d.mts.map +1 -0
- package/dist/ui/client/calendar.mjs +6 -0
- package/dist/ui/client/calendar.mjs.map +1 -0
- package/dist/ui/client/mail-view.d.mts +9 -0
- package/dist/ui/client/mail-view.d.mts.map +1 -0
- package/dist/ui/client/mail-view.mjs +350 -0
- package/dist/ui/client/mail-view.mjs.map +1 -0
- package/dist/ui/client/mail.css +230 -0
- package/dist/ui/client/mail.d.mts +11 -0
- package/dist/ui/client/mail.d.mts.map +1 -0
- package/dist/ui/client/mail.mjs +10 -0
- package/dist/ui/client/mail.mjs.map +1 -0
- package/dist/ui/data.d.ts +25 -0
- package/dist/ui/data.d.ts.map +1 -0
- package/dist/ui/data.js +23 -0
- package/dist/ui/data.js.map +1 -0
- package/dist/ui/date-picker.d.ts +36 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.js +40 -0
- package/dist/ui/date-picker.js.map +1 -0
- package/dist/ui/form.d.ts +67 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +75 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/format.d.ts +4 -0
- package/dist/ui/format.d.ts.map +1 -0
- package/dist/ui/format.js +33 -0
- package/dist/ui/format.js.map +1 -0
- package/dist/ui/hooks.d.ts +5 -0
- package/dist/ui/hooks.d.ts.map +1 -0
- package/dist/ui/hooks.js +82 -0
- package/dist/ui/hooks.js.map +1 -0
- package/dist/ui/icons.d.ts +12 -0
- package/dist/ui/icons.d.ts.map +1 -0
- package/dist/ui/icons.js +76 -0
- package/dist/ui/icons.js.map +1 -0
- package/dist/ui/index.d.ts +39 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +39 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/layout.d.ts +80 -0
- package/dist/ui/layout.d.ts.map +1 -0
- package/dist/ui/layout.js +86 -0
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/mail.d.ts +5 -0
- package/dist/ui/mail.d.ts.map +1 -0
- package/dist/ui/mail.js +69 -0
- package/dist/ui/mail.js.map +1 -0
- package/dist/ui/media.d.ts +42 -0
- package/dist/ui/media.d.ts.map +1 -0
- package/dist/ui/media.js +48 -0
- package/dist/ui/media.js.map +1 -0
- package/dist/ui/modal.d.ts +9 -0
- package/dist/ui/modal.d.ts.map +1 -0
- package/dist/ui/modal.js +13 -0
- package/dist/ui/modal.js.map +1 -0
- package/dist/ui/nav.d.ts +34 -0
- package/dist/ui/nav.d.ts.map +1 -0
- package/dist/ui/nav.js +77 -0
- package/dist/ui/nav.js.map +1 -0
- package/dist/ui/navigation.d.ts +22 -0
- package/dist/ui/navigation.d.ts.map +1 -0
- package/dist/ui/navigation.js +9 -0
- package/dist/ui/navigation.js.map +1 -0
- package/dist/ui/primitives.d.ts +61 -0
- package/dist/ui/primitives.d.ts.map +1 -0
- package/dist/ui/primitives.js +74 -0
- package/dist/ui/primitives.js.map +1 -0
- package/dist/ui/record.d.ts +44 -0
- package/dist/ui/record.d.ts.map +1 -0
- package/dist/ui/record.js +39 -0
- package/dist/ui/record.js.map +1 -0
- package/dist/ui/schedule.d.ts +34 -0
- package/dist/ui/schedule.d.ts.map +1 -0
- package/dist/ui/schedule.js +39 -0
- package/dist/ui/schedule.js.map +1 -0
- package/dist/ui/state.d.ts +19 -0
- package/dist/ui/state.d.ts.map +1 -0
- package/dist/ui/state.js +34 -0
- package/dist/ui/state.js.map +1 -0
- package/dist/ui/surfaces.d.ts +38 -0
- package/dist/ui/surfaces.d.ts.map +1 -0
- package/dist/ui/surfaces.js +36 -0
- package/dist/ui/surfaces.js.map +1 -0
- package/dist/ui/table.d.ts +48 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +53 -0
- package/dist/ui/table.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,950 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { json, text } from '@ketvietlab/ketjs';
|
|
3
|
+
import { backendPage } from '../../ui/index.js';
|
|
4
|
+
import { errorsOf, readForm, seeOther } from '../backend/forms.js';
|
|
5
|
+
import { viewerOf } from '../backend/routes.js';
|
|
6
|
+
import { inventoryScreen } from './inventory-screen.js';
|
|
7
|
+
import { forecastScreen } from './forecast-screen.js';
|
|
8
|
+
import { locationsScreen } from './locations-screen.js';
|
|
9
|
+
import { lotDetailScreen } from './lot-screen.js';
|
|
10
|
+
import { lotsScreen } from './lots-screen.js';
|
|
11
|
+
import { pickingTypesScreen } from './picking-types-screen.js';
|
|
12
|
+
import { replenishmentScreen } from './replenishment-screen.js';
|
|
13
|
+
import { stockRouteDetailScreen } from './stock-route-screen.js';
|
|
14
|
+
import { stockRoutesScreen } from './stock-routes-screen.js';
|
|
15
|
+
import { transferDetailScreen } from './transfer-screen.js';
|
|
16
|
+
import { transfersScreen } from './transfers-screen.js';
|
|
17
|
+
import { warehousesScreen } from './warehouses-screen.js';
|
|
18
|
+
const frame = async (ctx, url, req) => ({
|
|
19
|
+
navigation: req.headers['x-ket-navigation'] === 'fragment-v1',
|
|
20
|
+
viewer: await viewerOf(ctx, url, req),
|
|
21
|
+
menu: await ctx.menu(url, req),
|
|
22
|
+
extras: {
|
|
23
|
+
'nav.items': await ctx.joint(url, req, 'backend:nav.items', { active: url.pathname }),
|
|
24
|
+
'topbar.end': await ctx.joint(url, req, 'backend:topbar.end'),
|
|
25
|
+
'sidebar.foot': req.headers['x-ket-navigation'] === 'fragment-v1'
|
|
26
|
+
? undefined
|
|
27
|
+
: await ctx.joint(url, req, 'backend:sidebar.foot', {
|
|
28
|
+
lang: ctx.localeOf(url, req),
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const options = (rows) => rows.map((row) => ({ value: String(row.id), label: String(row.name) }));
|
|
33
|
+
const selectionLabel = (_, group, value) => {
|
|
34
|
+
const raw = String(value);
|
|
35
|
+
const key = `stock_backend.${group}.${raw}`;
|
|
36
|
+
return _.resolves(key) ? _(key) : raw;
|
|
37
|
+
};
|
|
38
|
+
const localizedGeneratedRouteName = (_, row) => {
|
|
39
|
+
const raw = String(row.name);
|
|
40
|
+
const separator = raw.lastIndexOf(': ');
|
|
41
|
+
const suffix = separator >= 0 ? raw.slice(separator + 2) : '';
|
|
42
|
+
const group = String(row.id).endsWith(':receipt-route')
|
|
43
|
+
? 'receptionSteps'
|
|
44
|
+
: String(row.id).endsWith(':delivery-route')
|
|
45
|
+
? 'deliverySteps'
|
|
46
|
+
: '';
|
|
47
|
+
const generated = (group === 'receptionSteps' && ['one_step', 'two_steps', 'three_steps'].includes(suffix)) ||
|
|
48
|
+
(group === 'deliverySteps' && ['ship_only', 'pick_ship', 'pick_pack_ship'].includes(suffix));
|
|
49
|
+
return generated ? `${raw.slice(0, separator)}: ${selectionLabel(_, group, suffix)}` : raw;
|
|
50
|
+
};
|
|
51
|
+
const localizedGeneratedRuleName = (_, row) => {
|
|
52
|
+
const parts = String(row.id).split(':');
|
|
53
|
+
const flow = parts.at(-2);
|
|
54
|
+
const suffix = parts.at(-1) ?? '';
|
|
55
|
+
const group = flow === 'receipt' ? 'record.receiptRule' : flow === 'delivery' ? 'record.deliveryRule' : '';
|
|
56
|
+
const key = group ? `stock_backend.${group}.${suffix}` : '';
|
|
57
|
+
return key && _.resolves(key) ? _(key) : String(row.name);
|
|
58
|
+
};
|
|
59
|
+
const completeLocationName = (row, nameById) => String(row.parentPath)
|
|
60
|
+
.split('/')
|
|
61
|
+
.filter(Boolean)
|
|
62
|
+
.map((id) => nameById.get(id) ?? id)
|
|
63
|
+
.join(' / ');
|
|
64
|
+
const generatedNames = {
|
|
65
|
+
stock: 'Stock',
|
|
66
|
+
input: 'Input',
|
|
67
|
+
quality: 'Quality',
|
|
68
|
+
output: 'Output',
|
|
69
|
+
pick: 'Pick',
|
|
70
|
+
pack: 'Pack',
|
|
71
|
+
supplier: 'Supplier',
|
|
72
|
+
customer: 'Customer',
|
|
73
|
+
};
|
|
74
|
+
const localizeGeneratedRecords = (_, rows, group) => rows.map((row) => {
|
|
75
|
+
if (group === 'pickingType') {
|
|
76
|
+
const suffix = String(row.id).split(':').at(-1) ?? '';
|
|
77
|
+
const defaults = {
|
|
78
|
+
incoming: 'Receipts',
|
|
79
|
+
outgoing: 'Delivery Orders',
|
|
80
|
+
internal: 'Internal Transfers',
|
|
81
|
+
quality: 'Quality Control',
|
|
82
|
+
store: 'Store',
|
|
83
|
+
pick: 'Pick',
|
|
84
|
+
pack: 'Pack',
|
|
85
|
+
adjustment: 'Inventory Adjustments',
|
|
86
|
+
};
|
|
87
|
+
return defaults[suffix] === row.name
|
|
88
|
+
? { ...row, name: selectionLabel(_, 'record.pickingType', suffix) }
|
|
89
|
+
: row;
|
|
90
|
+
}
|
|
91
|
+
const suffix = String(row.id).split(':').at(-1) ?? '';
|
|
92
|
+
return generatedNames[suffix] === row.name
|
|
93
|
+
? { ...row, name: selectionLabel(_, 'record.location', suffix) }
|
|
94
|
+
: row;
|
|
95
|
+
});
|
|
96
|
+
const invalid = (url, _) => url.searchParams.has('invalid') ? [_('stock_backend.error.invalid')] : undefined;
|
|
97
|
+
const resultRedirect = (result, success) => result.ok
|
|
98
|
+
? seeOther(success)
|
|
99
|
+
: seeOther(`${success}${success.includes('?') ? '&' : '?'}invalid=1`);
|
|
100
|
+
const isStockPartial = (req) => req.headers['x-ket-partial'] === 'stock-transfer';
|
|
101
|
+
const dateTimeLabel = (value, lang) => {
|
|
102
|
+
const raw = String(value ?? '');
|
|
103
|
+
if (!raw)
|
|
104
|
+
return '';
|
|
105
|
+
const date = new Date(raw);
|
|
106
|
+
return Number.isNaN(date.getTime())
|
|
107
|
+
? raw
|
|
108
|
+
: new Intl.DateTimeFormat(lang === 'vi' ? 'vi-VN' : 'en-US', {
|
|
109
|
+
dateStyle: 'short',
|
|
110
|
+
timeStyle: 'short',
|
|
111
|
+
}).format(date);
|
|
112
|
+
};
|
|
113
|
+
const inLocale = (url, path) => {
|
|
114
|
+
const target = new URL(path, 'http://ket.local');
|
|
115
|
+
const lang = url.searchParams.get('lang');
|
|
116
|
+
if (lang)
|
|
117
|
+
target.searchParams.set('lang', lang);
|
|
118
|
+
return `${target.pathname}${target.search}`;
|
|
119
|
+
};
|
|
120
|
+
const common = async (ctx, url, req) => {
|
|
121
|
+
const _ = ctx.translate(ctx.localeOf(url, req));
|
|
122
|
+
const [warehouses, locations, pickingTypes, lots, routes, units] = (await Promise.all([
|
|
123
|
+
ctx.call('stock.listWarehouses', {}, url, req),
|
|
124
|
+
ctx.call('stock.listLocations', {}, url, req),
|
|
125
|
+
ctx.call('stock.listPickingTypes', {}, url, req),
|
|
126
|
+
ctx.call('stock.listLots', {}, url, req),
|
|
127
|
+
ctx.call('stock.listRoutes', {}, url, req),
|
|
128
|
+
ctx.call('uom.listUnits', {}, url, req),
|
|
129
|
+
]));
|
|
130
|
+
return {
|
|
131
|
+
warehouses,
|
|
132
|
+
locations: localizeGeneratedRecords(_, locations, 'location'),
|
|
133
|
+
pickingTypes: localizeGeneratedRecords(_, pickingTypes, 'pickingType'),
|
|
134
|
+
lots,
|
|
135
|
+
routes,
|
|
136
|
+
units,
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export const routes = {
|
|
140
|
+
'/admin/inventory': (ctx) => async (url, req) => {
|
|
141
|
+
const lang = ctx.localeOf(url, req);
|
|
142
|
+
const _ = ctx.translate(lang);
|
|
143
|
+
if (req.method === 'POST') {
|
|
144
|
+
const form = await readForm(req);
|
|
145
|
+
const result = await ctx.call('stock.adjustInventory', {
|
|
146
|
+
id: randomUUID(),
|
|
147
|
+
productId: form.productId ?? '',
|
|
148
|
+
locationId: form.locationId ?? '',
|
|
149
|
+
inventoryLocationId: form.inventoryLocationId ?? '',
|
|
150
|
+
countedQuantity: form.countedQuantity || '0',
|
|
151
|
+
productUomId: form.productUomId ?? '',
|
|
152
|
+
...(form.lotId ? { lotId: form.lotId } : {}),
|
|
153
|
+
}, url, req);
|
|
154
|
+
return result.ok
|
|
155
|
+
? seeOther(inLocale(url, '/admin/inventory?applied=1'))
|
|
156
|
+
: seeOther(inLocale(url, '/admin/inventory?invalid=1'));
|
|
157
|
+
}
|
|
158
|
+
if (req.method !== 'GET')
|
|
159
|
+
return text('GET or POST', { status: 405 });
|
|
160
|
+
const [quants, data, templates] = (await Promise.all([
|
|
161
|
+
ctx.call('stock.listQuants', {}, url, req),
|
|
162
|
+
common(ctx, url, req),
|
|
163
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
164
|
+
]));
|
|
165
|
+
const products = templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
166
|
+
.filter((variant) => variant.active !== false)
|
|
167
|
+
.map((variant) => ({
|
|
168
|
+
value: String(variant.id),
|
|
169
|
+
name: String(template.name),
|
|
170
|
+
label: variant.defaultCode
|
|
171
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
172
|
+
: String(template.name),
|
|
173
|
+
reference: String(variant.defaultCode ?? ''),
|
|
174
|
+
})));
|
|
175
|
+
const productById = new Map(products.map((product) => [product.value, product]));
|
|
176
|
+
const locationById = new Map(data.locations.map((location) => [String(location.id), location]));
|
|
177
|
+
const lotById = new Map(data.lots.map((lot) => [String(lot.id), lot]));
|
|
178
|
+
const rows = quants
|
|
179
|
+
.filter((quant) => ['internal', 'transit'].includes(String(locationById.get(String(quant.locationId))?.usage)))
|
|
180
|
+
.map((quant) => {
|
|
181
|
+
const product = productById.get(String(quant.productId));
|
|
182
|
+
const quantity = String(quant.quantity);
|
|
183
|
+
const reserved = String(quant.reservedQuantity);
|
|
184
|
+
return {
|
|
185
|
+
id: String(quant.id),
|
|
186
|
+
product: product?.name ?? String(quant.productId),
|
|
187
|
+
reference: product?.reference ?? '',
|
|
188
|
+
location: String(locationById.get(String(quant.locationId))?.name ?? quant.locationId),
|
|
189
|
+
lot: String(lotById.get(String(quant.lotId))?.name ?? ''),
|
|
190
|
+
quantity,
|
|
191
|
+
reserved,
|
|
192
|
+
available: String(Number(quantity) - Number(reserved)),
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
return backendPage(ctx, req, {
|
|
196
|
+
lang,
|
|
197
|
+
title: _('stock_backend.inventory'),
|
|
198
|
+
body: inventoryScreen(_, {
|
|
199
|
+
rows,
|
|
200
|
+
products: products.map(({ value, label }) => ({ value, label })),
|
|
201
|
+
locations: options(data.locations.filter((row) => row.usage === 'internal')),
|
|
202
|
+
inventoryLocations: options(data.locations.filter((row) => row.usage === 'inventory')),
|
|
203
|
+
units: options(data.units),
|
|
204
|
+
lots: options(data.lots),
|
|
205
|
+
action: inLocale(url, '/admin/inventory'),
|
|
206
|
+
locationsHref: inLocale(url, '/admin/locations'),
|
|
207
|
+
applied: url.searchParams.has('applied'),
|
|
208
|
+
errors: invalid(url, _),
|
|
209
|
+
}, await frame(ctx, url, req)),
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
'/admin/transfers': (ctx) => async (url, req) => {
|
|
213
|
+
const lang = ctx.localeOf(url, req);
|
|
214
|
+
const _ = ctx.translate(lang);
|
|
215
|
+
if (req.method === 'POST') {
|
|
216
|
+
const form = await readForm(req);
|
|
217
|
+
const id = randomUUID();
|
|
218
|
+
const result = await ctx.call('stock.createPicking', {
|
|
219
|
+
id,
|
|
220
|
+
name: form.name || id,
|
|
221
|
+
pickingTypeId: form.pickingTypeId ?? '',
|
|
222
|
+
...(form.scheduledDate ? { scheduledDate: form.scheduledDate } : {}),
|
|
223
|
+
}, url, req);
|
|
224
|
+
return result.ok
|
|
225
|
+
? seeOther(inLocale(url, `/admin/transfers/${id}`))
|
|
226
|
+
: seeOther(inLocale(url, '/admin/transfers?invalid=1'));
|
|
227
|
+
}
|
|
228
|
+
if (req.method !== 'GET')
|
|
229
|
+
return text('GET or POST', { status: 405 });
|
|
230
|
+
const [pickings, data] = (await Promise.all([
|
|
231
|
+
ctx.call('stock.listPickings', {}, url, req),
|
|
232
|
+
common(ctx, url, req),
|
|
233
|
+
]));
|
|
234
|
+
const locationsById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
235
|
+
const pickingTypesById = new Map(data.pickingTypes.map((row) => [String(row.id), String(row.name)]));
|
|
236
|
+
return backendPage(ctx, req, {
|
|
237
|
+
lang,
|
|
238
|
+
title: _('stock_backend.transfers'),
|
|
239
|
+
body: transfersScreen(_, {
|
|
240
|
+
rows: pickings.map((row) => ({
|
|
241
|
+
id: String(row.id),
|
|
242
|
+
name: String(row.name),
|
|
243
|
+
operationType: pickingTypesById.get(String(row.pickingTypeId)) ?? String(row.pickingTypeId),
|
|
244
|
+
source: locationsById.get(String(row.locationId)) ?? String(row.locationId),
|
|
245
|
+
destination: locationsById.get(String(row.locationDestId)) ?? String(row.locationDestId),
|
|
246
|
+
scheduledDate: dateTimeLabel(row.scheduledDate, lang),
|
|
247
|
+
state: String(row.state),
|
|
248
|
+
href: inLocale(url, `/admin/transfers/${String(row.id)}`),
|
|
249
|
+
})),
|
|
250
|
+
pickingTypes: options(data.pickingTypes),
|
|
251
|
+
action: inLocale(url, '/admin/transfers'),
|
|
252
|
+
errors: invalid(url, _),
|
|
253
|
+
}, await frame(ctx, url, req)),
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
'/admin/transfers/{id}': (ctx) => async (url, req, params) => {
|
|
257
|
+
const here = `${url.pathname}${url.search}`;
|
|
258
|
+
const lang = ctx.localeOf(url, req);
|
|
259
|
+
const _ = ctx.translate(lang);
|
|
260
|
+
let current = (await ctx.call('stock.getPicking', { id: params.id }, url, req));
|
|
261
|
+
if (!current)
|
|
262
|
+
return text('Transfer not found', { status: 404 });
|
|
263
|
+
let moves = Array.isArray(current.moves) ? current.moves : [];
|
|
264
|
+
let savedPartial = false;
|
|
265
|
+
if (req.method === 'POST') {
|
|
266
|
+
const partial = isStockPartial(req);
|
|
267
|
+
const form = await readForm(req);
|
|
268
|
+
let result;
|
|
269
|
+
if (form.action === 'add-move')
|
|
270
|
+
result = await ctx.call('stock.addMove', {
|
|
271
|
+
id: randomUUID(),
|
|
272
|
+
name: form.name || form.productId || '',
|
|
273
|
+
pickingId: params.id,
|
|
274
|
+
productId: form.productId ?? '',
|
|
275
|
+
productUomId: form.productUomId ?? '',
|
|
276
|
+
productUomQty: form.productUomQty || '0',
|
|
277
|
+
}, url, req);
|
|
278
|
+
else if (form.action === 'confirm')
|
|
279
|
+
result = await ctx.call('stock.confirmPicking', { id: params.id }, url, req);
|
|
280
|
+
else if (form.action === 'assign')
|
|
281
|
+
result = await ctx.call('stock.assignPicking', { id: params.id }, url, req);
|
|
282
|
+
else if (form.action === 'pick') {
|
|
283
|
+
const operationId = String(form.operationId ?? '');
|
|
284
|
+
const existingLine = moves
|
|
285
|
+
.flatMap((move) => (Array.isArray(move.lines) ? move.lines : []))
|
|
286
|
+
.find((line) => `line:${String(line.id)}` === operationId);
|
|
287
|
+
const move = existingLine
|
|
288
|
+
? moves.find((candidate) => candidate.id === existingLine.moveId)
|
|
289
|
+
: moves.find((candidate) => `move:${String(candidate.id)}` === operationId);
|
|
290
|
+
result = move
|
|
291
|
+
? await ctx.call('stock.saveMoveLine', {
|
|
292
|
+
id: existingLine?.id ?? randomUUID(),
|
|
293
|
+
moveId: move.id,
|
|
294
|
+
quantity: form.quantity || existingLine?.quantity || '0',
|
|
295
|
+
picked: true,
|
|
296
|
+
...(form.lotId || existingLine?.lotId ? { lotId: form.lotId || existingLine?.lotId } : {}),
|
|
297
|
+
}, url, req)
|
|
298
|
+
: { ok: false };
|
|
299
|
+
}
|
|
300
|
+
else if (form.action === 'validate')
|
|
301
|
+
result = await ctx.call('stock.validatePicking', { id: params.id, ...(form.backorder ? { backorder: form.backorder } : {}) }, url, req);
|
|
302
|
+
else if (form.action === 'cancel')
|
|
303
|
+
result = await ctx.call('stock.cancelPicking', { id: params.id }, url, req);
|
|
304
|
+
else
|
|
305
|
+
return text('Unknown transfer action', { status: 400 });
|
|
306
|
+
if (!result.ok) {
|
|
307
|
+
if (partial)
|
|
308
|
+
return json({ ok: false, message: _('stock_backend.error.invalid'), errors: errorsOf(result) }, { status: 422 });
|
|
309
|
+
return resultRedirect(result, here);
|
|
310
|
+
}
|
|
311
|
+
if (!partial)
|
|
312
|
+
return seeOther(here);
|
|
313
|
+
savedPartial = true;
|
|
314
|
+
current = (await ctx.call('stock.getPicking', { id: params.id }, url, req));
|
|
315
|
+
if (!current)
|
|
316
|
+
return text('Transfer not found', { status: 404 });
|
|
317
|
+
moves = Array.isArray(current.moves) ? current.moves : [];
|
|
318
|
+
}
|
|
319
|
+
if (req.method !== 'GET' && !savedPartial)
|
|
320
|
+
return text('GET or POST', { status: 405 });
|
|
321
|
+
const [data, templates] = await Promise.all([
|
|
322
|
+
common(ctx, url, req),
|
|
323
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
324
|
+
]);
|
|
325
|
+
const products = templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
326
|
+
.filter((variant) => variant.active !== false)
|
|
327
|
+
.map((variant) => ({
|
|
328
|
+
value: String(variant.id),
|
|
329
|
+
label: variant.defaultCode
|
|
330
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
331
|
+
: String(template.name),
|
|
332
|
+
})));
|
|
333
|
+
const operationOptions = moves.flatMap((move) => {
|
|
334
|
+
const lines = Array.isArray(move.lines) ? move.lines : [];
|
|
335
|
+
return lines.length
|
|
336
|
+
? lines.map((line) => ({
|
|
337
|
+
value: `line:${String(line.id)}`,
|
|
338
|
+
label: `${String(move.name)} · ${String(line.lotId ?? '—')} · ${String(line.quantity)}`,
|
|
339
|
+
}))
|
|
340
|
+
: [{ value: `move:${String(move.id)}`, label: String(move.name) }];
|
|
341
|
+
});
|
|
342
|
+
const pickingType = data.pickingTypes.find((row) => row.id === current.pickingTypeId);
|
|
343
|
+
const backorderPolicy = String(pickingType?.createBackorder ?? 'ask');
|
|
344
|
+
const state = String(current.state);
|
|
345
|
+
const moveRows = moves.flatMap((move) => [
|
|
346
|
+
{
|
|
347
|
+
id: String(move.id),
|
|
348
|
+
name: String(move.name),
|
|
349
|
+
kind: 'move',
|
|
350
|
+
state: String(move.state),
|
|
351
|
+
detail: `${String(move.quantity)} / ${String(move.productUomQty)} ${String(move.productUomId)}`,
|
|
352
|
+
},
|
|
353
|
+
...(Array.isArray(move.lines) ? move.lines : []).map((line) => ({
|
|
354
|
+
id: String(line.id),
|
|
355
|
+
name: `${String(move.name)} · ${String(line.lotId ?? '—')}`,
|
|
356
|
+
kind: 'move-line',
|
|
357
|
+
state: line.picked ? 'done' : 'reserved',
|
|
358
|
+
detail: `${String(line.quantity)} ${String(line.productUomId)}`,
|
|
359
|
+
})),
|
|
360
|
+
]);
|
|
361
|
+
return backendPage(ctx, req, {
|
|
362
|
+
lang,
|
|
363
|
+
title: _('stock_backend.transferDetail'),
|
|
364
|
+
body: transferDetailScreen(_, {
|
|
365
|
+
transfer: {
|
|
366
|
+
id: String(current.id),
|
|
367
|
+
name: String(current.name),
|
|
368
|
+
state,
|
|
369
|
+
scheduledDate: dateTimeLabel(current.scheduledDate, lang),
|
|
370
|
+
pickingTypeName: String(pickingType?.name ?? current.pickingTypeId ?? ''),
|
|
371
|
+
},
|
|
372
|
+
rows: moveRows,
|
|
373
|
+
products,
|
|
374
|
+
units: options(data.units),
|
|
375
|
+
lots: options(data.lots),
|
|
376
|
+
operationOptions,
|
|
377
|
+
backorderPolicy,
|
|
378
|
+
action: here,
|
|
379
|
+
collaboration: await ctx.joint(url, req, 'stock_backend:picking.collaboration', {
|
|
380
|
+
resModel: 'stock.Picking',
|
|
381
|
+
resId: String(current.id),
|
|
382
|
+
lang,
|
|
383
|
+
}),
|
|
384
|
+
editor: await ctx.joint(url, req, 'stock_backend:picking.editor', {
|
|
385
|
+
identity: `picking:${String(current.id)}`,
|
|
386
|
+
pickingId: String(current.id),
|
|
387
|
+
lang,
|
|
388
|
+
}),
|
|
389
|
+
errors: invalid(url, _),
|
|
390
|
+
}, await frame(ctx, url, req)),
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
'/admin/warehouses': (ctx) => async (url, req) => {
|
|
394
|
+
const lang = ctx.localeOf(url, req);
|
|
395
|
+
const _ = ctx.translate(lang);
|
|
396
|
+
if (req.method === 'POST') {
|
|
397
|
+
const form = await readForm(req);
|
|
398
|
+
const result = await ctx.call('stock.saveWarehouse', {
|
|
399
|
+
id: randomUUID(),
|
|
400
|
+
name: form.name ?? '',
|
|
401
|
+
code: form.code ?? '',
|
|
402
|
+
receptionSteps: form.receptionSteps || 'one_step',
|
|
403
|
+
deliverySteps: form.deliverySteps || 'ship_only',
|
|
404
|
+
}, url, req);
|
|
405
|
+
return resultRedirect(result, inLocale(url, '/admin/warehouses'));
|
|
406
|
+
}
|
|
407
|
+
if (req.method !== 'GET')
|
|
408
|
+
return text('GET or POST', { status: 405 });
|
|
409
|
+
const rows = (await ctx.call('stock.listWarehouses', {}, url, req));
|
|
410
|
+
return backendPage(ctx, req, {
|
|
411
|
+
lang,
|
|
412
|
+
title: _('stock_backend.warehouses'),
|
|
413
|
+
body: warehousesScreen(_, {
|
|
414
|
+
rows: rows.map((row) => ({
|
|
415
|
+
id: String(row.id),
|
|
416
|
+
name: String(row.name),
|
|
417
|
+
code: String(row.code),
|
|
418
|
+
receptionSteps: String(row.receptionSteps),
|
|
419
|
+
deliverySteps: String(row.deliverySteps),
|
|
420
|
+
})),
|
|
421
|
+
action: inLocale(url, '/admin/warehouses'),
|
|
422
|
+
errors: invalid(url, _),
|
|
423
|
+
}, await frame(ctx, url, req)),
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
'/admin/locations': (ctx) => async (url, req) => {
|
|
427
|
+
const lang = ctx.localeOf(url, req);
|
|
428
|
+
const _ = ctx.translate(lang);
|
|
429
|
+
if (req.method === 'POST') {
|
|
430
|
+
const form = await readForm(req);
|
|
431
|
+
const result = await ctx.call('stock.saveLocation', {
|
|
432
|
+
id: randomUUID(),
|
|
433
|
+
name: form.name ?? '',
|
|
434
|
+
usage: form.usage || 'internal',
|
|
435
|
+
...(form.parentId ? { parentId: form.parentId } : {}),
|
|
436
|
+
...(form.warehouseId ? { warehouseId: form.warehouseId } : {}),
|
|
437
|
+
}, url, req);
|
|
438
|
+
return resultRedirect(result, inLocale(url, '/admin/locations'));
|
|
439
|
+
}
|
|
440
|
+
if (req.method !== 'GET')
|
|
441
|
+
return text('GET or POST', { status: 405 });
|
|
442
|
+
const data = await common(ctx, url, req);
|
|
443
|
+
const nameById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
444
|
+
const warehouseById = new Map(data.warehouses.map((row) => [String(row.id), String(row.name)]));
|
|
445
|
+
return backendPage(ctx, req, {
|
|
446
|
+
lang,
|
|
447
|
+
title: _('stock_backend.locations'),
|
|
448
|
+
body: locationsScreen(_, {
|
|
449
|
+
rows: data.locations.map((row) => ({
|
|
450
|
+
id: String(row.id),
|
|
451
|
+
completeName: completeLocationName(row, nameById),
|
|
452
|
+
usage: String(row.usage),
|
|
453
|
+
warehouse: warehouseById.get(String(row.warehouseId)) ?? '',
|
|
454
|
+
})),
|
|
455
|
+
warehouses: options(data.warehouses),
|
|
456
|
+
parents: data.locations.map((row) => ({
|
|
457
|
+
value: String(row.id),
|
|
458
|
+
label: completeLocationName(row, nameById),
|
|
459
|
+
})),
|
|
460
|
+
action: inLocale(url, '/admin/locations'),
|
|
461
|
+
errors: invalid(url, _),
|
|
462
|
+
}, await frame(ctx, url, req)),
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
'/admin/picking-types': (ctx) => async (url, req) => {
|
|
466
|
+
const lang = ctx.localeOf(url, req);
|
|
467
|
+
const _ = ctx.translate(lang);
|
|
468
|
+
if (req.method === 'POST') {
|
|
469
|
+
const form = await readForm(req);
|
|
470
|
+
const result = await ctx.call('stock.savePickingType', {
|
|
471
|
+
id: randomUUID(),
|
|
472
|
+
name: form.name ?? '',
|
|
473
|
+
code: form.code || 'internal',
|
|
474
|
+
...(form.warehouseId ? { warehouseId: form.warehouseId } : {}),
|
|
475
|
+
...(form.defaultLocationSrcId ? { defaultLocationSrcId: form.defaultLocationSrcId } : {}),
|
|
476
|
+
...(form.defaultLocationDestId ? { defaultLocationDestId: form.defaultLocationDestId } : {}),
|
|
477
|
+
createBackorder: form.createBackorder || 'ask',
|
|
478
|
+
}, url, req);
|
|
479
|
+
return resultRedirect(result, inLocale(url, '/admin/picking-types'));
|
|
480
|
+
}
|
|
481
|
+
if (req.method !== 'GET')
|
|
482
|
+
return text('GET or POST', { status: 405 });
|
|
483
|
+
const data = await common(ctx, url, req);
|
|
484
|
+
const rawLocationNameById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
485
|
+
const completeLocationNameById = new Map(data.locations.map((row) => [String(row.id), completeLocationName(row, rawLocationNameById)]));
|
|
486
|
+
const warehouseById = new Map(data.warehouses.map((row) => [String(row.id), String(row.name)]));
|
|
487
|
+
return backendPage(ctx, req, {
|
|
488
|
+
lang,
|
|
489
|
+
title: _('stock_backend.pickingTypes'),
|
|
490
|
+
body: pickingTypesScreen(_, {
|
|
491
|
+
rows: data.pickingTypes.map((row) => ({
|
|
492
|
+
id: String(row.id),
|
|
493
|
+
name: String(row.name),
|
|
494
|
+
code: String(row.code),
|
|
495
|
+
warehouse: warehouseById.get(String(row.warehouseId)) ?? '',
|
|
496
|
+
source: completeLocationNameById.get(String(row.defaultLocationSrcId)) ?? '',
|
|
497
|
+
destination: completeLocationNameById.get(String(row.defaultLocationDestId)) ?? '',
|
|
498
|
+
createBackorder: String(row.createBackorder ?? 'ask'),
|
|
499
|
+
})),
|
|
500
|
+
warehouses: options(data.warehouses),
|
|
501
|
+
locations: data.locations.map((row) => ({
|
|
502
|
+
value: String(row.id),
|
|
503
|
+
label: completeLocationNameById.get(String(row.id)) ?? String(row.name),
|
|
504
|
+
})),
|
|
505
|
+
action: inLocale(url, '/admin/picking-types'),
|
|
506
|
+
errors: invalid(url, _),
|
|
507
|
+
}, await frame(ctx, url, req)),
|
|
508
|
+
});
|
|
509
|
+
},
|
|
510
|
+
'/admin/lots': (ctx) => async (url, req) => {
|
|
511
|
+
const lang = ctx.localeOf(url, req);
|
|
512
|
+
const _ = ctx.translate(lang);
|
|
513
|
+
if (req.method === 'POST') {
|
|
514
|
+
const form = await readForm(req);
|
|
515
|
+
const result = await ctx.call('stock.createLot', {
|
|
516
|
+
id: randomUUID(),
|
|
517
|
+
productId: form.productId ?? '',
|
|
518
|
+
name: form.name ?? '',
|
|
519
|
+
ref: form.ref || null,
|
|
520
|
+
note: form.note || null,
|
|
521
|
+
}, url, req);
|
|
522
|
+
return resultRedirect(result, inLocale(url, '/admin/lots'));
|
|
523
|
+
}
|
|
524
|
+
if (req.method !== 'GET')
|
|
525
|
+
return text('GET or POST', { status: 405 });
|
|
526
|
+
const [lots, products, locations, quants] = (await Promise.all([
|
|
527
|
+
ctx.call('stock.listLots', {}, url, req),
|
|
528
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
529
|
+
ctx.call('stock.listLocations', {}, url, req),
|
|
530
|
+
ctx.call('stock.listQuants', {}, url, req),
|
|
531
|
+
]));
|
|
532
|
+
const productOptions = products.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
533
|
+
.filter((variant) => variant.active !== false)
|
|
534
|
+
.map((variant) => ({
|
|
535
|
+
value: String(variant.id),
|
|
536
|
+
label: variant.defaultCode
|
|
537
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
538
|
+
: String(template.name),
|
|
539
|
+
})));
|
|
540
|
+
const productById = new Map(productOptions.map((product) => [product.value, product.label]));
|
|
541
|
+
const stockLocationIds = new Set(locations
|
|
542
|
+
.filter((location) => ['internal', 'transit'].includes(String(location.usage)))
|
|
543
|
+
.map((location) => String(location.id)));
|
|
544
|
+
const onHandByLot = new Map();
|
|
545
|
+
for (const quant of quants) {
|
|
546
|
+
const lotId = String(quant.lotId ?? '');
|
|
547
|
+
if (!lotId || !stockLocationIds.has(String(quant.locationId)))
|
|
548
|
+
continue;
|
|
549
|
+
onHandByLot.set(lotId, (onHandByLot.get(lotId) ?? 0) + Number(quant.quantity ?? 0));
|
|
550
|
+
}
|
|
551
|
+
const number = new Intl.NumberFormat(lang === 'vi' ? 'vi-VN' : 'en-US', {
|
|
552
|
+
maximumFractionDigits: 6,
|
|
553
|
+
});
|
|
554
|
+
return backendPage(ctx, req, {
|
|
555
|
+
lang,
|
|
556
|
+
title: _('stock_backend.lots'),
|
|
557
|
+
body: lotsScreen(_, {
|
|
558
|
+
rows: lots.map((row) => ({
|
|
559
|
+
id: String(row.id),
|
|
560
|
+
name: String(row.name),
|
|
561
|
+
product: productById.get(String(row.productId)) ?? String(row.productId),
|
|
562
|
+
reference: String(row.ref ?? ''),
|
|
563
|
+
onHand: number.format(onHandByLot.get(String(row.id)) ?? 0),
|
|
564
|
+
onHandValue: onHandByLot.get(String(row.id)) ?? 0,
|
|
565
|
+
active: row.active !== false,
|
|
566
|
+
href: inLocale(url, `/admin/lots/${String(row.id)}`),
|
|
567
|
+
})),
|
|
568
|
+
products: productOptions,
|
|
569
|
+
action: inLocale(url, '/admin/lots'),
|
|
570
|
+
errors: invalid(url, _),
|
|
571
|
+
}, await frame(ctx, url, req)),
|
|
572
|
+
});
|
|
573
|
+
},
|
|
574
|
+
'/admin/lots/{id}': (ctx) => async (url, req, params) => {
|
|
575
|
+
const lang = ctx.localeOf(url, req);
|
|
576
|
+
const _ = ctx.translate(lang);
|
|
577
|
+
const here = inLocale(url, `/admin/lots/${params.id}`);
|
|
578
|
+
if (req.method !== 'GET' && req.method !== 'POST')
|
|
579
|
+
return text('GET or POST', { status: 405 });
|
|
580
|
+
const lots = (await ctx.call('stock.listLots', {}, url, req));
|
|
581
|
+
let current = lots.find((row) => String(row.id) === params.id);
|
|
582
|
+
if (!current)
|
|
583
|
+
return text(_('stock_backend.lot.error.notFound'), { status: 404 });
|
|
584
|
+
if (req.method === 'POST') {
|
|
585
|
+
const partial = req.headers['x-ket-partial'] === 'stock-lot';
|
|
586
|
+
const form = await readForm(req);
|
|
587
|
+
const values = {
|
|
588
|
+
productId: form.productId ?? '',
|
|
589
|
+
name: form.name ?? '',
|
|
590
|
+
ref: form.ref || null,
|
|
591
|
+
note: form.note || null,
|
|
592
|
+
};
|
|
593
|
+
const result = await ctx.call('stock.saveLot', {
|
|
594
|
+
id: params.id,
|
|
595
|
+
...values,
|
|
596
|
+
}, url, req);
|
|
597
|
+
if (!result.ok) {
|
|
598
|
+
if (partial)
|
|
599
|
+
return json({ ok: false, message: _('stock_backend.error.invalid'), errors: errorsOf(result) }, { status: 422 });
|
|
600
|
+
return seeOther(`${here}${here.includes('?') ? '&' : '?'}invalid=1`);
|
|
601
|
+
}
|
|
602
|
+
if (!partial)
|
|
603
|
+
return seeOther(here);
|
|
604
|
+
current = { ...current, ...values };
|
|
605
|
+
}
|
|
606
|
+
const [products, rawLocations, quants] = (await Promise.all([
|
|
607
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
608
|
+
ctx.call('stock.listLocations', {}, url, req),
|
|
609
|
+
ctx.call('stock.listQuants', { productId: String(current.productId) }, url, req),
|
|
610
|
+
]));
|
|
611
|
+
const locations = localizeGeneratedRecords(_, rawLocations, 'location');
|
|
612
|
+
const listedProductOptions = products.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
613
|
+
.filter((variant) => variant.active !== false)
|
|
614
|
+
.map((variant) => ({
|
|
615
|
+
value: String(variant.id),
|
|
616
|
+
label: variant.defaultCode
|
|
617
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
618
|
+
: String(template.name),
|
|
619
|
+
})));
|
|
620
|
+
const productOptions = listedProductOptions.some((product) => product.value === String(current.productId))
|
|
621
|
+
? listedProductOptions
|
|
622
|
+
: [{ value: String(current.productId), label: String(current.productId) }, ...listedProductOptions];
|
|
623
|
+
const productLabel = productOptions.find((product) => product.value === String(current.productId))?.label ??
|
|
624
|
+
String(current.productId);
|
|
625
|
+
const rawLocationNameById = new Map(locations.map((location) => [String(location.id), String(location.name)]));
|
|
626
|
+
const locationById = new Map(locations.map((location) => [String(location.id), location]));
|
|
627
|
+
const locationNameById = new Map(locations.map((location) => [
|
|
628
|
+
String(location.id),
|
|
629
|
+
completeLocationName(location, rawLocationNameById),
|
|
630
|
+
]));
|
|
631
|
+
const inventoryRows = quants
|
|
632
|
+
.filter((quant) => String(quant.lotId ?? '') === params.id)
|
|
633
|
+
.map((quant) => {
|
|
634
|
+
const quantity = String(quant.quantity);
|
|
635
|
+
const reserved = String(quant.reservedQuantity);
|
|
636
|
+
return {
|
|
637
|
+
id: String(quant.id),
|
|
638
|
+
location: locationNameById.get(String(quant.locationId)) ?? String(quant.locationId),
|
|
639
|
+
quantity,
|
|
640
|
+
reserved,
|
|
641
|
+
available: String(Number(quantity) - Number(reserved)),
|
|
642
|
+
countsAsOnHand: ['internal', 'transit'].includes(String(locationById.get(String(quant.locationId))?.usage)),
|
|
643
|
+
};
|
|
644
|
+
});
|
|
645
|
+
const body = lotDetailScreen(_, {
|
|
646
|
+
lot: {
|
|
647
|
+
id: String(current.id),
|
|
648
|
+
name: String(current.name),
|
|
649
|
+
productId: String(current.productId),
|
|
650
|
+
productLabel,
|
|
651
|
+
ref: String(current.ref ?? ''),
|
|
652
|
+
note: String(current.note ?? ''),
|
|
653
|
+
active: current.active !== false,
|
|
654
|
+
},
|
|
655
|
+
rows: inventoryRows,
|
|
656
|
+
products: productOptions,
|
|
657
|
+
action: here,
|
|
658
|
+
collaboration: await ctx.joint(url, req, 'stock_backend:lot.collaboration', {
|
|
659
|
+
resModel: 'stock.Lot',
|
|
660
|
+
resId: String(current.id),
|
|
661
|
+
lang,
|
|
662
|
+
}),
|
|
663
|
+
editor: await ctx.joint(url, req, 'stock_backend:lot.editor', {
|
|
664
|
+
identity: `lot:${String(current.id)}`,
|
|
665
|
+
lotId: String(current.id),
|
|
666
|
+
lang,
|
|
667
|
+
}),
|
|
668
|
+
errors: invalid(url, _),
|
|
669
|
+
}, await frame(ctx, url, req));
|
|
670
|
+
return backendPage(ctx, req, {
|
|
671
|
+
lang,
|
|
672
|
+
title: String(current.name),
|
|
673
|
+
body,
|
|
674
|
+
});
|
|
675
|
+
},
|
|
676
|
+
'/admin/stock-routes': (ctx) => async (url, req) => {
|
|
677
|
+
const lang = ctx.localeOf(url, req);
|
|
678
|
+
const _ = ctx.translate(lang);
|
|
679
|
+
if (req.method === 'POST') {
|
|
680
|
+
const form = await readForm(req);
|
|
681
|
+
const id = randomUUID();
|
|
682
|
+
const result = await ctx.call('stock.saveRoute', { id, name: form.name ?? '', sequence: Number(form.sequence || 10) }, url, req);
|
|
683
|
+
return result.ok
|
|
684
|
+
? seeOther(inLocale(url, `/admin/stock-routes/${id}`))
|
|
685
|
+
: seeOther(inLocale(url, '/admin/stock-routes?invalid=1'));
|
|
686
|
+
}
|
|
687
|
+
if (req.method !== 'GET')
|
|
688
|
+
return text('GET or POST', { status: 405 });
|
|
689
|
+
const [rows, rules] = (await Promise.all([
|
|
690
|
+
ctx.call('stock.listRoutes', {}, url, req),
|
|
691
|
+
ctx.call('stock.listRules', {}, url, req),
|
|
692
|
+
]));
|
|
693
|
+
const ruleCountByRoute = new Map();
|
|
694
|
+
for (const rule of rules) {
|
|
695
|
+
const routeId = String(rule.routeId);
|
|
696
|
+
ruleCountByRoute.set(routeId, (ruleCountByRoute.get(routeId) ?? 0) + 1);
|
|
697
|
+
}
|
|
698
|
+
return backendPage(ctx, req, {
|
|
699
|
+
lang,
|
|
700
|
+
title: _('stock_backend.routes'),
|
|
701
|
+
body: stockRoutesScreen(_, {
|
|
702
|
+
rows: rows.map((row) => ({
|
|
703
|
+
id: String(row.id),
|
|
704
|
+
name: localizedGeneratedRouteName(_, row),
|
|
705
|
+
sequence: Number(row.sequence),
|
|
706
|
+
ruleCount: ruleCountByRoute.get(String(row.id)) ?? 0,
|
|
707
|
+
href: inLocale(url, `/admin/stock-routes/${String(row.id)}`),
|
|
708
|
+
})),
|
|
709
|
+
action: inLocale(url, '/admin/stock-routes'),
|
|
710
|
+
errors: invalid(url, _),
|
|
711
|
+
}, await frame(ctx, url, req)),
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
|
+
'/admin/stock-routes/{id}': (ctx) => async (url, req, params) => {
|
|
715
|
+
const routes = (await ctx.call('stock.listRoutes', {}, url, req));
|
|
716
|
+
const route = routes.find((row) => row.id === params.id);
|
|
717
|
+
if (!route)
|
|
718
|
+
return text('Route not found', { status: 404 });
|
|
719
|
+
if (req.method === 'POST') {
|
|
720
|
+
const form = await readForm(req);
|
|
721
|
+
if (form.intent === 'route') {
|
|
722
|
+
const displayName = localizedGeneratedRouteName(ctx.translate(ctx.localeOf(url, req)), route);
|
|
723
|
+
const submittedName = form.name ?? '';
|
|
724
|
+
const result = await ctx.call('stock.saveRoute', {
|
|
725
|
+
id: params.id,
|
|
726
|
+
name: submittedName === displayName ? String(route.name) : submittedName,
|
|
727
|
+
sequence: Number(form.sequence || 10),
|
|
728
|
+
}, url, req);
|
|
729
|
+
const target = inLocale(url, `/admin/stock-routes/${params.id}`);
|
|
730
|
+
return result.ok
|
|
731
|
+
? seeOther(target)
|
|
732
|
+
: seeOther(`${target}${target.includes('?') ? '&' : '?'}invalid=route`);
|
|
733
|
+
}
|
|
734
|
+
const result = await ctx.call('stock.saveRule', {
|
|
735
|
+
id: randomUUID(),
|
|
736
|
+
name: form.name ?? '',
|
|
737
|
+
routeId: params.id,
|
|
738
|
+
action: form.action || 'pull',
|
|
739
|
+
sequence: Number(form.sequence || 20),
|
|
740
|
+
...(form.locationSrcId ? { locationSrcId: form.locationSrcId } : {}),
|
|
741
|
+
locationDestId: form.locationDestId ?? '',
|
|
742
|
+
pickingTypeId: form.pickingTypeId ?? '',
|
|
743
|
+
procureMethod: form.procureMethod || 'make_to_stock',
|
|
744
|
+
}, url, req);
|
|
745
|
+
const target = inLocale(url, `/admin/stock-routes/${params.id}`);
|
|
746
|
+
return result.ok
|
|
747
|
+
? seeOther(target)
|
|
748
|
+
: seeOther(`${target}${target.includes('?') ? '&' : '?'}invalid=rule`);
|
|
749
|
+
}
|
|
750
|
+
if (req.method !== 'GET')
|
|
751
|
+
return text('GET or POST', { status: 405 });
|
|
752
|
+
const lang = ctx.localeOf(url, req);
|
|
753
|
+
const _ = ctx.translate(lang);
|
|
754
|
+
const [rules, data] = (await Promise.all([
|
|
755
|
+
ctx.call('stock.listRules', { routeId: params.id }, url, req),
|
|
756
|
+
common(ctx, url, req),
|
|
757
|
+
]));
|
|
758
|
+
const locationById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
759
|
+
const pickingTypeById = new Map(data.pickingTypes.map((row) => [String(row.id), String(row.name)]));
|
|
760
|
+
return backendPage(ctx, req, {
|
|
761
|
+
lang,
|
|
762
|
+
title: _('stock_backend.routeDetail'),
|
|
763
|
+
body: stockRouteDetailScreen(_, {
|
|
764
|
+
route: {
|
|
765
|
+
id: String(route.id),
|
|
766
|
+
name: localizedGeneratedRouteName(_, route),
|
|
767
|
+
sequence: Number(route.sequence),
|
|
768
|
+
active: route.active !== false,
|
|
769
|
+
},
|
|
770
|
+
rows: rules.map((row) => ({
|
|
771
|
+
id: String(row.id),
|
|
772
|
+
name: localizedGeneratedRuleName(_, row),
|
|
773
|
+
action: String(row.action),
|
|
774
|
+
actionLabel: selectionLabel(_, 'ruleAction', row.action),
|
|
775
|
+
sequence: Number(row.sequence),
|
|
776
|
+
source: row.locationSrcId
|
|
777
|
+
? (locationById.get(String(row.locationSrcId)) ?? String(row.locationSrcId))
|
|
778
|
+
: '—',
|
|
779
|
+
destination: locationById.get(String(row.locationDestId)) ?? String(row.locationDestId),
|
|
780
|
+
operationType: pickingTypeById.get(String(row.pickingTypeId)) ?? String(row.pickingTypeId),
|
|
781
|
+
procureMethod: selectionLabel(_, 'procureMethod', row.procureMethod),
|
|
782
|
+
})),
|
|
783
|
+
locations: options(data.locations),
|
|
784
|
+
pickingTypes: options(data.pickingTypes),
|
|
785
|
+
action: inLocale(url, `/admin/stock-routes/${params.id}`),
|
|
786
|
+
routeErrors: url.searchParams.get('invalid') === 'route' ? [_('stock_backend.error.invalid')] : undefined,
|
|
787
|
+
ruleErrors: url.searchParams.get('invalid') === 'rule' ? [_('stock_backend.error.invalid')] : undefined,
|
|
788
|
+
}, await frame(ctx, url, req)),
|
|
789
|
+
});
|
|
790
|
+
},
|
|
791
|
+
'/admin/replenishment': (ctx) => async (url, req) => {
|
|
792
|
+
const lang = ctx.localeOf(url, req);
|
|
793
|
+
const _ = ctx.translate(lang);
|
|
794
|
+
if (req.method === 'POST') {
|
|
795
|
+
const form = await readForm(req);
|
|
796
|
+
const result = await ctx.call('stock.saveOrderpoint', {
|
|
797
|
+
id: randomUUID(),
|
|
798
|
+
productId: form.productId ?? '',
|
|
799
|
+
warehouseId: form.warehouseId ?? '',
|
|
800
|
+
locationId: form.locationId ?? '',
|
|
801
|
+
trigger: form.trigger || 'auto',
|
|
802
|
+
minQuantity: form.minQuantity || '0',
|
|
803
|
+
maxQuantity: form.maxQuantity || '0',
|
|
804
|
+
...(form.replenishmentUomId ? { replenishmentUomId: form.replenishmentUomId } : {}),
|
|
805
|
+
...(form.routeId ? { routeId: form.routeId } : {}),
|
|
806
|
+
}, url, req);
|
|
807
|
+
return resultRedirect(result, inLocale(url, '/admin/replenishment'));
|
|
808
|
+
}
|
|
809
|
+
if (req.method !== 'GET')
|
|
810
|
+
return text('GET or POST', { status: 405 });
|
|
811
|
+
const [points, data, templates] = (await Promise.all([
|
|
812
|
+
ctx.call('stock.listOrderpoints', {}, url, req),
|
|
813
|
+
common(ctx, url, req),
|
|
814
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
815
|
+
]));
|
|
816
|
+
const products = templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
817
|
+
.filter((variant) => variant.active !== false)
|
|
818
|
+
.map((variant) => ({
|
|
819
|
+
value: String(variant.id),
|
|
820
|
+
label: variant.defaultCode
|
|
821
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
822
|
+
: String(template.name),
|
|
823
|
+
})));
|
|
824
|
+
const forecasts = (await Promise.all(points.map((point) => ctx.call('stock.forecast', { productId: point.productId, locationId: point.locationId }, url, req))));
|
|
825
|
+
const productUomById = new Map(templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : []).map((variant) => [String(variant.id), String(template.uomId ?? '')])));
|
|
826
|
+
const productById = new Map(products.map((product) => [product.value, product.label]));
|
|
827
|
+
const warehouseById = new Map(data.warehouses.map((row) => [String(row.id), String(row.name)]));
|
|
828
|
+
const locationById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
829
|
+
const unitById = new Map(data.units.map((row) => [String(row.id), String(row.name)]));
|
|
830
|
+
const unitRecordById = new Map(data.units.map((row) => [String(row.id), row]));
|
|
831
|
+
return backendPage(ctx, req, {
|
|
832
|
+
lang,
|
|
833
|
+
title: _('stock_backend.replenishment'),
|
|
834
|
+
body: replenishmentScreen(_, {
|
|
835
|
+
rows: points.map((row, index) => {
|
|
836
|
+
const forecasted = String(forecasts[index]?.forecasted ?? '0');
|
|
837
|
+
const baseUom = unitRecordById.get(productUomById.get(String(row.productId)) ?? '');
|
|
838
|
+
const replenishmentUom = unitRecordById.get(String(row.replenishmentUomId ?? productUomById.get(String(row.productId)) ?? ''));
|
|
839
|
+
const baseQuantity = Math.max(0, Number(row.maxQuantity) - Number(forecasted));
|
|
840
|
+
const rawQuantity = baseUom && replenishmentUom
|
|
841
|
+
? (baseQuantity * Number(baseUom.absoluteFactor)) / Number(replenishmentUom.absoluteFactor)
|
|
842
|
+
: baseQuantity;
|
|
843
|
+
const rounding = Math.max(Number(replenishmentUom?.rounding ?? 1), 1e-12);
|
|
844
|
+
const quantity = Number(forecasted) < Number(row.minQuantity)
|
|
845
|
+
? Math.ceil(rawQuantity / rounding - 1e-12) * rounding
|
|
846
|
+
: 0;
|
|
847
|
+
return {
|
|
848
|
+
id: String(row.id),
|
|
849
|
+
product: productById.get(String(row.productId)) ?? String(row.productId),
|
|
850
|
+
warehouse: warehouseById.get(String(row.warehouseId)) ?? String(row.warehouseId),
|
|
851
|
+
location: locationById.get(String(row.locationId)) ?? String(row.locationId),
|
|
852
|
+
trigger: String(row.trigger),
|
|
853
|
+
triggerLabel: selectionLabel(_, 'trigger', row.trigger),
|
|
854
|
+
minQuantity: String(row.minQuantity),
|
|
855
|
+
maxQuantity: String(row.maxQuantity),
|
|
856
|
+
forecasted,
|
|
857
|
+
toOrder: String(quantity),
|
|
858
|
+
replenishmentUom: unitById.get(String(row.replenishmentUomId)) ?? String(row.replenishmentUomId ?? '—'),
|
|
859
|
+
runAction: inLocale(url, `/admin/replenishment/${String(row.id)}/run`),
|
|
860
|
+
};
|
|
861
|
+
}),
|
|
862
|
+
products,
|
|
863
|
+
warehouses: options(data.warehouses),
|
|
864
|
+
locations: options(data.locations),
|
|
865
|
+
units: options(data.units),
|
|
866
|
+
routes: data.routes.map((row) => ({
|
|
867
|
+
value: String(row.id),
|
|
868
|
+
label: localizedGeneratedRouteName(_, row),
|
|
869
|
+
})),
|
|
870
|
+
action: inLocale(url, '/admin/replenishment'),
|
|
871
|
+
errors: invalid(url, _),
|
|
872
|
+
}, await frame(ctx, url, req)),
|
|
873
|
+
});
|
|
874
|
+
},
|
|
875
|
+
'/admin/replenishment/{id}/run': (ctx) => async (url, req, params) => {
|
|
876
|
+
if (req.method !== 'POST')
|
|
877
|
+
return text('POST', { status: 405 });
|
|
878
|
+
const result = await ctx.call('stock.runOrderpoint', { id: params.id, moveId: `${params.id}:${randomUUID()}` }, url, req);
|
|
879
|
+
return resultRedirect(result, inLocale(url, '/admin/replenishment'));
|
|
880
|
+
},
|
|
881
|
+
'/admin/forecast': (ctx) => async (url, req) => {
|
|
882
|
+
if (req.method !== 'GET')
|
|
883
|
+
return text('GET', { status: 405 });
|
|
884
|
+
const lang = ctx.localeOf(url, req);
|
|
885
|
+
const _ = ctx.translate(lang);
|
|
886
|
+
const productId = url.searchParams.get('productId') ?? '';
|
|
887
|
+
const locationId = url.searchParams.get('locationId') ?? '';
|
|
888
|
+
const warehouseId = url.searchParams.get('warehouseId') ?? '';
|
|
889
|
+
const [data, templates] = await Promise.all([
|
|
890
|
+
common(ctx, url, req),
|
|
891
|
+
ctx.call('stock.listStorableProducts', {}, url, req),
|
|
892
|
+
]);
|
|
893
|
+
const products = templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : [])
|
|
894
|
+
.filter((variant) => variant.active !== false)
|
|
895
|
+
.map((variant) => ({
|
|
896
|
+
value: String(variant.id),
|
|
897
|
+
label: variant.defaultCode
|
|
898
|
+
? `${String(template.name)} · ${String(variant.defaultCode)}`
|
|
899
|
+
: String(template.name),
|
|
900
|
+
})));
|
|
901
|
+
const productById = new Map(products.map((product) => [product.value, product.label]));
|
|
902
|
+
const productUomById = new Map(templates.flatMap((template) => (Array.isArray(template.variants) ? template.variants : []).map((variant) => [String(variant.id), String(template.uomId ?? '')])));
|
|
903
|
+
const warehouseById = new Map(data.warehouses.map((row) => [String(row.id), String(row.name)]));
|
|
904
|
+
const locationById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
|
|
905
|
+
const unitById = new Map(data.units.map((row) => [String(row.id), String(row.name)]));
|
|
906
|
+
const forecast = productId
|
|
907
|
+
? (await ctx.call('stock.forecast', { productId, ...(locationId ? { locationId } : warehouseId ? { warehouseId } : {}) }, url, req))
|
|
908
|
+
: null;
|
|
909
|
+
const scopeLabel = locationId
|
|
910
|
+
? _('stock_backend.forecast.scope.location', {
|
|
911
|
+
name: locationById.get(locationId) ?? locationId,
|
|
912
|
+
})
|
|
913
|
+
: warehouseId
|
|
914
|
+
? _('stock_backend.forecast.scope.warehouse', {
|
|
915
|
+
name: warehouseById.get(warehouseId) ?? warehouseId,
|
|
916
|
+
})
|
|
917
|
+
: _('stock_backend.forecast.scope.all');
|
|
918
|
+
return backendPage(ctx, req, {
|
|
919
|
+
lang,
|
|
920
|
+
title: _('stock_backend.forecast'),
|
|
921
|
+
body: forecastScreen(_, {
|
|
922
|
+
products,
|
|
923
|
+
warehouses: options(data.warehouses),
|
|
924
|
+
locations: options(data.locations),
|
|
925
|
+
productId,
|
|
926
|
+
warehouseId,
|
|
927
|
+
locationId,
|
|
928
|
+
productLabel: productById.get(productId),
|
|
929
|
+
scopeLabel,
|
|
930
|
+
...(forecast
|
|
931
|
+
? {
|
|
932
|
+
row: {
|
|
933
|
+
id: productId,
|
|
934
|
+
onHand: String(forecast.onHand),
|
|
935
|
+
reserved: String(forecast.reserved),
|
|
936
|
+
available: String(forecast.available),
|
|
937
|
+
incoming: String(forecast.incoming),
|
|
938
|
+
outgoing: String(forecast.outgoing),
|
|
939
|
+
forecasted: String(forecast.forecasted),
|
|
940
|
+
uom: unitById.get(productUomById.get(productId) ?? '') ?? '—',
|
|
941
|
+
},
|
|
942
|
+
}
|
|
943
|
+
: {}),
|
|
944
|
+
action: inLocale(url, '/admin/forecast'),
|
|
945
|
+
lang,
|
|
946
|
+
}, await frame(ctx, url, req)),
|
|
947
|
+
});
|
|
948
|
+
},
|
|
949
|
+
};
|
|
950
|
+
//# sourceMappingURL=routes.js.map
|