@feedmepos/mf-inventory-portal 1.2.43-dev.3 → 1.2.44-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{App-DkzM4M0_.js → App-D6h4PbkJ.js} +3 -3
  2. package/dist/{ApprovalView-Dd5bg0yE.js → ApprovalView-Bll-QWib.js} +5 -5
  3. package/dist/{BindingsDialog-FoyqtujI.js → BindingsDialog-cm-tG1Du.js} +2 -2
  4. package/dist/{BindingsPicker-D-DS3PdA.js → BindingsPicker-Ca0BxJKj.js} +2 -2
  5. package/dist/{BindingsTable-viPFJCPm.js → BindingsTable-BBNWeq4W.js} +3 -3
  6. package/dist/{ClosingDraftView-BlaIq6iS.js → ClosingDraftView-r2C27qph.js} +766 -723
  7. package/dist/ClosingHistoryView-CGV72nOD.js +447 -0
  8. package/dist/{ClosingTemplateView-Dil7tncI.js → ClosingTemplateView-Xij995aZ.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-zvfi--WO.js → DeliveryOrderPrintPreview-BoBBu5lC.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-_dZiJ1_p.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-SnXudMX4.js} +4 -4
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBSjX9GC.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ClY0PFyA.js} +2 -2
  12. package/dist/{FmMultiselectDialog-CEnIfKkK.js → FmMultiselectDialog-BcZpbDMT.js} +2 -2
  13. package/dist/{FmMultiselectDialog-D0HzUEWj.js → FmMultiselectDialog-C9g5u6Kk.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BG2lia-P.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-PD6CbF.js} +3 -3
  15. package/dist/{ImportView-XUXFdNd5.js → ImportView-CzMwJY2A.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DgutuH9i.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DgOrurbQ.js} +1 -1
  17. package/dist/{IngredientGroupView-7UTiTjiy.js → IngredientGroupView-DBbwP3E6.js} +5 -5
  18. package/dist/{IngredientsView-BkK-S9zb.js → IngredientsView-jRqkzOTc.js} +14 -14
  19. package/dist/{IntegrationView-BTXcGlp6.js → IntegrationView-B-_39POT.js} +12 -12
  20. package/dist/{InventoryBindingForm-Ch3ltUK8.js → InventoryBindingForm-D14aWQqg.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dnv5PN-O.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DtHtGqKw.js} +4 -4
  22. package/dist/{InventoryBindingSummary-BVKjiIfs.js → InventoryBindingSummary-B7Q-G4Fx.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CbK0JN-7.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CqB7pkKN.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-dv4OBeHd.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BfHSMN6k.js} +2 -2
  25. package/dist/{PublishView-g_HbS6jK.js → PublishView-C_icogKG.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BReNCrqT.js → PurchaseOrderPrintPreview-BeXqhfRn.js} +1 -1
  27. package/dist/{ReceiveRequestView-ClT4-xel.js → ReceiveRequestView-COdOrOyg.js} +18 -18
  28. package/dist/{RecipeView-CtpQ2a0y.js → RecipeView-Desvtm1a.js} +8 -8
  29. package/dist/{StockView-CEbdj6YL.js → StockView-B1NDBHQh.js} +15 -15
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bofw0-xa.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CbCD3pOQ.js} +1 -1
  31. package/dist/{SupplierView-DzmEjA3j.js → SupplierView-CB6Gz5HH.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-0A8OWe8S.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-3bruORgT.js} +2 -2
  33. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-bxporBJ4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C0Vd0X-5.js} +1 -1
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-cDwtvgIk.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bnt6-X4t.js} +14 -14
  35. package/dist/{TransferTemplateView-ySDW6lRS.js → TransferTemplateView-CLeLzBvW.js} +15 -15
  36. package/dist/{UnitView-Bv91T6ab.js → UnitView-YM302P8g.js} +6 -6
  37. package/dist/{WarehouseView-kPmRof7c.js → WarehouseView-D69BsVsb.js} +5 -5
  38. package/dist/WastageTemplateView-DfP43M8-.js +2327 -0
  39. package/dist/api/stock.d.ts +2 -0
  40. package/dist/{app-CV3h70p4.js → app-BuvV4n4w.js} +8 -7
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-BBIWBX0k.js → closing-template-D1NlAV-G.js} +1 -1
  43. package/dist/{date2-CkCGGaAb.js → date2-CkkGwYSP.js} +1 -1
  44. package/dist/{dayjs.min-Dd-afiDx.js → dayjs.min-DFvOuCCo.js} +1 -1
  45. package/dist/{decimal-CS-CxyFz.js → decimal-D1O4-kbG.js} +2 -2
  46. package/dist/{defineDeepModel-D_bZeRgl.js → defineDeepModel-s0no34Rq.js} +1 -1
  47. package/dist/{duplicate-template-DPXszoh-.js → duplicate-template-DJceVj9n.js} +1 -1
  48. package/dist/{feature-B_VTGztb.js → feature-AINxwcz_.js} +255 -257
  49. package/dist/{format-time-from-id-BmBEi-Jw.js → format-time-from-id-CRiwabgV.js} +1 -1
  50. package/dist/{format-unit-display-CDKsLgE4.js → format-unit-display-kd8gPWFg.js} +10 -10
  51. package/dist/{import-export.helper-BLfWO3Yr.js → import-export.helper-CtI9oUN_.js} +5 -5
  52. package/dist/{index-DU9SwtH5.js → index-Af5Cs7r5.js} +1 -1
  53. package/dist/{index-BRDlwURl.js → index-BVBQnKv6.js} +3 -3
  54. package/dist/{index-DAnsA0Mm.js → index-DKTL7IN3.js} +1 -1
  55. package/dist/{lodash-CYR2InSF.js → lodash-TAQPcjEK.js} +1 -1
  56. package/dist/{netsuite-CPkzurdj.js → netsuite-CcC4Y1c-.js} +3 -3
  57. package/dist/{purchase-order-template-DNQiObjY.js → purchase-order-template-B-Xuh5oQ.js} +1 -1
  58. package/dist/{rules-2RvCSF3q.js → rules-DwOMpBOV.js} +3 -3
  59. package/dist/{stock-BWBlXMgT.js → stock-DolMZJgQ.js} +3 -3
  60. package/dist/{stock-RjFuloPL.js → stock-X1ADgvOm.js} +35 -27
  61. package/dist/{supplier-8UMBjffB.js → supplier-DTzECjWy.js} +2 -2
  62. package/dist/{use-ingredient-select-dialog-DsrecsJw.js → use-ingredient-select-dialog-D7UCiLcS.js} +2 -2
  63. package/dist/{use-inventory-binding-dialog-C4bcTum8.js → use-inventory-binding-dialog-uYYsTsLi.js} +2 -2
  64. package/dist/{use-template-enabled-locations-2-_G7NryCx.js → use-template-enabled-locations-2-l2e5ocrp.js} +2 -2
  65. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +7 -0
  66. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  67. package/dist/{vue-i18n-BU7aJfqP.js → vue-i18n-anAmA_v_.js} +448 -448
  68. package/dist/{xlsx-JEiDJdww.js → xlsx-CtBehOaB.js} +1 -1
  69. package/dist/{xlsx.util-Cc50iTml.js → xlsx.util-jpTCFIaP.js} +1 -1
  70. package/package.json +4 -4
  71. package/dist/ClosingHistoryView-Byb3JIG8.js +0 -391
  72. package/dist/WastageTemplateView-CZq9b3sy.js +0 -2287
@@ -1,4 +1,4 @@
1
- var Nn = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b2bb1d93-c6a9-4f66-bfa1-f1534dbbddca", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.19.6 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b2bb1d93-c6a9-4f66-bfa1-f1534dbbddca", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.6/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8192", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "^1.27.6", npm_package_devDependencies_code_inspector_plugin: "^1.2.2", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_dependencies__feedmepos_inventory_core_dart: "workspace:^", SYSTEMD_EXEC_PID: "1778", npm_package_dependencies__feedmepos_ui_library: "1.8.3", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251208.163.1", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.3", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", npm_package_devDependencies_zod: "3.17.9", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", VERSION: "1.2.43-dev.3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13110", GITHUB_WORKFLOW: "[CD:dev] inventory-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.11/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "20220095468", npm_package_devDependencies__types_lodash: "^4.17.16", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "322a644aa08571e418b7cbc609b868bcd7f3ac87", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/development", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.6/x64/bin:/home/runner/.pub-cache/bin:/opt/hostedtoolcache/dart/3.4.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_74ab4d07-6024-4315-9a8f-d90d66a0c718", INVOCATION_ID: "35f7865e61654225ab58c49c25ca915e", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.6/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "854", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__feedmepos_inventory_core_2: "workspace:^", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", DART_HOME: "/opt/hostedtoolcache/dart/3.4.3/x64", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000033743", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "development", GITHUB_REPOSITORY: "feedmepos/inventory-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "2.14.40", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies__feedmepos_netsuite_core: "workspace:^", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "1.2.43-dev.3", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_config_access: "public", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.20", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "322a644aa08571e418b7cbc609b868bcd7f3ac87", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/development", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_b2bb1d93-c6a9-4f66-bfa1-f1534dbbddca", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b2bb1d93-c6a9-4f66-bfa1-f1534dbbddca", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PUB_CACHE: "/home/runner/.pub-cache", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_scripts_preview: "vite preview", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_dependencies__feedmepos_menu: "1.5.22", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b2bb1d93-c6a9-4f66-bfa1-f1534dbbddca", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } };
1
+ var Nn = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8b2b24af-8724-4a54-ab37-9f64938742bb", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.19.6 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8b2b24af-8724-4a54-ab37-9f64938742bb", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.6/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8192", GRADLE_HOME: "/usr/share/gradle-9.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "^1.27.6", npm_package_devDependencies_code_inspector_plugin: "^1.2.2", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_dependencies__feedmepos_inventory_core_dart: "workspace:^", SYSTEMD_EXEC_PID: "1793", npm_package_dependencies__feedmepos_ui_library: "1.8.3", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20251215.174.1", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__feedmepos_custom_attributes: "0.0.1-rc.3", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", npm_package_devDependencies_zod: "3.17.9", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", VERSION: "1.2.44-dev.1", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13137", GITHUB_WORKFLOW: "[CD:dev] inventory-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.11/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.5/x64", GITHUB_RUN_ID: "20421420194", npm_package_devDependencies__types_lodash: "^4.17.16", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4faba56126c3994d21f25132cd8454d0c202fa7f", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/development", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.6/x64/bin:/home/runner/.pub-cache/bin:/opt/hostedtoolcache/dart/3.4.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5f3122a9-0b5b-43f3-9552-7b7bdd5d3f29", INVOCATION_ID: "b2ca35027ff2464ea42a4f17402f46ea", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.6/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "858", GITHUB_TRIGGERING_ACTOR: "zdirnecamlcs96", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__feedmepos_inventory_core_2: "workspace:^", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", DART_HOME: "/opt/hostedtoolcache/dart/3.4.3/x64", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000034240", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "development", GITHUB_REPOSITORY: "feedmepos/inventory-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "2.14.40", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies__feedmepos_netsuite_core: "workspace:^", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "1.2.44-dev.1", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_config_access: "public", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.20", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "4faba56126c3994d21f25132cd8454d0c202fa7f", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/development", GITHUB_ACTOR: "zdirnecamlcs96", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8b2b24af-8724-4a54-ab37-9f64938742bb", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "12760908", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8b2b24af-8724-4a54-ab37-9f64938742bb", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PUB_CACHE: "/home/runner/.pub-cache", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_scripts_preview: "vite preview", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_dependencies__feedmepos_menu: "1.5.22", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8b2b24af-8724-4a54-ab37-9f64938742bb", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } };
2
2
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
3
3
  var fn = {};
4
4
  fn.version = "0.18.5";
@@ -1,4 +1,4 @@
1
- import { r as m, u, a as d } from "./xlsx-JEiDJdww.js";
1
+ import { r as m, u, a as d } from "./xlsx-CtBehOaB.js";
2
2
  function* x(o) {
3
3
  const [e, n] = o.split(":"), t = /\d+/, l = t.exec(e), c = t.exec(n);
4
4
  if (!l || !c)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.43-dev.3",
3
+ "version": "1.2.44-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -44,11 +44,11 @@
44
44
  "vue-router": "^4.4.0",
45
45
  "xlsx": "^0.18.5",
46
46
  "@feedmepos/inventory-core": "^1.0.1-dev.2",
47
- "@feedmepos/inventory-core-js": "^1.0.1",
47
+ "@feedmepos/inventory-core-2": "^2.0.0",
48
48
  "@feedmepos/inventory-core-dart": "^1.0.0",
49
+ "@feedmepos/inventory-core-js": "^1.0.1",
49
50
  "@feedmepos/netsuite-core": "^1.0.0",
50
- "@feedmepos/zod-inventory": "^2.0.0",
51
- "@feedmepos/inventory-core-2": "^2.0.0"
51
+ "@feedmepos/zod-inventory": "^2.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,391 +0,0 @@
1
- import { defineComponent as j, ref as f, computed as k, resolveComponent as w, openBlock as d, createElementBlock as y, createVNode as p, withModifiers as oe, withCtx as R, createElementVNode as n, toDisplayString as s, unref as a, Fragment as M, createTextVNode as H, createBlock as B, createCommentVNode as V, renderList as le, normalizeClass as ae, h as ne, onMounted as se, Teleport as ie } from "vue";
2
- import { F as ce, _ as re } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
- import { useI18n as z, useCoreStore as ue } from "@feedmepos/mf-common";
4
- import { D as G, A as S, u as de } from "./app-CV3h70p4.js";
5
- import { _ as me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBSjX9GC.js";
6
- import { useSnackbar as J, useDialog as ve } from "@feedmepos/ui-library";
7
- import { u as ye } from "./stock-RjFuloPL.js";
8
- const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col gap-16" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "flex flex-col gap-8" }, be = { class: "fm-typo-en-body-md-600" }, he = { class: "flex flex-col gap-8" }, ke = { class: "fm-typo-en-body-md-600" }, xe = { class: "flex items-center gap-8 mb-8" }, De = {
9
- key: 2,
10
- class: "text-red-500 text-sm mt-2"
11
- }, Ve = { class: "fm-typo-en-body-sm-400" }, we = {
12
- key: 1,
13
- class: "flex flex-col gap-8"
14
- }, Se = { class: "fm-typo-en-body-md-600" }, Ae = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ce = { class: "flex items-center justify-between" }, Fe = { class: "fm-typo-en-body-sm-600" }, Re = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Le = {
15
- key: 0,
16
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
17
- }, Te = {
18
- key: 1,
19
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
20
- }, Oe = {
21
- key: 2,
22
- class: "fm-typo-en-body-xs-400 text-fm-color-system-error-500"
23
- }, $e = {
24
- key: 0,
25
- class: "flex gap-8 ml-auto"
26
- }, Ee = {
27
- key: 1,
28
- class: "flex gap-8 ml-auto"
29
- }, Ie = /* @__PURE__ */ j({
30
- __name: "RecalculationDialog",
31
- emits: ["submitted"],
32
- setup(Q, { expose: b, emit: L }) {
33
- const A = L, { t: l } = z(), T = ye(), O = G(), x = J(), v = f(!1), u = f(""), i = f(""), g = f(!1), C = f([]), c = f(!1), D = f([]), r = f(!1), m = k(() => C.value.map((e) => {
34
- const o = S(e._id), _ = new Date(o);
35
- return {
36
- label: `${_.toLocaleDateString()} ${_.toLocaleTimeString()}`,
37
- value: e._id
38
- };
39
- })), h = k(() => u.value ? m.value.filter((e) => e.value > u.value) : []), F = k({
40
- get: () => {
41
- if (g.value && i.value) {
42
- const e = C.value.find((o) => S(o._id) === i.value);
43
- return (e == null ? void 0 : e._id) || i.value;
44
- }
45
- return i.value;
46
- },
47
- set: (e) => {
48
- g.value && e ? i.value = S(e) : i.value = e;
49
- }
50
- }), W = k(() => {
51
- if (u.value)
52
- try {
53
- const e = S(u.value);
54
- if (e)
55
- return e;
56
- } catch (e) {
57
- console.error("Error parsing date from closing ID:", e);
58
- }
59
- }), $ = k(() => {
60
- if (!u.value || !i.value) return "";
61
- const e = S(u.value), o = i.value;
62
- if (e && o) {
63
- const _ = new Date(e).getTime();
64
- if (new Date(o).getTime() <= _)
65
- return l("inventory.stock.recalculation.error.endDateBeforeOpening");
66
- }
67
- return "";
68
- }), I = k(() => !!u.value && !!i.value && !$.value), N = k(() => D.value.some(
69
- (e) => !e.completedAt && !e.failedReason
70
- ));
71
- async function P() {
72
- v.value = !0, await Promise.all([Y(), U()]), u.value = "", i.value = "", g.value = !1;
73
- }
74
- function X() {
75
- v.value = !1;
76
- }
77
- b({
78
- open: P,
79
- close: X
80
- });
81
- async function Y() {
82
- c.value = !0;
83
- try {
84
- const e = await O.getLastNClosings(30);
85
- C.value = e;
86
- } catch (e) {
87
- console.error("Error fetching recent closings:", e), x.open({
88
- title: l("common.error"),
89
- message: "Failed to fetch recent closings",
90
- type: "error"
91
- });
92
- } finally {
93
- c.value = !1;
94
- }
95
- }
96
- async function U() {
97
- r.value = !0;
98
- try {
99
- const e = await T.recalculation.recalculationRequests();
100
- D.value = e;
101
- } catch (e) {
102
- console.error("Error fetching recalculation requests:", e);
103
- } finally {
104
- r.value = !1;
105
- }
106
- }
107
- async function Z() {
108
- if (I.value) {
109
- c.value = !0;
110
- try {
111
- await T.recalculation.scheduleRecalculation(u.value, i.value), x.open({
112
- title: l("common.success"),
113
- message: "Stock recalculation has been scheduled successfully",
114
- type: "success"
115
- }), await U(), v.value = !1, A("submitted");
116
- } catch (e) {
117
- console.error("Error scheduling recalculation:", e), x.open({
118
- title: l("common.error"),
119
- message: "Failed to schedule stock recalculation",
120
- type: "error"
121
- });
122
- } finally {
123
- c.value = !1;
124
- }
125
- }
126
- }
127
- return (e, o) => {
128
- const _ = w("FmButton"), E = w("FmSelect"), K = w("FmRadio"), q = w("FmDatePicker"), ee = w("FmAlert"), te = w("FmDialog");
129
- return d(), y("div", null, [
130
- p(_, {
131
- "prepend-icon": "info",
132
- variant: "tertiary",
133
- onClick: oe(P, ["stop"])
134
- }),
135
- p(te, {
136
- modelValue: v.value,
137
- "onUpdate:modelValue": o[7] || (o[7] = (t) => v.value = t),
138
- "close-button": "",
139
- dismissAway: "",
140
- "max-width": "600px"
141
- }, {
142
- "dialog-header": R(() => [
143
- n("div", fe, s(a(l)("inventory.stock.recalculation.title")), 1)
144
- ]),
145
- "dialog-footer": R(() => [
146
- N.value ? (d(), y("div", Ee, [
147
- p(_, {
148
- variant: "tertiary",
149
- onClick: o[6] || (o[6] = (t) => v.value = !1),
150
- label: a(l)("common.close")
151
- }, null, 8, ["label"])
152
- ])) : (d(), y("div", $e, [
153
- p(_, {
154
- variant: "tertiary",
155
- onClick: o[5] || (o[5] = (t) => v.value = !1),
156
- disabled: c.value,
157
- label: a(l)("common.cancel")
158
- }, null, 8, ["disabled", "label"]),
159
- p(_, {
160
- variant: "primary",
161
- onClick: Z,
162
- disabled: !I.value || c.value,
163
- loading: c.value,
164
- label: a(l)("inventory.stock.recalculation.schedule")
165
- }, null, 8, ["disabled", "loading", "label"])
166
- ]))
167
- ]),
168
- default: R(() => [
169
- n("div", pe, [
170
- n("div", ge, s(a(l)("inventory.stock.recalculation.description")), 1),
171
- N.value ? V("", !0) : (d(), y(M, { key: 0 }, [
172
- n("div", _e, [
173
- n("p", be, [
174
- H(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
175
- o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
176
- ]),
177
- o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
178
- p(E, {
179
- modelValue: u.value,
180
- "onUpdate:modelValue": o[0] || (o[0] = (t) => u.value = t),
181
- items: m.value,
182
- placeholder: a(l)("inventory.stock.recalculation.selectOpening"),
183
- loading: c.value,
184
- disabled: c.value
185
- }, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])
186
- ]),
187
- n("div", he, [
188
- n("p", ke, [
189
- H(s(a(l)("inventory.stock.recalculation.untilDate")) + " ", 1),
190
- o[10] || (o[10] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
191
- ]),
192
- n("div", xe, [
193
- p(K, {
194
- modelValue: g.value,
195
- "onUpdate:modelValue": o[1] || (o[1] = (t) => g.value = t),
196
- value: !1,
197
- label: a(l)("inventory.stock.recalculation.selectByDate")
198
- }, null, 8, ["modelValue", "label"]),
199
- p(K, {
200
- modelValue: g.value,
201
- "onUpdate:modelValue": o[2] || (o[2] = (t) => g.value = t),
202
- value: !0,
203
- label: a(l)("inventory.stock.recalculation.selectByClosing")
204
- }, null, 8, ["modelValue", "label"])
205
- ]),
206
- g.value ? (d(), B(E, {
207
- key: 1,
208
- modelValue: F.value,
209
- "onUpdate:modelValue": o[4] || (o[4] = (t) => F.value = t),
210
- items: h.value,
211
- placeholder: a(l)("inventory.stock.recalculation.selectClosing"),
212
- loading: c.value,
213
- disabled: !u.value || c.value
214
- }, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])) : (d(), B(q, {
215
- key: 0,
216
- modelValue: i.value,
217
- "onUpdate:modelValue": o[3] || (o[3] = (t) => i.value = t),
218
- placeholder: a(l)("inventory.stock.recalculation.selectDate"),
219
- min: W.value,
220
- disabled: !u.value || c.value
221
- }, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
222
- $.value ? (d(), y("div", De, s($.value), 1)) : V("", !0)
223
- ]),
224
- u.value && i.value && !$.value ? (d(), B(ee, {
225
- key: 0,
226
- type: "info"
227
- }, {
228
- default: R(() => [
229
- n("div", Ve, s(a(l)("inventory.stock.recalculation.info")), 1)
230
- ]),
231
- _: 1
232
- })) : V("", !0)
233
- ], 64)),
234
- D.value.length > 0 ? (d(), y("div", we, [
235
- n("p", Se, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
236
- n("div", Ae, [
237
- (d(!0), y(M, null, le(D.value, (t) => (d(), y("div", {
238
- key: t._id,
239
- class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
240
- }, [
241
- n("div", Ce, [
242
- n("div", Fe, s(a(l)("inventory.stock.recalculation.requestedAt")) + ": " + s(new Date(t.createdAt).toLocaleString()), 1),
243
- n("div", {
244
- class: ae(["fm-typo-en-body-xs-600 px-8 py-4 rounded-4", {
245
- "bg-fm-color-system-error-100 text-fm-color-system-error-500": t.failedReason,
246
- "bg-fm-color-system-success-100 text-fm-color-system-success-500": t.completedAt,
247
- "bg-fm-color-system-info-100 text-fm-color-system-info-500": !t.failedReason && !t.completedAt
248
- }])
249
- }, s(t.failedReason ? a(l)("inventory.stock.recalculation.status.failed") : t.completedAt ? a(l)("inventory.stock.recalculation.status.completed") : a(l)("inventory.stock.recalculation.status.inProgress")), 3)
250
- ]),
251
- n("div", Re, s(a(l)("inventory.stock.recalculation.from")) + ": " + s(new Date(t.recalculateStartDate).toLocaleDateString()), 1),
252
- n("div", Be, s(a(l)("inventory.stock.recalculation.to")) + ": " + s(new Date(t.recalculateEndDate).toLocaleDateString()), 1),
253
- t.createdBy ? (d(), y("div", Le, s(a(l)("inventory.stock.recalculation.requestedBy")) + ": " + s(t.createdBy.name || t.createdBy.id), 1)) : V("", !0),
254
- t.completedAt ? (d(), y("div", Te, s(a(l)("inventory.stock.recalculation.completedAt")) + ": " + s(new Date(t.completedAt).toLocaleString()), 1)) : V("", !0),
255
- t.failedReason ? (d(), y("div", Oe, s(t.failedReason), 1)) : V("", !0)
256
- ]))), 128))
257
- ])
258
- ])) : V("", !0)
259
- ])
260
- ]),
261
- _: 1
262
- }, 8, ["modelValue"])
263
- ]);
264
- };
265
- }
266
- }), Ne = { class: "flex flex-col gap-16 p-16" }, Ge = /* @__PURE__ */ j({
267
- __name: "ClosingHistoryView",
268
- setup(Q) {
269
- var D;
270
- const { t: b } = z(), L = G(), A = de(), l = ue(), T = ve(), O = J(), x = f([]), v = f(!1), u = k(() => [
271
- {
272
- label: b("inventory.stock.recalculation.title", "Stock Recalculation"),
273
- value: "recalculation",
274
- prependIcon: "history",
275
- isAdminOnly: !0
276
- },
277
- {
278
- label: b("inventory.closing.history.initiate_opening", "Initiate Opening"),
279
- value: "initiateOpening",
280
- prependIcon: "add_box",
281
- isAdminOnly: !0
282
- }
283
- ]), i = f();
284
- function g(r) {
285
- var m;
286
- switch (r) {
287
- case "recalculation":
288
- return (m = i.value) == null ? void 0 : m.open();
289
- case "initiateOpening":
290
- T.open({
291
- title: "Initiate Opening Balance",
292
- message: "Initiate opening balance if no opening balance exists for the current location.",
293
- primaryActions: { text: "Confirm", close: !0 }
294
- }).onPrimary(async () => {
295
- try {
296
- await L.initiateClosing(), O.open({
297
- message: "Opening balance initiated successfully.",
298
- type: "success"
299
- }), await c();
300
- } catch (h) {
301
- O.open({
302
- message: h.message || "Failed to initiate opening balance. Please try again.",
303
- type: "error"
304
- });
305
- }
306
- });
307
- }
308
- }
309
- const C = [
310
- ...(D = l.sessionUser.value) != null && D.role.isAdmin ? [
311
- {
312
- accessorKey: "_id",
313
- header: () => ne(ce, {}, () => `${b("inventory.closing.history.closingId")}`),
314
- cell: (r) => r.getValue()
315
- }
316
- ] : [],
317
- {
318
- accessorKey: "_id",
319
- id: "date",
320
- header: () => b("inventory.closing.history.date"),
321
- cell: (r) => {
322
- const m = r.getValue(), h = S(m);
323
- return new Date(h).toLocaleDateString();
324
- }
325
- },
326
- {
327
- accessorKey: "_id",
328
- id: "time",
329
- header: () => b("inventory.closing.history.time"),
330
- cell: (r) => {
331
- const m = r.getValue(), h = S(m);
332
- return new Date(h).toLocaleTimeString();
333
- }
334
- },
335
- {
336
- accessorKey: "ref",
337
- header: () => b("inventory.closing.history.createdFrom"),
338
- cell: (r) => r.getValue() || "-"
339
- }
340
- ];
341
- async function c() {
342
- if (A.currentLocationDBName) {
343
- v.value = !0;
344
- try {
345
- const r = await L.getLastNClosings(30);
346
- x.value = r;
347
- } catch (r) {
348
- console.error("Error fetching closings:", r), x.value = [];
349
- } finally {
350
- v.value = !1;
351
- }
352
- }
353
- }
354
- return se(async () => {
355
- A.currentLocationDBName && await c();
356
- }), A.watchLocation(c), (r, m) => {
357
- const h = w("FmTable");
358
- return d(), B(re, {
359
- actions: u.value,
360
- title: a(b)("inventory.closing.history.title"),
361
- "onClick:action": g
362
- }, {
363
- default: R(() => [
364
- n("div", Ne, [
365
- p(me, {
366
- "change-location": "",
367
- "hide-filter-options": !0
368
- }),
369
- m[1] || (m[1] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Displaying the last 30 closing records. ", -1)),
370
- p(h, {
371
- loading: v.value,
372
- "row-data": x.value,
373
- "column-defs": C
374
- }, null, 8, ["loading", "row-data"])
375
- ]),
376
- (d(), B(ie, { to: "body" }, [
377
- p(Ie, {
378
- ref_key: "recalculationDialogRef",
379
- ref: i,
380
- onSubmitted: m[0] || (m[0] = (F) => c())
381
- }, null, 512)
382
- ]))
383
- ]),
384
- _: 1
385
- }, 8, ["actions", "title"]);
386
- };
387
- }
388
- });
389
- export {
390
- Ge as default
391
- };