@feedmepos/mf-inventory-portal 1.7.13-dev.3 → 1.7.13-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-OcI38sEw.js → App-JqoqVVdP.js} +471 -460
- package/dist/{ApprovalView-qTRrEvTp.js → ApprovalView-JiWbXkVU.js} +9 -9
- package/dist/{BindingsDialog-G8tFbm7v.js → BindingsDialog-BK4xofWu.js} +2 -2
- package/dist/{BindingsPicker-DB3mjjVh.js → BindingsPicker-CLMsAseG.js} +2 -2
- package/dist/{BindingsTable-DLf8XLyn.js → BindingsTable-DKrBQTxN.js} +4 -4
- package/dist/{BulkReceiveRequestView-2AWitWXo.js → BulkReceiveRequestView-bttHw2ub.js} +19 -19
- package/dist/{ClosingDraftView-c25_GCaw.js → ClosingDraftView-Bhdwo-n8.js} +19 -19
- package/dist/ClosingHistoryView-DrQPWnr6.js +761 -0
- package/dist/{ClosingTemplateView-BzaVZ1Mf.js → ClosingTemplateView-UkwXCrz_.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Dlh4ThV0.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DNtMdFVF.js} +1 -1
- package/dist/{DefaultView-e9RSHejw.js → DefaultView-sGrYeUGh.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BSbiO2Vd.js → DeliveryOrderPrintPreview-CVnqC9Jy.js} +10 -10
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D_8msVau.js → EmailDialog.vue_vue_type_script_setup_true_lang-CYtHQ2Ru.js} +2250 -2250
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DUjcebMR.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BA6stZHF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtfiRgsD.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yBIbCJYy.js +243 -0
- package/dist/{FmMultiselectDialog-DEg8KNwS.js → FmMultiselectDialog-A9VIMLGn.js} +1 -1
- package/dist/{FmMultiselectDialog-DsA4X91e.js → FmMultiselectDialog-DL00XnUc.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CPlywwpg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RJKOB-cm.js} +66 -63
- package/dist/{ImportView-D9QCHpOd.js → ImportView-DPrLnJO8.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C7iOvnZV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-IAQyFPmi.js} +1 -1
- package/dist/{IngredientGroupView-BRH304Pf.js → IngredientGroupView-DyhC6lJ8.js} +5 -5
- package/dist/{IngredientsView-BUGYJ6cN.js → IngredientsView-P4AqPikD.js} +15 -15
- package/dist/{IntegrationExplorerView-Z3_x4C5I.js → IntegrationExplorerView-CujhjHHV.js} +4 -4
- package/dist/{IntegrationView-ClWTgLai.js → IntegrationView-CFqsZyzI.js} +3077 -2998
- package/dist/{InventoryBindingForm-B7tGISLQ.js → InventoryBindingForm-B0NJ8H51.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DOWePtXq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-bbIpFo_4.js} +5 -5
- package/dist/{InventoryBindingSummary-j3YGRPOt.js → InventoryBindingSummary-CBgO_tCz.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CPpO-iyC.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DuuXzyKH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BP8f4hlw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C418f34P.js} +1 -1
- package/dist/ProductionRunDetailView-tSByC3nQ.js +5165 -0
- package/dist/ProductionRunPreparePrintView-zPAATL-n.js +31 -0
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DgtZJgrs.js +3506 -0
- package/dist/ProductionRunView-BsP02jgC.js +815 -0
- package/dist/{PublishView-CL747KZU.js → PublishView-Cf0Tn7xt.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C5AB03ht.js → PurchaseOrderPrintPreview-BTlSyQqZ.js} +6 -6
- package/dist/{ReceiveRequestView-BDy40tBg.js → ReceiveRequestView-9LFOl2hJ.js} +14 -14
- package/dist/{RecipeView-BbBZGBPb.js → RecipeView-C4KxMCpQ.js} +17 -17
- package/dist/{SettingsView-rcalnrlB.js → SettingsView-ShrefnTM.js} +4 -4
- package/dist/{StockView-BSLGMo1e.js → StockView-BVd6f7Fr.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeEq2HQe.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-rB7p9o.js} +1 -1
- package/dist/{SupplierView-DOq8oosU.js → SupplierView-DZSY6_eU.js} +12 -12
- package/dist/{SurchargeView-BK9Yakao.js → SurchargeView-UUYoT8MK.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQRfvdyo.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BLMxzi1C.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CjfzWy2p.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-z3qIVKP7.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-6qKRU6v7.js → TransferDetails.vue_vue_type_script_setup_true_lang-DEO8CP-X.js} +20 -20
- package/dist/{TransferTemplateView-BmWxWDe8.js → TransferTemplateView-C21o2V_1.js} +20 -20
- package/dist/{UnitCostHistoryView-BCvCf-2e.js → UnitCostHistoryView-DPEGVLBP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DJu3u-cT.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BuGmmHBk.js} +4 -4
- package/dist/{UnitView-CW8GRw2n.js → UnitView-Bx03E4uc.js} +7 -7
- package/dist/{WarehouseView-ZWuCwzuM.js → WarehouseView-BehHQ9Ao.js} +6 -6
- package/dist/{WastageTemplateView-DkwVp2Bc.js → WastageTemplateView-gmr7doXL.js} +14 -14
- package/dist/api/netsuite.d.ts +13 -0
- package/dist/api/production-run-error.d.ts +36 -0
- package/dist/api/production-run-error.spec.d.ts +1 -0
- package/dist/api/production-run.d.ts +58 -0
- package/dist/api/stock.d.ts +0 -6
- package/dist/{app-BJsy0dhl.js → app-BT7hD4az.js} +16523 -12629
- package/dist/app.d.ts +3047 -71
- package/dist/app.js +1 -1
- package/dist/{closing-template-DdxIx-dq.js → closing-template-BNfr1RIX.js} +1 -1
- package/dist/components/FmInventoryBanner.vue.d.ts +39 -0
- package/dist/components/FmUnitInput.spec.d.ts +1 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/composable/useModalA11y.d.ts +9 -0
- package/dist/composable/useModalA11y.spec.d.ts +1 -0
- package/dist/cypress/component/ChangelogPanel.cy.d.ts +1 -0
- package/dist/cypress/support/component.d.ts +1 -2
- package/dist/{date2-BySoG7zL.js → date2-CAh7rsAp.js} +1 -1
- package/dist/{dayjs.min-CEK_HLa5.js → dayjs.min-BJk-edO7.js} +7 -7
- package/dist/{decimal-CxH3h_oz.js → decimal-DYlKNkVX.js} +2 -2
- package/dist/{defineDeepModel-BiNh3hbS.js → defineDeepModel-BPHl7mTD.js} +1 -1
- package/dist/{duplicate-template-BqTirEVQ.js → duplicate-template-BWUUIdzG.js} +1 -1
- package/dist/{feature-CtiarMKO.js → feature-CSvVyBN2.js} +2 -2
- package/dist/{format-time-from-id-BZlQSqcg.js → format-time-from-id-Dh3lxXpc.js} +1 -1
- package/dist/{format-unit-display-Ckyw7NDq.js → format-unit-display-B1ft2wxm.js} +12 -12
- package/dist/{import-export.helper-93ZgMgfA.js → import-export.helper-txDvkMf0.js} +6 -6
- package/dist/{index-6U0mJTRK.js → index-AmTodx3_.js} +1 -1
- package/dist/{index-OMz6kBpd.js → index-B4wQijn6.js} +1 -1
- package/dist/{index-BDmWjw_1.js → index-TIX5DyQk.js} +3 -3
- package/dist/inventory-core-dart.default-BpMxAF-0.js +31060 -0
- package/dist/{lz-string-BgsMxnd4.js → lz-string-CFDYH-K6.js} +1 -1
- package/dist/{netsuite-DFRzj2t1.js → netsuite-CdW9v92G.js} +477 -462
- package/dist/{number-D-_PL2pH.js → number-DRRlTYv7.js} +6 -6
- package/dist/{predefined-templates-Ccsy5pq1.js → predefined-templates-C68U85pc.js} +1 -1
- package/dist/production-run-display-DmyfdjHR.js +239 -0
- package/dist/production-run-prepare-sheet-BvxMd19E.js +189 -0
- package/dist/{purchase-order-template-DhWqGEYn.js → purchase-order-template-BvED3CpO.js} +1 -1
- package/dist/{recalculationUtils-DBZx8AEF.js → recalculationUtils-9rFepwwr.js} +1 -1
- package/dist/router/name.d.ts +2 -0
- package/dist/{rules-14YnQFVP.js → rules-C8RmopTe.js} +2 -2
- package/dist/{stock-CqPXExNE.js → stock-BKkluaaM.js} +26 -36
- package/dist/{stock-NwBpU2GU.js → stock-CiCsT5JK.js} +3 -3
- package/dist/stores/integration/codemax.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +54 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BGh3ELiI.js → supplier--zZMQHPc.js} +2 -2
- package/dist/{surcharge-B2A5F8CG.js → surcharge-BLF3XV0G.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-B9vLSzRQ.js → uom-rules-CjCCXiGL.js} +1 -1
- package/dist/{use-ingredient-select-dialog-vwF7iReq.js → use-ingredient-select-dialog-DnUiY-Ic.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DBp_gbnj.js → use-inventory-binding-dialog-BAU-P8kV.js} +2 -2
- package/dist/{use-template-enabled-locations-DSvlNPYu.js → use-template-enabled-locations-DZMzYCi-.js} +2 -2
- package/dist/{use-transfer-locations-OMxT9ofA.js → use-transfer-locations-DomGLsT2.js} +2 -2
- package/dist/{useHrmPermission-BbjcDYMn.js → useHrmPermission-CrhsV_5z.js} +1 -1
- package/dist/{useNavigationMenu-CJw7QuVt.js → useNavigationMenu-1h-G_-el.js} +2 -2
- package/dist/{useSseClient-CT69SXDP.js → useSseClient-o_3wiqhX.js} +1 -1
- package/dist/views/changelog/components/ChangelogFloatingButton.spec.d.ts +1 -0
- package/dist/views/changelog/composables/fab-position.d.ts +21 -0
- package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +1 -1
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
- package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/netsuite/business/vendor-publish.d.ts +7 -0
- package/dist/views/integration/components/netsuite/business/vendor-publish.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
- package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunPreparePrintView.vue.d.ts +2 -0
- package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunView.vue.d.ts +2 -0
- package/dist/views/production-run/components/CancelRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CancelRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CancelRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/components/CloseRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CloseRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CloseRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.vue.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunDialog.vue.d.ts +18 -0
- package/dist/views/production-run/components/PrepareRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareSheetDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareSheetDialog.vue.d.ts +26 -0
- package/dist/views/{stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts → production-run/components/ProductionRunActionMenuItem.vue.d.ts} +7 -10
- package/dist/views/production-run/components/ProductionRunActionsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActionsCell.vue.d.ts +20 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunBanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBanner.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.vue.d.ts +69 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunBindingsList.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunCompactDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunCostRail.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunCostRail.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDialog.vue.d.ts +24 -0
- package/dist/views/production-run/components/ProductionRunDialogProps.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunDialogSurface.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.vue.d.ts +21 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/ProductionRunFormDialogProps.d.ts +22 -0
- package/dist/views/production-run/components/ProductionRunHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHeader.vue.d.ts +65 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.vue.d.ts +63 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.vue.d.ts +30 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.vue.d.ts +73 -0
- package/dist/views/production-run/components/ProductionRunLoadBannerContract.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.vue.d.ts +26 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.vue.d.ts +999 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.vue.d.ts +50 -0
- package/dist/views/production-run/components/ProductionRunPlanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanner.vue.d.ts +61 -0
- package/dist/views/production-run/components/ProductionRunPrepareSheet.vue.d.ts +16 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.vue.d.ts +41 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.vue.d.ts +48 -0
- package/dist/views/production-run/components/ProductionRunResultTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunResultTable.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionControls.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.vue.d.ts +37 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunSideSheetSurface.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunStatusBadge.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTabs.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTabs.vue.d.ts +47 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTextarea.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTextarea.vue.d.ts +53 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.vue.d.ts +34 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.vue.d.ts +23 -0
- package/dist/views/production-run/components/RecordOutputDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/RecordOutputDialog.vue.d.ts +20 -0
- package/dist/views/production-run/components/RecordOutputDialogProps.d.ts +28 -0
- package/dist/views/production-run/components/TargetReachedDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/TargetReachedDialog.vue.d.ts +927 -0
- package/dist/views/production-run/components/production-run-deduction-parity.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-prepare-sheet.d.ts +17 -0
- package/dist/views/production-run/components/production-run-typography-contract.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-unit-snapshot.d.ts +39 -0
- package/dist/views/production-run/composables/production-run-display.d.ts +272 -0
- package/dist/views/production-run/composables/production-run-display.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-list.d.ts +46 -0
- package/dist/views/production-run/composables/production-run-list.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-request-confirmation.d.ts +20 -0
- package/dist/views/production-run/composables/use-production-run-actions.d.ts +37 -0
- package/dist/views/production-run/composables/use-production-run-actions.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-cost.d.ts +672 -0
- package/dist/views/production-run/composables/use-production-run-cost.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-detail.d.ts +1894 -0
- package/dist/views/production-run/composables/use-production-run-detail.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.d.ts +15 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-economics.d.ts +92 -0
- package/dist/views/production-run/composables/use-production-run-economics.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-form.d.ts +277 -0
- package/dist/views/production-run/composables/use-production-run-form.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-record-output.d.ts +261 -0
- package/dist/views/production-run/composables/use-production-run-record-output.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-scroll-hint.d.ts +9 -0
- package/dist/views/production-run/composables/use-production-run-table.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-table.spec.d.ts +1 -0
- package/dist/views/production-run/helpers/production-run-precision.helper.d.ts +31 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.d.ts +55 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.spec.d.ts +1 -0
- package/dist/views/production-run/production-run.fixture.d.ts +70 -0
- package/dist/views/production-run/production-run.fixture.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +2 -17
- package/dist/{vue-i18n--DyBLMYh.js → vue-i18n-hE8n67Ig.js} +358 -358
- package/dist/{xlsx.util-BthUZo9U.js → xlsx.util-Jv7EpwFc.js} +2 -2
- package/package.json +5 -5
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DpqPCG-m.js +0 -126
- package/dist/ClosingHistoryView-Cy2yMiEc.js +0 -1112
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C28nZw_t.js +0 -120
- package/dist/ProductionView-DGB2sdwD.js +0 -1441
- package/dist/inventory-core-dart.default-BmR8gM8k.js +0 -25155
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { w as o } from "./app-
|
|
2
|
-
import { F as l } from "./decimal-
|
|
3
|
-
import "./dayjs.min-
|
|
1
|
+
import { w as o } from "./app-BT7hD4az.js";
|
|
2
|
+
import { F as l } from "./decimal-DYlKNkVX.js";
|
|
3
|
+
import "./dayjs.min-BJk-edO7.js";
|
|
4
4
|
function g(n, t) {
|
|
5
5
|
return o.convertPrecision({
|
|
6
6
|
value: n,
|
|
@@ -129,10 +129,10 @@ export {
|
|
|
129
129
|
w as i,
|
|
130
130
|
j,
|
|
131
131
|
g as k,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
$ as l,
|
|
133
|
+
A as m,
|
|
134
134
|
x as n,
|
|
135
|
-
|
|
135
|
+
F as o,
|
|
136
136
|
v as t,
|
|
137
137
|
N as u
|
|
138
138
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as qn, j as Wn, y as zn } from "./app-
|
|
1
|
+
import { d as qn, j as Wn, y as zn } from "./app-BT7hD4az.js";
|
|
2
2
|
import { defineStore as Vn } from "pinia";
|
|
3
3
|
import { ref as mt, computed as Kn } from "vue";
|
|
4
4
|
import { useCoreStore as Yn } from "@feedmepos/mf-common";
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { l as b } from "./number-DRRlTYv7.js";
|
|
2
|
+
import { F as i } from "./decimal-DYlKNkVX.js";
|
|
3
|
+
import { b as m, c as A } from "./inventory-core-dart.default-BpMxAF-0.js";
|
|
4
|
+
function g(t) {
|
|
5
|
+
return Object.fromEntries(
|
|
6
|
+
Object.entries(t).map(([e, n]) => [e, i.toDouble(n.amount)])
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
function w(t) {
|
|
10
|
+
return Object.values(t).reduce((e, n) => e + n, 0);
|
|
11
|
+
}
|
|
12
|
+
function d(t) {
|
|
13
|
+
return g(m.committedBySku({ run: t }).amounts);
|
|
14
|
+
}
|
|
15
|
+
function f(t) {
|
|
16
|
+
return g(m.producedBySku({ run: t }).amounts);
|
|
17
|
+
}
|
|
18
|
+
function C(t) {
|
|
19
|
+
return w(d(t));
|
|
20
|
+
}
|
|
21
|
+
function x(t) {
|
|
22
|
+
return w(f(t));
|
|
23
|
+
}
|
|
24
|
+
function B(t) {
|
|
25
|
+
const e = f(t);
|
|
26
|
+
return Object.fromEntries(
|
|
27
|
+
Object.entries(d(t)).map(([n, o]) => [
|
|
28
|
+
n,
|
|
29
|
+
Math.max(0, o - (e[n] ?? 0))
|
|
30
|
+
])
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function j(t) {
|
|
34
|
+
return A.isAtTarget({ run: t });
|
|
35
|
+
}
|
|
36
|
+
function I(t, e) {
|
|
37
|
+
return m.baseAmount({ amount: t, measurement: e });
|
|
38
|
+
}
|
|
39
|
+
function N(t, e) {
|
|
40
|
+
return i.toDouble(I(t, e));
|
|
41
|
+
}
|
|
42
|
+
function T(t, e) {
|
|
43
|
+
return i.toDouble(
|
|
44
|
+
e ? i.multiplyDecimal(t, e.conversion) : t
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const l = "—", y = new Intl.DateTimeFormat("en-MY", {
|
|
48
|
+
day: "2-digit",
|
|
49
|
+
month: "short",
|
|
50
|
+
year: "numeric"
|
|
51
|
+
}), D = new Intl.DateTimeFormat("en-US", {
|
|
52
|
+
hour: "2-digit",
|
|
53
|
+
minute: "2-digit",
|
|
54
|
+
hour12: !0
|
|
55
|
+
});
|
|
56
|
+
function L(t) {
|
|
57
|
+
const e = t instanceof Date ? t : new Date(t);
|
|
58
|
+
return Number.isNaN(e.getTime()) ? typeof t == "string" ? t : l : `${y.format(e)}, ${D.format(e)}`;
|
|
59
|
+
}
|
|
60
|
+
const M = 2, p = "−";
|
|
61
|
+
function G(t, e, n = {}) {
|
|
62
|
+
const o = typeof t == "number" ? t : i.toDouble(t), u = Math.max(0, Math.trunc(n.precision ?? M)), r = (a) => e ? `${a} ${e}` : a;
|
|
63
|
+
if (o === 0) return r("0");
|
|
64
|
+
if (Number(o.toFixed(u)) === 0) {
|
|
65
|
+
const a = b(10 ** -u, { minPrecision: 0, maxPrecision: u }), O = n.deduction || o < 0 ? p : "";
|
|
66
|
+
return r(`${O}<${a}`);
|
|
67
|
+
}
|
|
68
|
+
const s = b(n.deduction ? Math.abs(o) : o, {
|
|
69
|
+
minPrecision: 0,
|
|
70
|
+
maxPrecision: u
|
|
71
|
+
});
|
|
72
|
+
return r(n.deduction ? `${p}${s}` : s);
|
|
73
|
+
}
|
|
74
|
+
function S(t, e) {
|
|
75
|
+
if (t == null) return l;
|
|
76
|
+
const n = new Intl.NumberFormat("en", {
|
|
77
|
+
style: "currency",
|
|
78
|
+
currency: e
|
|
79
|
+
}).resolvedOptions().maximumFractionDigits;
|
|
80
|
+
return `${e === "MYR" ? "RM" : e} ${i.toDouble(t).toFixed(n)}`;
|
|
81
|
+
}
|
|
82
|
+
function K(t, e) {
|
|
83
|
+
if (t == null) return l;
|
|
84
|
+
const n = new Intl.NumberFormat("en", {
|
|
85
|
+
style: "currency",
|
|
86
|
+
currency: e
|
|
87
|
+
}).resolvedOptions().maximumFractionDigits;
|
|
88
|
+
return S({ amount: Math.round(t * 10 ** n), precision: n }, e);
|
|
89
|
+
}
|
|
90
|
+
function W(t) {
|
|
91
|
+
return t.length === 0 ? null : `${E(t.length, "ingredient")} uncosted`;
|
|
92
|
+
}
|
|
93
|
+
function E(t, e, n = `${e}s`) {
|
|
94
|
+
return `${t} ${t === 1 ? e : n}`;
|
|
95
|
+
}
|
|
96
|
+
function Y(t, e = () => null) {
|
|
97
|
+
var u;
|
|
98
|
+
const n = /* @__PURE__ */ new Map();
|
|
99
|
+
for (const r of t.issuances)
|
|
100
|
+
for (const s of r.items) n.set(s.skuId, s.sku.unit.abbrev);
|
|
101
|
+
const o = /* @__PURE__ */ new Set();
|
|
102
|
+
for (const r of t.items) {
|
|
103
|
+
const s = n.get(r.skuId) ?? ((u = e(r.skuId)) == null ? void 0 : u.unit.abbrev);
|
|
104
|
+
if (!s) return null;
|
|
105
|
+
o.add(s);
|
|
106
|
+
}
|
|
107
|
+
return o.size === 1 ? [...o][0] : null;
|
|
108
|
+
}
|
|
109
|
+
function z(t, e = () => null) {
|
|
110
|
+
var u;
|
|
111
|
+
const n = /* @__PURE__ */ new Map();
|
|
112
|
+
for (const r of t.issuances)
|
|
113
|
+
for (const s of r.items) n.set(s.skuId, k(s.sku.unit));
|
|
114
|
+
const o = /* @__PURE__ */ new Set();
|
|
115
|
+
for (const r of t.items) {
|
|
116
|
+
const s = (u = e(r.skuId)) == null ? void 0 : u.unit, a = n.get(r.skuId) ?? (s ? k(s) : void 0);
|
|
117
|
+
a && o.add(a);
|
|
118
|
+
}
|
|
119
|
+
return o.size > 1;
|
|
120
|
+
}
|
|
121
|
+
function k(t) {
|
|
122
|
+
return t._id || t.abbrev;
|
|
123
|
+
}
|
|
124
|
+
function R(t, e) {
|
|
125
|
+
return Math.floor(c(t) / 6e4) < Math.floor(c(e) / 6e4);
|
|
126
|
+
}
|
|
127
|
+
function Q(t) {
|
|
128
|
+
return [...t.batches].map((e) => {
|
|
129
|
+
var n;
|
|
130
|
+
return {
|
|
131
|
+
id: e.id,
|
|
132
|
+
adjustmentId: e.adjustmentId,
|
|
133
|
+
producedAt: e.producedAt,
|
|
134
|
+
recordedAt: e.recordedAt,
|
|
135
|
+
isBackdated: R(e.producedAt, e.recordedAt),
|
|
136
|
+
recordedBy: e.recordedBy.name,
|
|
137
|
+
remark: ((n = e.remark) == null ? void 0 : n.trim()) || null,
|
|
138
|
+
items: e.items.map((o) => ({
|
|
139
|
+
skuId: o.skuId,
|
|
140
|
+
amount: N(o.producedAmount, o.measurement)
|
|
141
|
+
})),
|
|
142
|
+
// PR1 owns the durable line field. The old umbrella's generated type has
|
|
143
|
+
// not caught up yet, so this projection is the isolated rebase seam.
|
|
144
|
+
wastages: e.wastages ?? []
|
|
145
|
+
};
|
|
146
|
+
}).sort((e, n) => c(e.producedAt) - c(n.producedAt)).map((e, n) => ({ ...e, index: n + 1 }));
|
|
147
|
+
}
|
|
148
|
+
function c(t) {
|
|
149
|
+
const e = Date.parse(t);
|
|
150
|
+
return Number.isNaN(e) ? Number.MAX_SAFE_INTEGER : e;
|
|
151
|
+
}
|
|
152
|
+
const h = [
|
|
153
|
+
"TRIM",
|
|
154
|
+
"COOKING",
|
|
155
|
+
"SPOILAGE",
|
|
156
|
+
"SPILLAGE",
|
|
157
|
+
"OTHER"
|
|
158
|
+
];
|
|
159
|
+
function F(t) {
|
|
160
|
+
return `inventory.production.run.wastageReason.${t}`;
|
|
161
|
+
}
|
|
162
|
+
function q(t) {
|
|
163
|
+
return t ? h.includes(t) ? F(t) : t : null;
|
|
164
|
+
}
|
|
165
|
+
function H(t) {
|
|
166
|
+
if (!(t != null && t.skus)) return [];
|
|
167
|
+
const e = /* @__PURE__ */ new Set();
|
|
168
|
+
for (const n of t.skus)
|
|
169
|
+
n.amounts.reduce(
|
|
170
|
+
(u, r) => u + T(r.amount, r.measurement),
|
|
171
|
+
0
|
|
172
|
+
) < 0 && e.add(n.sku._id);
|
|
173
|
+
return [...e];
|
|
174
|
+
}
|
|
175
|
+
function V(t) {
|
|
176
|
+
const e = (n) => ({ key: n, params: {}, showsAmount: !1 });
|
|
177
|
+
switch (t.costState) {
|
|
178
|
+
case "uncosted":
|
|
179
|
+
return t.uncostedNames.length > 0 ? {
|
|
180
|
+
key: "unknownCost",
|
|
181
|
+
params: { names: t.uncostedNames.join(", ") },
|
|
182
|
+
showsAmount: !1
|
|
183
|
+
} : e("unknownCostUncostedUnnamed");
|
|
184
|
+
case "negative-valuation":
|
|
185
|
+
return e("unknownCostNegative");
|
|
186
|
+
case "unattributable":
|
|
187
|
+
return e("unknownCostUnattributable");
|
|
188
|
+
case "unavailable":
|
|
189
|
+
return e("unknownCostUnavailable");
|
|
190
|
+
case "known":
|
|
191
|
+
return t.unabsorbed === null ? e("unknownCostUnavailable") : { key: "leavesUnabsorbed", params: {}, showsAmount: !0 };
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function U(t) {
|
|
195
|
+
return t.status === "CLOSED";
|
|
196
|
+
}
|
|
197
|
+
function X(t) {
|
|
198
|
+
const e = v(t);
|
|
199
|
+
return e === null ? null : e === "below-target" ? "below-target" : "target-reached";
|
|
200
|
+
}
|
|
201
|
+
function v(t) {
|
|
202
|
+
if (!U(t)) return null;
|
|
203
|
+
const e = d(t), n = f(t);
|
|
204
|
+
let o = !1;
|
|
205
|
+
for (const [u, r] of Object.entries(e)) {
|
|
206
|
+
const s = n[u] ?? 0;
|
|
207
|
+
if (s < r) return "below-target";
|
|
208
|
+
s > r && (o = !0);
|
|
209
|
+
}
|
|
210
|
+
return o ? "above-target" : "at-target";
|
|
211
|
+
}
|
|
212
|
+
export {
|
|
213
|
+
l as N,
|
|
214
|
+
h as P,
|
|
215
|
+
L as a,
|
|
216
|
+
N as b,
|
|
217
|
+
d as c,
|
|
218
|
+
S as d,
|
|
219
|
+
K as e,
|
|
220
|
+
G as f,
|
|
221
|
+
q as g,
|
|
222
|
+
X as h,
|
|
223
|
+
j as i,
|
|
224
|
+
V as j,
|
|
225
|
+
Q as k,
|
|
226
|
+
U as l,
|
|
227
|
+
C as m,
|
|
228
|
+
x as n,
|
|
229
|
+
z as o,
|
|
230
|
+
f as p,
|
|
231
|
+
H as q,
|
|
232
|
+
B as r,
|
|
233
|
+
T as s,
|
|
234
|
+
v as t,
|
|
235
|
+
Y as u,
|
|
236
|
+
W as v,
|
|
237
|
+
F as w,
|
|
238
|
+
I as x
|
|
239
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { defineComponent as g, createElementBlock as d, openBlock as p, createElementVNode as t, createCommentVNode as _, toDisplayString as s, unref as i, Fragment as w, renderList as v } from "vue";
|
|
2
|
+
import { useI18n as x } from "@feedmepos/mf-common";
|
|
3
|
+
import { a as k, f as S } from "./production-run-display-DmyfdjHR.js";
|
|
4
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { D as e } from "./app-BT7hD4az.js";
|
|
6
|
+
const P = {
|
|
7
|
+
"data-testid": "prepare-sheet-page",
|
|
8
|
+
class: "production-run-prepare-sheet-page mx-auto min-h-[297mm] w-[210mm] max-w-full bg-white p-24 shadow-md print:min-h-0 print:w-full print:max-w-none print:shadow-none"
|
|
9
|
+
}, j = { class: "border-b-2 border-fm-color-line pb-16" }, N = { class: "fm-typo-en-body-sm-600 uppercase text-fm-color-typo-secondary" }, A = { class: "fm-typo-en-heading-lg-600 mt-4 text-fm-color-typo-primary" }, U = { class: "fm-typo-en-body-sm-400 mt-4 text-fm-color-typo-secondary" }, D = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "production-run-prepare-sheet-instructions mt-16 rounded-8 border border-fm-color-line p-12"
|
|
12
|
+
}, E = { class: "fm-typo-en-body-md-600" }, T = { class: "fm-typo-en-body-sm-400 mt-4 whitespace-pre-wrap" }, R = { class: "production-run-prepare-sheet-ingredients mt-20" }, M = { class: "fm-typo-en-title-sm-600" }, $ = {
|
|
13
|
+
key: 0,
|
|
14
|
+
"data-testid": "prepare-sheet-ingredients",
|
|
15
|
+
class: "mt-8 overflow-hidden rounded-8 border border-fm-color-line"
|
|
16
|
+
}, B = { class: "w-full table-fixed border-collapse text-left" }, L = { class: "bg-fm-color-neutral-gray-100" }, O = { class: "px-8 py-12 text-center" }, q = { class: "sr-only" }, C = { class: "px-8 py-12 fm-typo-en-body-sm-600 sm:px-12" }, F = { class: "px-8 py-12 text-center fm-typo-en-body-sm-600 sm:px-12" }, G = { class: "px-8 py-12 text-left fm-typo-en-body-sm-600 sm:px-12" }, J = { class: "min-w-0 px-8 py-12 fm-typo-en-body-md-600 sm:px-12" }, Q = { class: "px-8 py-12 text-center fm-typo-en-body-md-600 sm:px-12" }, V = { class: "px-8 py-12 sm:px-12" }, X = {
|
|
17
|
+
"data-testid": "prepare-sheet-qty-taken",
|
|
18
|
+
class: "flex min-w-0 items-end gap-6"
|
|
19
|
+
}, z = { class: "shrink-0 text-fm-color-typo-secondary" }, K = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "fm-typo-en-body-sm-400 mt-8 text-fm-color-typo-secondary"
|
|
22
|
+
}, H = {
|
|
23
|
+
"data-testid": "prepare-sheet-remarks",
|
|
24
|
+
class: "production-run-prepare-sheet-remarks mt-24"
|
|
25
|
+
}, W = { class: "fm-typo-en-body-md-600" }, Y = { class: "production-run-prepare-sheet-signoff mt-24 grid grid-cols-2 gap-24 fm-typo-en-body-sm-400" }, Z = { class: "border-b border-fm-color-line pb-24" }, ee = { class: "border-b border-fm-color-line pb-24" }, te = /* @__PURE__ */ g({
|
|
26
|
+
__name: "ProductionRunPrepareSheet",
|
|
27
|
+
props: {
|
|
28
|
+
document: {}
|
|
29
|
+
},
|
|
30
|
+
setup(n) {
|
|
31
|
+
const { t: o } = x();
|
|
32
|
+
return (r, a) => (p(), d("article", P, [
|
|
33
|
+
t("header", j, [
|
|
34
|
+
t("p", N, s(i(o)("inventory.production.run.dialog.prepare.sheet.document")), 1),
|
|
35
|
+
t("h1", A, s(r.document.title), 1),
|
|
36
|
+
t("p", U, s(i(o)("inventory.production.run.dialog.prepare.context", {
|
|
37
|
+
runNo: r.document.runNo,
|
|
38
|
+
location: r.document.locationName || i(o)("inventory.production.run.dialog.prepare.unknownLocation")
|
|
39
|
+
})) + " · " + s(i(o)("inventory.production.run.dialog.prepare.sheet.lastUpdated", {
|
|
40
|
+
at: i(k)(r.document.updatedAt)
|
|
41
|
+
})), 1)
|
|
42
|
+
]),
|
|
43
|
+
r.document.instructions ? (p(), d("section", D, [
|
|
44
|
+
t("h2", E, s(i(o)("inventory.production.run.form.instructions")), 1),
|
|
45
|
+
t("p", T, s(r.document.instructions), 1)
|
|
46
|
+
])) : _("", !0),
|
|
47
|
+
t("section", R, [
|
|
48
|
+
t("h2", M, s(i(o)("inventory.production.run.dialog.prepare.sheet.ingredients")), 1),
|
|
49
|
+
r.document.review.ingredients.length ? (p(), d("div", $, [
|
|
50
|
+
t("table", B, [
|
|
51
|
+
a[2] || (a[2] = t("colgroup", null, [
|
|
52
|
+
t("col", { class: "w-48" }),
|
|
53
|
+
t("col"),
|
|
54
|
+
t("col", { class: "w-112 sm:w-144" }),
|
|
55
|
+
t("col", { class: "w-128 sm:w-160" })
|
|
56
|
+
], -1)),
|
|
57
|
+
t("thead", L, [
|
|
58
|
+
t("tr", null, [
|
|
59
|
+
t("th", O, [
|
|
60
|
+
t("span", q, s(i(o)("inventory.production.run.dialog.prepare.sheet.checkbox")), 1)
|
|
61
|
+
]),
|
|
62
|
+
t("th", C, s(i(o)("inventory.production.run.dialog.prepare.sheet.ingredient")), 1),
|
|
63
|
+
t("th", F, s(i(o)("inventory.production.run.dialog.prepare.columns.requested")), 1),
|
|
64
|
+
t("th", G, s(i(o)("inventory.production.run.dialog.prepare.sheet.taken")), 1)
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
t("tbody", null, [
|
|
68
|
+
(p(!0), d(w, null, v(r.document.review.ingredients, (c) => (p(), d("tr", {
|
|
69
|
+
key: c.skuId,
|
|
70
|
+
class: "border-t border-fm-color-line"
|
|
71
|
+
}, [
|
|
72
|
+
a[1] || (a[1] = t("td", { class: "px-8 py-12 align-middle" }, [
|
|
73
|
+
t("span", { class: "mx-auto block size-24 rounded-4 border-2 border-fm-color-typo-primary" })
|
|
74
|
+
], -1)),
|
|
75
|
+
t("td", J, s(c.name), 1),
|
|
76
|
+
t("td", Q, s(i(S)(c.need, c.unit, {
|
|
77
|
+
precision: c.precision
|
|
78
|
+
})), 1),
|
|
79
|
+
t("td", V, [
|
|
80
|
+
t("div", X, [
|
|
81
|
+
a[0] || (a[0] = t("span", { class: "inline-block h-24 min-w-48 flex-1 border-b border-fm-color-typo-primary" }, null, -1)),
|
|
82
|
+
t("span", z, s(c.unit), 1)
|
|
83
|
+
])
|
|
84
|
+
])
|
|
85
|
+
]))), 128))
|
|
86
|
+
])
|
|
87
|
+
])
|
|
88
|
+
])) : (p(), d("p", K, s(i(o)("inventory.production.run.dialog.prepare.sheet.noIngredients")), 1))
|
|
89
|
+
]),
|
|
90
|
+
t("section", H, [
|
|
91
|
+
t("h2", W, s(i(o)("inventory.production.run.dialog.prepare.sheet.remarks")), 1),
|
|
92
|
+
a[3] || (a[3] = t("div", { class: "mt-8 min-h-96 rounded-8 border border-fm-color-line bg-white" }, null, -1))
|
|
93
|
+
]),
|
|
94
|
+
t("section", Y, [
|
|
95
|
+
t("div", Z, s(i(o)("inventory.production.run.dialog.prepare.sheet.preparedBy")), 1),
|
|
96
|
+
t("div", ee, s(i(o)("inventory.production.run.dialog.prepare.sheet.date")), 1)
|
|
97
|
+
])
|
|
98
|
+
]));
|
|
99
|
+
}
|
|
100
|
+
}), he = /* @__PURE__ */ I(te, [["__scopeId", "data-v-3925b420"]]), h = e.object({ amount: e.number().int(), precision: e.number().int().nonnegative() }).strict(), oe = e.object({
|
|
101
|
+
id: e.string().min(1),
|
|
102
|
+
name: e.string(),
|
|
103
|
+
abbrev: e.string(),
|
|
104
|
+
baseUnitId: e.string().min(1),
|
|
105
|
+
conversion: h
|
|
106
|
+
}).strict(), re = e.object({
|
|
107
|
+
itemSkuId: e.string(),
|
|
108
|
+
name: e.string(),
|
|
109
|
+
perUnit: e.number(),
|
|
110
|
+
sourceQuantity: e.number(),
|
|
111
|
+
sourceUnit: e.string(),
|
|
112
|
+
amount: e.number()
|
|
113
|
+
}).strict(), b = e.object({
|
|
114
|
+
title: e.string(),
|
|
115
|
+
runNo: e.number().int(),
|
|
116
|
+
instructions: e.string().nullable(),
|
|
117
|
+
locationName: e.string().nullable(),
|
|
118
|
+
updatedAt: e.string().min(1),
|
|
119
|
+
review: e.object({
|
|
120
|
+
items: e.array(
|
|
121
|
+
e.object({
|
|
122
|
+
skuId: e.string(),
|
|
123
|
+
name: e.string(),
|
|
124
|
+
code: e.string(),
|
|
125
|
+
unit: e.string(),
|
|
126
|
+
precision: e.number().int().nonnegative().nullable(),
|
|
127
|
+
model: e.object({ amount: h, measurement: oe }).strict()
|
|
128
|
+
}).strict()
|
|
129
|
+
),
|
|
130
|
+
ingredients: e.array(
|
|
131
|
+
e.object({
|
|
132
|
+
skuId: e.string(),
|
|
133
|
+
name: e.string(),
|
|
134
|
+
unit: e.string(),
|
|
135
|
+
need: e.number(),
|
|
136
|
+
current: e.number().nullable(),
|
|
137
|
+
after: e.number().nullable(),
|
|
138
|
+
status: e.enum(["ok", "low", "shortage", "unknown"]),
|
|
139
|
+
contributors: e.array(re),
|
|
140
|
+
precision: e.number().int().nonnegative().nullable()
|
|
141
|
+
}).strict()
|
|
142
|
+
)
|
|
143
|
+
}).strict()
|
|
144
|
+
}).strict(), ne = e.object({
|
|
145
|
+
version: e.literal(1),
|
|
146
|
+
expiresAt: e.number().int(),
|
|
147
|
+
document: b
|
|
148
|
+
}).strict(), se = "production-run:prepare-sheet:", y = 6e4, m = /* @__PURE__ */ new Map();
|
|
149
|
+
function l(n) {
|
|
150
|
+
return `${se}${n}`;
|
|
151
|
+
}
|
|
152
|
+
function f(n, o = window.localStorage) {
|
|
153
|
+
const r = m.get(n);
|
|
154
|
+
r !== void 0 && window.clearTimeout(r), m.delete(n), o.removeItem(l(n));
|
|
155
|
+
}
|
|
156
|
+
function ie() {
|
|
157
|
+
var n, o;
|
|
158
|
+
return ((o = (n = globalThis.crypto) == null ? void 0 : n.randomUUID) == null ? void 0 : o.call(n)) ?? `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
159
|
+
}
|
|
160
|
+
function ae(n, o = window.localStorage, r = Date.now()) {
|
|
161
|
+
const a = b.parse(n), c = ie();
|
|
162
|
+
return o.setItem(
|
|
163
|
+
l(c),
|
|
164
|
+
JSON.stringify({ version: 1, expiresAt: r + y, document: a })
|
|
165
|
+
), c;
|
|
166
|
+
}
|
|
167
|
+
function be(n, o = window.localStorage, r = Date.now()) {
|
|
168
|
+
const a = l(n), c = o.getItem(a);
|
|
169
|
+
if (f(n, o), !c) throw new Error("Production prepare sheet is unavailable");
|
|
170
|
+
const u = ne.parse(JSON.parse(c));
|
|
171
|
+
if (u.expiresAt <= r) throw new Error("Production prepare sheet has expired");
|
|
172
|
+
return u.document;
|
|
173
|
+
}
|
|
174
|
+
function ce(n, o = window.location.href) {
|
|
175
|
+
const r = new URL(o);
|
|
176
|
+
return r.pathname = r.hostname.includes("portal.feedme") ? "/inventory/production-item/prepare-sheet" : "/production-item/prepare-sheet", r.search = "", r.hash = "", r.searchParams.set("sheet", n), r;
|
|
177
|
+
}
|
|
178
|
+
function ye(n) {
|
|
179
|
+
const o = ae(n);
|
|
180
|
+
window.open(ce(o).href, "_blank", "noreferrer"), m.set(
|
|
181
|
+
o,
|
|
182
|
+
window.setTimeout(() => f(o), y)
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
export {
|
|
186
|
+
he as P,
|
|
187
|
+
ye as o,
|
|
188
|
+
be as r
|
|
189
|
+
};
|
package/dist/router/name.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export declare enum RouteName {
|
|
|
6
6
|
UNIT = "UNIT",
|
|
7
7
|
STOCK = "STOCK",
|
|
8
8
|
PRODUCTION = "PRODUCTION",
|
|
9
|
+
PRODUCTION_RUN_PREPARE_SHEET = "PRODUCTION_RUN_PREPARE_SHEET",
|
|
10
|
+
PRODUCTION_RUN_DETAIL = "PRODUCTION_RUN_DETAIL",
|
|
9
11
|
UNIT_COST_HISTORY = "UNIT_COST_HISTORY",
|
|
10
12
|
CLOSING_TEMPLATE = "CLOSING_TEMPLATE",
|
|
11
13
|
CLOSING_DRAFT = "CLOSING_DRAFT",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as f, a as u, g as d, b as m } from "./number-
|
|
2
|
-
import { c as b, d as p } from "./date2-
|
|
1
|
+
import { c as f, a as u, g as d, b as m } from "./number-DRRlTYv7.js";
|
|
2
|
+
import { c as b, d as p } from "./date2-CAh7rsAp.js";
|
|
3
3
|
function M() {
|
|
4
4
|
return function(e) {
|
|
5
5
|
return !!e || "Required";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as m, u as $ } from "./app-
|
|
1
|
+
import { d as m, u as $ } from "./app-BT7hD4az.js";
|
|
2
2
|
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as
|
|
3
|
+
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
4
|
const N = m((r, a) => {
|
|
5
|
-
const
|
|
5
|
+
const o = $(), u = B(), i = y();
|
|
6
6
|
return a.onError(async (e) => {
|
|
7
7
|
e.name === "SvcForbiddenError" && (i == null || i.open({
|
|
8
8
|
title: e.title,
|
|
@@ -11,65 +11,55 @@ const N = m((r, a) => {
|
|
|
11
11
|
}));
|
|
12
12
|
}), {
|
|
13
13
|
async readStockBalance() {
|
|
14
|
-
const e =
|
|
14
|
+
const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock-balance`;
|
|
15
15
|
return await a.get(t);
|
|
16
16
|
},
|
|
17
17
|
async readSkuBalance() {
|
|
18
|
-
var
|
|
19
|
-
const e =
|
|
20
|
-
return (((
|
|
18
|
+
var c;
|
|
19
|
+
const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/sku/balance`;
|
|
20
|
+
return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
|
|
21
21
|
},
|
|
22
22
|
async readSingleAdjustment(e) {
|
|
23
|
-
const t =
|
|
23
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
|
|
24
24
|
return await a.get(`${n}?adjustmentId=${e}`);
|
|
25
25
|
},
|
|
26
26
|
async readStockAdjustment(e, t, n) {
|
|
27
|
-
const
|
|
28
|
-
return await a.get(`${
|
|
27
|
+
const c = o.currentLocationDBName, s = `${r.inventoryBackendUrl}/${c}/sku`;
|
|
28
|
+
return await a.get(`${s}?skuId=${e}&start=${t}&end=${n}`);
|
|
29
29
|
},
|
|
30
30
|
async readAdjustmentById(e) {
|
|
31
|
-
const t =
|
|
31
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
|
|
32
32
|
return await a.get(`${n}?adjustmentId=${e}`);
|
|
33
33
|
},
|
|
34
34
|
async convertSku(e) {
|
|
35
|
-
var
|
|
36
|
-
const t =
|
|
37
|
-
return (((
|
|
35
|
+
var s;
|
|
36
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/convert`;
|
|
37
|
+
return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
|
|
38
38
|
},
|
|
39
39
|
async adjustSku(e) {
|
|
40
|
-
var
|
|
41
|
-
const t =
|
|
42
|
-
return (((
|
|
40
|
+
var s;
|
|
41
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/adjust`;
|
|
42
|
+
return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
|
|
43
43
|
},
|
|
44
44
|
async revertWastageAdjustment(e) {
|
|
45
|
-
const t =
|
|
45
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
|
|
46
46
|
return await a.post(n, e);
|
|
47
47
|
},
|
|
48
48
|
recalculation: {
|
|
49
|
-
getRecalculateAbility() {
|
|
50
|
-
var o;
|
|
51
|
-
const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate`;
|
|
52
|
-
return a.get(n);
|
|
53
|
-
},
|
|
54
|
-
startRecalculateTask() {
|
|
55
|
-
var o;
|
|
56
|
-
const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
57
|
-
return a.post(n);
|
|
58
|
-
},
|
|
59
49
|
refreshCurrentBalances() {
|
|
60
|
-
const e =
|
|
50
|
+
const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
|
|
61
51
|
return a.post(t);
|
|
62
52
|
},
|
|
63
53
|
scheduleInvalidateClosingDraftCache(e) {
|
|
64
|
-
const t =
|
|
54
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
|
|
65
55
|
return a.post(n, { closingDraftIds: e });
|
|
66
56
|
},
|
|
67
57
|
recalculationRequests() {
|
|
68
|
-
const e =
|
|
58
|
+
const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
|
|
69
59
|
return a.get(t);
|
|
70
60
|
},
|
|
71
61
|
scheduleRecalculation(e) {
|
|
72
|
-
const t =
|
|
62
|
+
const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
|
|
73
63
|
return a.post(n, {
|
|
74
64
|
openingId: e.openingId,
|
|
75
65
|
untilDate: e.untilDate,
|
|
@@ -77,15 +67,15 @@ const N = m((r, a) => {
|
|
|
77
67
|
});
|
|
78
68
|
},
|
|
79
69
|
getAffectedClosingDrafts(e, t) {
|
|
80
|
-
const n =
|
|
81
|
-
return a.get(
|
|
70
|
+
const n = o.currentLocationDBName, c = `${r.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
|
|
71
|
+
return a.get(c);
|
|
82
72
|
}
|
|
83
73
|
},
|
|
84
74
|
async readUnitCostHistory(e, t, n) {
|
|
85
75
|
var d;
|
|
86
|
-
const
|
|
76
|
+
const c = o.currentLocation.doc._id, s = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${r.inventoryBackendUrl}/${s}/api/unit-cost-history`;
|
|
87
77
|
return await a.get(
|
|
88
|
-
`${l}?locationId=${
|
|
78
|
+
`${l}?locationId=${c}&skuId=${e}&startDate=${t}&endDate=${n}`
|
|
89
79
|
);
|
|
90
80
|
}
|
|
91
81
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as i } from "./stock-
|
|
2
|
-
import { a as s,
|
|
1
|
+
import { u as i } from "./stock-BKkluaaM.js";
|
|
2
|
+
import { a as s, U as p } from "./app-BT7hD4az.js";
|
|
3
3
|
import { computed as k, ref as B } from "vue";
|
|
4
|
-
import { c as d } from "./number-
|
|
4
|
+
import { c as d } from "./number-DRRlTYv7.js";
|
|
5
5
|
function m() {
|
|
6
6
|
return {
|
|
7
7
|
stockBalance: {
|