@ketvietlab/ketsuite 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +15 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +59 -0
- package/dist/cli.js.map +1 -0
- package/dist/deployment.d.ts +5 -0
- package/dist/deployment.d.ts.map +1 -0
- package/dist/deployment.js +152 -0
- package/dist/deployment.js.map +1 -0
- package/dist/development.d.ts +8 -0
- package/dist/development.d.ts.map +1 -0
- package/dist/development.js +40 -0
- package/dist/development.js.map +1 -0
- package/dist/index.d.ts +77 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -6
- package/dist/index.js.map +1 -1
- package/dist/modules/account/analytics.d.ts +32 -0
- package/dist/modules/account/analytics.d.ts.map +1 -0
- package/dist/modules/account/analytics.js +457 -0
- package/dist/modules/account/analytics.js.map +1 -0
- package/dist/modules/account/assets-costing.d.ts +4 -0
- package/dist/modules/account/assets-costing.d.ts.map +1 -0
- package/dist/modules/account/assets-costing.js +1134 -0
- package/dist/modules/account/assets-costing.js.map +1 -0
- package/dist/modules/account/audit.d.ts +3 -0
- package/dist/modules/account/audit.d.ts.map +1 -0
- package/dist/modules/account/audit.js +14 -0
- package/dist/modules/account/audit.js.map +1 -0
- package/dist/modules/account/books.d.ts +4 -0
- package/dist/modules/account/books.d.ts.map +1 -0
- package/dist/modules/account/books.js +150 -0
- package/dist/modules/account/books.js.map +1 -0
- package/dist/modules/account/cash-receivables.d.ts +3 -0
- package/dist/modules/account/cash-receivables.d.ts.map +1 -0
- package/dist/modules/account/cash-receivables.js +1087 -0
- package/dist/modules/account/cash-receivables.js.map +1 -0
- package/dist/modules/account/close.d.ts +4 -0
- package/dist/modules/account/close.d.ts.map +1 -0
- package/dist/modules/account/close.js +343 -0
- package/dist/modules/account/close.js.map +1 -0
- package/dist/modules/account/date.d.ts +21 -0
- package/dist/modules/account/date.d.ts.map +1 -0
- package/dist/modules/account/date.js +70 -0
- package/dist/modules/account/date.js.map +1 -0
- package/dist/modules/account/functions.d.ts +131 -3
- package/dist/modules/account/functions.d.ts.map +1 -1
- package/dist/modules/account/functions.js +2570 -389
- package/dist/modules/account/functions.js.map +1 -1
- package/dist/modules/account/index.d.ts +1 -2
- package/dist/modules/account/index.d.ts.map +1 -1
- package/dist/modules/account/index.js +403 -8
- package/dist/modules/account/index.js.map +1 -1
- package/dist/modules/account/models.d.ts.map +1 -1
- package/dist/modules/account/models.js +748 -0
- package/dist/modules/account/models.js.map +1 -1
- package/dist/modules/account/money.d.ts +60 -0
- package/dist/modules/account/money.d.ts.map +1 -0
- package/dist/modules/account/money.js +237 -0
- package/dist/modules/account/money.js.map +1 -0
- package/dist/modules/account/open-items.d.ts +3 -0
- package/dist/modules/account/open-items.d.ts.map +1 -0
- package/dist/modules/account/open-items.js +390 -0
- package/dist/modules/account/open-items.js.map +1 -0
- package/dist/modules/account/opening.d.ts +3 -0
- package/dist/modules/account/opening.d.ts.map +1 -0
- package/dist/modules/account/opening.js +323 -0
- package/dist/modules/account/opening.js.map +1 -0
- package/dist/modules/account/period.d.ts +21 -0
- package/dist/modules/account/period.d.ts.map +1 -0
- package/dist/modules/account/period.js +155 -0
- package/dist/modules/account/period.js.map +1 -0
- package/dist/modules/account/relations.d.ts.map +1 -1
- package/dist/modules/account/relations.js +46 -0
- package/dist/modules/account/relations.js.map +1 -1
- package/dist/modules/account/reports.d.ts +4 -0
- package/dist/modules/account/reports.d.ts.map +1 -0
- package/dist/modules/account/reports.js +125 -0
- package/dist/modules/account/reports.js.map +1 -0
- package/dist/modules/account/setup.d.ts +3 -1
- package/dist/modules/account/setup.d.ts.map +1 -1
- package/dist/modules/account/setup.js +45 -160
- package/dist/modules/account/setup.js.map +1 -1
- package/dist/modules/account_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/account_activity_backend/index.js +0 -1
- package/dist/modules/account_activity_backend/index.js.map +1 -1
- package/dist/modules/account_backend/index.js +3339 -494
- package/dist/modules/account_backend/index.js.map +1 -1
- package/dist/modules/account_backend/overview.d.ts +92 -0
- package/dist/modules/account_backend/overview.d.ts.map +1 -0
- package/dist/modules/account_backend/overview.js +257 -0
- package/dist/modules/account_backend/overview.js.map +1 -0
- package/dist/modules/account_backend/relation-control.d.ts +48 -0
- package/dist/modules/account_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/account_backend/relation-control.js +67 -0
- package/dist/modules/account_backend/relation-control.js.map +1 -0
- package/dist/modules/account_backend/screens/account-defaults.d.ts +28 -0
- package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/account-defaults.js +60 -0
- package/dist/modules/account_backend/screens/account-defaults.js.map +1 -0
- package/dist/modules/account_backend/screens/account-form.d.ts +16 -0
- package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/account-form.js +53 -0
- package/dist/modules/account_backend/screens/account-form.js.map +1 -0
- package/dist/modules/account_backend/screens/accounting-books.d.ts +15 -0
- package/dist/modules/account_backend/screens/accounting-books.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/accounting-books.js +86 -0
- package/dist/modules/account_backend/screens/accounting-books.js.map +1 -0
- package/dist/modules/account_backend/screens/accounts-list.d.ts +50 -0
- package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/accounts-list.js +66 -0
- package/dist/modules/account_backend/screens/accounts-list.js.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts +13 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.js +20 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.js +82 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -0
- package/dist/modules/account_backend/screens/general-ledger.d.ts +24 -0
- package/dist/modules/account_backend/screens/general-ledger.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/general-ledger.js +73 -0
- package/dist/modules/account_backend/screens/general-ledger.js.map +1 -0
- package/dist/modules/account_backend/screens/index.d.ts +27 -0
- package/dist/modules/account_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/index.js +27 -0
- package/dist/modules/account_backend/screens/index.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts +48 -0
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-entries-list.js +58 -0
- package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts +14 -0
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-entry-create.js +41 -0
- package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-form.d.ts +15 -0
- package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-form.js +53 -0
- package/dist/modules/account_backend/screens/journal-form.js.map +1 -0
- package/dist/modules/account_backend/screens/journals-list.d.ts +51 -0
- package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journals-list.js +70 -0
- package/dist/modules/account_backend/screens/journals-list.js.map +1 -0
- package/dist/modules/account_backend/screens/move-detail.d.ts +26 -0
- package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/move-detail.js +130 -0
- package/dist/modules/account_backend/screens/move-detail.js.map +1 -0
- package/dist/modules/account_backend/screens/opening-balances.d.ts +28 -0
- package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/opening-balances.js +96 -0
- package/dist/modules/account_backend/screens/opening-balances.js.map +1 -0
- package/dist/modules/account_backend/screens/overview.d.ts +62 -0
- package/dist/modules/account_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/overview.js +215 -0
- package/dist/modules/account_backend/screens/overview.js.map +1 -0
- package/dist/modules/account_backend/screens/partner-statement.d.ts +26 -0
- package/dist/modules/account_backend/screens/partner-statement.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/partner-statement.js +82 -0
- package/dist/modules/account_backend/screens/partner-statement.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-form.d.ts +14 -0
- package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-form.js +21 -0
- package/dist/modules/account_backend/screens/payment-form.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-term-form.d.ts +25 -0
- package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-term-form.js +96 -0
- package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts +23 -0
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-terms-list.js +104 -0
- package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -0
- package/dist/modules/account_backend/screens/payments-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payments-list.js +71 -0
- package/dist/modules/account_backend/screens/payments-list.js.map +1 -0
- package/dist/modules/account_backend/screens/period-closes.d.ts +21 -0
- package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/period-closes.js +123 -0
- package/dist/modules/account_backend/screens/period-closes.js.map +1 -0
- package/dist/modules/account_backend/screens/shared.d.ts +16 -0
- package/dist/modules/account_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/shared.js +15 -0
- package/dist/modules/account_backend/screens/shared.js.map +1 -0
- package/dist/modules/account_backend/screens/tax-form.d.ts +14 -0
- package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/tax-form.js +25 -0
- package/dist/modules/account_backend/screens/tax-form.js.map +1 -0
- package/dist/modules/account_backend/screens/taxes-list.d.ts +55 -0
- package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/taxes-list.js +83 -0
- package/dist/modules/account_backend/screens/taxes-list.js.map +1 -0
- package/dist/modules/account_backend/screens/trial-balance.d.ts +19 -0
- package/dist/modules/account_backend/screens/trial-balance.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/trial-balance.js +75 -0
- package/dist/modules/account_backend/screens/trial-balance.js.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts +13 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.js +20 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.js +84 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -0
- package/dist/modules/account_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/account_mail_backend/index.js +0 -1
- package/dist/modules/account_mail_backend/index.js.map +1 -1
- package/dist/modules/account_partner/index.js +0 -2
- package/dist/modules/account_partner/index.js.map +1 -1
- package/dist/modules/account_partner_backend/index.d.ts +1 -1
- package/dist/modules/account_partner_backend/index.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/index.js +2 -3
- package/dist/modules/account_partner_backend/index.js.map +1 -1
- package/dist/modules/account_partner_backend/routes.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/routes.js +19 -25
- package/dist/modules/account_partner_backend/routes.js.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts +20 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.js +63 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -0
- package/dist/modules/account_partner_backend/screens/index.d.ts +2 -0
- package/dist/modules/account_partner_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens/index.js +2 -0
- package/dist/modules/account_partner_backend/screens/index.js.map +1 -0
- package/dist/modules/account_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/account_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/channel-routes.js +787 -0
- package/dist/modules/account_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/account_staff_channel/functions.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/functions.js +143 -0
- package/dist/modules/account_staff_channel/functions.js.map +1 -0
- package/dist/modules/account_staff_channel/index.d.ts +5 -0
- package/dist/modules/account_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/index.js +42 -0
- package/dist/modules/account_staff_channel/index.js.map +1 -0
- package/dist/modules/account_staff_channel/models.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/models.js +30 -0
- package/dist/modules/account_staff_channel/models.js.map +1 -0
- package/dist/modules/activity/index.d.ts.map +1 -1
- package/dist/modules/activity/index.js +0 -1
- package/dist/modules/activity/index.js.map +1 -1
- package/dist/modules/activity_backend/index.d.ts +1 -1
- package/dist/modules/activity_backend/index.d.ts.map +1 -1
- package/dist/modules/activity_backend/index.js +3 -12
- package/dist/modules/activity_backend/index.js.map +1 -1
- package/dist/modules/activity_backend/routes.d.ts.map +1 -1
- package/dist/modules/activity_backend/routes.js +36 -22
- package/dist/modules/activity_backend/routes.js.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.d.ts +15 -0
- package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens/activities-list.js +40 -0
- package/dist/modules/activity_backend/screens/activities-list.js.map +1 -0
- package/dist/modules/activity_backend/screens/index.d.ts +2 -0
- package/dist/modules/activity_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens/index.js +2 -0
- package/dist/modules/activity_backend/screens/index.js.map +1 -0
- package/dist/modules/address/data/VN/NOTICE.md +1 -1
- package/dist/modules/address/index.d.ts.map +1 -1
- package/dist/modules/address/index.js +0 -1
- package/dist/modules/address/index.js.map +1 -1
- package/dist/modules/address_backend/index.d.ts +1 -1
- package/dist/modules/address_backend/index.d.ts.map +1 -1
- package/dist/modules/address_backend/index.js +1 -3
- package/dist/modules/address_backend/index.js.map +1 -1
- package/dist/modules/address_backend/routes.d.ts.map +1 -1
- package/dist/modules/address_backend/routes.js +20 -27
- package/dist/modules/address_backend/routes.js.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts +14 -0
- package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/catalogs-list.js +38 -0
- package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -0
- package/dist/modules/address_backend/screens/country-browser.d.ts +12 -0
- package/dist/modules/address_backend/screens/country-browser.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/country-browser.js +74 -0
- package/dist/modules/address_backend/screens/country-browser.js.map +1 -0
- package/dist/modules/address_backend/screens/index.d.ts +4 -0
- package/dist/modules/address_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/index.js +3 -0
- package/dist/modules/address_backend/screens/index.js.map +1 -0
- package/dist/modules/address_backend/screens/types.d.ts +20 -0
- package/dist/modules/address_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/types.js.map +1 -0
- package/dist/modules/attendance/channel-routes.d.ts +2 -0
- package/dist/modules/attendance/channel-routes.d.ts.map +1 -0
- package/dist/modules/attendance/channel-routes.js +234 -0
- package/dist/modules/attendance/channel-routes.js.map +1 -0
- package/dist/modules/attendance/functions.d.ts.map +1 -1
- package/dist/modules/attendance/functions.js +171 -22
- package/dist/modules/attendance/functions.js.map +1 -1
- package/dist/modules/attendance/index.d.ts.map +1 -1
- package/dist/modules/attendance/index.js +4 -2
- package/dist/modules/attendance/index.js.map +1 -1
- package/dist/modules/attendance/messages.d.ts +6 -0
- package/dist/modules/attendance/messages.d.ts.map +1 -1
- package/dist/modules/attendance/messages.js +6 -0
- package/dist/modules/attendance/messages.js.map +1 -1
- package/dist/modules/attendance/models.d.ts.map +1 -1
- package/dist/modules/attendance/models.js +1 -0
- package/dist/modules/attendance/models.js.map +1 -1
- package/dist/modules/attendance_backend/index.d.ts +3 -1
- package/dist/modules/attendance_backend/index.d.ts.map +1 -1
- package/dist/modules/attendance_backend/index.js +65 -4
- package/dist/modules/attendance_backend/index.js.map +1 -1
- package/dist/modules/attendance_backend/routes.d.ts.map +1 -1
- package/dist/modules/attendance_backend/routes.js +240 -53
- package/dist/modules/attendance_backend/routes.js.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.d.ts +32 -0
- package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/credentials.js +84 -0
- package/dist/modules/attendance_backend/screens/credentials.js.map +1 -0
- package/dist/modules/attendance_backend/screens/index.d.ts +4 -0
- package/dist/modules/attendance_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/index.js +4 -0
- package/dist/modules/attendance_backend/screens/index.js.map +1 -0
- package/dist/modules/attendance_backend/screens/my-work.d.ts +35 -0
- package/dist/modules/attendance_backend/screens/my-work.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/my-work.js +189 -0
- package/dist/modules/attendance_backend/screens/my-work.js.map +1 -0
- package/dist/modules/attendance_backend/screens/period.d.ts +22 -0
- package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/period.js +85 -0
- package/dist/modules/attendance_backend/screens/period.js.map +1 -0
- package/dist/modules/attendance_backend/screens.d.ts +0 -4
- package/dist/modules/attendance_backend/screens.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens.js +1 -209
- package/dist/modules/attendance_backend/screens.js.map +1 -1
- package/dist/modules/backend/catalogue.d.ts.map +1 -1
- package/dist/modules/backend/catalogue.js +53 -115
- package/dist/modules/backend/catalogue.js.map +1 -1
- package/dist/modules/backend/chart.d.ts +42 -0
- package/dist/modules/backend/chart.d.ts.map +1 -0
- package/dist/modules/backend/chart.js +39 -0
- package/dist/modules/backend/chart.js.map +1 -0
- package/dist/modules/backend/design/HANDOFF.md +118 -38
- package/dist/modules/backend/design/auth.css +463 -0
- package/dist/modules/backend/design/brand/logo-dark.png +0 -0
- package/dist/modules/backend/design/brand/logo-light.png +0 -0
- package/dist/modules/backend/design/charts.css +229 -0
- package/dist/modules/backend/design/client/chart.d.mts +31 -0
- package/dist/modules/backend/design/client/chart.d.mts.map +1 -0
- package/dist/modules/backend/design/client/chart.mjs +23 -0
- package/dist/modules/backend/design/client/chart.mjs.map +7 -0
- package/dist/modules/backend/design/client/relation-select.d.mts +6 -1
- package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -1
- package/dist/modules/backend/design/client/relation-select.mjs +2 -7
- package/dist/modules/backend/design/client/relation-select.mjs.map +7 -1
- package/dist/modules/backend/design/client/table-selection.d.mts +7 -0
- package/dist/modules/backend/design/client/table-selection.d.mts.map +1 -0
- package/dist/modules/backend/design/client/table-selection.mjs +2 -0
- package/dist/modules/backend/design/client/table-selection.mjs.map +7 -0
- package/dist/modules/backend/design/content.css +766 -0
- package/dist/modules/backend/design/controls.css +451 -0
- package/dist/modules/backend/design/design-system.css +2 -0
- package/dist/modules/backend/design/forms.css +1134 -0
- package/dist/modules/backend/design/foundation.css +423 -0
- package/dist/modules/backend/design/lists.css +1462 -0
- package/dist/modules/backend/design/record.css +526 -0
- package/dist/modules/backend/design/responsive.css +331 -0
- package/dist/modules/backend/design/tokens.css +317 -92
- package/dist/modules/backend/index.d.ts +12 -5
- package/dist/modules/backend/index.d.ts.map +1 -1
- package/dist/modules/backend/index.js +32 -15
- package/dist/modules/backend/index.js.map +1 -1
- package/dist/modules/backend/islands.d.ts.map +1 -1
- package/dist/modules/backend/islands.js +22 -4
- package/dist/modules/backend/islands.js.map +1 -1
- package/dist/modules/backend/joints.d.ts +1 -1
- package/dist/modules/backend/joints.d.ts.map +1 -1
- package/dist/modules/backend/joints.js +14 -6
- package/dist/modules/backend/joints.js.map +1 -1
- package/dist/modules/backend/list-search.d.ts +33 -0
- package/dist/modules/backend/list-search.d.ts.map +1 -0
- package/dist/modules/backend/list-search.js +232 -0
- package/dist/modules/backend/list-search.js.map +1 -0
- package/dist/modules/backend/menus.d.ts.map +1 -1
- package/dist/modules/backend/menus.js +3 -12
- package/dist/modules/backend/menus.js.map +1 -1
- package/dist/modules/backend/messages.d.ts +1 -1
- package/dist/modules/backend/messages.d.ts.map +1 -1
- package/dist/modules/backend/messages.js +48 -35
- package/dist/modules/backend/messages.js.map +1 -1
- package/dist/modules/backend/paging.d.ts +1 -1
- package/dist/modules/backend/paging.d.ts.map +1 -1
- package/dist/modules/backend/paging.js +1 -1
- package/dist/modules/backend/paging.js.map +1 -1
- package/dist/modules/backend/relation-select.d.ts +2 -57
- package/dist/modules/backend/relation-select.d.ts.map +1 -1
- package/dist/modules/backend/relation-select.js +2 -0
- package/dist/modules/backend/relation-select.js.map +1 -1
- package/dist/modules/backend/routes.d.ts +1 -8
- package/dist/modules/backend/routes.d.ts.map +1 -1
- package/dist/modules/backend/routes.js +36 -111
- package/dist/modules/backend/routes.js.map +1 -1
- package/dist/modules/backend/screen.d.ts +130 -0
- package/dist/modules/backend/screen.d.ts.map +1 -0
- package/dist/modules/backend/screen.js +205 -0
- package/dist/modules/backend/screen.js.map +1 -0
- package/dist/modules/backend/screens.d.ts +11 -14
- package/dist/modules/backend/screens.d.ts.map +1 -1
- package/dist/modules/backend/screens.js +13 -70
- package/dist/modules/backend/screens.js.map +1 -1
- package/dist/modules/business_report_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/business_report_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/business_report_staff_channel/channel-routes.js +438 -0
- package/dist/modules/business_report_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/business_report_staff_channel/index.d.ts +5 -0
- package/dist/modules/business_report_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/business_report_staff_channel/index.js +18 -0
- package/dist/modules/business_report_staff_channel/index.js.map +1 -0
- package/dist/modules/calendar/index.d.ts.map +1 -1
- package/dist/modules/calendar/index.js +0 -1
- package/dist/modules/calendar/index.js.map +1 -1
- package/dist/modules/calendar/recurrence.d.ts.map +1 -1
- package/dist/modules/calendar/recurrence.js +3 -11
- package/dist/modules/calendar/recurrence.js.map +1 -1
- package/dist/modules/calendar_activity/index.d.ts.map +1 -1
- package/dist/modules/calendar_activity/index.js +0 -2
- package/dist/modules/calendar_activity/index.js.map +1 -1
- package/dist/modules/calendar_backend/index.d.ts +1 -1
- package/dist/modules/calendar_backend/index.d.ts.map +1 -1
- package/dist/modules/calendar_backend/index.js +1 -3
- package/dist/modules/calendar_backend/index.js.map +1 -1
- package/dist/modules/calendar_backend/routes.d.ts.map +1 -1
- package/dist/modules/calendar_backend/routes.js +10 -22
- package/dist/modules/calendar_backend/routes.js.map +1 -1
- package/dist/modules/calendar_backend/screens/calendar.d.ts +5 -0
- package/dist/modules/calendar_backend/screens/calendar.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens/calendar.js +10 -0
- package/dist/modules/calendar_backend/screens/calendar.js.map +1 -0
- package/dist/modules/calendar_backend/screens/index.d.ts +2 -0
- package/dist/modules/calendar_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens/index.js +2 -0
- package/dist/modules/calendar_backend/screens/index.js.map +1 -0
- package/dist/modules/calendar_mail_transport/index.d.ts.map +1 -1
- package/dist/modules/calendar_mail_transport/index.js +0 -2
- package/dist/modules/calendar_mail_transport/index.js.map +1 -1
- package/dist/modules/channel_api/core.d.ts +253 -0
- package/dist/modules/channel_api/core.d.ts.map +1 -0
- package/dist/modules/channel_api/core.js +587 -0
- package/dist/modules/channel_api/core.js.map +1 -0
- package/dist/modules/channel_api/customer.d.ts +21 -0
- package/dist/modules/channel_api/customer.d.ts.map +1 -0
- package/dist/modules/channel_api/customer.js +368 -0
- package/dist/modules/channel_api/customer.js.map +1 -0
- package/dist/modules/channel_api/index.d.ts +6 -0
- package/dist/modules/channel_api/index.d.ts.map +1 -0
- package/dist/modules/channel_api/index.js +66 -0
- package/dist/modules/channel_api/index.js.map +1 -0
- package/dist/modules/channel_api/openapi.d.ts +17 -0
- package/dist/modules/channel_api/openapi.d.ts.map +1 -0
- package/dist/modules/channel_api/openapi.js +105 -0
- package/dist/modules/channel_api/openapi.js.map +1 -0
- package/dist/modules/channel_api/staff.d.ts +7 -0
- package/dist/modules/channel_api/staff.d.ts.map +1 -0
- package/dist/modules/channel_api/staff.js +209 -0
- package/dist/modules/channel_api/staff.js.map +1 -0
- package/dist/modules/company/functions.d.ts.map +1 -1
- package/dist/modules/company/functions.js +93 -12
- package/dist/modules/company/functions.js.map +1 -1
- package/dist/modules/company/index.js +3 -3
- package/dist/modules/company/index.js.map +1 -1
- package/dist/modules/company/messages.d.ts +8 -0
- package/dist/modules/company/messages.d.ts.map +1 -1
- package/dist/modules/company/messages.js +8 -0
- package/dist/modules/company/messages.js.map +1 -1
- package/dist/modules/company/models.d.ts +2 -2
- package/dist/modules/company/models.d.ts.map +1 -1
- package/dist/modules/company/models.js +12 -2
- package/dist/modules/company/models.js.map +1 -1
- package/dist/modules/company_backend/index.d.ts +2 -1
- package/dist/modules/company_backend/index.d.ts.map +1 -1
- package/dist/modules/company_backend/index.js +25 -4
- package/dist/modules/company_backend/index.js.map +1 -1
- package/dist/modules/company_backend/routes.d.ts.map +1 -1
- package/dist/modules/company_backend/routes.js +314 -96
- package/dist/modules/company_backend/routes.js.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.d.ts +18 -0
- package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/branch-form.js +63 -0
- package/dist/modules/company_backend/screens/branch-form.js.map +1 -0
- package/dist/modules/company_backend/screens/companies-list.d.ts +18 -0
- package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/companies-list.js +49 -0
- package/dist/modules/company_backend/screens/companies-list.js.map +1 -0
- package/dist/modules/company_backend/screens/company-form.d.ts +25 -0
- package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/company-form.js +159 -0
- package/dist/modules/company_backend/screens/company-form.js.map +1 -0
- package/dist/modules/company_backend/screens/context.d.ts +30 -0
- package/dist/modules/company_backend/screens/context.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/context.js +48 -0
- package/dist/modules/company_backend/screens/context.js.map +1 -0
- package/dist/modules/company_backend/screens/hierarchy.d.ts +16 -0
- package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/hierarchy.js +41 -0
- package/dist/modules/company_backend/screens/hierarchy.js.map +1 -0
- package/dist/modules/company_backend/screens/index.d.ts +7 -0
- package/dist/modules/company_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/index.js +6 -0
- package/dist/modules/company_backend/screens/index.js.map +1 -0
- package/dist/modules/company_backend/screens/types.d.ts +22 -0
- package/dist/modules/company_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/types.js +2 -0
- package/dist/modules/company_backend/screens/types.js.map +1 -0
- package/dist/modules/crm/functions.d.ts +1 -1
- package/dist/modules/crm/functions.d.ts.map +1 -1
- package/dist/modules/crm/functions.js +534 -75
- package/dist/modules/crm/functions.js.map +1 -1
- package/dist/modules/crm/index.d.ts +2 -1
- package/dist/modules/crm/index.d.ts.map +1 -1
- package/dist/modules/crm/index.js +3 -4
- package/dist/modules/crm/index.js.map +1 -1
- package/dist/modules/crm/jobs.d.ts +10 -0
- package/dist/modules/crm/jobs.d.ts.map +1 -1
- package/dist/modules/crm/jobs.js +50 -1
- package/dist/modules/crm/jobs.js.map +1 -1
- package/dist/modules/crm/messages.d.ts +14 -1
- package/dist/modules/crm/messages.d.ts.map +1 -1
- package/dist/modules/crm/messages.js +26 -0
- package/dist/modules/crm/messages.js.map +1 -1
- package/dist/modules/crm/models.d.ts.map +1 -1
- package/dist/modules/crm/models.js +25 -0
- package/dist/modules/crm/models.js.map +1 -1
- package/dist/modules/crm/operations.d.ts +110 -1
- package/dist/modules/crm/operations.d.ts.map +1 -1
- package/dist/modules/crm/operations.js +612 -84
- package/dist/modules/crm/operations.js.map +1 -1
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs +132 -32
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -1
- package/dist/modules/crm_backend/client/crm.css +398 -63
- package/dist/modules/crm_backend/index.d.ts.map +1 -1
- package/dist/modules/crm_backend/index.js +12 -4
- package/dist/modules/crm_backend/index.js.map +1 -1
- package/dist/modules/crm_backend/messages.d.ts +212 -0
- package/dist/modules/crm_backend/messages.d.ts.map +1 -1
- package/dist/modules/crm_backend/messages.js +212 -0
- package/dist/modules/crm_backend/messages.js.map +1 -1
- package/dist/modules/crm_backend/relation-control.d.ts +51 -0
- package/dist/modules/crm_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/crm_backend/relation-control.js +107 -0
- package/dist/modules/crm_backend/relation-control.js.map +1 -0
- package/dist/modules/crm_backend/routes.d.ts.map +1 -1
- package/dist/modules/crm_backend/routes.js +1068 -260
- package/dist/modules/crm_backend/routes.js.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.d.ts +22 -0
- package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/activity-planner.js +159 -0
- package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -0
- package/dist/modules/crm_backend/screens/case-create.d.ts +15 -0
- package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/case-create.js +19 -0
- package/dist/modules/crm_backend/screens/case-create.js.map +1 -0
- package/dist/modules/crm_backend/screens/case-detail.d.ts +46 -0
- package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/case-detail.js +506 -0
- package/dist/modules/crm_backend/screens/case-detail.js.map +1 -0
- package/dist/modules/crm_backend/screens/cases-list.d.ts +16 -0
- package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/cases-list.js +86 -0
- package/dist/modules/crm_backend/screens/cases-list.js.map +1 -0
- package/dist/modules/crm_backend/screens/configuration.d.ts +28 -0
- package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/configuration.js +115 -0
- package/dist/modules/crm_backend/screens/configuration.js.map +1 -0
- package/dist/modules/crm_backend/screens/index.d.ts +14 -0
- package/dist/modules/crm_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/index.js +8 -0
- package/dist/modules/crm_backend/screens/index.js.map +1 -0
- package/dist/modules/crm_backend/screens/leaderboard.d.ts +12 -0
- package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/leaderboard.js +89 -0
- package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -0
- package/dist/modules/crm_backend/screens/pipeline.d.ts +21 -0
- package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/pipeline.js +22 -0
- package/dist/modules/crm_backend/screens/pipeline.js.map +1 -0
- package/dist/modules/crm_sale/index.d.ts.map +1 -1
- package/dist/modules/crm_sale/index.js +3 -4
- package/dist/modules/crm_sale/index.js.map +1 -1
- package/dist/modules/crm_sale/messages.d.ts +3 -1
- package/dist/modules/crm_sale/messages.d.ts.map +1 -1
- package/dist/modules/crm_sale/messages.js +4 -0
- package/dist/modules/crm_sale/messages.js.map +1 -1
- package/dist/modules/crm_sale/sale-functions.d.ts +8 -1
- package/dist/modules/crm_sale/sale-functions.d.ts.map +1 -1
- package/dist/modules/crm_sale/sale-functions.js +184 -55
- package/dist/modules/crm_sale/sale-functions.js.map +1 -1
- package/dist/modules/crm_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/crm_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/crm_staff_channel/channel-routes.js +788 -0
- package/dist/modules/crm_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/crm_staff_channel/index.d.ts +5 -0
- package/dist/modules/crm_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/crm_staff_channel/index.js +30 -0
- package/dist/modules/crm_staff_channel/index.js.map +1 -0
- package/dist/modules/crm_website/functions.d.ts.map +1 -1
- package/dist/modules/crm_website/functions.js +89 -10
- package/dist/modules/crm_website/functions.js.map +1 -1
- package/dist/modules/crm_website/index.js +1 -2
- package/dist/modules/crm_website/index.js.map +1 -1
- package/dist/modules/crm_website/messages.d.ts +4 -1
- package/dist/modules/crm_website/messages.d.ts.map +1 -1
- package/dist/modules/crm_website/messages.js +6 -0
- package/dist/modules/crm_website/messages.js.map +1 -1
- package/dist/modules/crm_website/models.d.ts.map +1 -1
- package/dist/modules/crm_website/models.js +18 -0
- package/dist/modules/crm_website/models.js.map +1 -1
- package/dist/modules/crm_website/routes.d.ts.map +1 -1
- package/dist/modules/crm_website/routes.js +44 -12
- package/dist/modules/crm_website/routes.js.map +1 -1
- package/dist/modules/crm_website/screens.d.ts +7 -1
- package/dist/modules/crm_website/screens.d.ts.map +1 -1
- package/dist/modules/crm_website/screens.js +13 -8
- package/dist/modules/crm_website/screens.js.map +1 -1
- package/dist/modules/flow/functions.d.ts +3 -0
- package/dist/modules/flow/functions.d.ts.map +1 -0
- package/dist/modules/flow/functions.js +1876 -0
- package/dist/modules/flow/functions.js.map +1 -0
- package/dist/modules/flow/index.d.ts +12 -0
- package/dist/modules/flow/index.d.ts.map +1 -0
- package/dist/modules/flow/index.js +30 -0
- package/dist/modules/flow/index.js.map +1 -0
- package/dist/modules/flow/jobs.d.ts +3 -0
- package/dist/modules/flow/jobs.d.ts.map +1 -0
- package/dist/modules/flow/jobs.js +136 -0
- package/dist/modules/flow/jobs.js.map +1 -0
- package/dist/modules/flow/membership.d.ts +72 -0
- package/dist/modules/flow/membership.d.ts.map +1 -0
- package/dist/modules/flow/membership.js +176 -0
- package/dist/modules/flow/membership.js.map +1 -0
- package/dist/modules/flow/messages.d.ts +79 -0
- package/dist/modules/flow/messages.d.ts.map +1 -0
- package/dist/modules/flow/messages.js +152 -0
- package/dist/modules/flow/messages.js.map +1 -0
- package/dist/modules/flow/models.d.ts +3 -0
- package/dist/modules/flow/models.d.ts.map +1 -0
- package/dist/modules/flow/models.js +453 -0
- package/dist/modules/flow/models.js.map +1 -0
- package/dist/modules/flow/operations.d.ts +408 -0
- package/dist/modules/flow/operations.d.ts.map +1 -0
- package/dist/modules/flow/operations.js +1665 -0
- package/dist/modules/flow/operations.js.map +1 -0
- package/dist/modules/flow/pages.d.ts +146 -0
- package/dist/modules/flow/pages.d.ts.map +1 -0
- package/dist/modules/flow/pages.js +394 -0
- package/dist/modules/flow/pages.js.map +1 -0
- package/dist/modules/flow/projects.d.ts +41 -0
- package/dist/modules/flow/projects.d.ts.map +1 -0
- package/dist/modules/flow/projects.js +74 -0
- package/dist/modules/flow/projects.js.map +1 -0
- package/dist/modules/flow/search.d.ts +57 -0
- package/dist/modules/flow/search.d.ts.map +1 -0
- package/dist/modules/flow/search.js +110 -0
- package/dist/modules/flow/search.js.map +1 -0
- package/dist/modules/flow/types.d.ts +17 -0
- package/dist/modules/flow/types.d.ts.map +1 -0
- package/dist/modules/flow/types.js +13 -0
- package/dist/modules/flow/types.js.map +1 -0
- package/dist/modules/flow_backend/functions.d.ts +3 -0
- package/dist/modules/flow_backend/functions.d.ts.map +1 -0
- package/dist/modules/flow_backend/functions.js +162 -0
- package/dist/modules/flow_backend/functions.js.map +1 -0
- package/dist/modules/flow_backend/index.d.ts +3 -0
- package/dist/modules/flow_backend/index.d.ts.map +1 -0
- package/dist/modules/flow_backend/index.js +96 -0
- package/dist/modules/flow_backend/index.js.map +1 -0
- package/dist/modules/flow_backend/islands.d.ts +3 -0
- package/dist/modules/flow_backend/islands.d.ts.map +1 -0
- package/dist/modules/flow_backend/islands.js +31 -0
- package/dist/modules/flow_backend/islands.js.map +1 -0
- package/dist/modules/flow_backend/messages.d.ts +248 -0
- package/dist/modules/flow_backend/messages.d.ts.map +1 -0
- package/dist/modules/flow_backend/messages.js +470 -0
- package/dist/modules/flow_backend/messages.js.map +1 -0
- package/dist/modules/flow_backend/relation-control.d.ts +53 -0
- package/dist/modules/flow_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/flow_backend/relation-control.js +106 -0
- package/dist/modules/flow_backend/relation-control.js.map +1 -0
- package/dist/modules/flow_backend/routes.d.ts +3 -0
- package/dist/modules/flow_backend/routes.d.ts.map +1 -0
- package/dist/modules/flow_backend/routes.js +2519 -0
- package/dist/modules/flow_backend/routes.js.map +1 -0
- package/dist/modules/flow_backend/screens/all-epics.d.ts +19 -0
- package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/all-epics.js +59 -0
- package/dist/modules/flow_backend/screens/all-epics.js.map +1 -0
- package/dist/modules/flow_backend/screens/all-pages.d.ts +19 -0
- package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/all-pages.js +65 -0
- package/dist/modules/flow_backend/screens/all-pages.js.map +1 -0
- package/dist/modules/flow_backend/screens/board.d.ts +5 -0
- package/dist/modules/flow_backend/screens/board.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/board.js +7 -0
- package/dist/modules/flow_backend/screens/board.js.map +1 -0
- package/dist/modules/flow_backend/screens/epic-detail.d.ts +22 -0
- package/dist/modules/flow_backend/screens/epic-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/epic-detail.js +41 -0
- package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/gantt.d.ts +21 -0
- package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/gantt.js +42 -0
- package/dist/modules/flow_backend/screens/gantt.js.map +1 -0
- package/dist/modules/flow_backend/screens/index.d.ts +29 -0
- package/dist/modules/flow_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/index.js +23 -0
- package/dist/modules/flow_backend/screens/index.js.map +1 -0
- package/dist/modules/flow_backend/screens/issue-detail.d.ts +38 -0
- package/dist/modules/flow_backend/screens/issue-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/issue-detail.js +336 -0
- package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/issues.d.ts +34 -0
- package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/issues.js +118 -0
- package/dist/modules/flow_backend/screens/issues.js.map +1 -0
- package/dist/modules/flow_backend/screens/map.d.ts +13 -0
- package/dist/modules/flow_backend/screens/map.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/map.js +16 -0
- package/dist/modules/flow_backend/screens/map.js.map +1 -0
- package/dist/modules/flow_backend/screens/my-work.d.ts +42 -0
- package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/my-work.js +157 -0
- package/dist/modules/flow_backend/screens/my-work.js.map +1 -0
- package/dist/modules/flow_backend/screens/nav.d.ts +3 -0
- package/dist/modules/flow_backend/screens/nav.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/nav.js +79 -0
- package/dist/modules/flow_backend/screens/nav.js.map +1 -0
- package/dist/modules/flow_backend/screens/page-detail.d.ts +31 -0
- package/dist/modules/flow_backend/screens/page-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/page-detail.js +113 -0
- package/dist/modules/flow_backend/screens/page-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-create.d.ts +26 -0
- package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-create.js +56 -0
- package/dist/modules/flow_backend/screens/project-create.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-epics.d.ts +33 -0
- package/dist/modules/flow_backend/screens/project-epics.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-epics.js +90 -0
- package/dist/modules/flow_backend/screens/project-epics.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-pages.d.ts +34 -0
- package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-pages.js +66 -0
- package/dist/modules/flow_backend/screens/project-pages.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-settings.d.ts +69 -0
- package/dist/modules/flow_backend/screens/project-settings.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-settings.js +248 -0
- package/dist/modules/flow_backend/screens/project-settings.js.map +1 -0
- package/dist/modules/flow_backend/screens/projects-list.d.ts +30 -0
- package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/projects-list.js +121 -0
- package/dist/modules/flow_backend/screens/projects-list.js.map +1 -0
- package/dist/modules/flow_backend/screens/shared.d.ts +28 -0
- package/dist/modules/flow_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/shared.js +46 -0
- package/dist/modules/flow_backend/screens/shared.js.map +1 -0
- package/dist/modules/flow_backend/screens/sprints.d.ts +33 -0
- package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/sprints.js +159 -0
- package/dist/modules/flow_backend/screens/sprints.js.map +1 -0
- package/dist/modules/flow_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/flow_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/flow_staff_channel/channel-routes.js +444 -0
- package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/flow_staff_channel/index.d.ts +5 -0
- package/dist/modules/flow_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/flow_staff_channel/index.js +30 -0
- package/dist/modules/flow_staff_channel/index.js.map +1 -0
- package/dist/modules/hospitality_billing/functions.d.ts +18 -0
- package/dist/modules/hospitality_billing/functions.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/functions.js +426 -0
- package/dist/modules/hospitality_billing/functions.js.map +1 -0
- package/dist/modules/hospitality_billing/index.d.ts +3 -0
- package/dist/modules/hospitality_billing/index.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/index.js +25 -0
- package/dist/modules/hospitality_billing/index.js.map +1 -0
- package/dist/modules/hospitality_billing/jobs.d.ts +17 -0
- package/dist/modules/hospitality_billing/jobs.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/jobs.js +83 -0
- package/dist/modules/hospitality_billing/jobs.js.map +1 -0
- package/dist/modules/hospitality_billing/menus.d.ts +9 -0
- package/dist/modules/hospitality_billing/menus.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/menus.js +25 -0
- package/dist/modules/hospitality_billing/menus.js.map +1 -0
- package/dist/modules/hospitality_billing/messages.d.ts +3 -0
- package/dist/modules/hospitality_billing/messages.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/messages.js +163 -0
- package/dist/modules/hospitality_billing/messages.js.map +1 -0
- package/dist/modules/hospitality_billing/models.d.ts +3 -0
- package/dist/modules/hospitality_billing/models.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/models.js +65 -0
- package/dist/modules/hospitality_billing/models.js.map +1 -0
- package/dist/modules/hospitality_billing/routes.d.ts +3 -0
- package/dist/modules/hospitality_billing/routes.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/routes.js +189 -0
- package/dist/modules/hospitality_billing/routes.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/billing.d.ts +3 -0
- package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/billing.js +20 -0
- package/dist/modules/hospitality_billing/screens/billing.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts +12 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.js +86 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/index.d.ts +4 -0
- package/dist/modules/hospitality_billing/screens/index.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/index.js +4 -0
- package/dist/modules/hospitality_billing/screens/index.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts +14 -0
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/page-frame.js +6 -0
- package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/shared.d.ts +64 -0
- package/dist/modules/hospitality_billing/screens/shared.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/shared.js +117 -0
- package/dist/modules/hospitality_billing/screens/shared.js.map +1 -0
- package/dist/modules/hospitality_core/calendar.d.ts.map +1 -1
- package/dist/modules/hospitality_core/calendar.js +2 -1
- package/dist/modules/hospitality_core/calendar.js.map +1 -1
- package/dist/modules/hospitality_core/functions.d.ts.map +1 -1
- package/dist/modules/hospitality_core/functions.js +114 -14
- package/dist/modules/hospitality_core/functions.js.map +1 -1
- package/dist/modules/hospitality_core/index.d.ts +2 -2
- package/dist/modules/hospitality_core/index.d.ts.map +1 -1
- package/dist/modules/hospitality_core/index.js +3 -2
- package/dist/modules/hospitality_core/index.js.map +1 -1
- package/dist/modules/hospitality_core/inventory.d.ts +53 -4
- package/dist/modules/hospitality_core/inventory.d.ts.map +1 -1
- package/dist/modules/hospitality_core/inventory.js +121 -14
- package/dist/modules/hospitality_core/inventory.js.map +1 -1
- package/dist/modules/hospitality_core/menus.d.ts.map +1 -1
- package/dist/modules/hospitality_core/menus.js +31 -0
- package/dist/modules/hospitality_core/menus.js.map +1 -1
- package/dist/modules/hospitality_core/messages.d.ts.map +1 -1
- package/dist/modules/hospitality_core/messages.js +383 -183
- package/dist/modules/hospitality_core/messages.js.map +1 -1
- package/dist/modules/hospitality_core/models.d.ts +1 -1
- package/dist/modules/hospitality_core/models.d.ts.map +1 -1
- package/dist/modules/hospitality_core/models.js +47 -2
- package/dist/modules/hospitality_core/models.js.map +1 -1
- package/dist/modules/hospitality_core/night-audit.d.ts +1 -0
- package/dist/modules/hospitality_core/night-audit.d.ts.map +1 -1
- package/dist/modules/hospitality_core/night-audit.js +39 -1
- package/dist/modules/hospitality_core/night-audit.js.map +1 -1
- package/dist/modules/hospitality_core/online-booking.d.ts +5 -0
- package/dist/modules/hospitality_core/online-booking.d.ts.map +1 -0
- package/dist/modules/hospitality_core/online-booking.js +775 -0
- package/dist/modules/hospitality_core/online-booking.js.map +1 -0
- package/dist/modules/hospitality_core/operations.d.ts +21 -1
- package/dist/modules/hospitality_core/operations.d.ts.map +1 -1
- package/dist/modules/hospitality_core/operations.js +432 -67
- package/dist/modules/hospitality_core/operations.js.map +1 -1
- package/dist/modules/hospitality_core/routes.d.ts.map +1 -1
- package/dist/modules/hospitality_core/routes.js +503 -106
- package/dist/modules/hospitality_core/routes.js.map +1 -1
- package/dist/modules/hospitality_core/screens/amenities.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/amenities.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/amenities.js +65 -0
- package/dist/modules/hospitality_core/screens/amenities.js.map +1 -0
- package/dist/modules/hospitality_core/screens/building-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/building-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/building-detail.js +69 -0
- package/dist/modules/hospitality_core/screens/building-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.js +109 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.d.ts +20 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js +139 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js.map +1 -0
- package/dist/modules/hospitality_core/screens/content.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/content.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/content.js +114 -0
- package/dist/modules/hospitality_core/screens/content.js.map +1 -0
- package/dist/modules/hospitality_core/screens/floor-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/floor-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/floor-detail.js +74 -0
- package/dist/modules/hospitality_core/screens/floor-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/folio-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/folio-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/folio-detail.js +142 -0
- package/dist/modules/hospitality_core/screens/folio-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/folios.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/folios.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/folios.js +7 -0
- package/dist/modules/hospitality_core/screens/folios.js.map +1 -0
- package/dist/modules/hospitality_core/screens/front-desk.d.ts +35 -0
- package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/front-desk.js +195 -0
- package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.js +121 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.d.ts +9 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.js +54 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.js.map +1 -0
- package/dist/modules/hospitality_core/screens/index.d.ts +33 -0
- package/dist/modules/hospitality_core/screens/index.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/index.js +33 -0
- package/dist/modules/hospitality_core/screens/index.js.map +1 -0
- package/dist/modules/hospitality_core/screens/inventory.d.ts +8 -0
- package/dist/modules/hospitality_core/screens/inventory.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/inventory.js +122 -0
- package/dist/modules/hospitality_core/screens/inventory.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-property.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-property.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-property.js +8 -0
- package/dist/modules/hospitality_core/screens/new-property.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room-type.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-room-type.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room-type.js +8 -0
- package/dist/modules/hospitality_core/screens/new-room-type.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-room.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room.js +8 -0
- package/dist/modules/hospitality_core/screens/new-room.js.map +1 -0
- package/dist/modules/hospitality_core/screens/night-audit.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/night-audit.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/night-audit.js +67 -0
- package/dist/modules/hospitality_core/screens/night-audit.js.map +1 -0
- package/dist/modules/hospitality_core/screens/page-frame.d.ts +15 -0
- package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/page-frame.js +10 -0
- package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -0
- package/dist/modules/hospitality_core/screens/policies.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/policies.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/policies.js +72 -0
- package/dist/modules/hospitality_core/screens/policies.js.map +1 -0
- package/dist/modules/hospitality_core/screens/properties.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/properties.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/properties.js +45 -0
- package/dist/modules/hospitality_core/screens/properties.js.map +1 -0
- package/dist/modules/hospitality_core/screens/property-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/property-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/property-detail.js +92 -0
- package/dist/modules/hospitality_core/screens/property-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/rate-plans.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/rate-plans.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/rate-plans.js +123 -0
- package/dist/modules/hospitality_core/screens/rate-plans.js.map +1 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.d.ts +11 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.js +237 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/reservations.d.ts +17 -0
- package/dist/modules/hospitality_core/screens/reservations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/reservations.js +166 -0
- package/dist/modules/hospitality_core/screens/reservations.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-detail.js +75 -0
- package/dist/modules/hospitality_core/screens/room-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.js +91 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-types.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-types.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-types.js +61 -0
- package/dist/modules/hospitality_core/screens/room-types.js.map +1 -0
- package/dist/modules/hospitality_core/screens/rooms.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/rooms.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/rooms.js +150 -0
- package/dist/modules/hospitality_core/screens/rooms.js.map +1 -0
- package/dist/modules/hospitality_core/screens/services.d.ts +18 -0
- package/dist/modules/hospitality_core/screens/services.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/services.js +196 -0
- package/dist/modules/hospitality_core/screens/services.js.map +1 -0
- package/dist/modules/hospitality_core/screens/shared.d.ts +777 -0
- package/dist/modules/hospitality_core/screens/shared.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/shared.js +1586 -0
- package/dist/modules/hospitality_core/screens/shared.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/stay-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-detail.js +233 -0
- package/dist/modules/hospitality_core/screens/stay-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-notices.d.ts +9 -0
- package/dist/modules/hospitality_core/screens/stay-notices.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-notices.js +87 -0
- package/dist/modules/hospitality_core/screens/stay-notices.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stays.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/stays.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stays.js +7 -0
- package/dist/modules/hospitality_core/screens/stays.js.map +1 -0
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/tape-chart.js +99 -0
- package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -0
- package/dist/modules/hospitality_core/services.d.ts.map +1 -1
- package/dist/modules/hospitality_core/services.js +133 -30
- package/dist/modules/hospitality_core/services.js.map +1 -1
- package/dist/modules/hospitality_core/stay-notices.js +2 -2
- package/dist/modules/hospitality_core/stay-notices.js.map +1 -1
- package/dist/modules/hospitality_core/types.d.ts +26 -5
- package/dist/modules/hospitality_core/types.d.ts.map +1 -1
- package/dist/modules/hospitality_core/types.js +47 -5
- package/dist/modules/hospitality_core/types.js.map +1 -1
- package/dist/modules/hospitality_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.js +1227 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/hospitality_staff_channel/index.d.ts +5 -0
- package/dist/modules/hospitality_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/hospitality_staff_channel/index.js +34 -0
- package/dist/modules/hospitality_staff_channel/index.js.map +1 -0
- package/dist/modules/hr/functions.d.ts.map +1 -1
- package/dist/modules/hr/functions.js +108 -44
- package/dist/modules/hr/functions.js.map +1 -1
- package/dist/modules/hr/index.d.ts.map +1 -1
- package/dist/modules/hr/index.js +0 -1
- package/dist/modules/hr/index.js.map +1 -1
- package/dist/modules/hr_backend/index.d.ts +2 -1
- package/dist/modules/hr_backend/index.d.ts.map +1 -1
- package/dist/modules/hr_backend/index.js +39 -7
- package/dist/modules/hr_backend/index.js.map +1 -1
- package/dist/modules/hr_backend/routes.d.ts.map +1 -1
- package/dist/modules/hr_backend/routes.js +279 -42
- package/dist/modules/hr_backend/routes.js.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.d.ts +28 -0
- package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/employee-form.js +110 -0
- package/dist/modules/hr_backend/screens/employee-form.js.map +1 -0
- package/dist/modules/hr_backend/screens/employees-list.d.ts +22 -0
- package/dist/modules/hr_backend/screens/employees-list.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/employees-list.js +53 -0
- package/dist/modules/hr_backend/screens/employees-list.js.map +1 -0
- package/dist/modules/hr_backend/screens/index.d.ts +5 -0
- package/dist/modules/hr_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/index.js +5 -0
- package/dist/modules/hr_backend/screens/index.js.map +1 -0
- package/dist/modules/hr_backend/screens/leaves-list.d.ts +22 -0
- package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/leaves-list.js +78 -0
- package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -0
- package/dist/modules/hr_backend/screens/roster.d.ts +19 -0
- package/dist/modules/hr_backend/screens/roster.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/roster.js +83 -0
- package/dist/modules/hr_backend/screens/roster.js.map +1 -0
- package/dist/modules/inventory_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/inventory_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/inventory_staff_channel/channel-routes.js +724 -0
- package/dist/modules/inventory_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/inventory_staff_channel/index.d.ts +5 -0
- package/dist/modules/inventory_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/inventory_staff_channel/index.js +38 -0
- package/dist/modules/inventory_staff_channel/index.js.map +1 -0
- package/dist/modules/livedoc/documents.d.ts +48 -0
- package/dist/modules/livedoc/documents.d.ts.map +1 -0
- package/dist/modules/livedoc/documents.js +99 -0
- package/dist/modules/livedoc/documents.js.map +1 -0
- package/dist/modules/livedoc/functions.d.ts +3 -0
- package/dist/modules/livedoc/functions.d.ts.map +1 -0
- package/dist/modules/livedoc/functions.js +47 -0
- package/dist/modules/livedoc/functions.js.map +1 -0
- package/dist/modules/livedoc/index.d.ts +22 -0
- package/dist/modules/livedoc/index.d.ts.map +1 -0
- package/dist/modules/livedoc/index.js +37 -0
- package/dist/modules/livedoc/index.js.map +1 -0
- package/dist/modules/livedoc/islands.d.ts +3 -0
- package/dist/modules/livedoc/islands.d.ts.map +1 -0
- package/dist/modules/livedoc/islands.js +22 -0
- package/dist/modules/livedoc/islands.js.map +1 -0
- package/dist/modules/livedoc/routes.d.ts +11 -0
- package/dist/modules/livedoc/routes.d.ts.map +1 -0
- package/dist/modules/livedoc/routes.js +232 -0
- package/dist/modules/livedoc/routes.js.map +1 -0
- package/dist/modules/livedoc/sync.d.ts +124 -0
- package/dist/modules/livedoc/sync.d.ts.map +1 -0
- package/dist/modules/livedoc/sync.js +218 -0
- package/dist/modules/livedoc/sync.js.map +1 -0
- package/dist/modules/loyalty/admin-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/admin-functions.js +42 -6
- package/dist/modules/loyalty/admin-functions.js.map +1 -1
- package/dist/modules/loyalty/engine.d.ts +1 -0
- package/dist/modules/loyalty/engine.d.ts.map +1 -1
- package/dist/modules/loyalty/engine.js +88 -28
- package/dist/modules/loyalty/engine.js.map +1 -1
- package/dist/modules/loyalty/index.d.ts.map +1 -1
- package/dist/modules/loyalty/index.js +10 -2
- package/dist/modules/loyalty/index.js.map +1 -1
- package/dist/modules/loyalty/ledger.d.ts.map +1 -1
- package/dist/modules/loyalty/ledger.js +11 -0
- package/dist/modules/loyalty/ledger.js.map +1 -1
- package/dist/modules/loyalty/membership-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/membership-functions.js +23 -7
- package/dist/modules/loyalty/membership-functions.js.map +1 -1
- package/dist/modules/loyalty/messages.d.ts +8 -0
- package/dist/modules/loyalty/messages.d.ts.map +1 -1
- package/dist/modules/loyalty/messages.js +8 -0
- package/dist/modules/loyalty/messages.js.map +1 -1
- package/dist/modules/loyalty/models.d.ts.map +1 -1
- package/dist/modules/loyalty/models.js +20 -0
- package/dist/modules/loyalty/models.js.map +1 -1
- package/dist/modules/loyalty/order-functions.d.ts +16 -1
- package/dist/modules/loyalty/order-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/order-functions.js +513 -291
- package/dist/modules/loyalty/order-functions.js.map +1 -1
- package/dist/modules/loyalty/stats.d.ts +17 -0
- package/dist/modules/loyalty/stats.d.ts.map +1 -0
- package/dist/modules/loyalty/stats.js +178 -0
- package/dist/modules/loyalty/stats.js.map +1 -0
- package/dist/modules/loyalty/stored-value.d.ts +42 -0
- package/dist/modules/loyalty/stored-value.d.ts.map +1 -0
- package/dist/modules/loyalty/stored-value.js +368 -0
- package/dist/modules/loyalty/stored-value.js.map +1 -0
- package/dist/modules/loyalty/types.d.ts +6 -4
- package/dist/modules/loyalty/types.d.ts.map +1 -1
- package/dist/modules/loyalty/types.js +1 -1
- package/dist/modules/loyalty/types.js.map +1 -1
- package/dist/modules/loyalty_backend/index.js +443 -172
- package/dist/modules/loyalty_backend/index.js.map +1 -1
- package/dist/modules/loyalty_backend/messages.d.ts +58 -1
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.js +114 -0
- package/dist/modules/loyalty_backend/messages.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.d.ts +90 -0
- package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens/index.js +912 -0
- package/dist/modules/loyalty_backend/screens/index.js.map +1 -0
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts +14 -0
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens/page-frame.js +13 -0
- package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -0
- package/dist/modules/loyalty_pos/channel.d.ts +2 -0
- package/dist/modules/loyalty_pos/channel.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/channel.js +270 -0
- package/dist/modules/loyalty_pos/channel.js.map +1 -0
- package/dist/modules/loyalty_pos/functions.d.ts +11 -17
- package/dist/modules/loyalty_pos/functions.d.ts.map +1 -1
- package/dist/modules/loyalty_pos/functions.js +454 -94
- package/dist/modules/loyalty_pos/functions.js.map +1 -1
- package/dist/modules/loyalty_pos/index.js +6 -16
- package/dist/modules/loyalty_pos/index.js.map +1 -1
- package/dist/modules/loyalty_pos/jobs.d.ts +3 -0
- package/dist/modules/loyalty_pos/jobs.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/jobs.js +30 -0
- package/dist/modules/loyalty_pos/jobs.js.map +1 -0
- package/dist/modules/loyalty_sale/functions.d.ts +2 -2
- package/dist/modules/loyalty_sale/functions.d.ts.map +1 -1
- package/dist/modules/loyalty_sale/functions.js +53 -34
- package/dist/modules/loyalty_sale/functions.js.map +1 -1
- package/dist/modules/loyalty_sale/index.js +0 -2
- package/dist/modules/loyalty_sale/index.js.map +1 -1
- package/dist/modules/mail/functions.d.ts.map +1 -1
- package/dist/modules/mail/functions.js +48 -6
- package/dist/modules/mail/functions.js.map +1 -1
- package/dist/modules/mail/index.d.ts.map +1 -1
- package/dist/modules/mail/index.js +0 -1
- package/dist/modules/mail/index.js.map +1 -1
- package/dist/modules/mail/operations.d.ts +19 -0
- package/dist/modules/mail/operations.d.ts.map +1 -1
- package/dist/modules/mail/operations.js +69 -0
- package/dist/modules/mail/operations.js.map +1 -1
- package/dist/modules/mail_backend/index.d.ts +1 -1
- package/dist/modules/mail_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_backend/index.js +5 -14
- package/dist/modules/mail_backend/index.js.map +1 -1
- package/dist/modules/mail_backend/islands.js +2 -2
- package/dist/modules/mail_backend/islands.js.map +1 -1
- package/dist/modules/mail_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_backend/routes.js +25 -20
- package/dist/modules/mail_backend/routes.js.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.d.ts +9 -0
- package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens/inbox-list.js +13 -0
- package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -0
- package/dist/modules/mail_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens/index.js +2 -0
- package/dist/modules/mail_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_inbound/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound/index.js +0 -1
- package/dist/modules/mail_inbound/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/index.js +3 -12
- package/dist/modules/mail_inbound_backend/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/routes.js +6 -21
- package/dist/modules/mail_inbound_backend/routes.js.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts +8 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js +20 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_inbound_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/index.js +2 -0
- package/dist/modules/mail_inbound_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/mail_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/mail_staff_channel/channel-routes.js +183 -0
- package/dist/modules/mail_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/mail_staff_channel/index.d.ts +5 -0
- package/dist/modules/mail_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/mail_staff_channel/index.js +28 -0
- package/dist/modules/mail_staff_channel/index.js.map +1 -0
- package/dist/modules/mail_transport/index.d.ts.map +1 -1
- package/dist/modules/mail_transport/index.js +0 -1
- package/dist/modules/mail_transport/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/index.js +3 -12
- package/dist/modules/mail_transport_backend/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/routes.js +23 -22
- package/dist/modules/mail_transport_backend/routes.js.map +1 -1
- package/dist/modules/mail_transport_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_transport_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens/index.js +2 -0
- package/dist/modules/mail_transport_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts +9 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.js +29 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -0
- package/dist/modules/manufacturing/functions.d.ts +3 -0
- package/dist/modules/manufacturing/functions.d.ts.map +1 -0
- package/dist/modules/manufacturing/functions.js +912 -0
- package/dist/modules/manufacturing/functions.js.map +1 -0
- package/dist/modules/manufacturing/index.d.ts +6 -0
- package/dist/modules/manufacturing/index.d.ts.map +1 -0
- package/dist/modules/manufacturing/index.js +42 -0
- package/dist/modules/manufacturing/index.js.map +1 -0
- package/dist/modules/manufacturing/models.d.ts +8 -0
- package/dist/modules/manufacturing/models.d.ts.map +1 -0
- package/dist/modules/manufacturing/models.js +145 -0
- package/dist/modules/manufacturing/models.js.map +1 -0
- package/dist/modules/manufacturing/relations.d.ts.map +1 -0
- package/dist/modules/manufacturing/relations.js +37 -0
- package/dist/modules/manufacturing/relations.js.map +1 -0
- package/dist/modules/manufacturing/types.d.ts +7 -0
- package/dist/modules/manufacturing/types.d.ts.map +1 -0
- package/dist/modules/manufacturing/types.js +11 -0
- package/dist/modules/manufacturing/types.js.map +1 -0
- package/dist/modules/manufacturing_backend/index.d.ts +5 -0
- package/dist/modules/manufacturing_backend/index.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/index.js +146 -0
- package/dist/modules/manufacturing_backend/index.js.map +1 -0
- package/dist/modules/manufacturing_backend/routes.d.ts +3 -0
- package/dist/modules/manufacturing_backend/routes.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/routes.js +477 -0
- package/dist/modules/manufacturing_backend/routes.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.d.ts +15 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.js +39 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts +18 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.js +36 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/index.d.ts +8 -0
- package/dist/modules/manufacturing_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/index.js +8 -0
- package/dist/modules/manufacturing_backend/screens/index.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-create.d.ts +13 -0
- package/dist/modules/manufacturing_backend/screens/order-create.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-create.js +20 -0
- package/dist/modules/manufacturing_backend/screens/order-create.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts +7 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.js +129 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.d.ts +21 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.js +49 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.d.ts +24 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.js +80 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts +23 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js +61 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js.map +1 -0
- package/dist/modules/oauth/index.d.ts.map +1 -1
- package/dist/modules/oauth/index.js +0 -1
- package/dist/modules/oauth/index.js.map +1 -1
- package/dist/modules/oauth/models.d.ts.map +1 -1
- package/dist/modules/oauth/models.js +2 -1
- package/dist/modules/oauth/models.js.map +1 -1
- package/dist/modules/oauth_backend/index.d.ts +1 -1
- package/dist/modules/oauth_backend/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/index.js +3 -5
- package/dist/modules/oauth_backend/index.js.map +1 -1
- package/dist/modules/oauth_backend/messages.d.ts +4 -0
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
- package/dist/modules/oauth_backend/messages.js +4 -0
- package/dist/modules/oauth_backend/messages.js.map +1 -1
- package/dist/modules/oauth_backend/routes.d.ts.map +1 -1
- package/dist/modules/oauth_backend/routes.js +28 -30
- package/dist/modules/oauth_backend/routes.js.map +1 -1
- package/dist/modules/oauth_backend/screens/index.d.ts +66 -0
- package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/oauth_backend/screens/index.js +306 -0
- package/dist/modules/oauth_backend/screens/index.js.map +1 -0
- package/dist/modules/partner/functions.d.ts.map +1 -1
- package/dist/modules/partner/functions.js +74 -6
- package/dist/modules/partner/functions.js.map +1 -1
- package/dist/modules/partner/index.d.ts.map +1 -1
- package/dist/modules/partner/index.js +0 -1
- package/dist/modules/partner/index.js.map +1 -1
- package/dist/modules/partner/models.d.ts +4 -4
- package/dist/modules/partner/models.d.ts.map +1 -1
- package/dist/modules/partner/models.js +9 -7
- package/dist/modules/partner/models.js.map +1 -1
- package/dist/modules/partner/types.d.ts +2 -2
- package/dist/modules/partner/types.js +2 -2
- package/dist/modules/partner_backend/client/address-view.mjs +5 -5
- package/dist/modules/partner_backend/client/address-view.mjs.map +1 -1
- package/dist/modules/partner_backend/client/address.css +22 -10
- package/dist/modules/partner_backend/client/partner.css +116 -0
- package/dist/modules/partner_backend/index.d.ts +1 -1
- package/dist/modules/partner_backend/index.d.ts.map +1 -1
- package/dist/modules/partner_backend/index.js +34 -4
- package/dist/modules/partner_backend/index.js.map +1 -1
- package/dist/modules/partner_backend/menus.js +2 -2
- package/dist/modules/partner_backend/menus.js.map +1 -1
- package/dist/modules/partner_backend/routes.d.ts +3 -1
- package/dist/modules/partner_backend/routes.d.ts.map +1 -1
- package/dist/modules/partner_backend/routes.js +236 -91
- package/dist/modules/partner_backend/routes.js.map +1 -1
- package/dist/modules/partner_backend/screens/form.d.ts +21 -0
- package/dist/modules/partner_backend/screens/form.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/form.js +101 -0
- package/dist/modules/partner_backend/screens/form.js.map +1 -0
- package/dist/modules/partner_backend/screens/index.d.ts +5 -0
- package/dist/modules/partner_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/index.js +4 -0
- package/dist/modules/partner_backend/screens/index.js.map +1 -0
- package/dist/modules/partner_backend/screens/list.d.ts +6 -0
- package/dist/modules/partner_backend/screens/list.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/list.js +94 -0
- package/dist/modules/partner_backend/screens/list.js.map +1 -0
- package/dist/modules/partner_backend/screens/new.d.ts +5 -0
- package/dist/modules/partner_backend/screens/new.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/new.js +58 -0
- package/dist/modules/partner_backend/screens/new.js.map +1 -0
- package/dist/modules/partner_backend/screens/types.d.ts +44 -0
- package/dist/modules/partner_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/types.js +2 -0
- package/dist/modules/partner_backend/screens/types.js.map +1 -0
- package/dist/modules/partner_mail_backend/index.d.ts +5 -0
- package/dist/modules/partner_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/partner_mail_backend/index.js +29 -0
- package/dist/modules/partner_mail_backend/index.js.map +1 -0
- package/dist/modules/pos/functions.d.ts +18 -2
- package/dist/modules/pos/functions.d.ts.map +1 -1
- package/dist/modules/pos/functions.js +3279 -345
- package/dist/modules/pos/functions.js.map +1 -1
- package/dist/modules/pos/index.d.ts +2 -1
- package/dist/modules/pos/index.d.ts.map +1 -1
- package/dist/modules/pos/index.js +5 -5
- package/dist/modules/pos/index.js.map +1 -1
- package/dist/modules/pos/models.d.ts.map +1 -1
- package/dist/modules/pos/models.js +189 -1
- package/dist/modules/pos/models.js.map +1 -1
- package/dist/modules/pos/relations.d.ts.map +1 -1
- package/dist/modules/pos/relations.js +11 -0
- package/dist/modules/pos/relations.js.map +1 -1
- package/dist/modules/pos_backend/index.js +182 -154
- package/dist/modules/pos_backend/index.js.map +1 -1
- package/dist/modules/pos_backend/screens.d.ts +1 -0
- package/dist/modules/pos_backend/screens.d.ts.map +1 -1
- package/dist/modules/pos_backend/screens.js +28 -38
- package/dist/modules/pos_backend/screens.js.map +1 -1
- package/dist/modules/pos_channel/catalog.d.ts +27 -0
- package/dist/modules/pos_channel/catalog.d.ts.map +1 -0
- package/dist/modules/pos_channel/catalog.js +310 -0
- package/dist/modules/pos_channel/catalog.js.map +1 -0
- package/dist/modules/pos_channel/index.d.ts +7 -0
- package/dist/modules/pos_channel/index.d.ts.map +1 -0
- package/dist/modules/pos_channel/index.js +61 -0
- package/dist/modules/pos_channel/index.js.map +1 -0
- package/dist/modules/pos_channel/offline.d.ts +66 -0
- package/dist/modules/pos_channel/offline.d.ts.map +1 -0
- package/dist/modules/pos_channel/offline.js +16 -0
- package/dist/modules/pos_channel/offline.js.map +1 -0
- package/dist/modules/pos_channel/operations.d.ts +422 -0
- package/dist/modules/pos_channel/operations.d.ts.map +1 -0
- package/dist/modules/pos_channel/operations.js +1781 -0
- package/dist/modules/pos_channel/operations.js.map +1 -0
- package/dist/modules/pos_channel/sync.d.ts +6 -0
- package/dist/modules/pos_channel/sync.d.ts.map +1 -0
- package/dist/modules/pos_channel/sync.js +1161 -0
- package/dist/modules/pos_channel/sync.js.map +1 -0
- package/dist/modules/pricing/index.d.ts.map +1 -1
- package/dist/modules/pricing/index.js +3 -4
- package/dist/modules/pricing/index.js.map +1 -1
- package/dist/modules/pricing_backend/index.js +135 -78
- package/dist/modules/pricing_backend/index.js.map +1 -1
- package/dist/modules/pricing_backend/screens/index.d.ts +5 -0
- package/dist/modules/pricing_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/index.js +4 -0
- package/dist/modules/pricing_backend/screens/index.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.d.ts +10 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.js +30 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts +15 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.js +164 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts +11 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.js +27 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -0
- package/dist/modules/pricing_backend/screens/shared.d.ts +21 -0
- package/dist/modules/pricing_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/shared.js +3 -0
- package/dist/modules/pricing_backend/screens/shared.js.map +1 -0
- package/dist/modules/product/functions.d.ts.map +1 -1
- package/dist/modules/product/functions.js +679 -50
- package/dist/modules/product/functions.js.map +1 -1
- package/dist/modules/product/index.d.ts +2 -0
- package/dist/modules/product/index.d.ts.map +1 -1
- package/dist/modules/product/index.js +2 -2
- package/dist/modules/product/index.js.map +1 -1
- package/dist/modules/product/models.d.ts +1 -1
- package/dist/modules/product/models.d.ts.map +1 -1
- package/dist/modules/product/models.js +27 -4
- package/dist/modules/product/models.js.map +1 -1
- package/dist/modules/product/relations.d.ts.map +1 -1
- package/dist/modules/product/relations.js +4 -0
- package/dist/modules/product/relations.js.map +1 -1
- package/dist/modules/product/sellable.d.ts +26 -0
- package/dist/modules/product/sellable.d.ts.map +1 -0
- package/dist/modules/product/sellable.js +56 -0
- package/dist/modules/product/sellable.js.map +1 -0
- package/dist/modules/product/types.d.ts +2 -2
- package/dist/modules/product/views.d.ts.map +1 -1
- package/dist/modules/product/views.js +5 -1
- package/dist/modules/product/views.js.map +1 -1
- package/dist/modules/product_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/product_activity_backend/index.js +2 -3
- package/dist/modules/product_activity_backend/index.js.map +1 -1
- package/dist/modules/product_backend/client/media-upload-view.d.mts.map +1 -1
- package/dist/modules/product_backend/client/media-upload-view.mjs +1 -0
- package/dist/modules/product_backend/client/media-upload-view.mjs.map +1 -1
- package/dist/modules/product_backend/client/product.css +964 -0
- package/dist/modules/product_backend/index.d.ts +5 -6
- package/dist/modules/product_backend/index.d.ts.map +1 -1
- package/dist/modules/product_backend/index.js +203 -14
- package/dist/modules/product_backend/index.js.map +1 -1
- package/dist/modules/product_backend/menus.js +2 -2
- package/dist/modules/product_backend/menus.js.map +1 -1
- package/dist/modules/product_backend/relation-control.d.ts +85 -0
- package/dist/modules/product_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/product_backend/relation-control.js +129 -0
- package/dist/modules/product_backend/relation-control.js.map +1 -0
- package/dist/modules/product_backend/routes.d.ts.map +1 -1
- package/dist/modules/product_backend/routes.js +502 -196
- package/dist/modules/product_backend/routes.js.map +1 -1
- package/dist/modules/product_backend/screens/attributes.d.ts +7 -0
- package/dist/modules/product_backend/screens/attributes.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/attributes.js +66 -0
- package/dist/modules/product_backend/screens/attributes.js.map +1 -0
- package/dist/modules/product_backend/screens/create.d.ts +16 -0
- package/dist/modules/product_backend/screens/create.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/create.js +86 -0
- package/dist/modules/product_backend/screens/create.js.map +1 -0
- package/dist/modules/product_backend/screens/detail.d.ts +87 -0
- package/dist/modules/product_backend/screens/detail.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/detail.js +381 -0
- package/dist/modules/product_backend/screens/detail.js.map +1 -0
- package/dist/modules/product_backend/screens/favorite.d.ts +6 -0
- package/dist/modules/product_backend/screens/favorite.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/favorite.js +43 -0
- package/dist/modules/product_backend/screens/favorite.js.map +1 -0
- package/dist/modules/product_backend/screens/index.d.ts +10 -0
- package/dist/modules/product_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/index.js +7 -0
- package/dist/modules/product_backend/screens/index.js.map +1 -0
- package/dist/modules/product_backend/screens/list.d.ts +54 -0
- package/dist/modules/product_backend/screens/list.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/list.js +124 -0
- package/dist/modules/product_backend/screens/list.js.map +1 -0
- package/dist/modules/product_backend/screens/variant.d.ts +9 -0
- package/dist/modules/product_backend/screens/variant.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/variant.js +113 -0
- package/dist/modules/product_backend/screens/variant.js.map +1 -0
- package/dist/modules/product_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/product_mail_backend/index.js +2 -3
- package/dist/modules/product_mail_backend/index.js.map +1 -1
- package/dist/modules/product_media/functions.d.ts.map +1 -1
- package/dist/modules/product_media/functions.js +59 -6
- package/dist/modules/product_media/functions.js.map +1 -1
- package/dist/modules/product_media/index.js +0 -1
- package/dist/modules/product_media/index.js.map +1 -1
- package/dist/modules/product_variant_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/product_variant_activity_backend/index.js +2 -3
- package/dist/modules/product_variant_activity_backend/index.js.map +1 -1
- package/dist/modules/product_variant_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/product_variant_mail_backend/index.js +2 -3
- package/dist/modules/product_variant_mail_backend/index.js.map +1 -1
- package/dist/modules/purchase/functions.d.ts.map +1 -1
- package/dist/modules/purchase/functions.js +852 -225
- package/dist/modules/purchase/functions.js.map +1 -1
- package/dist/modules/purchase/index.d.ts.map +1 -1
- package/dist/modules/purchase/index.js +30 -5
- package/dist/modules/purchase/index.js.map +1 -1
- package/dist/modules/purchase/models.d.ts.map +1 -1
- package/dist/modules/purchase/models.js +1 -0
- package/dist/modules/purchase/models.js.map +1 -1
- package/dist/modules/purchase/reports.d.ts +4 -0
- package/dist/modules/purchase/reports.d.ts.map +1 -0
- package/dist/modules/purchase/reports.js +86 -0
- package/dist/modules/purchase/reports.js.map +1 -0
- package/dist/modules/purchase_backend/index.js +513 -112
- package/dist/modules/purchase_backend/index.js.map +1 -1
- package/dist/modules/purchase_backend/screens/index.d.ts +10 -0
- package/dist/modules/purchase_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/index.js +10 -0
- package/dist/modules/purchase_backend/screens/index.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts +31 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.js +204 -0
- package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.d.ts +7 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.js +58 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.js.map +1 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts +19 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/overview.js +52 -0
- package/dist/modules/purchase_backend/screens/overview.js.map +1 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.d.ts +14 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.js +26 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.js.map +1 -0
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts +16 -0
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/rfq-create.js +24 -0
- package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +18 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.js +28 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -0
- package/dist/modules/purchase_backend/screens/shared.d.ts +18 -0
- package/dist/modules/purchase_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/shared.js +30 -0
- package/dist/modules/purchase_backend/screens/shared.js.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts +20 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +25 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +33 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +73 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -0
- package/dist/modules/purchase_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/channel-routes.js +119 -0
- package/dist/modules/purchase_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/index.d.ts +8 -0
- package/dist/modules/purchase_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/index.js +45 -0
- package/dist/modules/purchase_staff_channel/index.js.map +1 -0
- package/dist/modules/purchase_staff_channel/order-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/order-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/order-routes.js +754 -0
- package/dist/modules/purchase_staff_channel/order-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/product-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/product-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/product-routes.js +183 -0
- package/dist/modules/purchase_staff_channel/product-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.js +189 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.js.map +1 -0
- package/dist/modules/quality/functions.d.ts +3 -0
- package/dist/modules/quality/functions.d.ts.map +1 -0
- package/dist/modules/quality/functions.js +381 -0
- package/dist/modules/quality/functions.js.map +1 -0
- package/dist/modules/quality/index.d.ts +5 -0
- package/dist/modules/quality/index.d.ts.map +1 -0
- package/dist/modules/quality/index.js +19 -0
- package/dist/modules/quality/index.js.map +1 -0
- package/dist/modules/quality/models.d.ts +3 -0
- package/dist/modules/quality/models.d.ts.map +1 -0
- package/dist/modules/quality/models.js +91 -0
- package/dist/modules/quality/models.js.map +1 -0
- package/dist/modules/quality_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/quality_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/quality_staff_channel/channel-routes.js +495 -0
- package/dist/modules/quality_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/quality_staff_channel/index.d.ts +5 -0
- package/dist/modules/quality_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/quality_staff_channel/index.js +30 -0
- package/dist/modules/quality_staff_channel/index.js.map +1 -0
- package/dist/modules/report/functions.d.ts +3 -0
- package/dist/modules/report/functions.d.ts.map +1 -0
- package/dist/modules/report/functions.js +197 -0
- package/dist/modules/report/functions.js.map +1 -0
- package/dist/modules/report/index.d.ts +3 -0
- package/dist/modules/report/index.d.ts.map +1 -0
- package/dist/modules/report/index.js +21 -0
- package/dist/modules/report/index.js.map +1 -0
- package/dist/modules/report/jobs.d.ts +3 -0
- package/dist/modules/report/jobs.d.ts.map +1 -0
- package/dist/modules/report/jobs.js +18 -0
- package/dist/modules/report/jobs.js.map +1 -0
- package/dist/modules/report/models.d.ts +3 -0
- package/dist/modules/report/models.d.ts.map +1 -0
- package/dist/modules/report/models.js +45 -0
- package/dist/modules/report/models.js.map +1 -0
- package/dist/modules/report/routes.d.ts +19 -0
- package/dist/modules/report/routes.d.ts.map +1 -0
- package/dist/modules/report/routes.js +138 -0
- package/dist/modules/report/routes.js.map +1 -0
- package/dist/modules/report_backend/index.d.ts +3 -0
- package/dist/modules/report_backend/index.d.ts.map +1 -0
- package/dist/modules/report_backend/index.js +67 -0
- package/dist/modules/report_backend/index.js.map +1 -0
- package/dist/modules/report_backend/routes.d.ts +10 -0
- package/dist/modules/report_backend/routes.d.ts.map +1 -0
- package/dist/modules/report_backend/routes.js +87 -0
- package/dist/modules/report_backend/routes.js.map +1 -0
- package/dist/modules/report_backend/screens/index.d.ts +13 -0
- package/dist/modules/report_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/report_backend/screens/index.js +91 -0
- package/dist/modules/report_backend/screens/index.js.map +1 -0
- package/dist/modules/sale/functions.d.ts.map +1 -1
- package/dist/modules/sale/functions.js +796 -238
- package/dist/modules/sale/functions.js.map +1 -1
- package/dist/modules/sale/index.d.ts.map +1 -1
- package/dist/modules/sale/index.js +44 -5
- package/dist/modules/sale/index.js.map +1 -1
- package/dist/modules/sale/models.d.ts.map +1 -1
- package/dist/modules/sale/models.js +47 -1
- package/dist/modules/sale/models.js.map +1 -1
- package/dist/modules/sale/relations.d.ts.map +1 -1
- package/dist/modules/sale/relations.js +6 -0
- package/dist/modules/sale/relations.js.map +1 -1
- package/dist/modules/sale/reports.d.ts +4 -0
- package/dist/modules/sale/reports.d.ts.map +1 -0
- package/dist/modules/sale/reports.js +132 -0
- package/dist/modules/sale/reports.js.map +1 -0
- package/dist/modules/sale/scope.d.ts +31 -0
- package/dist/modules/sale/scope.d.ts.map +1 -0
- package/dist/modules/sale/scope.js +34 -0
- package/dist/modules/sale/scope.js.map +1 -0
- package/dist/modules/sale_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/sale_activity_backend/index.js +0 -1
- package/dist/modules/sale_activity_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/index.js +338 -121
- package/dist/modules/sale_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/screens/index.d.ts +9 -0
- package/dist/modules/sale_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/index.js +9 -0
- package/dist/modules/sale_backend/screens/index.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +14 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js +48 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts +14 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js +38 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -0
- package/dist/modules/sale_backend/screens/order-detail.d.ts +43 -0
- package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/order-detail.js +226 -0
- package/dist/modules/sale_backend/screens/order-detail.js.map +1 -0
- package/dist/modules/sale_backend/screens/overview.d.ts +31 -0
- package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/overview.js +73 -0
- package/dist/modules/sale_backend/screens/overview.js.map +1 -0
- package/dist/modules/sale_backend/screens/quotation-create.d.ts +13 -0
- package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/quotation-create.js +19 -0
- package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -0
- package/dist/modules/sale_backend/screens/quotations-list.d.ts +25 -0
- package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/quotations-list.js +96 -0
- package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts +25 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.js +100 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/shared.d.ts +4 -0
- package/dist/modules/sale_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/shared.js +4 -0
- package/dist/modules/sale_backend/screens/shared.js.map +1 -0
- package/dist/modules/sale_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/sale_mail_backend/index.js +0 -1
- package/dist/modules/sale_mail_backend/index.js.map +1 -1
- package/dist/modules/sale_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/channel-routes.js +296 -0
- package/dist/modules/sale_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/sale_staff_channel/index.d.ts +7 -0
- package/dist/modules/sale_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/index.js +44 -0
- package/dist/modules/sale_staff_channel/index.js.map +1 -0
- package/dist/modules/sale_staff_channel/order-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/order-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/order-routes.js +658 -0
- package/dist/modules/sale_staff_channel/order-routes.js.map +1 -0
- package/dist/modules/sale_staff_channel/product-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/product-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/product-routes.js +183 -0
- package/dist/modules/sale_staff_channel/product-routes.js.map +1 -0
- package/dist/modules/stock/functions.d.ts.map +1 -1
- package/dist/modules/stock/functions.js +1239 -332
- package/dist/modules/stock/functions.js.map +1 -1
- package/dist/modules/stock/index.d.ts +2 -0
- package/dist/modules/stock/index.d.ts.map +1 -1
- package/dist/modules/stock/index.js +29 -6
- package/dist/modules/stock/index.js.map +1 -1
- package/dist/modules/stock/models.d.ts.map +1 -1
- package/dist/modules/stock/models.js +1 -0
- package/dist/modules/stock/models.js.map +1 -1
- package/dist/modules/stock/reports.d.ts +4 -0
- package/dist/modules/stock/reports.d.ts.map +1 -0
- package/dist/modules/stock/reports.js +100 -0
- package/dist/modules/stock/reports.js.map +1 -0
- package/dist/modules/stock/routing.d.ts +1 -1
- package/dist/modules/stock/routing.d.ts.map +1 -1
- package/dist/modules/stock/routing.js +35 -30
- package/dist/modules/stock/routing.js.map +1 -1
- package/dist/modules/stock/scope.d.ts +23 -0
- package/dist/modules/stock/scope.d.ts.map +1 -0
- package/dist/modules/stock/scope.js +26 -0
- package/dist/modules/stock/scope.js.map +1 -0
- package/dist/modules/stock/units.d.ts +14 -0
- package/dist/modules/stock/units.d.ts.map +1 -0
- package/dist/modules/stock/units.js +50 -0
- package/dist/modules/stock/units.js.map +1 -0
- package/dist/modules/stock_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_activity_backend/index.js +0 -1
- package/dist/modules/stock_activity_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/client/editor-view.d.mts.map +1 -1
- package/dist/modules/stock_backend/client/editor-view.mjs +12 -10
- package/dist/modules/stock_backend/client/editor-view.mjs.map +1 -1
- package/dist/modules/stock_backend/index.js +27 -20
- package/dist/modules/stock_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/routes.d.ts.map +1 -1
- package/dist/modules/stock_backend/routes.js +485 -232
- package/dist/modules/stock_backend/routes.js.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.d.ts +28 -0
- package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/forecast.js +108 -0
- package/dist/modules/stock_backend/screens/forecast.js.map +1 -0
- package/dist/modules/stock_backend/screens/index.d.ts +22 -0
- package/dist/modules/stock_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/index.js +22 -0
- package/dist/modules/stock_backend/screens/index.js.map +1 -0
- package/dist/modules/stock_backend/screens/inventory.d.ts +27 -0
- package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/inventory.js +128 -0
- package/dist/modules/stock_backend/screens/inventory.js.map +1 -0
- package/dist/modules/stock_backend/screens/location-create.d.ts +15 -0
- package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/location-create.js +75 -0
- package/dist/modules/stock_backend/screens/location-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/locations-list.d.ts +21 -0
- package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/locations-list.js +62 -0
- package/dist/modules/stock_backend/screens/locations-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/lot-create.d.ts +14 -0
- package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lot-create.js +60 -0
- package/dist/modules/stock_backend/screens/lot-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/lot-detail.d.ts +30 -0
- package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lot-detail.js +84 -0
- package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/lots-list.d.ts +25 -0
- package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lots-list.js +54 -0
- package/dist/modules/stock_backend/screens/lots-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts +15 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.js +89 -0
- package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts +22 -0
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/picking-types-list.js +80 -0
- package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts +17 -0
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-create.js +74 -0
- package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts +29 -0
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-list.js +84 -0
- package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/shared.d.ts +12 -0
- package/dist/modules/stock_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/shared.js +29 -0
- package/dist/modules/stock_backend/screens/shared.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-create.js +52 -0
- package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.d.ts +30 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.js +131 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +22 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.js +51 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock.d.ts +7 -0
- package/dist/modules/stock_backend/screens/stock.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock.js +13 -0
- package/dist/modules/stock_backend/screens/stock.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-create.js +38 -0
- package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts +27 -0
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-detail.js +91 -0
- package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfers-list.d.ts +25 -0
- package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfers-list.js +81 -0
- package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/warehouse-create.js +79 -0
- package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts +21 -0
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/warehouses-list.js +60 -0
- package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_lot_activity_backend/index.js +0 -1
- package/dist/modules/stock_lot_activity_backend/index.js.map +1 -1
- package/dist/modules/stock_lot_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_lot_mail_backend/index.js +0 -1
- package/dist/modules/stock_lot_mail_backend/index.js.map +1 -1
- package/dist/modules/stock_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_mail_backend/index.js +0 -1
- package/dist/modules/stock_mail_backend/index.js.map +1 -1
- package/dist/modules/stock_mail_inbound/index.d.ts.map +1 -1
- package/dist/modules/stock_mail_inbound/index.js +0 -2
- package/dist/modules/stock_mail_inbound/index.js.map +1 -1
- package/dist/modules/stock_staff_channel/channel-routes.d.ts +656 -0
- package/dist/modules/stock_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/channel-routes.js +445 -0
- package/dist/modules/stock_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/stock_staff_channel/functions.d.ts +3 -0
- package/dist/modules/stock_staff_channel/functions.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/functions.js +954 -0
- package/dist/modules/stock_staff_channel/functions.js.map +1 -0
- package/dist/modules/stock_staff_channel/index.d.ts +8 -0
- package/dist/modules/stock_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/index.js +37 -0
- package/dist/modules/stock_staff_channel/index.js.map +1 -0
- package/dist/modules/stock_staff_channel/models.d.ts +4 -0
- package/dist/modules/stock_staff_channel/models.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/models.js +119 -0
- package/dist/modules/stock_staff_channel/models.js.map +1 -0
- package/dist/modules/stock_staff_channel/operation-routes.d.ts +2 -0
- package/dist/modules/stock_staff_channel/operation-routes.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/operation-routes.js +1269 -0
- package/dist/modules/stock_staff_channel/operation-routes.js.map +1 -0
- package/dist/modules/storage/functions.d.ts.map +1 -1
- package/dist/modules/storage/functions.js +18 -5
- package/dist/modules/storage/functions.js.map +1 -1
- package/dist/modules/storage/index.js +0 -1
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/modules/storage/jobs.d.ts +21 -1
- package/dist/modules/storage/jobs.d.ts.map +1 -1
- package/dist/modules/storage/jobs.js +142 -2
- package/dist/modules/storage/jobs.js.map +1 -1
- package/dist/modules/storage/models.d.ts.map +1 -1
- package/dist/modules/storage/models.js +2 -0
- package/dist/modules/storage/models.js.map +1 -1
- package/dist/modules/storage/policy.d.ts +5 -0
- package/dist/modules/storage/policy.d.ts.map +1 -0
- package/dist/modules/storage/policy.js +13 -0
- package/dist/modules/storage/policy.js.map +1 -0
- package/dist/modules/storage/routes.d.ts +1 -0
- package/dist/modules/storage/routes.d.ts.map +1 -1
- package/dist/modules/storage/routes.js +19 -15
- package/dist/modules/storage/routes.js.map +1 -1
- package/dist/modules/uom/convert.d.ts +1 -1
- package/dist/modules/uom/convert.js +2 -2
- package/dist/modules/uom/convert.js.map +1 -1
- package/dist/modules/uom/functions.d.ts.map +1 -1
- package/dist/modules/uom/functions.js +39 -4
- package/dist/modules/uom/functions.js.map +1 -1
- package/dist/modules/uom/index.d.ts.map +1 -1
- package/dist/modules/uom/index.js +1 -2
- package/dist/modules/uom/index.js.map +1 -1
- package/dist/modules/uom/messages.js +2 -2
- package/dist/modules/uom/messages.js.map +1 -1
- package/dist/modules/uom/models.d.ts +1 -1
- package/dist/modules/uom/models.d.ts.map +1 -1
- package/dist/modules/uom/models.js +1 -1
- package/dist/modules/uom/models.js.map +1 -1
- package/dist/modules/user/authorization.d.ts +80 -0
- package/dist/modules/user/authorization.d.ts.map +1 -0
- package/dist/modules/user/authorization.js +1039 -0
- package/dist/modules/user/authorization.js.map +1 -0
- package/dist/modules/user/functions.d.ts.map +1 -1
- package/dist/modules/user/functions.js +188 -32
- package/dist/modules/user/functions.js.map +1 -1
- package/dist/modules/user/index.d.ts +4 -1
- package/dist/modules/user/index.d.ts.map +1 -1
- package/dist/modules/user/index.js +2 -3
- package/dist/modules/user/index.js.map +1 -1
- package/dist/modules/user/login.d.ts +1 -27
- package/dist/modules/user/login.d.ts.map +1 -1
- package/dist/modules/user/login.js +5 -45
- package/dist/modules/user/login.js.map +1 -1
- package/dist/modules/user/messages.d.ts +6 -0
- package/dist/modules/user/messages.d.ts.map +1 -1
- package/dist/modules/user/messages.js +6 -0
- package/dist/modules/user/messages.js.map +1 -1
- package/dist/modules/user/models.d.ts +1 -1
- package/dist/modules/user/models.d.ts.map +1 -1
- package/dist/modules/user/models.js +73 -9
- package/dist/modules/user/models.js.map +1 -1
- package/dist/modules/user/relations.d.ts.map +1 -1
- package/dist/modules/user/relations.js +6 -0
- package/dist/modules/user/relations.js.map +1 -1
- package/dist/modules/user/roles.d.ts +11 -1
- package/dist/modules/user/roles.d.ts.map +1 -1
- package/dist/modules/user/roles.js +402 -117
- package/dist/modules/user/roles.js.map +1 -1
- package/dist/modules/user/routes.js +1 -1
- package/dist/modules/user/routes.js.map +1 -1
- package/dist/modules/user_backend/index.d.ts +1 -1
- package/dist/modules/user_backend/index.d.ts.map +1 -1
- package/dist/modules/user_backend/index.js +1 -3
- package/dist/modules/user_backend/index.js.map +1 -1
- package/dist/modules/user_backend/messages.d.ts +60 -0
- package/dist/modules/user_backend/messages.d.ts.map +1 -1
- package/dist/modules/user_backend/messages.js +60 -0
- package/dist/modules/user_backend/messages.js.map +1 -1
- package/dist/modules/user_backend/routes.d.ts.map +1 -1
- package/dist/modules/user_backend/routes.js +352 -69
- package/dist/modules/user_backend/routes.js.map +1 -1
- package/dist/modules/user_backend/screens/index.d.ts +11 -0
- package/dist/modules/user_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/index.js +8 -0
- package/dist/modules/user_backend/screens/index.js.map +1 -0
- package/dist/modules/user_backend/screens/presets-form.d.ts +16 -0
- package/dist/modules/user_backend/screens/presets-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/presets-form.js +37 -0
- package/dist/modules/user_backend/screens/presets-form.js.map +1 -0
- package/dist/modules/user_backend/screens/profile-form.d.ts +14 -0
- package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/profile-form.js +37 -0
- package/dist/modules/user_backend/screens/profile-form.js.map +1 -0
- package/dist/modules/user_backend/screens/role-form.d.ts +21 -0
- package/dist/modules/user_backend/screens/role-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/role-form.js +93 -0
- package/dist/modules/user_backend/screens/role-form.js.map +1 -0
- package/dist/modules/user_backend/screens/roles-list.d.ts +15 -0
- package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/roles-list.js +48 -0
- package/dist/modules/user_backend/screens/roles-list.js.map +1 -0
- package/dist/modules/user_backend/screens/sessions.d.ts +5 -0
- package/dist/modules/user_backend/screens/sessions.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/sessions.js +35 -0
- package/dist/modules/user_backend/screens/sessions.js.map +1 -0
- package/dist/modules/user_backend/screens/types.d.ts +68 -0
- package/dist/modules/user_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/types.js +2 -0
- package/dist/modules/user_backend/screens/types.js.map +1 -0
- package/dist/modules/user_backend/screens/user-form.d.ts +55 -0
- package/dist/modules/user_backend/screens/user-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/user-form.js +174 -0
- package/dist/modules/user_backend/screens/user-form.js.map +1 -0
- package/dist/modules/user_backend/screens/users-list.d.ts +17 -0
- package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/users-list.js +56 -0
- package/dist/modules/user_backend/screens/users-list.js.map +1 -0
- package/dist/modules/website/cms.d.ts +18 -1
- package/dist/modules/website/cms.d.ts.map +1 -1
- package/dist/modules/website/cms.js +373 -38
- package/dist/modules/website/cms.js.map +1 -1
- package/dist/modules/website/customer.d.ts.map +1 -1
- package/dist/modules/website/customer.js +249 -1
- package/dist/modules/website/customer.js.map +1 -1
- package/dist/modules/website/index.d.ts.map +1 -1
- package/dist/modules/website/index.js +26 -4
- package/dist/modules/website/index.js.map +1 -1
- package/dist/modules/website/models.d.ts.map +1 -1
- package/dist/modules/website/models.js +101 -0
- package/dist/modules/website/models.js.map +1 -1
- package/dist/modules/website/paths.d.ts +31 -0
- package/dist/modules/website/paths.d.ts.map +1 -0
- package/dist/modules/website/paths.js +48 -0
- package/dist/modules/website/paths.js.map +1 -0
- package/dist/modules/website/publication.d.ts +3 -0
- package/dist/modules/website/publication.d.ts.map +1 -0
- package/dist/modules/website/publication.js +366 -0
- package/dist/modules/website/publication.js.map +1 -0
- package/dist/modules/website/renderable.d.ts +32 -0
- package/dist/modules/website/renderable.d.ts.map +1 -0
- package/dist/modules/website/renderable.js +59 -0
- package/dist/modules/website/renderable.js.map +1 -0
- package/dist/modules/website/sections.d.ts.map +1 -1
- package/dist/modules/website/sections.js +13 -0
- package/dist/modules/website/sections.js.map +1 -1
- package/dist/modules/website_backend/csv.d.ts +23 -0
- package/dist/modules/website_backend/csv.d.ts.map +1 -0
- package/dist/modules/website_backend/csv.js +31 -0
- package/dist/modules/website_backend/csv.js.map +1 -0
- package/dist/modules/website_backend/index.js +260 -2
- package/dist/modules/website_backend/index.js.map +1 -1
- package/dist/modules/website_backend/menus.d.ts.map +1 -1
- package/dist/modules/website_backend/menus.js +28 -6
- package/dist/modules/website_backend/menus.js.map +1 -1
- package/dist/modules/website_backend/routes.d.ts.map +1 -1
- package/dist/modules/website_backend/routes.js +684 -126
- package/dist/modules/website_backend/routes.js.map +1 -1
- package/dist/modules/website_backend/screens/index.d.ts +333 -0
- package/dist/modules/website_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/website_backend/screens/index.js +1332 -0
- package/dist/modules/website_backend/screens/index.js.map +1 -0
- package/dist/modules/website_backend/screens/page-frame.d.ts +14 -0
- package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/website_backend/screens/page-frame.js +13 -0
- package/dist/modules/website_backend/screens/page-frame.js.map +1 -0
- package/dist/modules/website_form/audit.d.ts +27 -0
- package/dist/modules/website_form/audit.d.ts.map +1 -0
- package/dist/modules/website_form/audit.js +30 -0
- package/dist/modules/website_form/audit.js.map +1 -0
- package/dist/modules/website_form/functions.d.ts.map +1 -1
- package/dist/modules/website_form/functions.js +416 -12
- package/dist/modules/website_form/functions.js.map +1 -1
- package/dist/modules/website_form/index.js +24 -2
- package/dist/modules/website_form/index.js.map +1 -1
- package/dist/modules/website_form/jobs.d.ts +11 -0
- package/dist/modules/website_form/jobs.d.ts.map +1 -0
- package/dist/modules/website_form/jobs.js +80 -0
- package/dist/modules/website_form/jobs.js.map +1 -0
- package/dist/modules/website_form/models.d.ts.map +1 -1
- package/dist/modules/website_form/models.js +89 -0
- package/dist/modules/website_form/models.js.map +1 -1
- package/dist/modules/website_form/purge.d.ts +22 -0
- package/dist/modules/website_form/purge.d.ts.map +1 -0
- package/dist/modules/website_form/purge.js +59 -0
- package/dist/modules/website_form/purge.js.map +1 -0
- package/dist/modules/website_form/retention.d.ts +70 -0
- package/dist/modules/website_form/retention.d.ts.map +1 -0
- package/dist/modules/website_form/retention.js +145 -0
- package/dist/modules/website_form/retention.js.map +1 -0
- package/dist/modules/website_form/routes.d.ts.map +1 -1
- package/dist/modules/website_form/routes.js +37 -3
- package/dist/modules/website_form/routes.js.map +1 -1
- package/dist/modules/website_form_mail/index.d.ts +36 -0
- package/dist/modules/website_form_mail/index.d.ts.map +1 -0
- package/dist/modules/website_form_mail/index.js +137 -0
- package/dist/modules/website_form_mail/index.js.map +1 -0
- package/dist/modules/website_hospitality/channel-routes.d.ts +2 -0
- package/dist/modules/website_hospitality/channel-routes.d.ts.map +1 -0
- package/dist/modules/website_hospitality/channel-routes.js +355 -0
- package/dist/modules/website_hospitality/channel-routes.js.map +1 -0
- package/dist/modules/website_hospitality/functions.d.ts.map +1 -1
- package/dist/modules/website_hospitality/functions.js +27 -2
- package/dist/modules/website_hospitality/functions.js.map +1 -1
- package/dist/modules/website_hospitality/index.js +4 -3
- package/dist/modules/website_hospitality/index.js.map +1 -1
- package/dist/modules/website_hospitality/models.d.ts.map +1 -1
- package/dist/modules/website_hospitality/models.js +2 -0
- package/dist/modules/website_hospitality/models.js.map +1 -1
- package/dist/modules/website_menu/functions.d.ts.map +1 -1
- package/dist/modules/website_menu/functions.js +184 -9
- package/dist/modules/website_menu/functions.js.map +1 -1
- package/dist/modules/website_menu/index.js +6 -1
- package/dist/modules/website_menu/index.js.map +1 -1
- package/dist/modules/website_retail/channel-routes.d.ts +2 -0
- package/dist/modules/website_retail/channel-routes.d.ts.map +1 -0
- package/dist/modules/website_retail/channel-routes.js +305 -0
- package/dist/modules/website_retail/channel-routes.js.map +1 -0
- package/dist/modules/website_retail/functions.d.ts +14 -1
- package/dist/modules/website_retail/functions.d.ts.map +1 -1
- package/dist/modules/website_retail/functions.js +6 -6
- package/dist/modules/website_retail/functions.js.map +1 -1
- package/dist/modules/website_retail/index.js +24 -3
- package/dist/modules/website_retail/index.js.map +1 -1
- package/dist/modules/website_retail/models.d.ts.map +1 -1
- package/dist/modules/website_retail/models.js +30 -0
- package/dist/modules/website_retail/models.js.map +1 -1
- package/dist/modules/website_retail/online.d.ts +3 -0
- package/dist/modules/website_retail/online.d.ts.map +1 -0
- package/dist/modules/website_retail/online.js +710 -0
- package/dist/modules/website_retail/online.js.map +1 -0
- package/dist/modules/website_search/client/search.d.mts +16 -2
- package/dist/modules/website_search/client/search.d.mts.map +1 -1
- package/dist/modules/website_search/client/search.mjs +112 -6
- package/dist/modules/website_search/client/search.mjs.map +1 -1
- package/dist/modules/website_search/functions.d.ts +3 -0
- package/dist/modules/website_search/functions.d.ts.map +1 -0
- package/dist/modules/website_search/functions.js +239 -0
- package/dist/modules/website_search/functions.js.map +1 -0
- package/dist/modules/website_search/index.js +4 -1
- package/dist/modules/website_search/index.js.map +1 -1
- package/dist/modules/website_search/islands.d.ts +6 -0
- package/dist/modules/website_search/islands.d.ts.map +1 -1
- package/dist/modules/website_search/islands.js +8 -2
- package/dist/modules/website_search/islands.js.map +1 -1
- package/dist/modules/website_search/models.d.ts +15 -0
- package/dist/modules/website_search/models.d.ts.map +1 -0
- package/dist/modules/website_search/models.js +58 -0
- package/dist/modules/website_search/models.js.map +1 -0
- package/dist/modules/website_seo/functions.d.ts +3 -0
- package/dist/modules/website_seo/functions.d.ts.map +1 -0
- package/dist/modules/website_seo/functions.js +164 -0
- package/dist/modules/website_seo/functions.js.map +1 -0
- package/dist/modules/website_seo/index.js +15 -5
- package/dist/modules/website_seo/index.js.map +1 -1
- package/dist/modules/website_seo/projection.d.ts +52 -0
- package/dist/modules/website_seo/projection.d.ts.map +1 -0
- package/dist/modules/website_seo/projection.js +129 -0
- package/dist/modules/website_seo/projection.js.map +1 -0
- package/dist/modules/website_seo/routes.d.ts +3 -0
- package/dist/modules/website_seo/routes.d.ts.map +1 -0
- package/dist/modules/website_seo/routes.js +56 -0
- package/dist/modules/website_seo/routes.js.map +1 -0
- package/dist/permission-catalogue.d.ts +5 -0
- package/dist/permission-catalogue.d.ts.map +1 -0
- package/dist/permission-catalogue.js +1505 -0
- package/dist/permission-catalogue.js.map +1 -0
- package/dist/scaffold/index.d.ts +2 -0
- package/dist/scaffold/index.d.ts.map +1 -0
- package/dist/scaffold/index.js +31 -0
- package/dist/scaffold/index.js.map +1 -0
- package/dist/scaffold/templates/README.md.tmpl +17 -0
- package/dist/scaffold/templates/gitignore.tmpl +2 -0
- package/dist/scaffold/templates/ket.workspace.mjs.tmpl +1 -0
- package/dist/scaffold/templates/package.json.tmpl +15 -0
- package/dist/themes/hospitality/templates/website.columns.ktl +4 -0
- package/dist/themes/paper/templates/website.columns.ktl +4 -0
- package/dist/ui/actions.d.ts +4 -0
- package/dist/ui/actions.d.ts.map +1 -1
- package/dist/ui/actions.js +1 -1
- package/dist/ui/actions.js.map +1 -1
- package/dist/ui/activity.d.ts +1 -1
- package/dist/ui/activity.d.ts.map +1 -1
- package/dist/ui/activity.js +3 -5
- package/dist/ui/activity.js.map +1 -1
- package/dist/ui/attachments.js +1 -1
- package/dist/ui/attachments.js.map +1 -1
- package/dist/ui/auth.d.ts +36 -0
- package/dist/ui/auth.d.ts.map +1 -1
- package/dist/ui/auth.js +55 -0
- package/dist/ui/auth.js.map +1 -1
- package/dist/ui/board-page.d.ts +6 -0
- package/dist/ui/board-page.d.ts.map +1 -0
- package/dist/ui/board-page.js +4 -0
- package/dist/ui/board-page.js.map +1 -0
- package/dist/ui/charts.d.ts +83 -0
- package/dist/ui/charts.d.ts.map +1 -0
- package/dist/ui/charts.js +105 -0
- package/dist/ui/charts.js.map +1 -0
- package/dist/ui/chrome.d.ts +37 -2
- package/dist/ui/chrome.d.ts.map +1 -1
- package/dist/ui/chrome.js +39 -5
- package/dist/ui/chrome.js.map +1 -1
- package/dist/ui/client/activity-view.mjs +7 -7
- package/dist/ui/client/activity-view.mjs.map +1 -1
- package/dist/ui/client/activity.css +6 -34
- package/dist/ui/client/calendar-view.d.mts.map +1 -1
- package/dist/ui/client/calendar-view.mjs +7 -6
- package/dist/ui/client/calendar-view.mjs.map +1 -1
- package/dist/ui/client/calendar.css +4 -14
- package/dist/ui/client/chart-view.d.ts +51 -0
- package/dist/ui/client/chart-view.d.ts.map +1 -0
- package/dist/ui/client/chart-view.js +192 -0
- package/dist/ui/client/chart-view.js.map +1 -0
- package/dist/ui/client/flow-app.css +387 -0
- package/dist/ui/client/flow-board-view.d.mts +8 -0
- package/dist/ui/client/flow-board-view.d.mts.map +1 -0
- package/dist/ui/client/flow-board-view.mjs +161 -0
- package/dist/ui/client/flow-board-view.mjs.map +1 -0
- package/dist/ui/client/flow-board.d.mts +3 -0
- package/dist/ui/client/flow-board.d.mts.map +1 -0
- package/dist/ui/client/flow-board.mjs +7 -0
- package/dist/ui/client/flow-board.mjs.map +1 -0
- package/dist/ui/client/flow-map-view.d.mts +2 -0
- package/dist/ui/client/flow-map-view.d.mts.map +1 -0
- package/dist/ui/client/flow-map-view.mjs +235 -0
- package/dist/ui/client/flow-map-view.mjs.map +1 -0
- package/dist/ui/client/flow-map.d.mts +3 -0
- package/dist/ui/client/flow-map.d.mts.map +1 -0
- package/dist/ui/client/flow-map.mjs +7 -0
- package/dist/ui/client/flow-map.mjs.map +1 -0
- package/dist/ui/client/live-doc-blocks.d.ts +19 -0
- package/dist/ui/client/live-doc-blocks.d.ts.map +1 -0
- package/dist/ui/client/live-doc-blocks.js +23 -0
- package/dist/ui/client/live-doc-blocks.js.map +1 -0
- package/dist/ui/client/live-doc-markdown.d.ts +18 -0
- package/dist/ui/client/live-doc-markdown.d.ts.map +1 -0
- package/dist/ui/client/live-doc-markdown.js +175 -0
- package/dist/ui/client/live-doc-markdown.js.map +1 -0
- package/dist/ui/client/live-doc-shell.d.ts +101 -0
- package/dist/ui/client/live-doc-shell.d.ts.map +1 -0
- package/dist/ui/client/live-doc-shell.js +251 -0
- package/dist/ui/client/live-doc-shell.js.map +1 -0
- package/dist/ui/client/live-doc-view.d.ts +33 -0
- package/dist/ui/client/live-doc-view.d.ts.map +1 -0
- package/dist/ui/client/live-doc-view.js +1237 -0
- package/dist/ui/client/live-doc-view.js.map +1 -0
- package/dist/ui/client/live-doc.css +243 -0
- package/dist/ui/client/live-doc.d.mts +12 -0
- package/dist/ui/client/live-doc.d.mts.map +1 -0
- package/dist/ui/client/live-doc.mjs +11 -0
- package/dist/ui/client/live-doc.mjs.map +7 -0
- package/dist/ui/client/mail-bundle.d.mts +9 -0
- package/dist/ui/client/mail-bundle.d.mts.map +1 -0
- package/dist/ui/client/mail-bundle.mjs +50 -0
- package/dist/ui/client/mail-bundle.mjs.map +7 -0
- package/dist/ui/client/mail-entry.d.mts +11 -0
- package/dist/ui/client/mail-entry.d.mts.map +1 -0
- package/dist/ui/client/mail-entry.mjs +9 -0
- package/dist/ui/client/mail-entry.mjs.map +1 -0
- package/dist/ui/client/mail-view.d.mts.map +1 -1
- package/dist/ui/client/mail-view.mjs +5 -3
- package/dist/ui/client/mail-view.mjs.map +1 -1
- package/dist/ui/client/mail.css +3 -3
- package/dist/ui/client/relation-select-view.d.ts +77 -0
- package/dist/ui/client/relation-select-view.d.ts.map +1 -0
- package/dist/ui/client/relation-select-view.js +216 -0
- package/dist/ui/client/relation-select-view.js.map +1 -0
- package/dist/ui/client/table-selection-view.d.ts +4 -0
- package/dist/ui/client/table-selection-view.d.ts.map +1 -0
- package/dist/ui/client/table-selection-view.js +283 -0
- package/dist/ui/client/table-selection-view.js.map +1 -0
- package/dist/ui/dashboard-page.d.ts +6 -0
- package/dist/ui/dashboard-page.d.ts.map +1 -0
- package/dist/ui/dashboard-page.js +4 -0
- package/dist/ui/dashboard-page.js.map +1 -0
- package/dist/ui/data.d.ts +51 -1
- package/dist/ui/data.d.ts.map +1 -1
- package/dist/ui/data.js +87 -1
- package/dist/ui/data.js.map +1 -1
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +2 -2
- package/dist/ui/date-picker.js.map +1 -1
- package/dist/ui/form-page.d.ts +6 -0
- package/dist/ui/form-page.d.ts.map +1 -0
- package/dist/ui/form-page.js +5 -0
- package/dist/ui/form-page.js.map +1 -0
- package/dist/ui/form.d.ts +4 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +7 -5
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/format.d.ts +13 -2
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/format.js +28 -7
- package/dist/ui/format.js.map +1 -1
- package/dist/ui/gantt.d.ts +52 -0
- package/dist/ui/gantt.d.ts.map +1 -0
- package/dist/ui/gantt.js +92 -0
- package/dist/ui/gantt.js.map +1 -0
- package/dist/ui/hooks.d.ts.map +1 -1
- package/dist/ui/hooks.js +14 -0
- package/dist/ui/hooks.js.map +1 -1
- package/dist/ui/icons.d.ts.map +1 -1
- package/dist/ui/icons.js +6 -1
- package/dist/ui/icons.js.map +1 -1
- package/dist/ui/index.d.ts +95 -14
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +78 -13
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/layout.d.ts +43 -38
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +29 -37
- package/dist/ui/layout.js.map +1 -1
- package/dist/ui/list-page.d.ts +19 -0
- package/dist/ui/list-page.d.ts.map +1 -0
- package/dist/ui/list-page.js +21 -0
- package/dist/ui/list-page.js.map +1 -0
- package/dist/ui/media.d.ts.map +1 -1
- package/dist/ui/media.js +1 -1
- package/dist/ui/media.js.map +1 -1
- package/dist/ui/modal.d.ts +26 -1
- package/dist/ui/modal.d.ts.map +1 -1
- package/dist/ui/modal.js +18 -2
- package/dist/ui/modal.js.map +1 -1
- package/dist/ui/nav.d.ts +21 -1
- package/dist/ui/nav.d.ts.map +1 -1
- package/dist/ui/nav.js +43 -8
- package/dist/ui/nav.js.map +1 -1
- package/dist/ui/navigation.d.ts +36 -2
- package/dist/ui/navigation.d.ts.map +1 -1
- package/dist/ui/navigation.js +60 -5
- package/dist/ui/navigation.js.map +1 -1
- package/dist/ui/partner.d.ts +18 -0
- package/dist/ui/partner.d.ts.map +1 -0
- package/dist/ui/partner.js +11 -0
- package/dist/ui/partner.js.map +1 -0
- package/dist/ui/primitives.d.ts +28 -10
- package/dist/ui/primitives.d.ts.map +1 -1
- package/dist/ui/primitives.js +21 -7
- package/dist/ui/primitives.js.map +1 -1
- package/dist/ui/product-media.d.ts +47 -0
- package/dist/ui/product-media.d.ts.map +1 -0
- package/dist/ui/product-media.js +67 -0
- package/dist/ui/product-media.js.map +1 -0
- package/dist/ui/product-variants.d.ts +68 -0
- package/dist/ui/product-variants.d.ts.map +1 -0
- package/dist/ui/product-variants.js +81 -0
- package/dist/ui/product-variants.js.map +1 -0
- package/dist/ui/record-detail.d.ts +70 -0
- package/dist/ui/record-detail.d.ts.map +1 -0
- package/dist/ui/record-detail.js +35 -0
- package/dist/ui/record-detail.js.map +1 -0
- package/dist/ui/record-page.d.ts +16 -0
- package/dist/ui/record-page.d.ts.map +1 -0
- package/dist/ui/record-page.js +13 -0
- package/dist/ui/record-page.js.map +1 -0
- package/dist/ui/record.d.ts +15 -3
- package/dist/ui/record.d.ts.map +1 -1
- package/dist/ui/record.js +6 -5
- package/dist/ui/record.js.map +1 -1
- package/dist/ui/surfaces.d.ts +30 -2
- package/dist/ui/surfaces.d.ts.map +1 -1
- package/dist/ui/surfaces.js +39 -2
- package/dist/ui/surfaces.js.map +1 -1
- package/dist/ui/table.d.ts +25 -2
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +10 -6
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/timeframe.d.ts +39 -0
- package/dist/ui/timeframe.d.ts.map +1 -0
- package/dist/ui/timeframe.js +36 -0
- package/dist/ui/timeframe.js.map +1 -0
- package/dist/ui/workspace-page.d.ts +16 -0
- package/dist/ui/workspace-page.d.ts.map +1 -0
- package/dist/ui/workspace-page.js +15 -0
- package/dist/ui/workspace-page.js.map +1 -0
- package/package.json +16 -3
- package/dist/modules/account/tt99.d.ts +0 -30
- package/dist/modules/account/tt99.d.ts.map +0 -1
- package/dist/modules/account/tt99.js +0 -1661
- package/dist/modules/account/tt99.js.map +0 -1
- package/dist/modules/account_backend/accounting-overview-screen.d.ts +0 -18
- package/dist/modules/account_backend/accounting-overview-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/accounting-overview-screen.js +0 -104
- package/dist/modules/account_backend/accounting-overview-screen.js.map +0 -1
- package/dist/modules/account_backend/accounts-screen.d.ts +0 -13
- package/dist/modules/account_backend/accounts-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/accounts-screen.js +0 -49
- package/dist/modules/account_backend/accounts-screen.js.map +0 -1
- package/dist/modules/account_backend/customer-invoices-screen.d.ts +0 -14
- package/dist/modules/account_backend/customer-invoices-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/customer-invoices-screen.js +0 -63
- package/dist/modules/account_backend/customer-invoices-screen.js.map +0 -1
- package/dist/modules/account_backend/general-ledger-screen.d.ts +0 -13
- package/dist/modules/account_backend/general-ledger-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/general-ledger-screen.js +0 -56
- package/dist/modules/account_backend/general-ledger-screen.js.map +0 -1
- package/dist/modules/account_backend/journal-entries-screen.d.ts +0 -14
- package/dist/modules/account_backend/journal-entries-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/journal-entries-screen.js +0 -45
- package/dist/modules/account_backend/journal-entries-screen.js.map +0 -1
- package/dist/modules/account_backend/journals-screen.d.ts +0 -14
- package/dist/modules/account_backend/journals-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/journals-screen.js +0 -53
- package/dist/modules/account_backend/journals-screen.js.map +0 -1
- package/dist/modules/account_backend/move-detail-screen.d.ts +0 -10
- package/dist/modules/account_backend/move-detail-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/move-detail-screen.js +0 -100
- package/dist/modules/account_backend/move-detail-screen.js.map +0 -1
- package/dist/modules/account_backend/partner-ledger-screen.d.ts +0 -14
- package/dist/modules/account_backend/partner-ledger-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/partner-ledger-screen.js +0 -69
- package/dist/modules/account_backend/partner-ledger-screen.js.map +0 -1
- package/dist/modules/account_backend/payment-terms-screen.d.ts +0 -14
- package/dist/modules/account_backend/payment-terms-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/payment-terms-screen.js +0 -40
- package/dist/modules/account_backend/payment-terms-screen.js.map +0 -1
- package/dist/modules/account_backend/payments-screen.d.ts +0 -14
- package/dist/modules/account_backend/payments-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/payments-screen.js +0 -54
- package/dist/modules/account_backend/payments-screen.js.map +0 -1
- package/dist/modules/account_backend/screens.d.ts +0 -7
- package/dist/modules/account_backend/screens.d.ts.map +0 -1
- package/dist/modules/account_backend/screens.js +0 -7
- package/dist/modules/account_backend/screens.js.map +0 -1
- package/dist/modules/account_backend/taxes-screen.d.ts +0 -15
- package/dist/modules/account_backend/taxes-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/taxes-screen.js +0 -73
- package/dist/modules/account_backend/taxes-screen.js.map +0 -1
- package/dist/modules/account_backend/trial-balance-screen.d.ts +0 -13
- package/dist/modules/account_backend/trial-balance-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/trial-balance-screen.js +0 -62
- package/dist/modules/account_backend/trial-balance-screen.js.map +0 -1
- package/dist/modules/account_backend/vendor-bills-screen.d.ts +0 -14
- package/dist/modules/account_backend/vendor-bills-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/vendor-bills-screen.js +0 -59
- package/dist/modules/account_backend/vendor-bills-screen.js.map +0 -1
- package/dist/modules/account_partner_backend/screens.d.ts +0 -16
- package/dist/modules/account_partner_backend/screens.d.ts.map +0 -1
- package/dist/modules/account_partner_backend/screens.js +0 -26
- package/dist/modules/account_partner_backend/screens.js.map +0 -1
- package/dist/modules/activity_backend/screens.d.ts +0 -5
- package/dist/modules/activity_backend/screens.d.ts.map +0 -1
- package/dist/modules/activity_backend/screens.js +0 -52
- package/dist/modules/activity_backend/screens.js.map +0 -1
- package/dist/modules/address_backend/screens.d.ts +0 -31
- package/dist/modules/address_backend/screens.d.ts.map +0 -1
- package/dist/modules/address_backend/screens.js +0 -147
- package/dist/modules/address_backend/screens.js.map +0 -1
- package/dist/modules/backend/design/admin.css +0 -4229
- package/dist/modules/backend/design/client/relation-select-view.d.mts +0 -5
- package/dist/modules/backend/design/client/relation-select-view.d.mts.map +0 -1
- package/dist/modules/backend/design/client/relation-select-view.mjs +0 -335
- package/dist/modules/backend/design/client/relation-select-view.mjs.map +0 -1
- package/dist/modules/calendar_backend/screens.d.ts +0 -5
- package/dist/modules/calendar_backend/screens.d.ts.map +0 -1
- package/dist/modules/calendar_backend/screens.js +0 -4
- package/dist/modules/calendar_backend/screens.js.map +0 -1
- package/dist/modules/company_backend/screens.d.ts +0 -62
- package/dist/modules/company_backend/screens.d.ts.map +0 -1
- package/dist/modules/company_backend/screens.js +0 -268
- package/dist/modules/company_backend/screens.js.map +0 -1
- package/dist/modules/crm_backend/list-search.d.ts +0 -21
- package/dist/modules/crm_backend/list-search.d.ts.map +0 -1
- package/dist/modules/crm_backend/list-search.js +0 -220
- package/dist/modules/crm_backend/list-search.js.map +0 -1
- package/dist/modules/crm_backend/screens.d.ts +0 -32
- package/dist/modules/crm_backend/screens.d.ts.map +0 -1
- package/dist/modules/crm_backend/screens.js +0 -405
- package/dist/modules/crm_backend/screens.js.map +0 -1
- package/dist/modules/hospitality_core/screens.d.ts +0 -773
- package/dist/modules/hospitality_core/screens.d.ts.map +0 -1
- package/dist/modules/hospitality_core/screens.js +0 -4152
- package/dist/modules/hospitality_core/screens.js.map +0 -1
- package/dist/modules/hr_backend/screens.d.ts +0 -9
- package/dist/modules/hr_backend/screens.d.ts.map +0 -1
- package/dist/modules/hr_backend/screens.js +0 -144
- package/dist/modules/hr_backend/screens.js.map +0 -1
- package/dist/modules/loyalty_backend/screens.d.ts +0 -33
- package/dist/modules/loyalty_backend/screens.d.ts.map +0 -1
- package/dist/modules/loyalty_backend/screens.js +0 -562
- package/dist/modules/loyalty_backend/screens.js.map +0 -1
- package/dist/modules/mail_backend/screens.d.ts +0 -5
- package/dist/modules/mail_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_backend/screens.js +0 -11
- package/dist/modules/mail_backend/screens.js.map +0 -1
- package/dist/modules/mail_inbound_backend/screens.d.ts +0 -5
- package/dist/modules/mail_inbound_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_inbound_backend/screens.js +0 -25
- package/dist/modules/mail_inbound_backend/screens.js.map +0 -1
- package/dist/modules/mail_transport_backend/screens.d.ts +0 -5
- package/dist/modules/mail_transport_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_transport_backend/screens.js +0 -35
- package/dist/modules/mail_transport_backend/screens.js.map +0 -1
- package/dist/modules/oauth_backend/screens.d.ts +0 -66
- package/dist/modules/oauth_backend/screens.d.ts.map +0 -1
- package/dist/modules/oauth_backend/screens.js +0 -323
- package/dist/modules/oauth_backend/screens.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/functions.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/functions.js +0 -128
- package/dist/modules/odoo_collaboration_import/functions.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/index.d.ts +0 -6
- package/dist/modules/odoo_collaboration_import/index.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/index.js +0 -31
- package/dist/modules/odoo_collaboration_import/index.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/models.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/models.js +0 -76
- package/dist/modules/odoo_collaboration_import/models.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/operations.d.ts +0 -14
- package/dist/modules/odoo_collaboration_import/operations.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/operations.js +0 -1139
- package/dist/modules/odoo_collaboration_import/operations.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/relations.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/relations.js +0 -19
- package/dist/modules/odoo_collaboration_import/relations.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/types.d.ts +0 -58
- package/dist/modules/odoo_collaboration_import/types.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/types.js.map +0 -1
- package/dist/modules/partner_backend/screens.d.ts +0 -53
- package/dist/modules/partner_backend/screens.d.ts.map +0 -1
- package/dist/modules/partner_backend/screens.js +0 -169
- package/dist/modules/partner_backend/screens.js.map +0 -1
- package/dist/modules/pricing_backend/screens.d.ts +0 -13
- package/dist/modules/pricing_backend/screens.d.ts.map +0 -1
- package/dist/modules/pricing_backend/screens.js +0 -182
- package/dist/modules/pricing_backend/screens.js.map +0 -1
- package/dist/modules/product_backend/attributes-screen.d.ts +0 -7
- package/dist/modules/product_backend/attributes-screen.d.ts.map +0 -1
- package/dist/modules/product_backend/attributes-screen.js +0 -76
- package/dist/modules/product_backend/attributes-screen.js.map +0 -1
- package/dist/modules/product_backend/create-screen.d.ts +0 -12
- package/dist/modules/product_backend/create-screen.d.ts.map +0 -1
- package/dist/modules/product_backend/create-screen.js +0 -83
- package/dist/modules/product_backend/create-screen.js.map +0 -1
- package/dist/modules/product_backend/screens.d.ts +0 -68
- package/dist/modules/product_backend/screens.d.ts.map +0 -1
- package/dist/modules/product_backend/screens.js +0 -388
- package/dist/modules/product_backend/screens.js.map +0 -1
- package/dist/modules/purchase_backend/screens.d.ts +0 -29
- package/dist/modules/purchase_backend/screens.d.ts.map +0 -1
- package/dist/modules/purchase_backend/screens.js +0 -324
- package/dist/modules/purchase_backend/screens.js.map +0 -1
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts +0 -14
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/invoicing-policies-screen.js +0 -36
- package/dist/modules/sale_backend/invoicing-policies-screen.js.map +0 -1
- package/dist/modules/sale_backend/order-detail-screen.d.ts +0 -18
- package/dist/modules/sale_backend/order-detail-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/order-detail-screen.js +0 -217
- package/dist/modules/sale_backend/order-detail-screen.js.map +0 -1
- package/dist/modules/sale_backend/quotations-screen.d.ts +0 -15
- package/dist/modules/sale_backend/quotations-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/quotations-screen.js +0 -64
- package/dist/modules/sale_backend/quotations-screen.js.map +0 -1
- package/dist/modules/sale_backend/sales-orders-screen.d.ts +0 -12
- package/dist/modules/sale_backend/sales-orders-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/sales-orders-screen.js +0 -65
- package/dist/modules/sale_backend/sales-orders-screen.js.map +0 -1
- package/dist/modules/sale_backend/screens.d.ts +0 -23
- package/dist/modules/sale_backend/screens.d.ts.map +0 -1
- package/dist/modules/sale_backend/screens.js +0 -275
- package/dist/modules/sale_backend/screens.js.map +0 -1
- package/dist/modules/stock_backend/forecast-screen.d.ts +0 -28
- package/dist/modules/stock_backend/forecast-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/forecast-screen.js +0 -108
- package/dist/modules/stock_backend/forecast-screen.js.map +0 -1
- package/dist/modules/stock_backend/inventory-screen.d.ts +0 -27
- package/dist/modules/stock_backend/inventory-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/inventory-screen.js +0 -141
- package/dist/modules/stock_backend/inventory-screen.js.map +0 -1
- package/dist/modules/stock_backend/locations-screen.d.ts +0 -18
- package/dist/modules/stock_backend/locations-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/locations-screen.js +0 -92
- package/dist/modules/stock_backend/locations-screen.js.map +0 -1
- package/dist/modules/stock_backend/lot-screen.d.ts +0 -30
- package/dist/modules/stock_backend/lot-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/lot-screen.js +0 -86
- package/dist/modules/stock_backend/lot-screen.js.map +0 -1
- package/dist/modules/stock_backend/lots-screen.d.ts +0 -21
- package/dist/modules/stock_backend/lots-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/lots-screen.js +0 -79
- package/dist/modules/stock_backend/lots-screen.js.map +0 -1
- package/dist/modules/stock_backend/picking-types-screen.d.ts +0 -21
- package/dist/modules/stock_backend/picking-types-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/picking-types-screen.js +0 -110
- package/dist/modules/stock_backend/picking-types-screen.js.map +0 -1
- package/dist/modules/stock_backend/replenishment-screen.d.ts +0 -29
- package/dist/modules/stock_backend/replenishment-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/replenishment-screen.js +0 -131
- package/dist/modules/stock_backend/replenishment-screen.js.map +0 -1
- package/dist/modules/stock_backend/screens.d.ts +0 -14
- package/dist/modules/stock_backend/screens.d.ts.map +0 -1
- package/dist/modules/stock_backend/screens.js +0 -40
- package/dist/modules/stock_backend/screens.js.map +0 -1
- package/dist/modules/stock_backend/stock-route-screen.d.ts +0 -30
- package/dist/modules/stock_backend/stock-route-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/stock-route-screen.js +0 -129
- package/dist/modules/stock_backend/stock-route-screen.js.map +0 -1
- package/dist/modules/stock_backend/stock-routes-screen.d.ts +0 -17
- package/dist/modules/stock_backend/stock-routes-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/stock-routes-screen.js +0 -60
- package/dist/modules/stock_backend/stock-routes-screen.js.map +0 -1
- package/dist/modules/stock_backend/transfer-screen.d.ts +0 -26
- package/dist/modules/stock_backend/transfer-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/transfer-screen.js +0 -95
- package/dist/modules/stock_backend/transfer-screen.js.map +0 -1
- package/dist/modules/stock_backend/transfers-screen.d.ts +0 -21
- package/dist/modules/stock_backend/transfers-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/transfers-screen.js +0 -88
- package/dist/modules/stock_backend/transfers-screen.js.map +0 -1
- package/dist/modules/stock_backend/warehouses-screen.d.ts +0 -17
- package/dist/modules/stock_backend/warehouses-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/warehouses-screen.js +0 -96
- package/dist/modules/stock_backend/warehouses-screen.js.map +0 -1
- package/dist/modules/user_backend/screens.d.ts +0 -70
- package/dist/modules/user_backend/screens.d.ts.map +0 -1
- package/dist/modules/user_backend/screens.js +0 -308
- package/dist/modules/user_backend/screens.js.map +0 -1
- package/dist/modules/website/customer-routes.d.ts +0 -3
- package/dist/modules/website/customer-routes.d.ts.map +0 -1
- package/dist/modules/website/customer-routes.js +0 -322
- package/dist/modules/website/customer-routes.js.map +0 -1
- package/dist/modules/website_backend/screens.d.ts +0 -114
- package/dist/modules/website_backend/screens.d.ts.map +0 -1
- package/dist/modules/website_backend/screens.js +0 -625
- package/dist/modules/website_backend/screens.js.map +0 -1
- package/dist/ui/client/mail.d.mts +0 -11
- package/dist/ui/client/mail.d.mts.map +0 -1
- package/dist/ui/client/mail.mjs +0 -10
- package/dist/ui/client/mail.mjs.map +0 -1
- /package/dist/modules/{odoo_collaboration_import → account_staff_channel}/functions.d.ts +0 -0
- /package/dist/modules/{odoo_collaboration_import → account_staff_channel}/models.d.ts +0 -0
- /package/dist/modules/{odoo_collaboration_import → address_backend/screens}/types.js +0 -0
- /package/dist/modules/{odoo_collaboration_import → manufacturing}/relations.d.ts +0 -0
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
import { defineFn } from '@ketvietlab/ketjs';
|
|
1
|
+
import { defineFn, deleteFrom, desc, eq, from, ilike, inArray, or } from '@ketvietlab/ketjs';
|
|
2
|
+
import { insertDraftMove, quoteTaxLineForPosting } from '../account/functions.js';
|
|
3
|
+
import { addDecimals, canonicalDecimalText, compareDecimals, decimalSign, minorText, moneyMinor, multiplyToMinor, negateDecimalText, scaleOf, subtractDecimals, sumMoneyMinor, } from '../account/money.js';
|
|
2
4
|
import { functions as stockFunctions } from '../stock/functions.js';
|
|
5
|
+
import { convertQty, UomError } from '../uom/convert.js';
|
|
3
6
|
export const PURCHASE_STATES = ['draft', 'sent', 'to approve', 'purchase', 'cancel'];
|
|
4
7
|
export const INVOICE_STATUSES = ['no', 'to invoice', 'invoiced'];
|
|
5
8
|
export const PURCHASE_METHODS = ['purchase', 'receive'];
|
|
6
9
|
const invalid = (field, message) => ({ ok: false, errors: [{ field, message }] });
|
|
7
10
|
const n = (value) => Number(value ?? 0);
|
|
8
|
-
const
|
|
9
|
-
const
|
|
11
|
+
const quantityRound = (value) => Math.round((value + Number.EPSILON) * 100) / 100;
|
|
12
|
+
const quantityText = (value) => String(quantityRound(value));
|
|
10
13
|
const now = () => new Date().toISOString();
|
|
14
|
+
const wildcard = (value) => String(value ?? '').replace(/[\\%_]/g, '\\$&');
|
|
15
|
+
class PurchaseRefused extends Error {
|
|
16
|
+
result;
|
|
17
|
+
constructor(result) {
|
|
18
|
+
super('refused');
|
|
19
|
+
this.result = result;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const claimRevision = async (ctx, order, expectedRevision) => {
|
|
23
|
+
const revision = n(order.revision);
|
|
24
|
+
if (expectedRevision !== undefined && revision !== n(expectedRevision))
|
|
25
|
+
return false;
|
|
26
|
+
const changed = await ctx.db.compareAndSet('purchase.Order', { id: order.id }, { revision: order.revision ?? null }, { revision: revision + 1 });
|
|
27
|
+
return 'dryRun' in changed || changed.matched;
|
|
28
|
+
};
|
|
11
29
|
async function currency(ctx) {
|
|
12
30
|
if (!ctx.scope.company)
|
|
13
31
|
throw new Error('purchase requires an active company');
|
|
@@ -16,11 +34,22 @@ async function currency(ctx) {
|
|
|
16
34
|
throw new Error(`company ${ctx.scope.company} does not exist`);
|
|
17
35
|
return String(company.currency);
|
|
18
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* The next order number for this company.
|
|
39
|
+
*
|
|
40
|
+
* Keyed by the company because `id` is a tenant-wide primary key: the constant
|
|
41
|
+
* `'purchase'` gave the whole tenant one row, so only the first company to raise
|
|
42
|
+
* an order could ever own it. See sale.nextName, which had the same defect.
|
|
43
|
+
*/
|
|
19
44
|
async function nextName(ctx) {
|
|
20
|
-
|
|
45
|
+
if (!ctx.scope.company)
|
|
46
|
+
throw new Error('purchase requires an active company');
|
|
47
|
+
const id = `${ctx.scope.company}:purchase`;
|
|
21
48
|
await ctx.db.insertIfAbsent('purchase.Sequence', { id, nextNumber: 1 });
|
|
22
49
|
for (let attempt = 0; attempt < 32; attempt += 1) {
|
|
23
|
-
const row = (await ctx.db.select('purchase.Sequence', { id }))[0];
|
|
50
|
+
const row = (await ctx.db.select('purchase.Sequence', { id, companyId: ctx.scope.company }))[0];
|
|
51
|
+
if (!row)
|
|
52
|
+
throw new Error('purchase sequence row disappeared while assigning a number');
|
|
24
53
|
const current = n(row.nextNumber);
|
|
25
54
|
const changed = await ctx.db.compareAndSet('purchase.Sequence', { id }, { nextNumber: row.nextNumber }, { nextNumber: current + 1 });
|
|
26
55
|
if ('dryRun' in changed || changed.matched)
|
|
@@ -28,6 +57,38 @@ async function nextName(ctx) {
|
|
|
28
57
|
}
|
|
29
58
|
throw new Error('purchase sequence did not settle after concurrent updates');
|
|
30
59
|
}
|
|
60
|
+
const unitOf = async (ctx, id) => {
|
|
61
|
+
const row = (await ctx.db.select('uom.Unit', { id }))[0];
|
|
62
|
+
return row
|
|
63
|
+
? {
|
|
64
|
+
id: String(row.id),
|
|
65
|
+
parentPath: String(row.parentPath ?? ''),
|
|
66
|
+
absoluteFactor: n(row.absoluteFactor),
|
|
67
|
+
rounding: n(row.rounding) || 0.01,
|
|
68
|
+
}
|
|
69
|
+
: null;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* A vendor sells in their unit and the warehouse counts in the product's. Both
|
|
73
|
+
* numbers are real and they are not the same number, so every quantity that
|
|
74
|
+
* crosses between a purchase line and a stock move is converted rather than
|
|
75
|
+
* copied. Copying is what put two pieces on the shelf for two boxes of twelve.
|
|
76
|
+
*/
|
|
77
|
+
const inUnit = async (ctx, quantity, fromId, toId) => {
|
|
78
|
+
if (String(fromId) === String(toId))
|
|
79
|
+
return quantity;
|
|
80
|
+
const [from, to] = await Promise.all([unitOf(ctx, fromId), unitOf(ctx, toId)]);
|
|
81
|
+
if (!from || !to)
|
|
82
|
+
return null;
|
|
83
|
+
try {
|
|
84
|
+
return convertQty(quantity, from, to);
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
if (error instanceof UomError)
|
|
88
|
+
return null;
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
31
92
|
async function productContext(ctx, productId) {
|
|
32
93
|
const product = (await ctx.db.select('product.Product', { id: productId }))[0];
|
|
33
94
|
if (!product)
|
|
@@ -35,85 +96,215 @@ async function productContext(ctx, productId) {
|
|
|
35
96
|
const template = (await ctx.db.select('product.Template', { id: product.templateId }))[0];
|
|
36
97
|
return template ? { product, template } : null;
|
|
37
98
|
}
|
|
38
|
-
|
|
99
|
+
/**
|
|
100
|
+
* The vendor's best matching pricelist row, expressed in the unit the buyer is
|
|
101
|
+
* ordering in.
|
|
102
|
+
*
|
|
103
|
+
* A pricelist row carries its own unit, and both comparisons that use the row
|
|
104
|
+
* ignored it: `minQty` was compared against the ordered quantity as if the two
|
|
105
|
+
* numbers shared a unit, and the price was applied per ordered unit as if the
|
|
106
|
+
* vendor had quoted it that way. Order one box of twelve against "80 per piece
|
|
107
|
+
* from 5 pieces" and the row did not even match — twelve pieces read as one —
|
|
108
|
+
* and when a row did match, a per-piece price was charged per box.
|
|
109
|
+
*/
|
|
110
|
+
async function supplierPrice(ctx, partnerId, productId, quantity, orderedUomId, at) {
|
|
39
111
|
const product = await productContext(ctx, productId);
|
|
40
112
|
if (!product)
|
|
41
113
|
return null;
|
|
42
|
-
|
|
114
|
+
const scale = scaleOf(await currency(ctx));
|
|
115
|
+
const rows = (await ctx.db.select('purchase.SupplierInfo', {
|
|
43
116
|
partnerId,
|
|
44
117
|
productTemplateId: product.template.id,
|
|
45
118
|
}))
|
|
46
|
-
.filter((row) =>
|
|
47
|
-
.filter((row) => (!row.dateStart || String(row.dateStart) <= at) && (!row.dateEnd || String(row.dateEnd) >= at))
|
|
48
|
-
|
|
119
|
+
.filter((row) => !row.productId || row.productId === productId)
|
|
120
|
+
.filter((row) => (!row.dateStart || String(row.dateStart) <= at) && (!row.dateEnd || String(row.dateEnd) >= at));
|
|
121
|
+
const matching = [];
|
|
122
|
+
for (const row of rows) {
|
|
123
|
+
const inRowUnit = await inUnit(ctx, quantity, orderedUomId, row.productUomId);
|
|
124
|
+
if (inRowUnit === null || n(row.minQty) > inRowUnit)
|
|
125
|
+
continue;
|
|
126
|
+
// One ordered unit holds this many of the row's unit, so the row's price
|
|
127
|
+
// scales by the same factor: 80 per piece is 960 per box of twelve.
|
|
128
|
+
const orderedInRow = await inUnit(ctx, 1, orderedUomId, row.productUomId);
|
|
129
|
+
if (orderedInRow === null)
|
|
130
|
+
continue;
|
|
131
|
+
matching.push({
|
|
132
|
+
...row,
|
|
133
|
+
price: minorText(multiplyToMinor([row.price, String(orderedInRow)], scale), scale),
|
|
134
|
+
minQtyOrdered: inRowUnit,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return (matching.sort((a, b) => {
|
|
49
138
|
const variant = Number(Boolean(b.productId)) - Number(Boolean(a.productId));
|
|
50
|
-
return (variant ||
|
|
139
|
+
return (variant ||
|
|
140
|
+
n(a.sequence) - n(b.sequence) ||
|
|
141
|
+
n(b.minQty) - n(a.minQty) ||
|
|
142
|
+
compareDecimals(a.price, b.price));
|
|
51
143
|
})[0] ?? null);
|
|
52
144
|
}
|
|
53
|
-
function taxAmounts(tax, gross, quantity) {
|
|
54
|
-
if (!tax)
|
|
55
|
-
return { untaxed: money(gross), tax: 0, total: money(gross) };
|
|
56
|
-
if (tax.amountType === 'group')
|
|
57
|
-
throw new Error('group taxes are outside the supported Odoo 19 subset');
|
|
58
|
-
const amount = n(tax.amount);
|
|
59
|
-
let untaxed = money(gross);
|
|
60
|
-
let taxAmount = 0;
|
|
61
|
-
if (tax.amountType === 'fixed') {
|
|
62
|
-
taxAmount = money(amount * quantity);
|
|
63
|
-
if (tax.priceInclude)
|
|
64
|
-
untaxed = money(gross - taxAmount);
|
|
65
|
-
return { untaxed, tax: taxAmount, total: tax.priceInclude ? money(gross) : money(gross + taxAmount) };
|
|
66
|
-
}
|
|
67
|
-
const rate = amount / 100;
|
|
68
|
-
if (tax.amountType === 'division') {
|
|
69
|
-
if (tax.priceInclude) {
|
|
70
|
-
untaxed = money(gross * (1 - rate));
|
|
71
|
-
taxAmount = money(gross - untaxed);
|
|
72
|
-
}
|
|
73
|
-
else
|
|
74
|
-
taxAmount = money(gross / (1 - rate) - gross);
|
|
75
|
-
}
|
|
76
|
-
else if (tax.priceInclude) {
|
|
77
|
-
untaxed = money(gross / (1 + rate));
|
|
78
|
-
taxAmount = money(gross - untaxed);
|
|
79
|
-
}
|
|
80
|
-
else
|
|
81
|
-
taxAmount = money(gross * rate);
|
|
82
|
-
return { untaxed, tax: taxAmount, total: money(untaxed + taxAmount) };
|
|
83
|
-
}
|
|
84
145
|
async function totals(ctx, orderId) {
|
|
85
|
-
|
|
86
|
-
|
|
146
|
+
const order = (await ctx.db.select('purchase.Order', { id: orderId }))[0];
|
|
147
|
+
if (!order)
|
|
148
|
+
return;
|
|
149
|
+
const scale = scaleOf(order.currency);
|
|
150
|
+
let untaxed = 0n;
|
|
151
|
+
let tax = 0n;
|
|
87
152
|
for (const line of await ctx.db.select('purchase.OrderLine', { orderId })) {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
153
|
+
const quote = await quoteTaxLineForPosting(ctx, {
|
|
154
|
+
taxIds: line.taxId ? [line.taxId] : [],
|
|
155
|
+
quantity: line.productQty,
|
|
156
|
+
priceUnit: line.priceUnit,
|
|
157
|
+
discount: line.discount,
|
|
158
|
+
taxUse: 'purchase',
|
|
159
|
+
});
|
|
160
|
+
if (quote.ok !== true)
|
|
161
|
+
throw new Error(String(quote.errors[0]?.message ?? 'invalid purchase tax'));
|
|
162
|
+
untaxed += moneyMinor(quote.amountUntaxed, scale);
|
|
163
|
+
tax += moneyMinor(quote.amountTax, scale);
|
|
93
164
|
}
|
|
94
165
|
await ctx.db.update('purchase.Order', { id: orderId }, {
|
|
95
|
-
amountUntaxed:
|
|
96
|
-
amountTax:
|
|
97
|
-
amountTotal:
|
|
166
|
+
amountUntaxed: minorText(untaxed, scale),
|
|
167
|
+
amountTax: minorText(tax, scale),
|
|
168
|
+
amountTotal: minorText(untaxed + tax, scale),
|
|
169
|
+
revision: n(order.revision) + 1,
|
|
98
170
|
});
|
|
99
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* What a purchase line has actually been billed, read from the bills themselves.
|
|
174
|
+
* The stored counter was incremented when a bill was drafted and never reversed,
|
|
175
|
+
* so cancelling a bill left the order billed for ever and a second bill was
|
|
176
|
+
* refused. Deriving it also settles two bills drafted at the same time: both
|
|
177
|
+
* read the same rows inside their own transaction instead of a stale count.
|
|
178
|
+
*/
|
|
179
|
+
async function billedQuantity(ctx, lineId) {
|
|
180
|
+
let billed = '0';
|
|
181
|
+
for (const moveLine of await ctx.db.select('account.MoveLine', { purchaseLineId: lineId })) {
|
|
182
|
+
if (!moveLine.productId)
|
|
183
|
+
continue;
|
|
184
|
+
const move = (await ctx.db.select('account.Move', { id: moveLine.moveId }))[0];
|
|
185
|
+
if (!move || move.state === 'cancel')
|
|
186
|
+
continue;
|
|
187
|
+
billed = addDecimals(billed, move.moveType === 'in_refund' ? negateDecimalText(moveLine.quantity) : moveLine.quantity);
|
|
188
|
+
}
|
|
189
|
+
return billed;
|
|
190
|
+
}
|
|
191
|
+
async function refreshBilled(ctx, orderId) {
|
|
192
|
+
for (const line of await ctx.db.select('purchase.OrderLine', { orderId }))
|
|
193
|
+
await ctx.db.update('purchase.OrderLine', { id: line.id }, { qtyInvoiced: await billedQuantity(ctx, line.id) });
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* What the warehouse has received, converted back into the unit the line was
|
|
197
|
+
* ordered in. Stock is told to receive in the product's own unit, so the raw
|
|
198
|
+
* move quantity is not comparable to `productQty`.
|
|
199
|
+
*/
|
|
200
|
+
async function receivedQuantity(ctx, line) {
|
|
201
|
+
const context = await productContext(ctx, line.productId);
|
|
202
|
+
const stockUom = context?.template.uomId ?? line.productUomId;
|
|
203
|
+
let received = 0;
|
|
204
|
+
for (const move of await ctx.db.select('stock.Move', { purchaseLineId: line.id, state: 'done' }))
|
|
205
|
+
received += n(move.quantity);
|
|
206
|
+
const converted = await inUnit(ctx, received, stockUom, line.productUomId);
|
|
207
|
+
return quantityRound(converted ?? received);
|
|
208
|
+
}
|
|
209
|
+
async function refreshReceived(ctx, orderId) {
|
|
210
|
+
for (const line of await ctx.db.select('purchase.OrderLine', { orderId }))
|
|
211
|
+
await ctx.db.update('purchase.OrderLine', { id: line.id }, { qtyReceived: quantityText(await receivedQuantity(ctx, line)) });
|
|
212
|
+
}
|
|
100
213
|
async function invoiceStatus(ctx, orderId) {
|
|
101
214
|
const order = (await ctx.db.select('purchase.Order', { id: orderId }))[0];
|
|
102
215
|
if (order?.state !== 'purchase')
|
|
103
216
|
return 'no';
|
|
104
|
-
let billable = 0;
|
|
105
|
-
let invoiced = 0;
|
|
217
|
+
let billable = '0';
|
|
218
|
+
let invoiced = '0';
|
|
106
219
|
for (const line of await ctx.db.select('purchase.OrderLine', { orderId })) {
|
|
107
220
|
const context = await productContext(ctx, line.productId);
|
|
108
221
|
const method = String(context?.template.purchaseMethod ?? (context?.template.type === 'service' ? 'purchase' : 'receive'));
|
|
109
|
-
billable
|
|
110
|
-
invoiced
|
|
222
|
+
billable = addDecimals(billable, method === 'purchase' ? line.productQty : String(await receivedQuantity(ctx, line)));
|
|
223
|
+
invoiced = addDecimals(invoiced, await billedQuantity(ctx, line.id));
|
|
111
224
|
}
|
|
112
|
-
return billable
|
|
225
|
+
return compareDecimals(billable, invoiced) > 0
|
|
226
|
+
? 'to invoice'
|
|
227
|
+
: compareDecimals(invoiced, '0') > 0
|
|
228
|
+
? 'invoiced'
|
|
229
|
+
: 'no';
|
|
113
230
|
}
|
|
114
231
|
async function refreshInvoiceStatus(ctx, orderId) {
|
|
115
232
|
await ctx.db.update('purchase.Order', { id: orderId }, { invoiceStatus: await invoiceStatus(ctx, orderId) });
|
|
116
233
|
}
|
|
234
|
+
const lineEffects = [
|
|
235
|
+
'read:purchase.Order',
|
|
236
|
+
'read:purchase.OrderLine',
|
|
237
|
+
'write:purchase.OrderLine',
|
|
238
|
+
'write:purchase.Order',
|
|
239
|
+
'read:purchase.SupplierInfo',
|
|
240
|
+
'read:product.Product',
|
|
241
|
+
'read:product.Template',
|
|
242
|
+
'read:uom.Unit',
|
|
243
|
+
'read:account.Tax',
|
|
244
|
+
'read:company.Company',
|
|
245
|
+
];
|
|
246
|
+
/** An RFQ accepts line changes until it is confirmed or locked. */
|
|
247
|
+
const editableOrder = async (ctx, orderId) => {
|
|
248
|
+
const order = (await ctx.db.select('purchase.Order', { id: orderId }))[0];
|
|
249
|
+
if (!order || order.locked || !['draft', 'sent'].includes(String(order.state)))
|
|
250
|
+
return null;
|
|
251
|
+
return order;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Price and validate one line. Shared so adding and correcting a line cannot
|
|
255
|
+
* drift apart — the second was missing entirely, which left a mistyped quantity
|
|
256
|
+
* correctable only by cancelling the whole request.
|
|
257
|
+
*/
|
|
258
|
+
async function planLine(ctx, args) {
|
|
259
|
+
const order = await editableOrder(ctx, args.orderId);
|
|
260
|
+
if (!order)
|
|
261
|
+
return { error: invalid('orderId', 'lines can only be added to an unlocked RFQ') };
|
|
262
|
+
if (compareDecimals(args.productQty, '0') <= 0)
|
|
263
|
+
return { error: invalid('productQty', 'ordered quantity must be positive') };
|
|
264
|
+
const context = await productContext(ctx, args.productId);
|
|
265
|
+
if (!context?.template.purchaseOk)
|
|
266
|
+
return { error: invalid('productId', 'product is not purchasable') };
|
|
267
|
+
if (!(await ctx.db.select('uom.Unit', { id: args.productUomId }))[0])
|
|
268
|
+
return { error: invalid('productUomId', 'unit of measure does not exist') };
|
|
269
|
+
// A unit that measures something else is not a unit for this product. Without
|
|
270
|
+
// this an order could be placed in kilograms for a product counted in pieces.
|
|
271
|
+
if ((await inUnit(ctx, 1, args.productUomId, context.template.uomId)) === null)
|
|
272
|
+
return { error: invalid('productUomId', 'unit does not measure the same thing as the product') };
|
|
273
|
+
const price = await supplierPrice(ctx, order.partnerId, args.productId, n(args.productQty), args.productUomId, String(order.dateOrder));
|
|
274
|
+
const priceUnit = args.priceUnit ?? price?.price ?? '0';
|
|
275
|
+
const discount = args.discount ?? price?.discount ?? '0';
|
|
276
|
+
if (compareDecimals(priceUnit, '0') < 0 ||
|
|
277
|
+
compareDecimals(discount, '0') < 0 ||
|
|
278
|
+
compareDecimals(discount, '100') > 0)
|
|
279
|
+
return { error: invalid('priceUnit', 'unit price and discount are invalid') };
|
|
280
|
+
const tax = args.taxId ? (await ctx.db.select('account.Tax', { id: args.taxId }))[0] : null;
|
|
281
|
+
if (args.taxId && (!tax || !['purchase', 'none'].includes(String(tax.typeTaxUse))))
|
|
282
|
+
return { error: invalid('taxId', 'tax use does not match a purchase order') };
|
|
283
|
+
const datePlanned = String(args.datePlanned ??
|
|
284
|
+
new Date(new Date(String(order.dateOrder)).getTime() + n(price?.delay ?? 1) * 86400000).toISOString());
|
|
285
|
+
const quote = await quoteTaxLineForPosting(ctx, {
|
|
286
|
+
taxIds: tax ? [tax.id] : [],
|
|
287
|
+
quantity: args.productQty,
|
|
288
|
+
priceUnit,
|
|
289
|
+
discount,
|
|
290
|
+
taxUse: 'purchase',
|
|
291
|
+
});
|
|
292
|
+
if (quote.ok !== true)
|
|
293
|
+
return { error: invalid('taxId', String(quote.errors[0]?.message ?? 'invalid purchase tax')) };
|
|
294
|
+
return {
|
|
295
|
+
values: {
|
|
296
|
+
productId: args.productId,
|
|
297
|
+
name: args.name ?? price?.productName ?? context.template.name,
|
|
298
|
+
productQty: String(args.productQty),
|
|
299
|
+
productUomId: args.productUomId,
|
|
300
|
+
priceUnit: String(priceUnit),
|
|
301
|
+
discount: String(discount),
|
|
302
|
+
taxId: args.taxId ?? null,
|
|
303
|
+
datePlanned,
|
|
304
|
+
priceSubtotal: quote.amountUntaxed,
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
}
|
|
117
308
|
const confirmEffects = [
|
|
118
309
|
'read:purchase.Order',
|
|
119
310
|
'read:purchase.OrderLine',
|
|
@@ -124,7 +315,11 @@ const confirmEffects = [
|
|
|
124
315
|
'read:stock.PickingType',
|
|
125
316
|
'read:stock.Picking',
|
|
126
317
|
'write:stock.Picking',
|
|
318
|
+
'read:stock.Move',
|
|
127
319
|
'write:stock.Move',
|
|
320
|
+
// Confirming settles the invoice status, which is read from the bills.
|
|
321
|
+
'read:account.Move',
|
|
322
|
+
'read:account.MoveLine',
|
|
128
323
|
];
|
|
129
324
|
async function createReceipt(ctx, order) {
|
|
130
325
|
const goods = [];
|
|
@@ -146,13 +341,18 @@ async function createReceipt(ctx, order) {
|
|
|
146
341
|
return created;
|
|
147
342
|
for (const line of goods) {
|
|
148
343
|
const moveId = `${String(line.id)}:receipt`;
|
|
344
|
+
const context = await productContext(ctx, line.productId);
|
|
345
|
+
const stockUom = context?.template.uomId ?? line.productUomId;
|
|
346
|
+
const quantity = await inUnit(ctx, n(line.productQty), line.productUomId, stockUom);
|
|
347
|
+
if (quantity === null)
|
|
348
|
+
return invalid('productUomId', 'ordered unit does not convert to the product unit');
|
|
149
349
|
const moved = (await stockFunctions.addMove.handler(ctx, {
|
|
150
350
|
id: moveId,
|
|
151
351
|
name: line.name,
|
|
152
352
|
pickingId,
|
|
153
353
|
productId: line.productId,
|
|
154
|
-
productUomId:
|
|
155
|
-
productUomQty:
|
|
354
|
+
productUomId: stockUom,
|
|
355
|
+
productUomQty: quantityText(quantity),
|
|
156
356
|
origin: order.name,
|
|
157
357
|
}));
|
|
158
358
|
if (moved.ok !== true)
|
|
@@ -161,31 +361,49 @@ async function createReceipt(ctx, order) {
|
|
|
161
361
|
}
|
|
162
362
|
return { ok: true, pickingId };
|
|
163
363
|
}
|
|
164
|
-
async function confirm(ctx, id, approval) {
|
|
364
|
+
async function confirm(ctx, id, approval, expectedRevision) {
|
|
165
365
|
const order = (await ctx.db.select('purchase.Order', { id }))[0];
|
|
166
366
|
if (!order)
|
|
167
367
|
return invalid('id', 'purchase order does not exist');
|
|
368
|
+
if (expectedRevision !== undefined && n(order.revision) !== n(expectedRevision))
|
|
369
|
+
return invalid('expectedRevision', 'purchase order changed');
|
|
168
370
|
if (order.state === 'purchase')
|
|
169
371
|
return { ok: true, id, state: order.state };
|
|
170
372
|
if (!['draft', 'sent', 'to approve'].includes(String(order.state)))
|
|
171
373
|
return invalid('state', 'only an RFQ can be confirmed');
|
|
172
374
|
if (!(await ctx.db.select('purchase.OrderLine', { orderId: id })).length)
|
|
173
375
|
return invalid('lines', 'an RFQ needs at least one product line');
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
376
|
+
try {
|
|
377
|
+
let pickingId;
|
|
378
|
+
await ctx.tx(async (tx) => {
|
|
379
|
+
const current = (await tx.db.select('purchase.Order', { id }))[0];
|
|
380
|
+
if (!current || !(await claimRevision(tx, current, expectedRevision)))
|
|
381
|
+
throw new PurchaseRefused(invalid('expectedRevision', 'purchase order changed'));
|
|
382
|
+
if (approval) {
|
|
383
|
+
await tx.db.update('purchase.Order', { id }, { state: 'to approve' });
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
// The receipt is a picking plus one move per line plus the order's own
|
|
387
|
+
// state. A domain refusal rolls the entire graph back.
|
|
388
|
+
const receipt = (await createReceipt(tx, current));
|
|
389
|
+
if (receipt.ok !== true)
|
|
390
|
+
throw new PurchaseRefused(receipt);
|
|
391
|
+
pickingId = receipt.pickingId;
|
|
392
|
+
await tx.db.update('purchase.Order', { id }, { state: 'purchase', dateApprove: now() });
|
|
393
|
+
await refreshInvoiceStatus(tx, id);
|
|
394
|
+
});
|
|
395
|
+
return {
|
|
396
|
+
ok: true,
|
|
397
|
+
id,
|
|
398
|
+
state: approval ? 'to approve' : 'purchase',
|
|
399
|
+
...(pickingId ? { pickingId } : {}),
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
catch (error) {
|
|
403
|
+
if (error instanceof PurchaseRefused)
|
|
404
|
+
return error.result;
|
|
405
|
+
throw error;
|
|
177
406
|
}
|
|
178
|
-
const receipt = await createReceipt(ctx, order);
|
|
179
|
-
if (receipt.ok !== true)
|
|
180
|
-
return receipt;
|
|
181
|
-
await ctx.db.update('purchase.Order', { id }, { state: 'purchase', dateApprove: now() });
|
|
182
|
-
await refreshInvoiceStatus(ctx, id);
|
|
183
|
-
return {
|
|
184
|
-
ok: true,
|
|
185
|
-
id,
|
|
186
|
-
state: 'purchase',
|
|
187
|
-
...(receipt.pickingId ? { pickingId: receipt.pickingId } : {}),
|
|
188
|
-
};
|
|
189
407
|
}
|
|
190
408
|
export const functions = {
|
|
191
409
|
listSupplierInfo: defineFn({
|
|
@@ -238,12 +456,19 @@ export const functions = {
|
|
|
238
456
|
}
|
|
239
457
|
if (!(await ctx.db.select('uom.Unit', { id: args.productUomId }))[0])
|
|
240
458
|
return invalid('productUomId', 'unit of measure does not exist');
|
|
459
|
+
// A price per kilogram for a product counted in pieces can never be
|
|
460
|
+
// applied to an order line, so the row would sit in the pricelist and
|
|
461
|
+
// silently match nothing.
|
|
462
|
+
if ((await inUnit(ctx, 1, args.productUomId, template.uomId)) === null)
|
|
463
|
+
return invalid('productUomId', 'unit does not measure the same thing as the product');
|
|
241
464
|
if (n(args.minQty) < 0 ||
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
465
|
+
compareDecimals(args.price, '0') < 0 ||
|
|
466
|
+
compareDecimals(args.discount ?? '0', '0') < 0 ||
|
|
467
|
+
compareDecimals(args.discount ?? '0', '100') > 0 ||
|
|
245
468
|
n(args.delay) < 0)
|
|
246
469
|
return invalid('price', 'quantity, price, discount and lead time must be valid non-negative values');
|
|
470
|
+
if (args.dateStart && args.dateEnd && String(args.dateEnd) < String(args.dateStart))
|
|
471
|
+
return invalid('dateEnd', 'the validity period ends before it starts');
|
|
247
472
|
const existing = (await ctx.db.select('purchase.SupplierInfo', { id: args.id }))[0];
|
|
248
473
|
const values = {
|
|
249
474
|
...args,
|
|
@@ -293,13 +518,67 @@ export const functions = {
|
|
|
293
518
|
},
|
|
294
519
|
}),
|
|
295
520
|
listOrders: defineFn({
|
|
296
|
-
input: {
|
|
521
|
+
input: {
|
|
522
|
+
state: 'text?',
|
|
523
|
+
states: 'json?',
|
|
524
|
+
partnerId: 'id?',
|
|
525
|
+
search: 'text?',
|
|
526
|
+
limit: 'int?',
|
|
527
|
+
offset: 'int?',
|
|
528
|
+
},
|
|
297
529
|
effects: ['read:purchase.Order'],
|
|
298
530
|
agent: true,
|
|
299
|
-
handler: (ctx, args) =>
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
531
|
+
handler: (ctx, args) => {
|
|
532
|
+
const O = ctx.table('purchase.Order');
|
|
533
|
+
const states = Array.isArray(args.states) ? args.states.map(String) : [];
|
|
534
|
+
const limit = Math.max(1, Math.min(Math.trunc(Number(args.limit) || 500), 2_000));
|
|
535
|
+
return ctx.db.all(from(O)
|
|
536
|
+
.where(eq(O.companyId, ctx.scope.company), ...(args.state ? [eq(O.state, String(args.state))] : []), ...(states.length ? [inArray(O.state, states)] : []), ...(args.partnerId ? [eq(O.partnerId, String(args.partnerId))] : []), ...(args.search
|
|
537
|
+
? [
|
|
538
|
+
or(ilike(O.name, `%${wildcard(args.search)}%`, true), ilike(O.partnerRef, `%${wildcard(args.search)}%`, true)),
|
|
539
|
+
]
|
|
540
|
+
: []))
|
|
541
|
+
.orderBy(desc(O.dateOrder), desc(O.id))
|
|
542
|
+
.limit(limit)
|
|
543
|
+
.offset(Math.max(0, Math.trunc(Number(args.offset) || 0))));
|
|
544
|
+
},
|
|
545
|
+
}),
|
|
546
|
+
listOrderMetrics: defineFn({
|
|
547
|
+
input: { orderIds: 'json' },
|
|
548
|
+
effects: ['read:purchase.OrderLine', 'read:stock.Move', 'read:stock.Picking'],
|
|
549
|
+
agent: true,
|
|
550
|
+
handler: async (ctx, args) => {
|
|
551
|
+
const orderIds = Array.isArray(args.orderIds)
|
|
552
|
+
? [...new Set(args.orderIds.map(String).filter(Boolean))]
|
|
553
|
+
: [];
|
|
554
|
+
if (!orderIds.length)
|
|
555
|
+
return [];
|
|
556
|
+
const L = ctx.table('purchase.OrderLine');
|
|
557
|
+
const lines = await ctx.db.all(from(L).where(inArray(L.orderId, orderIds)));
|
|
558
|
+
const lineIds = lines.map((line) => String(line.id));
|
|
559
|
+
const M = ctx.table('stock.Move');
|
|
560
|
+
const moves = lineIds.length ? await ctx.db.all(from(M).where(inArray(M.purchaseLineId, lineIds))) : [];
|
|
561
|
+
const pickingIds = [
|
|
562
|
+
...new Set(moves.flatMap((move) => (move.pickingId ? [String(move.pickingId)] : []))),
|
|
563
|
+
];
|
|
564
|
+
const P = ctx.table('stock.Picking');
|
|
565
|
+
const pickingStates = new Map();
|
|
566
|
+
if (pickingIds.length)
|
|
567
|
+
for (const picking of await ctx.db.all(from(P).where(inArray(P.id, pickingIds))))
|
|
568
|
+
pickingStates.set(String(picking.id), String(picking.state));
|
|
569
|
+
const orderByLine = new Map(lines.map((line) => [String(line.id), String(line.orderId)]));
|
|
570
|
+
return orderIds.map((orderId) => ({
|
|
571
|
+
orderId,
|
|
572
|
+
itemCount: lines.filter((line) => String(line.orderId) === orderId).length,
|
|
573
|
+
pickingStates: [
|
|
574
|
+
...new Set(moves
|
|
575
|
+
.filter((move) => orderByLine.get(String(move.purchaseLineId)) === orderId)
|
|
576
|
+
.flatMap((move) => move.pickingId && pickingStates.has(String(move.pickingId))
|
|
577
|
+
? [pickingStates.get(String(move.pickingId))]
|
|
578
|
+
: [])),
|
|
579
|
+
],
|
|
580
|
+
}));
|
|
581
|
+
},
|
|
303
582
|
}),
|
|
304
583
|
getOrder: defineFn({
|
|
305
584
|
input: { id: 'id' },
|
|
@@ -307,28 +586,71 @@ export const functions = {
|
|
|
307
586
|
'read:purchase.Order',
|
|
308
587
|
'read:purchase.OrderLine',
|
|
309
588
|
'read:stock.Move',
|
|
589
|
+
'read:stock.MoveLine',
|
|
310
590
|
'read:stock.Picking',
|
|
311
591
|
'read:account.MoveLine',
|
|
312
592
|
'read:account.Move',
|
|
593
|
+
'read:product.Product',
|
|
594
|
+
'read:product.Template',
|
|
595
|
+
'read:uom.Unit',
|
|
313
596
|
],
|
|
314
597
|
agent: true,
|
|
315
598
|
handler: async (ctx, args) => {
|
|
316
599
|
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
317
600
|
if (!order)
|
|
318
601
|
return null;
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
const
|
|
324
|
-
|
|
602
|
+
const stored = await ctx.db.select('purchase.OrderLine', { orderId: args.id });
|
|
603
|
+
// Received and billed are read from the warehouse and the ledger rather
|
|
604
|
+
// than from the columns caching them, so the order is right whether or not
|
|
605
|
+
// anyone has pressed a sync button since the goods arrived.
|
|
606
|
+
const lines = [];
|
|
607
|
+
const moves = [];
|
|
608
|
+
const billLines = [];
|
|
609
|
+
for (const line of stored) {
|
|
610
|
+
moves.push(...(await ctx.db.select('stock.Move', { purchaseLineId: line.id })));
|
|
611
|
+
billLines.push(...(await ctx.db.select('account.MoveLine', { purchaseLineId: line.id })));
|
|
612
|
+
lines.push({
|
|
613
|
+
...line,
|
|
614
|
+
qtyReceived: quantityText(await receivedQuantity(ctx, line)),
|
|
615
|
+
qtyInvoiced: await billedQuantity(ctx, line.id),
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
const bills = [];
|
|
619
|
+
for (const id of new Set(billLines.map((line) => String(line.moveId)))) {
|
|
620
|
+
const bill = (await ctx.db.select('account.Move', { id }))[0];
|
|
621
|
+
if (bill)
|
|
622
|
+
bills.push(bill);
|
|
623
|
+
}
|
|
624
|
+
const detailedMoves = await Promise.all(moves.map(async (move) => ({
|
|
625
|
+
...move,
|
|
626
|
+
tracking: String((await productContext(ctx, move.productId))?.template.tracking ?? 'none'),
|
|
627
|
+
lines: await ctx.db.select('stock.MoveLine', { moveId: move.id }),
|
|
628
|
+
})));
|
|
629
|
+
const pickingIds = [
|
|
630
|
+
...new Set(detailedMoves.flatMap((move) => (move.pickingId ? [String(move.pickingId)] : []))),
|
|
631
|
+
];
|
|
632
|
+
const P = ctx.table('stock.Picking');
|
|
633
|
+
const pickings = pickingIds.length
|
|
634
|
+
? (await ctx.db.all(from(P).where(inArray(P.id, pickingIds)))).map((picking) => ({
|
|
635
|
+
...picking,
|
|
636
|
+
moves: detailedMoves.filter((move) => String(move.pickingId) === String(picking.id)),
|
|
637
|
+
}))
|
|
638
|
+
: [];
|
|
639
|
+
return {
|
|
640
|
+
...order,
|
|
641
|
+
invoiceStatus: await invoiceStatus(ctx, args.id),
|
|
642
|
+
lines,
|
|
643
|
+
moves: detailedMoves,
|
|
644
|
+
pickings,
|
|
645
|
+
bills,
|
|
646
|
+
};
|
|
325
647
|
},
|
|
326
648
|
}),
|
|
327
649
|
createOrder: defineFn({
|
|
328
650
|
input: {
|
|
329
651
|
id: 'id',
|
|
330
652
|
partnerId: 'id',
|
|
331
|
-
partnerRef: 'text',
|
|
653
|
+
partnerRef: 'text?',
|
|
332
654
|
pickingTypeId: 'id',
|
|
333
655
|
dateOrder: 'datetime?',
|
|
334
656
|
datePlanned: 'datetime?',
|
|
@@ -354,15 +676,15 @@ export const functions = {
|
|
|
354
676
|
return invalid('partnerId', 'vendor does not exist');
|
|
355
677
|
if (!(await ctx.db.select('stock.PickingType', { id: args.pickingTypeId }))[0])
|
|
356
678
|
return invalid('pickingTypeId', 'receipt operation type does not exist');
|
|
357
|
-
if (!String(args.partnerRef).trim())
|
|
358
|
-
return invalid('partnerRef', 'vendor reference is required in Odoo 19');
|
|
359
679
|
const dateOrder = String(args.dateOrder ?? now());
|
|
360
680
|
const name = await nextName(ctx);
|
|
361
681
|
await ctx.db.insert('purchase.Order', {
|
|
362
682
|
id: args.id,
|
|
363
683
|
name,
|
|
364
684
|
partnerId: args.partnerId,
|
|
365
|
-
|
|
685
|
+
// The vendor's own quotation number arrives with their reply, so it
|
|
686
|
+
// cannot be a condition of asking them for one.
|
|
687
|
+
partnerRef: String(args.partnerRef ?? '').trim(),
|
|
366
688
|
state: 'draft',
|
|
367
689
|
locked: false,
|
|
368
690
|
dateOrder,
|
|
@@ -375,10 +697,110 @@ export const functions = {
|
|
|
375
697
|
amountTax: '0',
|
|
376
698
|
amountTotal: '0',
|
|
377
699
|
notes: args.notes ?? null,
|
|
700
|
+
revision: 0,
|
|
378
701
|
});
|
|
379
702
|
return { ok: true, id: args.id, name };
|
|
380
703
|
},
|
|
381
704
|
}),
|
|
705
|
+
saveDraft: defineFn({
|
|
706
|
+
input: {
|
|
707
|
+
id: 'id',
|
|
708
|
+
partnerId: 'id',
|
|
709
|
+
pickingTypeId: 'id?',
|
|
710
|
+
lines: 'json',
|
|
711
|
+
create: 'bool?',
|
|
712
|
+
expectedRevision: 'int?',
|
|
713
|
+
},
|
|
714
|
+
output: { ok: 'bool', id: 'id?', revision: 'int?', errors: 'json?' },
|
|
715
|
+
effects: [
|
|
716
|
+
'read:purchase.Sequence',
|
|
717
|
+
'write:purchase.Sequence',
|
|
718
|
+
'read:purchase.Order',
|
|
719
|
+
'write:purchase.Order',
|
|
720
|
+
'read:purchase.OrderLine',
|
|
721
|
+
'write:purchase.OrderLine',
|
|
722
|
+
'read:purchase.SupplierInfo',
|
|
723
|
+
'read:partner.Partner',
|
|
724
|
+
'read:partner.Role',
|
|
725
|
+
'read:stock.PickingType',
|
|
726
|
+
'read:product.Product',
|
|
727
|
+
'read:product.Template',
|
|
728
|
+
'read:uom.Unit',
|
|
729
|
+
'read:account.Tax',
|
|
730
|
+
'read:company.Company',
|
|
731
|
+
],
|
|
732
|
+
idempotent: true,
|
|
733
|
+
agent: true,
|
|
734
|
+
handler: async (ctx, args) => {
|
|
735
|
+
const lines = Array.isArray(args.lines) ? args.lines : [];
|
|
736
|
+
if (!args.create && args.expectedRevision === undefined)
|
|
737
|
+
return invalid('expectedRevision', 'purchase order version is required');
|
|
738
|
+
if (!lines.length || lines.length > 100)
|
|
739
|
+
return invalid('lines', 'an RFQ needs 1 to 100 lines');
|
|
740
|
+
if (lines.some((line) => !line ||
|
|
741
|
+
typeof line !== 'object' ||
|
|
742
|
+
!line.id ||
|
|
743
|
+
!line.productId ||
|
|
744
|
+
!line.productUomId ||
|
|
745
|
+
!(n(line.productQty) > 0)))
|
|
746
|
+
return invalid('lines', 'every line needs a product, unit and positive quantity');
|
|
747
|
+
try {
|
|
748
|
+
await ctx.tx(async (tx) => {
|
|
749
|
+
let order = (await tx.db.select('purchase.Order', { id: args.id }))[0];
|
|
750
|
+
if (args.create && order)
|
|
751
|
+
return;
|
|
752
|
+
if (!order) {
|
|
753
|
+
if (!args.create)
|
|
754
|
+
throw new PurchaseRefused(invalid('id', 'purchase order does not exist'));
|
|
755
|
+
if (!args.pickingTypeId)
|
|
756
|
+
throw new PurchaseRefused(invalid('pickingTypeId', 'receipt operation type is required'));
|
|
757
|
+
const created = (await functions.createOrder.handler(tx, {
|
|
758
|
+
id: args.id,
|
|
759
|
+
partnerId: args.partnerId,
|
|
760
|
+
pickingTypeId: args.pickingTypeId,
|
|
761
|
+
}));
|
|
762
|
+
if (created.ok !== true)
|
|
763
|
+
throw new PurchaseRefused(created);
|
|
764
|
+
order = (await tx.db.select('purchase.Order', { id: args.id }))[0];
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
if (order.state !== 'draft' || order.locked)
|
|
768
|
+
throw new PurchaseRefused(invalid('state', 'only an unlocked RFQ can be updated'));
|
|
769
|
+
if (!(await claimRevision(tx, order, args.expectedRevision)))
|
|
770
|
+
throw new PurchaseRefused(invalid('expectedRevision', 'purchase order changed'));
|
|
771
|
+
}
|
|
772
|
+
if (!order)
|
|
773
|
+
throw new PurchaseRefused(invalid('id', 'purchase order does not exist'));
|
|
774
|
+
if (!(await tx.db.select('partner.Partner', { id: args.partnerId }))[0])
|
|
775
|
+
throw new PurchaseRefused(invalid('partnerId', 'vendor does not exist'));
|
|
776
|
+
if (!(await tx.db.select('partner.Role', { partnerId: args.partnerId, role: 'supplier' }))[0])
|
|
777
|
+
throw new PurchaseRefused(invalid('partnerId', 'partner is not an active vendor'));
|
|
778
|
+
await tx.db.update('purchase.Order', { id: args.id }, { partnerId: args.partnerId });
|
|
779
|
+
const L = tx.table('purchase.OrderLine');
|
|
780
|
+
await tx.db.del(deleteFrom(L).where(eq(L.orderId, String(args.id))));
|
|
781
|
+
for (const [index, line] of lines.entries()) {
|
|
782
|
+
const added = (await functions.addLine.handler(tx, {
|
|
783
|
+
id: line.id,
|
|
784
|
+
orderId: args.id,
|
|
785
|
+
productId: line.productId,
|
|
786
|
+
productQty: line.productQty,
|
|
787
|
+
productUomId: line.productUomId,
|
|
788
|
+
sequence: (index + 1) * 10,
|
|
789
|
+
}));
|
|
790
|
+
if (added.ok !== true)
|
|
791
|
+
throw new PurchaseRefused(added);
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
catch (error) {
|
|
796
|
+
if (error instanceof PurchaseRefused)
|
|
797
|
+
return error.result;
|
|
798
|
+
throw error;
|
|
799
|
+
}
|
|
800
|
+
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
801
|
+
return { ok: true, id: args.id, revision: n(order?.revision) };
|
|
802
|
+
},
|
|
803
|
+
}),
|
|
382
804
|
addLine: defineFn({
|
|
383
805
|
input: {
|
|
384
806
|
id: 'id',
|
|
@@ -393,69 +815,103 @@ export const functions = {
|
|
|
393
815
|
datePlanned: 'datetime?',
|
|
394
816
|
sequence: 'int?',
|
|
395
817
|
},
|
|
818
|
+
output: { ok: 'bool', id: 'id?', priceUnit: 'decimal?', existing: 'bool?', errors: 'json?' },
|
|
819
|
+
effects: [...lineEffects],
|
|
820
|
+
idempotent: true,
|
|
821
|
+
agent: true,
|
|
822
|
+
handler: async (ctx, args) => {
|
|
823
|
+
const existing = (await ctx.db.select('purchase.OrderLine', { id: args.id }))[0];
|
|
824
|
+
// A retry must report what the line holds, not what this call would have
|
|
825
|
+
// written. Returning a freshly computed price for a line that was never
|
|
826
|
+
// touched is what made an edit look like it had worked.
|
|
827
|
+
if (existing)
|
|
828
|
+
return { ok: true, id: args.id, priceUnit: String(existing.priceUnit), existing: true };
|
|
829
|
+
const planned = await planLine(ctx, args);
|
|
830
|
+
if ('error' in planned)
|
|
831
|
+
return planned.error;
|
|
832
|
+
const inserted = await ctx.db.insertIfAbsent('purchase.OrderLine', {
|
|
833
|
+
...planned.values,
|
|
834
|
+
id: args.id,
|
|
835
|
+
orderId: args.orderId,
|
|
836
|
+
qtyReceived: '0',
|
|
837
|
+
qtyInvoiced: '0',
|
|
838
|
+
sequence: args.sequence ?? 10,
|
|
839
|
+
});
|
|
840
|
+
if (!('dryRun' in inserted) && !inserted.inserted) {
|
|
841
|
+
// A concurrent retry won the insert; report the line it wrote.
|
|
842
|
+
const raced = (await ctx.db.select('purchase.OrderLine', { id: args.id }))[0];
|
|
843
|
+
return { ok: true, id: args.id, priceUnit: String(raced?.priceUnit ?? ''), existing: true };
|
|
844
|
+
}
|
|
845
|
+
await totals(ctx, args.orderId);
|
|
846
|
+
return { ok: true, id: args.id, priceUnit: planned.values.priceUnit, existing: false };
|
|
847
|
+
},
|
|
848
|
+
}),
|
|
849
|
+
updateLine: defineFn({
|
|
850
|
+
input: {
|
|
851
|
+
id: 'id',
|
|
852
|
+
productQty: 'decimal',
|
|
853
|
+
name: 'text?',
|
|
854
|
+
priceUnit: 'decimal?',
|
|
855
|
+
discount: 'decimal?',
|
|
856
|
+
taxId: 'id?',
|
|
857
|
+
productUomId: 'id?',
|
|
858
|
+
datePlanned: 'datetime?',
|
|
859
|
+
sequence: 'int?',
|
|
860
|
+
},
|
|
396
861
|
output: { ok: 'bool', id: 'id?', priceUnit: 'decimal?', errors: 'json?' },
|
|
862
|
+
effects: [...lineEffects],
|
|
863
|
+
idempotent: true,
|
|
864
|
+
agent: true,
|
|
865
|
+
handler: async (ctx, args) => {
|
|
866
|
+
const line = (await ctx.db.select('purchase.OrderLine', { id: args.id }))[0];
|
|
867
|
+
if (!line)
|
|
868
|
+
return invalid('id', 'order line does not exist');
|
|
869
|
+
const editable = await editableOrder(ctx, line.orderId);
|
|
870
|
+
if (!editable)
|
|
871
|
+
return invalid('id', 'lines can only be changed on an unlocked RFQ');
|
|
872
|
+
const planned = await planLine(ctx, {
|
|
873
|
+
...args,
|
|
874
|
+
orderId: line.orderId,
|
|
875
|
+
productId: line.productId,
|
|
876
|
+
productUomId: args.productUomId ?? line.productUomId,
|
|
877
|
+
name: args.name ?? line.name,
|
|
878
|
+
priceUnit: args.priceUnit ?? line.priceUnit,
|
|
879
|
+
discount: args.discount ?? line.discount,
|
|
880
|
+
taxId: args.taxId === undefined ? line.taxId : args.taxId,
|
|
881
|
+
datePlanned: args.datePlanned ?? line.datePlanned,
|
|
882
|
+
});
|
|
883
|
+
if ('error' in planned)
|
|
884
|
+
return planned.error;
|
|
885
|
+
await ctx.db.update('purchase.OrderLine', { id: args.id }, {
|
|
886
|
+
...planned.values,
|
|
887
|
+
...(args.sequence === undefined ? {} : { sequence: args.sequence }),
|
|
888
|
+
});
|
|
889
|
+
await totals(ctx, line.orderId);
|
|
890
|
+
return { ok: true, id: args.id, priceUnit: planned.values.priceUnit };
|
|
891
|
+
},
|
|
892
|
+
}),
|
|
893
|
+
removeLine: defineFn({
|
|
894
|
+
input: { id: 'id' },
|
|
895
|
+
output: { ok: 'bool', id: 'id?', errors: 'json?' },
|
|
397
896
|
effects: [
|
|
398
897
|
'read:purchase.Order',
|
|
399
898
|
'read:purchase.OrderLine',
|
|
400
899
|
'write:purchase.OrderLine',
|
|
401
900
|
'write:purchase.Order',
|
|
402
|
-
'read:purchase.SupplierInfo',
|
|
403
|
-
'read:product.Product',
|
|
404
|
-
'read:product.Template',
|
|
405
|
-
'read:uom.Unit',
|
|
406
901
|
'read:account.Tax',
|
|
407
902
|
],
|
|
408
903
|
idempotent: true,
|
|
409
904
|
agent: true,
|
|
410
905
|
handler: async (ctx, args) => {
|
|
411
|
-
const
|
|
412
|
-
if (!
|
|
413
|
-
return
|
|
414
|
-
if (!(
|
|
415
|
-
return invalid('
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return invalid('productUomId', 'unit of measure does not exist');
|
|
421
|
-
const price = await supplierPrice(ctx, order.partnerId, args.productId, n(args.productQty), String(order.dateOrder));
|
|
422
|
-
const priceUnit = args.priceUnit ?? price?.price ?? '0';
|
|
423
|
-
const discount = args.discount ?? price?.discount ?? '0';
|
|
424
|
-
if (n(priceUnit) < 0 || n(discount) < 0 || n(discount) > 100)
|
|
425
|
-
return invalid('priceUnit', 'unit price and discount are invalid');
|
|
426
|
-
const tax = args.taxId ? (await ctx.db.select('account.Tax', { id: args.taxId }))[0] : null;
|
|
427
|
-
if (args.taxId && (!tax || !['purchase', 'none'].includes(String(tax.typeTaxUse))))
|
|
428
|
-
return invalid('taxId', 'tax use does not match a purchase order');
|
|
429
|
-
const datePlanned = String(args.datePlanned ??
|
|
430
|
-
new Date(new Date(String(order.dateOrder)).getTime() + n(price?.delay ?? 1) * 86400000).toISOString());
|
|
431
|
-
const gross = money(n(args.productQty) * n(priceUnit) * (1 - n(discount) / 100));
|
|
432
|
-
let subtotal;
|
|
433
|
-
try {
|
|
434
|
-
subtotal = taxAmounts(tax, gross, n(args.productQty)).untaxed;
|
|
435
|
-
}
|
|
436
|
-
catch (error) {
|
|
437
|
-
return invalid('taxId', error.message);
|
|
438
|
-
}
|
|
439
|
-
const existing = (await ctx.db.select('purchase.OrderLine', { id: args.id }))[0];
|
|
440
|
-
if (!existing)
|
|
441
|
-
await ctx.db.insert('purchase.OrderLine', {
|
|
442
|
-
id: args.id,
|
|
443
|
-
orderId: args.orderId,
|
|
444
|
-
productId: args.productId,
|
|
445
|
-
name: args.name ?? price?.productName ?? context.template.name,
|
|
446
|
-
productQty: args.productQty,
|
|
447
|
-
productUomId: args.productUomId,
|
|
448
|
-
priceUnit: String(priceUnit),
|
|
449
|
-
discount: String(discount),
|
|
450
|
-
taxId: args.taxId ?? null,
|
|
451
|
-
datePlanned,
|
|
452
|
-
qtyReceived: '0',
|
|
453
|
-
qtyInvoiced: '0',
|
|
454
|
-
priceSubtotal: decimal(subtotal),
|
|
455
|
-
sequence: args.sequence ?? 10,
|
|
456
|
-
});
|
|
457
|
-
await totals(ctx, args.orderId);
|
|
458
|
-
return { ok: true, id: args.id, priceUnit: String(priceUnit) };
|
|
906
|
+
const line = (await ctx.db.select('purchase.OrderLine', { id: args.id }))[0];
|
|
907
|
+
if (!line)
|
|
908
|
+
return { ok: true, id: args.id };
|
|
909
|
+
if (!(await editableOrder(ctx, line.orderId)))
|
|
910
|
+
return invalid('id', 'lines can only be removed from an unlocked RFQ');
|
|
911
|
+
const table = ctx.table('purchase.OrderLine');
|
|
912
|
+
await ctx.db.del(deleteFrom(table).where(eq(table.id, args.id)));
|
|
913
|
+
await totals(ctx, line.orderId);
|
|
914
|
+
return { ok: true, id: args.id };
|
|
459
915
|
},
|
|
460
916
|
}),
|
|
461
917
|
sendRfq: defineFn({
|
|
@@ -473,15 +929,15 @@ export const functions = {
|
|
|
473
929
|
},
|
|
474
930
|
}),
|
|
475
931
|
confirmOrder: defineFn({
|
|
476
|
-
input: { id: 'id', requiresApproval: 'bool?' },
|
|
932
|
+
input: { id: 'id', requiresApproval: 'bool?', expectedRevision: 'int?' },
|
|
477
933
|
output: { ok: 'bool', id: 'id?', state: 'text?', pickingId: 'id?', errors: 'json?' },
|
|
478
934
|
effects: [...confirmEffects],
|
|
479
935
|
idempotent: true,
|
|
480
936
|
agent: true,
|
|
481
|
-
handler: (ctx, args) => confirm(ctx, args.id, args.requiresApproval === true),
|
|
937
|
+
handler: (ctx, args) => confirm(ctx, args.id, args.requiresApproval === true, args.expectedRevision),
|
|
482
938
|
}),
|
|
483
939
|
approveOrder: defineFn({
|
|
484
|
-
input: { id: 'id' },
|
|
940
|
+
input: { id: 'id', expectedRevision: 'int?' },
|
|
485
941
|
output: { ok: 'bool', id: 'id?', state: 'text?', pickingId: 'id?', errors: 'json?' },
|
|
486
942
|
effects: [...confirmEffects],
|
|
487
943
|
idempotent: true,
|
|
@@ -490,7 +946,85 @@ export const functions = {
|
|
|
490
946
|
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
491
947
|
if (order?.state !== 'to approve')
|
|
492
948
|
return invalid('state', 'order is not waiting for approval');
|
|
493
|
-
return confirm(ctx, args.id, false);
|
|
949
|
+
return confirm(ctx, args.id, false, args.expectedRevision);
|
|
950
|
+
},
|
|
951
|
+
}),
|
|
952
|
+
receiveOrderReceipt: defineFn({
|
|
953
|
+
input: { id: 'id', receiptId: 'id', expectedRevision: 'int?' },
|
|
954
|
+
output: {
|
|
955
|
+
ok: 'bool',
|
|
956
|
+
id: 'id?',
|
|
957
|
+
receiptId: 'id?',
|
|
958
|
+
receivedAt: 'datetime?',
|
|
959
|
+
lineCount: 'int?',
|
|
960
|
+
errors: 'json?',
|
|
961
|
+
},
|
|
962
|
+
effects: [
|
|
963
|
+
...(stockFunctions.completePicking.effects ?? []),
|
|
964
|
+
'read:purchase.Order',
|
|
965
|
+
'write:purchase.Order',
|
|
966
|
+
'read:purchase.OrderLine',
|
|
967
|
+
'write:purchase.OrderLine',
|
|
968
|
+
'read:account.Move',
|
|
969
|
+
'read:account.MoveLine',
|
|
970
|
+
'read:uom.Unit',
|
|
971
|
+
],
|
|
972
|
+
idempotent: true,
|
|
973
|
+
agent: true,
|
|
974
|
+
handler: async (ctx, args) => {
|
|
975
|
+
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
976
|
+
if (!order)
|
|
977
|
+
return invalid('id', 'purchase order does not exist');
|
|
978
|
+
if (args.expectedRevision !== undefined && n(order.revision) !== n(args.expectedRevision))
|
|
979
|
+
return invalid('expectedRevision', 'purchase order changed');
|
|
980
|
+
if (order.state !== 'purchase')
|
|
981
|
+
return invalid('state', 'only a purchase order can be received');
|
|
982
|
+
const lines = await ctx.db.select('purchase.OrderLine', { orderId: args.id });
|
|
983
|
+
const moves = [];
|
|
984
|
+
for (const line of lines)
|
|
985
|
+
moves.push(...(await ctx.db.select('stock.Move', { purchaseLineId: line.id })));
|
|
986
|
+
const receiptMoves = moves.filter((move) => String(move.pickingId) === String(args.receiptId));
|
|
987
|
+
const picking = (await ctx.db.select('stock.Picking', { id: args.receiptId }))[0];
|
|
988
|
+
if (!picking || !receiptMoves.length)
|
|
989
|
+
return invalid('receiptId', 'receipt does not belong to the purchase order');
|
|
990
|
+
if (picking.state === 'cancel')
|
|
991
|
+
return invalid('state', 'a cancelled receipt cannot be received');
|
|
992
|
+
const quantities = [];
|
|
993
|
+
for (const move of receiptMoves) {
|
|
994
|
+
const prepared = await ctx.db.select('stock.MoveLine', { moveId: move.id });
|
|
995
|
+
const quantity = prepared.reduce((sum, row) => sum + n(row.quantity), 0);
|
|
996
|
+
if (!prepared.length || Math.abs(quantity - n(move.productUomQty)) > 0.000001)
|
|
997
|
+
return invalid('receiptId', 'receipt quantities need warehouse review before mobile receipt');
|
|
998
|
+
const context = await productContext(ctx, move.productId);
|
|
999
|
+
const tracking = String(context?.template.tracking ?? 'none');
|
|
1000
|
+
if (tracking !== 'none' && prepared.some((row) => !row.lotId))
|
|
1001
|
+
return invalid('receiptId', 'tracked receipt lines need lot or serial review');
|
|
1002
|
+
for (const row of prepared)
|
|
1003
|
+
quantities.push({ moveLineId: String(row.id), quantity: n(row.quantity) });
|
|
1004
|
+
}
|
|
1005
|
+
const current = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
1006
|
+
if (!current || !(await claimRevision(ctx, current, args.expectedRevision)))
|
|
1007
|
+
return invalid('expectedRevision', 'purchase order changed');
|
|
1008
|
+
// completePicking owns its own atomic stock transaction. Claim the order
|
|
1009
|
+
// version immediately before entering it instead of nesting transactions,
|
|
1010
|
+
// which is not portable across SQLite and PostgreSQL adapters.
|
|
1011
|
+
const completed = (await stockFunctions.completePicking.handler(ctx, {
|
|
1012
|
+
id: args.receiptId,
|
|
1013
|
+
quantities,
|
|
1014
|
+
createBackorder: false,
|
|
1015
|
+
}));
|
|
1016
|
+
if (completed.ok !== true)
|
|
1017
|
+
return completed;
|
|
1018
|
+
await refreshReceived(ctx, args.id);
|
|
1019
|
+
await refreshInvoiceStatus(ctx, args.id);
|
|
1020
|
+
const receipt = (await ctx.db.select('stock.Picking', { id: args.receiptId }))[0];
|
|
1021
|
+
return {
|
|
1022
|
+
ok: true,
|
|
1023
|
+
id: args.id,
|
|
1024
|
+
receiptId: args.receiptId,
|
|
1025
|
+
receivedAt: receipt?.dateDone ?? now(),
|
|
1026
|
+
lineCount: quantities.length,
|
|
1027
|
+
};
|
|
494
1028
|
},
|
|
495
1029
|
}),
|
|
496
1030
|
syncReceipts: defineFn({
|
|
@@ -504,6 +1038,9 @@ export const functions = {
|
|
|
504
1038
|
'read:stock.Move',
|
|
505
1039
|
'read:product.Product',
|
|
506
1040
|
'read:product.Template',
|
|
1041
|
+
'read:uom.Unit',
|
|
1042
|
+
'read:account.Move',
|
|
1043
|
+
'read:account.MoveLine',
|
|
507
1044
|
],
|
|
508
1045
|
idempotent: true,
|
|
509
1046
|
agent: true,
|
|
@@ -511,10 +1048,8 @@ export const functions = {
|
|
|
511
1048
|
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
512
1049
|
if (!order)
|
|
513
1050
|
return invalid('id', 'purchase order does not exist');
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
await ctx.db.update('purchase.OrderLine', { id: line.id }, { qtyReceived: decimal(moves.reduce((sum, move) => sum + n(move.quantity), 0)) });
|
|
517
|
-
}
|
|
1051
|
+
await refreshReceived(ctx, args.id);
|
|
1052
|
+
await refreshBilled(ctx, args.id);
|
|
518
1053
|
await refreshInvoiceStatus(ctx, args.id);
|
|
519
1054
|
return { ok: true, id: args.id, invoiceStatus: await invoiceStatus(ctx, args.id) };
|
|
520
1055
|
},
|
|
@@ -542,7 +1077,10 @@ export const functions = {
|
|
|
542
1077
|
'read:account.Account',
|
|
543
1078
|
'read:account.Tax',
|
|
544
1079
|
'read:account.Move',
|
|
1080
|
+
'read:account.MoveLine',
|
|
545
1081
|
'read:company.Company',
|
|
1082
|
+
'read:stock.Move',
|
|
1083
|
+
'read:uom.Unit',
|
|
546
1084
|
'write:account.Move',
|
|
547
1085
|
'write:account.MoveLine',
|
|
548
1086
|
],
|
|
@@ -564,40 +1102,75 @@ export const functions = {
|
|
|
564
1102
|
return invalid('expenseAccountId', 'an expense account is required');
|
|
565
1103
|
if (payable?.accountType !== 'liability_payable')
|
|
566
1104
|
return invalid('payableAccountId', 'a payable account is required');
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
1105
|
+
const collect = async (scoped) => {
|
|
1106
|
+
const billable = [];
|
|
1107
|
+
for (const line of await scoped.db.select('purchase.OrderLine', { orderId: args.orderId })) {
|
|
1108
|
+
const context = await productContext(scoped, line.productId);
|
|
1109
|
+
const method = String(context?.template.purchaseMethod ??
|
|
1110
|
+
(context?.template.type === 'service' ? 'purchase' : 'receive'));
|
|
1111
|
+
const basis = method === 'purchase'
|
|
1112
|
+
? canonicalDecimalText(line.productQty)
|
|
1113
|
+
: canonicalDecimalText(String(await receivedQuantity(scoped, line)));
|
|
1114
|
+
// Read what the bills say rather than a counter, so two drafts prepared
|
|
1115
|
+
// at once cannot both bill the same quantity.
|
|
1116
|
+
const quantity = subtractDecimals(basis, await billedQuantity(scoped, line.id));
|
|
1117
|
+
if (decimalSign(quantity) <= 0)
|
|
1118
|
+
continue;
|
|
1119
|
+
const quote = await quoteTaxLineForPosting(scoped, {
|
|
1120
|
+
taxIds: line.taxId ? [line.taxId] : [],
|
|
1121
|
+
quantity,
|
|
1122
|
+
priceUnit: line.priceUnit,
|
|
1123
|
+
discount: line.discount,
|
|
1124
|
+
taxUse: 'purchase',
|
|
1125
|
+
});
|
|
1126
|
+
if (quote.ok !== true)
|
|
1127
|
+
return invalid('taxId', String(quote.errors[0]?.message ?? 'invalid tax'));
|
|
1128
|
+
const shares = [];
|
|
1129
|
+
for (const share of quote.shares) {
|
|
1130
|
+
if (moneyMinor(share.amount, quote.scale) === 0n)
|
|
1131
|
+
continue;
|
|
1132
|
+
const accountId = (quote.shares.length === 1 ? args.taxAccountId : null) ?? share.accountId;
|
|
1133
|
+
if (!accountId || !(await scoped.db.select('account.Account', { id: accountId }))[0])
|
|
1134
|
+
return invalid('taxAccountId', 'a valid tax account is required');
|
|
1135
|
+
shares.push({ ...share, accountId });
|
|
1136
|
+
}
|
|
1137
|
+
billable.push({
|
|
1138
|
+
line,
|
|
1139
|
+
quantity,
|
|
1140
|
+
subtotal: quote.amountUntaxed,
|
|
1141
|
+
taxAmount: quote.amountTax,
|
|
1142
|
+
shares,
|
|
1143
|
+
});
|
|
585
1144
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
if (!
|
|
1145
|
+
return billable;
|
|
1146
|
+
};
|
|
1147
|
+
const preview = await collect(ctx);
|
|
1148
|
+
if (!Array.isArray(preview))
|
|
1149
|
+
return preview;
|
|
1150
|
+
if (!preview.length)
|
|
592
1151
|
return invalid('lines', 'there is no received or ordered quantity left to bill');
|
|
593
|
-
const untaxed = money(billable.reduce((sum, item) => sum + item.subtotal, 0));
|
|
594
|
-
const tax = money(billable.reduce((sum, item) => sum + item.taxAmount, 0));
|
|
595
|
-
const total = money(untaxed + tax);
|
|
596
1152
|
const invoiceDate = String(args.invoiceDate ?? now());
|
|
597
|
-
|
|
598
|
-
|
|
1153
|
+
const scale = scaleOf(order.currency);
|
|
1154
|
+
let total = 0n;
|
|
1155
|
+
const written = await ctx.tx(async (tx) => {
|
|
1156
|
+
const billable = await collect(tx);
|
|
1157
|
+
if (!Array.isArray(billable))
|
|
1158
|
+
return billable;
|
|
1159
|
+
if (!billable.length)
|
|
1160
|
+
return invalid('lines', 'there is no received or ordered quantity left to bill');
|
|
1161
|
+
const untaxed = sumMoneyMinor(billable.map((item) => item.subtotal), scale);
|
|
1162
|
+
const tax = sumMoneyMinor(billable.map((item) => item.taxAmount), scale);
|
|
1163
|
+
total = untaxed + tax;
|
|
1164
|
+
const zero = minorText(0n, scale);
|
|
1165
|
+
// Accounting stamps its journal sequence when the bill is posted; until
|
|
1166
|
+
// then a draft showed its raw identifier, so the buyer's own screen
|
|
1167
|
+
// listed a UUID where a document number belongs. An order can be billed
|
|
1168
|
+
// more than once — after a cancellation, or in instalments — and a move
|
|
1169
|
+
// name is unique per journal, so the draft is numbered within its order.
|
|
1170
|
+
const draftNumber = (await tx.db.select('account.Move', { ref: order.name, journalId: args.journalId })).length + 1;
|
|
1171
|
+
const move = {
|
|
599
1172
|
id: args.id,
|
|
600
|
-
name: String(
|
|
1173
|
+
name: `${String(order.name)}/${String(draftNumber)}`,
|
|
601
1174
|
ref: order.name,
|
|
602
1175
|
date: invoiceDate,
|
|
603
1176
|
moveType: 'in_invoice',
|
|
@@ -609,15 +1182,18 @@ export const functions = {
|
|
|
609
1182
|
paymentTermId: args.paymentTermId ?? null,
|
|
610
1183
|
paymentState: 'not_paid',
|
|
611
1184
|
currency: order.currency,
|
|
612
|
-
amountUntaxed:
|
|
613
|
-
amountTax:
|
|
614
|
-
amountTotal:
|
|
1185
|
+
amountUntaxed: minorText(untaxed, scale),
|
|
1186
|
+
amountTax: minorText(tax, scale),
|
|
1187
|
+
amountTotal: minorText(total, scale),
|
|
615
1188
|
postedAt: null,
|
|
616
|
-
|
|
1189
|
+
revision: 0,
|
|
1190
|
+
};
|
|
1191
|
+
const moveLines = [];
|
|
617
1192
|
let sequence = 10;
|
|
618
1193
|
for (const item of billable) {
|
|
619
1194
|
const baseId = `${String(args.id)}:${String(item.line.id)}`;
|
|
620
|
-
|
|
1195
|
+
const subtotal = minorText(moneyMinor(item.subtotal, scale), scale);
|
|
1196
|
+
moveLines.push({
|
|
621
1197
|
id: baseId,
|
|
622
1198
|
moveId: args.id,
|
|
623
1199
|
name: item.line.name,
|
|
@@ -625,47 +1201,49 @@ export const functions = {
|
|
|
625
1201
|
partnerId: order.partnerId,
|
|
626
1202
|
productId: item.line.productId,
|
|
627
1203
|
productUomId: item.line.productUomId,
|
|
628
|
-
quantity:
|
|
1204
|
+
quantity: item.quantity,
|
|
629
1205
|
priceUnit: item.line.priceUnit,
|
|
630
1206
|
discount: item.line.discount,
|
|
631
1207
|
taxId: item.line.taxId,
|
|
632
|
-
debit:
|
|
633
|
-
credit:
|
|
634
|
-
balance:
|
|
1208
|
+
debit: subtotal,
|
|
1209
|
+
credit: zero,
|
|
1210
|
+
balance: subtotal,
|
|
635
1211
|
dateMaturity: null,
|
|
636
1212
|
displayType: null,
|
|
637
1213
|
reconciled: false,
|
|
638
|
-
amountResidual:
|
|
1214
|
+
amountResidual: zero,
|
|
639
1215
|
sequence,
|
|
640
1216
|
purchaseLineId: item.line.id,
|
|
641
1217
|
});
|
|
642
1218
|
sequence += 10;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
1219
|
+
for (const share of item.shares) {
|
|
1220
|
+
const amount = minorText(moneyMinor(share.amount, scale), scale);
|
|
1221
|
+
moveLines.push({
|
|
1222
|
+
id: `${baseId}:tax:${String(share.taxId)}`,
|
|
646
1223
|
moveId: args.id,
|
|
647
|
-
name:
|
|
648
|
-
accountId:
|
|
1224
|
+
name: share.name,
|
|
1225
|
+
accountId: share.accountId,
|
|
649
1226
|
partnerId: order.partnerId,
|
|
650
1227
|
productId: null,
|
|
651
1228
|
productUomId: null,
|
|
652
1229
|
quantity: '1',
|
|
653
|
-
priceUnit:
|
|
1230
|
+
priceUnit: amount,
|
|
654
1231
|
discount: '0',
|
|
655
|
-
taxId:
|
|
656
|
-
debit:
|
|
657
|
-
credit:
|
|
658
|
-
balance:
|
|
1232
|
+
taxId: share.taxId,
|
|
1233
|
+
debit: amount,
|
|
1234
|
+
credit: zero,
|
|
1235
|
+
balance: amount,
|
|
659
1236
|
dateMaturity: null,
|
|
660
1237
|
displayType: null,
|
|
661
1238
|
reconciled: false,
|
|
662
|
-
amountResidual:
|
|
1239
|
+
amountResidual: zero,
|
|
663
1240
|
sequence: sequence++,
|
|
664
1241
|
purchaseLineId: item.line.id,
|
|
665
1242
|
});
|
|
666
|
-
|
|
1243
|
+
}
|
|
667
1244
|
}
|
|
668
|
-
|
|
1245
|
+
const totalText = minorText(total, scale);
|
|
1246
|
+
moveLines.push({
|
|
669
1247
|
id: `${String(args.id)}:counterpart`,
|
|
670
1248
|
moveId: args.id,
|
|
671
1249
|
name: order.name,
|
|
@@ -674,22 +1252,48 @@ export const functions = {
|
|
|
674
1252
|
productId: null,
|
|
675
1253
|
productUomId: null,
|
|
676
1254
|
quantity: '1',
|
|
677
|
-
priceUnit:
|
|
1255
|
+
priceUnit: totalText,
|
|
678
1256
|
discount: '0',
|
|
679
1257
|
taxId: null,
|
|
680
|
-
debit:
|
|
681
|
-
credit:
|
|
682
|
-
balance:
|
|
1258
|
+
debit: zero,
|
|
1259
|
+
credit: totalText,
|
|
1260
|
+
balance: negateDecimalText(totalText),
|
|
683
1261
|
dateMaturity: invoiceDate,
|
|
684
1262
|
displayType: null,
|
|
685
1263
|
reconciled: false,
|
|
686
|
-
amountResidual:
|
|
1264
|
+
amountResidual: totalText,
|
|
687
1265
|
sequence: sequence + 10,
|
|
688
1266
|
purchaseLineId: null,
|
|
689
1267
|
});
|
|
1268
|
+
await insertDraftMove(tx, { move, lines: moveLines });
|
|
1269
|
+
await refreshBilled(tx, args.orderId);
|
|
1270
|
+
await refreshInvoiceStatus(tx, args.orderId);
|
|
1271
|
+
return { ok: true };
|
|
690
1272
|
});
|
|
691
|
-
|
|
692
|
-
|
|
1273
|
+
if (written.ok !== true)
|
|
1274
|
+
return written;
|
|
1275
|
+
return { ok: true, id: args.id, amountTotal: minorText(total, scale) };
|
|
1276
|
+
},
|
|
1277
|
+
}),
|
|
1278
|
+
resetToDraft: defineFn({
|
|
1279
|
+
input: { id: 'id' },
|
|
1280
|
+
output: { ok: 'bool', id: 'id?', state: 'text?', errors: 'json?' },
|
|
1281
|
+
effects: ['read:purchase.Order', 'write:purchase.Order'],
|
|
1282
|
+
idempotent: true,
|
|
1283
|
+
agent: true,
|
|
1284
|
+
handler: async (ctx, args) => {
|
|
1285
|
+
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
1286
|
+
if (!order)
|
|
1287
|
+
return invalid('id', 'purchase order does not exist');
|
|
1288
|
+
if (order.state === 'draft')
|
|
1289
|
+
return { ok: true, id: args.id, state: 'draft' };
|
|
1290
|
+
// An approver who wants the request changed had only one button, and it
|
|
1291
|
+
// destroyed the request. Sending it back is the ordinary answer; a
|
|
1292
|
+
// confirmed order is past that point because a receipt already exists.
|
|
1293
|
+
if (!['sent', 'to approve'].includes(String(order.state)))
|
|
1294
|
+
return invalid('state', 'only a request awaiting sending or approval can go back to draft');
|
|
1295
|
+
await ctx.db.update('purchase.Order', { id: args.id }, { state: 'draft' });
|
|
1296
|
+
return { ok: true, id: args.id, state: 'draft' };
|
|
693
1297
|
},
|
|
694
1298
|
}),
|
|
695
1299
|
lockOrder: defineFn({
|
|
@@ -707,7 +1311,7 @@ export const functions = {
|
|
|
707
1311
|
},
|
|
708
1312
|
}),
|
|
709
1313
|
cancelOrder: defineFn({
|
|
710
|
-
input: { id: 'id' },
|
|
1314
|
+
input: { id: 'id', expectedRevision: 'int?' },
|
|
711
1315
|
output: { ok: 'bool', id: 'id?', errors: 'json?' },
|
|
712
1316
|
effects: [
|
|
713
1317
|
'read:purchase.Order',
|
|
@@ -725,18 +1329,41 @@ export const functions = {
|
|
|
725
1329
|
const order = (await ctx.db.select('purchase.Order', { id: args.id }))[0];
|
|
726
1330
|
if (!order)
|
|
727
1331
|
return invalid('id', 'purchase order does not exist');
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
if (
|
|
731
|
-
return
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1332
|
+
if (args.expectedRevision !== undefined && n(order.revision) !== n(args.expectedRevision))
|
|
1333
|
+
return invalid('expectedRevision', 'purchase order changed');
|
|
1334
|
+
if (order.state === 'cancel')
|
|
1335
|
+
return { ok: true, id: args.id };
|
|
1336
|
+
try {
|
|
1337
|
+
await ctx.tx(async (tx) => {
|
|
1338
|
+
const current = (await tx.db.select('purchase.Order', { id: args.id }))[0];
|
|
1339
|
+
if (!current || !(await claimRevision(tx, current, args.expectedRevision)))
|
|
1340
|
+
throw new PurchaseRefused(invalid('expectedRevision', 'purchase order changed'));
|
|
1341
|
+
// Locking is the operator saying "no more changes"; cancellation is
|
|
1342
|
+
// the largest change there is.
|
|
1343
|
+
if (current.locked)
|
|
1344
|
+
throw new PurchaseRefused(invalid('state', 'a locked order cannot be cancelled'));
|
|
1345
|
+
const lines = await tx.db.select('purchase.OrderLine', { orderId: args.id });
|
|
1346
|
+
const moves = [];
|
|
1347
|
+
for (const line of lines)
|
|
1348
|
+
moves.push(...(await tx.db.select('stock.Move', { purchaseLineId: line.id })));
|
|
1349
|
+
if (moves.some((move) => move.state === 'done'))
|
|
1350
|
+
throw new PurchaseRefused(invalid('state', 'a received order cannot be cancelled'));
|
|
1351
|
+
for (const line of lines)
|
|
1352
|
+
if ((await tx.db.select('account.MoveLine', { purchaseLineId: line.id })).length)
|
|
1353
|
+
throw new PurchaseRefused(invalid('state', 'a billed order cannot be cancelled'));
|
|
1354
|
+
for (const move of moves)
|
|
1355
|
+
await tx.db.update('stock.Move', { id: move.id }, { state: 'cancel' });
|
|
1356
|
+
for (const pickingId of [...new Set(moves.map((move) => move.pickingId).filter(Boolean))])
|
|
1357
|
+
await tx.db.update('stock.Picking', { id: pickingId }, { state: 'cancel' });
|
|
1358
|
+
await tx.db.update('purchase.Order', { id: args.id }, { state: 'cancel' });
|
|
1359
|
+
});
|
|
1360
|
+
return { ok: true, id: args.id };
|
|
1361
|
+
}
|
|
1362
|
+
catch (error) {
|
|
1363
|
+
if (error instanceof PurchaseRefused)
|
|
1364
|
+
return error.result;
|
|
1365
|
+
throw error;
|
|
1366
|
+
}
|
|
740
1367
|
},
|
|
741
1368
|
}),
|
|
742
1369
|
};
|