@feedmepos/mf-inventory-portal 1.5.12 → 1.6.0-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.
- package/dist/{App-DBEmTaMX.js → App-HlUs-LF4.js} +4 -4
- package/dist/{ApprovalView-BvzIwH1r.js → ApprovalView-qmRODLFE.js} +7 -7
- package/dist/{BindingsDialog-DnqHoU0Y.js → BindingsDialog-DhSose8-.js} +2 -2
- package/dist/{BindingsPicker-Bjpj0zdJ.js → BindingsPicker-JnvHyWiF.js} +2 -2
- package/dist/{BindingsTable-S5Nqq4Qv.js → BindingsTable-B8BSFIJ8.js} +3 -3
- package/dist/ClosingDraftView-XGq-b6Sj.js +4318 -0
- package/dist/{ClosingHistoryView-B2ccrB2K.js → ClosingHistoryView-DAo8MIT2.js} +5 -5
- package/dist/ClosingTemplateView-DSFABll0.js +2221 -0
- package/dist/{DefaultView-DQhLe6LE.js → DefaultView-B-HflwRG.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Cup9mzpO.js → DeliveryOrderPrintPreview-Drn8FFa7.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DuZFuSbw.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CK8RpMEu.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoPyc0aE.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-P64wdK5z.js} +2 -2
- package/dist/{FmMultiselectDialog-Cwazmlw3.js → FmMultiselectDialog-CH126sIF.js} +2 -2
- package/dist/{FmMultiselectDialog-DnuUrW7h.js → FmMultiselectDialog-CRG145W_.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BMzzUsa4.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dg0alt69.js} +5 -5
- package/dist/{ImportView-CXtrdABV.js → ImportView-Ca1QPSKV.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cfp95IvX.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CoFavJB9.js} +1 -1
- package/dist/{IngredientGroupView-Bm-2yK8J.js → IngredientGroupView-BfBtqgnZ.js} +5 -5
- package/dist/{IngredientsView-Bo8w9LSr.js → IngredientsView-WzM4VxgZ.js} +15 -15
- package/dist/{IntegrationExplorerView-DUqQ64CE.js → IntegrationExplorerView-OwTTR-uV.js} +352 -352
- package/dist/{IntegrationView-CtkbKPzC.js → IntegrationView-DYAGDE0m.js} +13 -13
- package/dist/{InventoryBindingForm-DWJRCTf8.js → InventoryBindingForm-Cs-8ACDl.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DH-xUQ5m.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dm9Nna0r.js} +5 -5
- package/dist/{InventoryBindingSummary-DSwCvTnu.js → InventoryBindingSummary-BbhIvkwv.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-KDWRZCxm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ci0Wx2Gl.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Wuv2teWn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLOC3W1b.js} +1 -1
- package/dist/{PublishView-BSahQbqy.js → PublishView-CUNDP20R.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C8umjCEU.js → PurchaseOrderPrintPreview-oUPrrGvK.js} +2 -2
- package/dist/{ReceiveRequestView-Bf5dAcun.js → ReceiveRequestView-CxcE8Azw.js} +26 -26
- package/dist/{RecipeView-wU9u23Zp.js → RecipeView-CdN4CJal.js} +1104 -1117
- package/dist/{SettingsView-C5Uc6h0A.js → SettingsView-B5QKC4i7.js} +4 -4
- package/dist/{StockView-QF68mXtU.js → StockView-By0MuX62.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cgw8EDXb.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C7Elh3p_.js} +1 -1
- package/dist/{SupplierView-xBONJSsg.js → SupplierView-apsm42Mq.js} +12 -12
- package/dist/{SurchargeView-BK8aNKZl.js → SurchargeView-B-G77ghZ.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tsuedeNl.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DlhMQg5r.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BXVa7pt5.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CmYIHCe2.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CVRD5iri.js → TransferDetails.vue_vue_type_script_setup_true_lang-24nRAago.js} +20 -20
- package/dist/TransferTemplateView-BBIIu12F.js +2327 -0
- package/dist/{UnitCostHistoryView-BS0nrbkD.js → UnitCostHistoryView-CG-6grmh.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CeD0qWRC.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DtmY7fLw.js} +5 -5
- package/dist/{UnitView-DsKX7DM0.js → UnitView-CIrL8HXK.js} +7 -7
- package/dist/{WarehouseView-DRZaGu80.js → WarehouseView-Bvd72APe.js} +5 -5
- package/dist/{WastageTemplateView-CtMSWKFj.js → WastageTemplateView-DHej2xrY.js} +14 -14
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/{app-DYMYQwvV.js → app-BCF9ZpO-.js} +16381 -14374
- package/dist/app.d.ts +268 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cxsa4j_W.js → closing-template-CIuRAYD3.js} +1 -1
- package/dist/{date2-BdXL0GG5.js → date2-DJVh7XJh.js} +1 -1
- package/dist/{dayjs.min-LoBFKjU2.js → dayjs.min-HcfNNaXG.js} +1 -1
- package/dist/{decimal-BFFta-yv.js → decimal-BZ-WtkK6.js} +2 -2
- package/dist/{defineDeepModel-CCZ3fqXQ.js → defineDeepModel-D06G28ot.js} +1 -1
- package/dist/{duplicate-template-C2Qho2Ig.js → duplicate-template-y-uKyjAx.js} +1 -1
- package/dist/{feature-Dt5ZFkZR.js → feature-DW0OW8Zl.js} +2 -2
- package/dist/{format-time-from-id-LqoWbcB4.js → format-time-from-id-CrGnGtJV.js} +1 -1
- package/dist/format-unit-display-DVEnGOV-.js +1432 -0
- package/dist/{import-export.helper-DogBd6aS.js → import-export.helper-CPoS7Xw2.js} +6 -6
- package/dist/{index-D0xsiYLO.js → index-BAI_qEVG.js} +1 -1
- package/dist/{index-2DNXazDV.js → index-BF_ER6cD.js} +3 -3
- package/dist/{index-IMHyRNdu.js → index-BSLoykmu.js} +1 -1
- package/dist/{inventory-core-dart.default-BkcD7c_a.js → inventory-core-dart.default-B8GRBHwH.js} +1 -1
- package/dist/{lz-string-CgecKowu.js → lz-string-DllDsJgA.js} +1 -1
- package/dist/{netsuite-9qEVrdMv.js → netsuite-BdXvv_AI.js} +2 -2
- package/dist/{number-DSMFbPf0.js → number-fWsZU3Us.js} +3 -3
- package/dist/{predefined-templates-OZoiOUoA.js → predefined-templates-C-9FNSkn.js} +1 -1
- package/dist/{purchase-order-template-CUee1L_x.js → purchase-order-template-DDMRkK1M.js} +1 -1
- package/dist/{recalculationUtils-CPcCUHIm.js → recalculationUtils-17E1-6g0.js} +1 -1
- package/dist/{rules-CMNaUkUU.js → rules-clVHbjpg.js} +2 -2
- package/dist/{stock-BOaUT0Y3.js → stock-ZvR0DmAv.js} +1 -1
- package/dist/{supplier-BAbQZL7x.js → supplier-BnYLExem.js} +2 -2
- package/dist/{surcharge-C5tQ0vs0.js → surcharge-CYjKFXbG.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-CSmRb5Ds.js → uom-rules-C_eQhUkx.js} +1 -1
- package/dist/{use-ingredient-select-dialog-B9XYlxjA.js → use-ingredient-select-dialog-ClGmxwFU.js} +16 -16
- package/dist/{use-inventory-binding-dialog-BzIb4yxm.js → use-inventory-binding-dialog-CpKdIwMo.js} +2 -2
- package/dist/use-template-enabled-locations-deP7LXci.js +132 -0
- package/dist/{use-transfer-locations-Di5ozOgU.js → use-transfer-locations-D3nYdH_3.js} +2 -2
- package/dist/{useHrmPermission-N8GPw9P_.js → useHrmPermission-CMTlJ6AP.js} +1 -1
- package/dist/{useNavigationMenu-BLnGMLsm.js → useNavigationMenu-BxATo1IC.js} +2 -2
- package/dist/{useSseClient-BQtJfryY.js → useSseClient-CGJVJAXa.js} +3 -3
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +800 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +21 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupCard.vue.d.ts +20 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +823 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupGrid.vue.d.ts +20 -0
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1400 -133
- package/dist/views/closing-draft/helpers/closing-draft-summary.helper.d.ts +11 -0
- package/dist/views/closing-draft/helpers/closing-group-detail.helper.d.ts +68 -0
- package/dist/views/closing-draft/helpers/closing-group-status.helper.d.ts +6 -0
- package/dist/views/closing-draft/helpers/closing-groups.helper.d.ts +28 -0
- package/dist/views/closing-draft/helpers/merge-closing-draft-items.helper.d.ts +9 -0
- package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateGroupsEditor.vue.d.ts +31 -0
- package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateItem.vue.d.ts +164 -7
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +24 -88
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +108 -0
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +108 -0
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +3 -3
- package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +3 -3
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorDialog.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep1.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep2.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep3.vue.d.ts +2 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +3225 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +4 -1
- package/dist/views/transfer-template/helpers/template-item-bulk-editor-export.d.ts +9 -0
- package/dist/{vue-i18n-DR8I1LQH.js → vue-i18n-DCgzd-Rs.js} +498 -498
- package/dist/{xlsx-D5-Cqx-l.js → xlsx-Cy0iFCJQ.js} +398 -398
- package/dist/{xlsx.util-DEdsfN6W.js → xlsx.util-D8wvUM2Y.js} +3 -3
- package/package.json +5 -5
- package/dist/ClosingDraftView-Y074sSoz.js +0 -3343
- package/dist/ClosingTemplateView-BcvKBWVJ.js +0 -2077
- package/dist/TransferTemplateView-Cm4evaK3.js +0 -1564
- package/dist/format-unit-display-CWqmpVa_.js +0 -1268
- package/dist/use-template-enabled-locations-V5iE0ywc.js +0 -146
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ColumnDef } from '@feedmepos/ui-library';
|
|
2
2
|
import { type RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
3
|
+
import { type ClosingGroupCard } from '../helpers/closing-groups.helper';
|
|
3
4
|
type DraftWithDisplay = FdoClosingDraft & RevisionIdMeta & {
|
|
4
5
|
closingIdDisplay: string | null;
|
|
5
6
|
};
|
|
@@ -53,6 +54,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
53
54
|
_rev: string;
|
|
54
55
|
remark?: string | null | undefined;
|
|
55
56
|
effectiveAt?: string | null | undefined;
|
|
57
|
+
parentId?: string | null | undefined;
|
|
56
58
|
adjustmentSnapshot?: {
|
|
57
59
|
skuId: string;
|
|
58
60
|
adjustmentsByType: {
|
|
@@ -441,6 +443,1325 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
441
443
|
name: string;
|
|
442
444
|
id: string;
|
|
443
445
|
} | null | undefined;
|
|
446
|
+
groups?: {
|
|
447
|
+
name: string;
|
|
448
|
+
id: string;
|
|
449
|
+
items: {
|
|
450
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
451
|
+
position?: number | null | undefined;
|
|
452
|
+
skuId: string;
|
|
453
|
+
}[];
|
|
454
|
+
}[] | null | undefined;
|
|
455
|
+
_id: string;
|
|
456
|
+
name: string;
|
|
457
|
+
}[];
|
|
458
|
+
closingIdDisplay: string | null;
|
|
459
|
+
}[], DraftWithDisplay[] | {
|
|
460
|
+
stockSnapshot?: {
|
|
461
|
+
closing?: {
|
|
462
|
+
costBalances?: {
|
|
463
|
+
adjustmentId?: string | null | undefined;
|
|
464
|
+
amount: {
|
|
465
|
+
amount: number;
|
|
466
|
+
precision: number;
|
|
467
|
+
};
|
|
468
|
+
cost: {
|
|
469
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
470
|
+
amount: number;
|
|
471
|
+
precision: number;
|
|
472
|
+
};
|
|
473
|
+
}[] | null | undefined;
|
|
474
|
+
id: string;
|
|
475
|
+
createdAt: string;
|
|
476
|
+
balance: {
|
|
477
|
+
amount: number;
|
|
478
|
+
precision: number;
|
|
479
|
+
};
|
|
480
|
+
} | null | undefined;
|
|
481
|
+
weightedAverage?: {
|
|
482
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
483
|
+
amount: number;
|
|
484
|
+
precision: number;
|
|
485
|
+
} | null | undefined;
|
|
486
|
+
costs?: {
|
|
487
|
+
adjustmentId?: string | null | undefined;
|
|
488
|
+
amount: {
|
|
489
|
+
amount: number;
|
|
490
|
+
precision: number;
|
|
491
|
+
};
|
|
492
|
+
cost: {
|
|
493
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
494
|
+
amount: number;
|
|
495
|
+
precision: number;
|
|
496
|
+
};
|
|
497
|
+
}[] | null | undefined;
|
|
498
|
+
id: string;
|
|
499
|
+
balance: {
|
|
500
|
+
amount: number;
|
|
501
|
+
precision: number;
|
|
502
|
+
};
|
|
503
|
+
}[] | null | undefined;
|
|
504
|
+
_rev: string;
|
|
505
|
+
remark?: string | null | undefined;
|
|
506
|
+
effectiveAt?: string | null | undefined;
|
|
507
|
+
parentId?: string | null | undefined;
|
|
508
|
+
adjustmentSnapshot?: {
|
|
509
|
+
skuId: string;
|
|
510
|
+
adjustmentsByType: {
|
|
511
|
+
RECEIVE?: {
|
|
512
|
+
amount: number;
|
|
513
|
+
precision: number;
|
|
514
|
+
} | undefined;
|
|
515
|
+
REQUEST?: {
|
|
516
|
+
amount: number;
|
|
517
|
+
precision: number;
|
|
518
|
+
} | undefined;
|
|
519
|
+
SALES?: {
|
|
520
|
+
amount: number;
|
|
521
|
+
precision: number;
|
|
522
|
+
} | undefined;
|
|
523
|
+
RETURN?: {
|
|
524
|
+
amount: number;
|
|
525
|
+
precision: number;
|
|
526
|
+
} | undefined;
|
|
527
|
+
LOSE?: {
|
|
528
|
+
amount: number;
|
|
529
|
+
precision: number;
|
|
530
|
+
} | undefined;
|
|
531
|
+
THEFT?: {
|
|
532
|
+
amount: number;
|
|
533
|
+
precision: number;
|
|
534
|
+
} | undefined;
|
|
535
|
+
DAMAGE?: {
|
|
536
|
+
amount: number;
|
|
537
|
+
precision: number;
|
|
538
|
+
} | undefined;
|
|
539
|
+
EXTRA?: {
|
|
540
|
+
amount: number;
|
|
541
|
+
precision: number;
|
|
542
|
+
} | undefined;
|
|
543
|
+
PURCHASE?: {
|
|
544
|
+
amount: number;
|
|
545
|
+
precision: number;
|
|
546
|
+
} | undefined;
|
|
547
|
+
CONVERT?: {
|
|
548
|
+
amount: number;
|
|
549
|
+
precision: number;
|
|
550
|
+
} | undefined;
|
|
551
|
+
CLOSING?: {
|
|
552
|
+
amount: number;
|
|
553
|
+
precision: number;
|
|
554
|
+
} | undefined;
|
|
555
|
+
USAGE?: {
|
|
556
|
+
amount: number;
|
|
557
|
+
precision: number;
|
|
558
|
+
} | undefined;
|
|
559
|
+
WASTAGE?: {
|
|
560
|
+
amount: number;
|
|
561
|
+
precision: number;
|
|
562
|
+
} | undefined;
|
|
563
|
+
};
|
|
564
|
+
}[] | null | undefined;
|
|
565
|
+
opening?: {
|
|
566
|
+
skuId: string;
|
|
567
|
+
balance: {
|
|
568
|
+
amount: number;
|
|
569
|
+
precision: number;
|
|
570
|
+
};
|
|
571
|
+
}[] | null | undefined;
|
|
572
|
+
approvedAt?: string | null | undefined;
|
|
573
|
+
approvedBy?: {
|
|
574
|
+
name: string;
|
|
575
|
+
id: string;
|
|
576
|
+
} | null | undefined;
|
|
577
|
+
approveRemark?: string | null | undefined;
|
|
578
|
+
rejectionHistory?: {
|
|
579
|
+
rejectedAt: string;
|
|
580
|
+
rejectedBy: {
|
|
581
|
+
name: string;
|
|
582
|
+
id: string;
|
|
583
|
+
};
|
|
584
|
+
rejectRemark: string;
|
|
585
|
+
}[] | null | undefined;
|
|
586
|
+
closingAdjustmentId?: string | null | undefined;
|
|
587
|
+
closingId?: string | null | undefined;
|
|
588
|
+
negativeStockItems?: {
|
|
589
|
+
remark?: string | null | undefined;
|
|
590
|
+
sku: {
|
|
591
|
+
trackingMeasurement?: string | null | undefined;
|
|
592
|
+
isInactive?: boolean | null | undefined;
|
|
593
|
+
convert?: {
|
|
594
|
+
measurement?: string | null | undefined;
|
|
595
|
+
inventoryBindings?: {
|
|
596
|
+
measurement?: {
|
|
597
|
+
name: string;
|
|
598
|
+
id: string;
|
|
599
|
+
abbrev: string;
|
|
600
|
+
conversion: {
|
|
601
|
+
amount: number;
|
|
602
|
+
precision: number;
|
|
603
|
+
};
|
|
604
|
+
} | null | undefined;
|
|
605
|
+
rules?: Record<string, any> | null | undefined;
|
|
606
|
+
alternatives?: {
|
|
607
|
+
default?: boolean | null | undefined;
|
|
608
|
+
trackingMeasurement?: string | null | undefined;
|
|
609
|
+
priority?: number | null | undefined;
|
|
610
|
+
_id: string;
|
|
611
|
+
}[] | null | undefined;
|
|
612
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
613
|
+
amount: {
|
|
614
|
+
amount: number;
|
|
615
|
+
precision: number;
|
|
616
|
+
};
|
|
617
|
+
id: string;
|
|
618
|
+
}[] | null | undefined;
|
|
619
|
+
} | null | undefined;
|
|
620
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
621
|
+
defaultCost?: {
|
|
622
|
+
measurement?: {
|
|
623
|
+
name: string;
|
|
624
|
+
id: string;
|
|
625
|
+
abbrev: string;
|
|
626
|
+
conversion: {
|
|
627
|
+
amount: number;
|
|
628
|
+
precision: number;
|
|
629
|
+
};
|
|
630
|
+
} | null | undefined;
|
|
631
|
+
costPerUnit: {
|
|
632
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
633
|
+
amount: number;
|
|
634
|
+
precision: number;
|
|
635
|
+
};
|
|
636
|
+
} | null | undefined;
|
|
637
|
+
operationalGroup?: string | null | undefined;
|
|
638
|
+
thresholds?: {
|
|
639
|
+
low: number;
|
|
640
|
+
mid: number;
|
|
641
|
+
} | null | undefined;
|
|
642
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
643
|
+
unit: {
|
|
644
|
+
_id: string;
|
|
645
|
+
name: string;
|
|
646
|
+
abbrev: string;
|
|
647
|
+
precision: number;
|
|
648
|
+
measurements: {
|
|
649
|
+
name: string;
|
|
650
|
+
id: string;
|
|
651
|
+
abbrev: string;
|
|
652
|
+
conversion: {
|
|
653
|
+
amount: number;
|
|
654
|
+
precision: number;
|
|
655
|
+
};
|
|
656
|
+
}[];
|
|
657
|
+
};
|
|
658
|
+
code: string;
|
|
659
|
+
_id: string;
|
|
660
|
+
name: string;
|
|
661
|
+
};
|
|
662
|
+
baseAmount: {
|
|
663
|
+
amount: number;
|
|
664
|
+
precision: number;
|
|
665
|
+
};
|
|
666
|
+
measurementsAmounts: {
|
|
667
|
+
measurement: {
|
|
668
|
+
name: string;
|
|
669
|
+
id: string;
|
|
670
|
+
abbrev: string;
|
|
671
|
+
conversion: {
|
|
672
|
+
amount: number;
|
|
673
|
+
precision: number;
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
amount: {
|
|
677
|
+
amount: number;
|
|
678
|
+
precision: number;
|
|
679
|
+
};
|
|
680
|
+
}[];
|
|
681
|
+
}[] | null | undefined;
|
|
682
|
+
activityLogs?: {
|
|
683
|
+
remark?: string | null | undefined;
|
|
684
|
+
action: "approveDraft" | "rejectDraft" | "markAsFailed";
|
|
685
|
+
performedAt: string;
|
|
686
|
+
performedBy: {
|
|
687
|
+
name: string;
|
|
688
|
+
id: string;
|
|
689
|
+
};
|
|
690
|
+
}[] | null | undefined;
|
|
691
|
+
status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING";
|
|
692
|
+
_id: string;
|
|
693
|
+
updatedAt: string;
|
|
694
|
+
createdAt: string;
|
|
695
|
+
items: {
|
|
696
|
+
remark?: string | null | undefined;
|
|
697
|
+
sku: {
|
|
698
|
+
trackingMeasurement?: string | null | undefined;
|
|
699
|
+
isInactive?: boolean | null | undefined;
|
|
700
|
+
convert?: {
|
|
701
|
+
measurement?: string | null | undefined;
|
|
702
|
+
inventoryBindings?: {
|
|
703
|
+
measurement?: {
|
|
704
|
+
name: string;
|
|
705
|
+
id: string;
|
|
706
|
+
abbrev: string;
|
|
707
|
+
conversion: {
|
|
708
|
+
amount: number;
|
|
709
|
+
precision: number;
|
|
710
|
+
};
|
|
711
|
+
} | null | undefined;
|
|
712
|
+
rules?: Record<string, any> | null | undefined;
|
|
713
|
+
alternatives?: {
|
|
714
|
+
default?: boolean | null | undefined;
|
|
715
|
+
trackingMeasurement?: string | null | undefined;
|
|
716
|
+
priority?: number | null | undefined;
|
|
717
|
+
_id: string;
|
|
718
|
+
}[] | null | undefined;
|
|
719
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
720
|
+
amount: {
|
|
721
|
+
amount: number;
|
|
722
|
+
precision: number;
|
|
723
|
+
};
|
|
724
|
+
id: string;
|
|
725
|
+
}[] | null | undefined;
|
|
726
|
+
} | null | undefined;
|
|
727
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
728
|
+
defaultCost?: {
|
|
729
|
+
measurement?: {
|
|
730
|
+
name: string;
|
|
731
|
+
id: string;
|
|
732
|
+
abbrev: string;
|
|
733
|
+
conversion: {
|
|
734
|
+
amount: number;
|
|
735
|
+
precision: number;
|
|
736
|
+
};
|
|
737
|
+
} | null | undefined;
|
|
738
|
+
costPerUnit: {
|
|
739
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
740
|
+
amount: number;
|
|
741
|
+
precision: number;
|
|
742
|
+
};
|
|
743
|
+
} | null | undefined;
|
|
744
|
+
operationalGroup?: string | null | undefined;
|
|
745
|
+
thresholds?: {
|
|
746
|
+
low: number;
|
|
747
|
+
mid: number;
|
|
748
|
+
} | null | undefined;
|
|
749
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
750
|
+
unit: {
|
|
751
|
+
_id: string;
|
|
752
|
+
name: string;
|
|
753
|
+
abbrev: string;
|
|
754
|
+
precision: number;
|
|
755
|
+
measurements: {
|
|
756
|
+
name: string;
|
|
757
|
+
id: string;
|
|
758
|
+
abbrev: string;
|
|
759
|
+
conversion: {
|
|
760
|
+
amount: number;
|
|
761
|
+
precision: number;
|
|
762
|
+
};
|
|
763
|
+
}[];
|
|
764
|
+
};
|
|
765
|
+
code: string;
|
|
766
|
+
_id: string;
|
|
767
|
+
name: string;
|
|
768
|
+
};
|
|
769
|
+
baseAmount: {
|
|
770
|
+
amount: number;
|
|
771
|
+
precision: number;
|
|
772
|
+
};
|
|
773
|
+
measurementsAmounts: {
|
|
774
|
+
measurement: {
|
|
775
|
+
name: string;
|
|
776
|
+
id: string;
|
|
777
|
+
abbrev: string;
|
|
778
|
+
conversion: {
|
|
779
|
+
amount: number;
|
|
780
|
+
precision: number;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
amount: {
|
|
784
|
+
amount: number;
|
|
785
|
+
precision: number;
|
|
786
|
+
};
|
|
787
|
+
}[];
|
|
788
|
+
}[];
|
|
789
|
+
updatedBy: {
|
|
790
|
+
name: string;
|
|
791
|
+
id: string;
|
|
792
|
+
};
|
|
793
|
+
createdBy: {
|
|
794
|
+
name: string;
|
|
795
|
+
id: string;
|
|
796
|
+
};
|
|
797
|
+
usingTemplates: {
|
|
798
|
+
_rev?: string | null | undefined;
|
|
799
|
+
updatedAt?: string | null | undefined;
|
|
800
|
+
ref?: string | null | undefined;
|
|
801
|
+
locations?: {
|
|
802
|
+
inventory?: {
|
|
803
|
+
_id: string;
|
|
804
|
+
updatedAt: string;
|
|
805
|
+
} | null | undefined;
|
|
806
|
+
type: "restaurant" | "warehouse";
|
|
807
|
+
name: string;
|
|
808
|
+
acceptRequest: boolean;
|
|
809
|
+
dbName: string;
|
|
810
|
+
doc: {
|
|
811
|
+
_id: string;
|
|
812
|
+
businessId: string;
|
|
813
|
+
profile: {
|
|
814
|
+
code?: string | null | undefined;
|
|
815
|
+
url?: string | null | undefined;
|
|
816
|
+
description?: string | null | undefined;
|
|
817
|
+
_id?: string | null | undefined;
|
|
818
|
+
legalName?: string | null | undefined;
|
|
819
|
+
sstRegNo?: string | null | undefined;
|
|
820
|
+
discovery?: boolean | null | undefined;
|
|
821
|
+
coverPhoto?: string | null | undefined;
|
|
822
|
+
thumbnailPhoto?: string | null | undefined;
|
|
823
|
+
photos?: string[] | null | undefined;
|
|
824
|
+
operatingHours?: {
|
|
825
|
+
0: {
|
|
826
|
+
hours: {
|
|
827
|
+
end: string;
|
|
828
|
+
start: string;
|
|
829
|
+
}[];
|
|
830
|
+
enable: boolean;
|
|
831
|
+
};
|
|
832
|
+
2: {
|
|
833
|
+
hours: {
|
|
834
|
+
end: string;
|
|
835
|
+
start: string;
|
|
836
|
+
}[];
|
|
837
|
+
enable: boolean;
|
|
838
|
+
};
|
|
839
|
+
1: {
|
|
840
|
+
hours: {
|
|
841
|
+
end: string;
|
|
842
|
+
start: string;
|
|
843
|
+
}[];
|
|
844
|
+
enable: boolean;
|
|
845
|
+
};
|
|
846
|
+
3: {
|
|
847
|
+
hours: {
|
|
848
|
+
end: string;
|
|
849
|
+
start: string;
|
|
850
|
+
}[];
|
|
851
|
+
enable: boolean;
|
|
852
|
+
};
|
|
853
|
+
4: {
|
|
854
|
+
hours: {
|
|
855
|
+
end: string;
|
|
856
|
+
start: string;
|
|
857
|
+
}[];
|
|
858
|
+
enable: boolean;
|
|
859
|
+
};
|
|
860
|
+
5: {
|
|
861
|
+
hours: {
|
|
862
|
+
end: string;
|
|
863
|
+
start: string;
|
|
864
|
+
}[];
|
|
865
|
+
enable: boolean;
|
|
866
|
+
};
|
|
867
|
+
6: {
|
|
868
|
+
hours: {
|
|
869
|
+
end: string;
|
|
870
|
+
start: string;
|
|
871
|
+
}[];
|
|
872
|
+
enable: boolean;
|
|
873
|
+
};
|
|
874
|
+
} | null | undefined;
|
|
875
|
+
tags?: string[] | null | undefined;
|
|
876
|
+
name: string;
|
|
877
|
+
address: {
|
|
878
|
+
coordinates?: number[] | null | undefined;
|
|
879
|
+
line2?: string | null | undefined;
|
|
880
|
+
state: string;
|
|
881
|
+
country: string;
|
|
882
|
+
line1: string;
|
|
883
|
+
city: string;
|
|
884
|
+
postcode: string;
|
|
885
|
+
};
|
|
886
|
+
email: string;
|
|
887
|
+
phoneNo: string;
|
|
888
|
+
regNo: string;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
}[] | null | undefined;
|
|
892
|
+
updatedBy?: {
|
|
893
|
+
name: string;
|
|
894
|
+
id: string;
|
|
895
|
+
} | null | undefined;
|
|
896
|
+
groups?: {
|
|
897
|
+
name: string;
|
|
898
|
+
id: string;
|
|
899
|
+
items: {
|
|
900
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
901
|
+
position?: number | null | undefined;
|
|
902
|
+
skuId: string;
|
|
903
|
+
}[];
|
|
904
|
+
}[] | null | undefined;
|
|
905
|
+
_id: string;
|
|
906
|
+
name: string;
|
|
907
|
+
}[];
|
|
908
|
+
closingIdDisplay: string | null;
|
|
909
|
+
}[]>;
|
|
910
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
911
|
+
tableKey: import("vue").Ref<number, number>;
|
|
912
|
+
groupsByDraftId: import("vue").Ref<Record<string, ClosingGroupCard[]>, Record<string, ClosingGroupCard[]>>;
|
|
913
|
+
getRawGroup: (draftId: string, groupId: string) => {
|
|
914
|
+
stockSnapshot?: {
|
|
915
|
+
closing?: {
|
|
916
|
+
costBalances?: {
|
|
917
|
+
adjustmentId?: string | null | undefined;
|
|
918
|
+
amount: {
|
|
919
|
+
amount: number;
|
|
920
|
+
precision: number;
|
|
921
|
+
};
|
|
922
|
+
cost: {
|
|
923
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
924
|
+
amount: number;
|
|
925
|
+
precision: number;
|
|
926
|
+
};
|
|
927
|
+
}[] | null | undefined;
|
|
928
|
+
id: string;
|
|
929
|
+
createdAt: string;
|
|
930
|
+
balance: {
|
|
931
|
+
amount: number;
|
|
932
|
+
precision: number;
|
|
933
|
+
};
|
|
934
|
+
} | null | undefined;
|
|
935
|
+
weightedAverage?: {
|
|
936
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
937
|
+
amount: number;
|
|
938
|
+
precision: number;
|
|
939
|
+
} | null | undefined;
|
|
940
|
+
costs?: {
|
|
941
|
+
adjustmentId?: string | null | undefined;
|
|
942
|
+
amount: {
|
|
943
|
+
amount: number;
|
|
944
|
+
precision: number;
|
|
945
|
+
};
|
|
946
|
+
cost: {
|
|
947
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
948
|
+
amount: number;
|
|
949
|
+
precision: number;
|
|
950
|
+
};
|
|
951
|
+
}[] | null | undefined;
|
|
952
|
+
id: string;
|
|
953
|
+
balance: {
|
|
954
|
+
amount: number;
|
|
955
|
+
precision: number;
|
|
956
|
+
};
|
|
957
|
+
}[] | null | undefined;
|
|
958
|
+
_rev?: string | null | undefined;
|
|
959
|
+
remark?: string | null | undefined;
|
|
960
|
+
effectiveAt?: string | null | undefined;
|
|
961
|
+
adjustmentSnapshot?: {
|
|
962
|
+
skuId: string;
|
|
963
|
+
adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
|
|
964
|
+
amount: number;
|
|
965
|
+
precision: number;
|
|
966
|
+
}>>;
|
|
967
|
+
}[] | null | undefined;
|
|
968
|
+
opening?: {
|
|
969
|
+
skuId: string;
|
|
970
|
+
balance: {
|
|
971
|
+
amount: number;
|
|
972
|
+
precision: number;
|
|
973
|
+
};
|
|
974
|
+
}[] | null | undefined;
|
|
975
|
+
approvedAt?: string | null | undefined;
|
|
976
|
+
approvedBy?: {
|
|
977
|
+
name: string;
|
|
978
|
+
id: string;
|
|
979
|
+
} | null | undefined;
|
|
980
|
+
approveRemark?: string | null | undefined;
|
|
981
|
+
rejectionHistory?: {
|
|
982
|
+
rejectedAt: string;
|
|
983
|
+
rejectedBy: {
|
|
984
|
+
name: string;
|
|
985
|
+
id: string;
|
|
986
|
+
};
|
|
987
|
+
rejectRemark: string;
|
|
988
|
+
}[] | null | undefined;
|
|
989
|
+
closingAdjustmentId?: string | null | undefined;
|
|
990
|
+
closingId?: string | null | undefined;
|
|
991
|
+
negativeStockItems?: {
|
|
992
|
+
remark?: string | null | undefined;
|
|
993
|
+
sku: {
|
|
994
|
+
trackingMeasurement?: string | null | undefined;
|
|
995
|
+
isInactive?: boolean | null | undefined;
|
|
996
|
+
convert?: {
|
|
997
|
+
measurement?: string | null | undefined;
|
|
998
|
+
inventoryBindings?: {
|
|
999
|
+
measurement?: {
|
|
1000
|
+
name: string;
|
|
1001
|
+
id: string;
|
|
1002
|
+
abbrev: string;
|
|
1003
|
+
conversion: {
|
|
1004
|
+
amount: number;
|
|
1005
|
+
precision: number;
|
|
1006
|
+
};
|
|
1007
|
+
} | null | undefined;
|
|
1008
|
+
rules?: Record<string, any> | null | undefined;
|
|
1009
|
+
alternatives?: {
|
|
1010
|
+
default?: boolean | null | undefined;
|
|
1011
|
+
trackingMeasurement?: string | null | undefined;
|
|
1012
|
+
priority?: number | null | undefined;
|
|
1013
|
+
_id: string;
|
|
1014
|
+
}[] | null | undefined;
|
|
1015
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1016
|
+
amount: {
|
|
1017
|
+
amount: number;
|
|
1018
|
+
precision: number;
|
|
1019
|
+
};
|
|
1020
|
+
id: string;
|
|
1021
|
+
}[] | null | undefined;
|
|
1022
|
+
} | null | undefined;
|
|
1023
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1024
|
+
defaultCost?: {
|
|
1025
|
+
measurement?: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
id: string;
|
|
1028
|
+
abbrev: string;
|
|
1029
|
+
conversion: {
|
|
1030
|
+
amount: number;
|
|
1031
|
+
precision: number;
|
|
1032
|
+
};
|
|
1033
|
+
} | null | undefined;
|
|
1034
|
+
costPerUnit: {
|
|
1035
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1036
|
+
amount: number;
|
|
1037
|
+
precision: number;
|
|
1038
|
+
};
|
|
1039
|
+
} | null | undefined;
|
|
1040
|
+
operationalGroup?: string | null | undefined;
|
|
1041
|
+
thresholds?: {
|
|
1042
|
+
low: number;
|
|
1043
|
+
mid: number;
|
|
1044
|
+
} | null | undefined;
|
|
1045
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1046
|
+
unit: {
|
|
1047
|
+
_id: string;
|
|
1048
|
+
name: string;
|
|
1049
|
+
abbrev: string;
|
|
1050
|
+
precision: number;
|
|
1051
|
+
measurements: {
|
|
1052
|
+
name: string;
|
|
1053
|
+
id: string;
|
|
1054
|
+
abbrev: string;
|
|
1055
|
+
conversion: {
|
|
1056
|
+
amount: number;
|
|
1057
|
+
precision: number;
|
|
1058
|
+
};
|
|
1059
|
+
}[];
|
|
1060
|
+
};
|
|
1061
|
+
code: string;
|
|
1062
|
+
_id: string;
|
|
1063
|
+
name: string;
|
|
1064
|
+
};
|
|
1065
|
+
baseAmount: {
|
|
1066
|
+
amount: number;
|
|
1067
|
+
precision: number;
|
|
1068
|
+
};
|
|
1069
|
+
measurementsAmounts: {
|
|
1070
|
+
measurement: {
|
|
1071
|
+
name: string;
|
|
1072
|
+
id: string;
|
|
1073
|
+
abbrev: string;
|
|
1074
|
+
conversion: {
|
|
1075
|
+
amount: number;
|
|
1076
|
+
precision: number;
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
amount: {
|
|
1080
|
+
amount: number;
|
|
1081
|
+
precision: number;
|
|
1082
|
+
};
|
|
1083
|
+
}[];
|
|
1084
|
+
}[] | null | undefined;
|
|
1085
|
+
activityLogs?: {
|
|
1086
|
+
remark?: string | null | undefined;
|
|
1087
|
+
action: "approveDraft" | "rejectDraft" | "markAsFailed";
|
|
1088
|
+
performedAt: string;
|
|
1089
|
+
performedBy: {
|
|
1090
|
+
name: string;
|
|
1091
|
+
id: string;
|
|
1092
|
+
};
|
|
1093
|
+
}[] | null | undefined;
|
|
1094
|
+
status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING";
|
|
1095
|
+
_id: string;
|
|
1096
|
+
updatedAt: string;
|
|
1097
|
+
createdAt: string;
|
|
1098
|
+
items: {
|
|
1099
|
+
remark?: string | null | undefined;
|
|
1100
|
+
sku: {
|
|
1101
|
+
trackingMeasurement?: string | null | undefined;
|
|
1102
|
+
isInactive?: boolean | null | undefined;
|
|
1103
|
+
convert?: {
|
|
1104
|
+
measurement?: string | null | undefined;
|
|
1105
|
+
inventoryBindings?: {
|
|
1106
|
+
measurement?: {
|
|
1107
|
+
name: string;
|
|
1108
|
+
id: string;
|
|
1109
|
+
abbrev: string;
|
|
1110
|
+
conversion: {
|
|
1111
|
+
amount: number;
|
|
1112
|
+
precision: number;
|
|
1113
|
+
};
|
|
1114
|
+
} | null | undefined;
|
|
1115
|
+
rules?: Record<string, any> | null | undefined;
|
|
1116
|
+
alternatives?: {
|
|
1117
|
+
default?: boolean | null | undefined;
|
|
1118
|
+
trackingMeasurement?: string | null | undefined;
|
|
1119
|
+
priority?: number | null | undefined;
|
|
1120
|
+
_id: string;
|
|
1121
|
+
}[] | null | undefined;
|
|
1122
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1123
|
+
amount: {
|
|
1124
|
+
amount: number;
|
|
1125
|
+
precision: number;
|
|
1126
|
+
};
|
|
1127
|
+
id: string;
|
|
1128
|
+
}[] | null | undefined;
|
|
1129
|
+
} | null | undefined;
|
|
1130
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1131
|
+
defaultCost?: {
|
|
1132
|
+
measurement?: {
|
|
1133
|
+
name: string;
|
|
1134
|
+
id: string;
|
|
1135
|
+
abbrev: string;
|
|
1136
|
+
conversion: {
|
|
1137
|
+
amount: number;
|
|
1138
|
+
precision: number;
|
|
1139
|
+
};
|
|
1140
|
+
} | null | undefined;
|
|
1141
|
+
costPerUnit: {
|
|
1142
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1143
|
+
amount: number;
|
|
1144
|
+
precision: number;
|
|
1145
|
+
};
|
|
1146
|
+
} | null | undefined;
|
|
1147
|
+
operationalGroup?: string | null | undefined;
|
|
1148
|
+
thresholds?: {
|
|
1149
|
+
low: number;
|
|
1150
|
+
mid: number;
|
|
1151
|
+
} | null | undefined;
|
|
1152
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1153
|
+
unit: {
|
|
1154
|
+
_id: string;
|
|
1155
|
+
name: string;
|
|
1156
|
+
abbrev: string;
|
|
1157
|
+
precision: number;
|
|
1158
|
+
measurements: {
|
|
1159
|
+
name: string;
|
|
1160
|
+
id: string;
|
|
1161
|
+
abbrev: string;
|
|
1162
|
+
conversion: {
|
|
1163
|
+
amount: number;
|
|
1164
|
+
precision: number;
|
|
1165
|
+
};
|
|
1166
|
+
}[];
|
|
1167
|
+
};
|
|
1168
|
+
code: string;
|
|
1169
|
+
_id: string;
|
|
1170
|
+
name: string;
|
|
1171
|
+
};
|
|
1172
|
+
baseAmount: {
|
|
1173
|
+
amount: number;
|
|
1174
|
+
precision: number;
|
|
1175
|
+
};
|
|
1176
|
+
measurementsAmounts: {
|
|
1177
|
+
measurement: {
|
|
1178
|
+
name: string;
|
|
1179
|
+
id: string;
|
|
1180
|
+
abbrev: string;
|
|
1181
|
+
conversion: {
|
|
1182
|
+
amount: number;
|
|
1183
|
+
precision: number;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
amount: {
|
|
1187
|
+
amount: number;
|
|
1188
|
+
precision: number;
|
|
1189
|
+
};
|
|
1190
|
+
}[];
|
|
1191
|
+
}[];
|
|
1192
|
+
updatedBy: {
|
|
1193
|
+
name: string;
|
|
1194
|
+
id: string;
|
|
1195
|
+
};
|
|
1196
|
+
createdBy: {
|
|
1197
|
+
name: string;
|
|
1198
|
+
id: string;
|
|
1199
|
+
};
|
|
1200
|
+
parentId: string;
|
|
1201
|
+
usingTemplates: {
|
|
1202
|
+
_rev?: string | null | undefined;
|
|
1203
|
+
updatedAt?: string | null | undefined;
|
|
1204
|
+
ref?: string | null | undefined;
|
|
1205
|
+
locations?: {
|
|
1206
|
+
inventory?: {
|
|
1207
|
+
_id: string;
|
|
1208
|
+
updatedAt: string;
|
|
1209
|
+
} | null | undefined;
|
|
1210
|
+
type: "restaurant" | "warehouse";
|
|
1211
|
+
name: string;
|
|
1212
|
+
acceptRequest: boolean;
|
|
1213
|
+
dbName: string;
|
|
1214
|
+
doc: {
|
|
1215
|
+
_id: string;
|
|
1216
|
+
businessId: string;
|
|
1217
|
+
profile: {
|
|
1218
|
+
code?: string | null | undefined;
|
|
1219
|
+
url?: string | null | undefined;
|
|
1220
|
+
description?: string | null | undefined;
|
|
1221
|
+
_id?: string | null | undefined;
|
|
1222
|
+
legalName?: string | null | undefined;
|
|
1223
|
+
sstRegNo?: string | null | undefined;
|
|
1224
|
+
discovery?: boolean | null | undefined;
|
|
1225
|
+
coverPhoto?: string | null | undefined;
|
|
1226
|
+
thumbnailPhoto?: string | null | undefined;
|
|
1227
|
+
photos?: string[] | null | undefined;
|
|
1228
|
+
operatingHours?: {
|
|
1229
|
+
0: {
|
|
1230
|
+
hours: {
|
|
1231
|
+
end: string;
|
|
1232
|
+
start: string;
|
|
1233
|
+
}[];
|
|
1234
|
+
enable: boolean;
|
|
1235
|
+
};
|
|
1236
|
+
2: {
|
|
1237
|
+
hours: {
|
|
1238
|
+
end: string;
|
|
1239
|
+
start: string;
|
|
1240
|
+
}[];
|
|
1241
|
+
enable: boolean;
|
|
1242
|
+
};
|
|
1243
|
+
1: {
|
|
1244
|
+
hours: {
|
|
1245
|
+
end: string;
|
|
1246
|
+
start: string;
|
|
1247
|
+
}[];
|
|
1248
|
+
enable: boolean;
|
|
1249
|
+
};
|
|
1250
|
+
3: {
|
|
1251
|
+
hours: {
|
|
1252
|
+
end: string;
|
|
1253
|
+
start: string;
|
|
1254
|
+
}[];
|
|
1255
|
+
enable: boolean;
|
|
1256
|
+
};
|
|
1257
|
+
4: {
|
|
1258
|
+
hours: {
|
|
1259
|
+
end: string;
|
|
1260
|
+
start: string;
|
|
1261
|
+
}[];
|
|
1262
|
+
enable: boolean;
|
|
1263
|
+
};
|
|
1264
|
+
5: {
|
|
1265
|
+
hours: {
|
|
1266
|
+
end: string;
|
|
1267
|
+
start: string;
|
|
1268
|
+
}[];
|
|
1269
|
+
enable: boolean;
|
|
1270
|
+
};
|
|
1271
|
+
6: {
|
|
1272
|
+
hours: {
|
|
1273
|
+
end: string;
|
|
1274
|
+
start: string;
|
|
1275
|
+
}[];
|
|
1276
|
+
enable: boolean;
|
|
1277
|
+
};
|
|
1278
|
+
} | null | undefined;
|
|
1279
|
+
tags?: string[] | null | undefined;
|
|
1280
|
+
name: string;
|
|
1281
|
+
address: {
|
|
1282
|
+
coordinates?: number[] | null | undefined;
|
|
1283
|
+
line2?: string | null | undefined;
|
|
1284
|
+
state: string;
|
|
1285
|
+
country: string;
|
|
1286
|
+
line1: string;
|
|
1287
|
+
city: string;
|
|
1288
|
+
postcode: string;
|
|
1289
|
+
};
|
|
1290
|
+
email: string;
|
|
1291
|
+
phoneNo: string;
|
|
1292
|
+
regNo: string;
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
}[] | null | undefined;
|
|
1296
|
+
updatedBy?: {
|
|
1297
|
+
name: string;
|
|
1298
|
+
id: string;
|
|
1299
|
+
} | null | undefined;
|
|
1300
|
+
groups?: {
|
|
1301
|
+
name: string;
|
|
1302
|
+
id: string;
|
|
1303
|
+
items: {
|
|
1304
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
1305
|
+
position?: number | null | undefined;
|
|
1306
|
+
skuId: string;
|
|
1307
|
+
}[];
|
|
1308
|
+
}[] | null | undefined;
|
|
1309
|
+
_id: string;
|
|
1310
|
+
name: string;
|
|
1311
|
+
}[];
|
|
1312
|
+
} | undefined;
|
|
1313
|
+
refreshDraftGroups: (draftId: string) => Promise<void>;
|
|
1314
|
+
fetchDrafts: () => Promise<void>;
|
|
1315
|
+
loadDraft: (draftId: string) => Promise<void>;
|
|
1316
|
+
updateDraftRef: (draft: FdoClosingDraft) => void;
|
|
1317
|
+
}, "loading" | "columnDefs" | "drafts" | "tableKey" | "groupsByDraftId">>, Pick<{
|
|
1318
|
+
columnDefs: ColumnDef<DraftWithDisplay>[];
|
|
1319
|
+
drafts: import("vue").Ref<{
|
|
1320
|
+
stockSnapshot?: {
|
|
1321
|
+
closing?: {
|
|
1322
|
+
costBalances?: {
|
|
1323
|
+
adjustmentId?: string | null | undefined;
|
|
1324
|
+
amount: {
|
|
1325
|
+
amount: number;
|
|
1326
|
+
precision: number;
|
|
1327
|
+
};
|
|
1328
|
+
cost: {
|
|
1329
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1330
|
+
amount: number;
|
|
1331
|
+
precision: number;
|
|
1332
|
+
};
|
|
1333
|
+
}[] | null | undefined;
|
|
1334
|
+
id: string;
|
|
1335
|
+
createdAt: string;
|
|
1336
|
+
balance: {
|
|
1337
|
+
amount: number;
|
|
1338
|
+
precision: number;
|
|
1339
|
+
};
|
|
1340
|
+
} | null | undefined;
|
|
1341
|
+
weightedAverage?: {
|
|
1342
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1343
|
+
amount: number;
|
|
1344
|
+
precision: number;
|
|
1345
|
+
} | null | undefined;
|
|
1346
|
+
costs?: {
|
|
1347
|
+
adjustmentId?: string | null | undefined;
|
|
1348
|
+
amount: {
|
|
1349
|
+
amount: number;
|
|
1350
|
+
precision: number;
|
|
1351
|
+
};
|
|
1352
|
+
cost: {
|
|
1353
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1354
|
+
amount: number;
|
|
1355
|
+
precision: number;
|
|
1356
|
+
};
|
|
1357
|
+
}[] | null | undefined;
|
|
1358
|
+
id: string;
|
|
1359
|
+
balance: {
|
|
1360
|
+
amount: number;
|
|
1361
|
+
precision: number;
|
|
1362
|
+
};
|
|
1363
|
+
}[] | null | undefined;
|
|
1364
|
+
_rev: string;
|
|
1365
|
+
remark?: string | null | undefined;
|
|
1366
|
+
effectiveAt?: string | null | undefined;
|
|
1367
|
+
parentId?: string | null | undefined;
|
|
1368
|
+
adjustmentSnapshot?: {
|
|
1369
|
+
skuId: string;
|
|
1370
|
+
adjustmentsByType: {
|
|
1371
|
+
RECEIVE?: {
|
|
1372
|
+
amount: number;
|
|
1373
|
+
precision: number;
|
|
1374
|
+
} | undefined;
|
|
1375
|
+
REQUEST?: {
|
|
1376
|
+
amount: number;
|
|
1377
|
+
precision: number;
|
|
1378
|
+
} | undefined;
|
|
1379
|
+
SALES?: {
|
|
1380
|
+
amount: number;
|
|
1381
|
+
precision: number;
|
|
1382
|
+
} | undefined;
|
|
1383
|
+
RETURN?: {
|
|
1384
|
+
amount: number;
|
|
1385
|
+
precision: number;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
LOSE?: {
|
|
1388
|
+
amount: number;
|
|
1389
|
+
precision: number;
|
|
1390
|
+
} | undefined;
|
|
1391
|
+
THEFT?: {
|
|
1392
|
+
amount: number;
|
|
1393
|
+
precision: number;
|
|
1394
|
+
} | undefined;
|
|
1395
|
+
DAMAGE?: {
|
|
1396
|
+
amount: number;
|
|
1397
|
+
precision: number;
|
|
1398
|
+
} | undefined;
|
|
1399
|
+
EXTRA?: {
|
|
1400
|
+
amount: number;
|
|
1401
|
+
precision: number;
|
|
1402
|
+
} | undefined;
|
|
1403
|
+
PURCHASE?: {
|
|
1404
|
+
amount: number;
|
|
1405
|
+
precision: number;
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
CONVERT?: {
|
|
1408
|
+
amount: number;
|
|
1409
|
+
precision: number;
|
|
1410
|
+
} | undefined;
|
|
1411
|
+
CLOSING?: {
|
|
1412
|
+
amount: number;
|
|
1413
|
+
precision: number;
|
|
1414
|
+
} | undefined;
|
|
1415
|
+
USAGE?: {
|
|
1416
|
+
amount: number;
|
|
1417
|
+
precision: number;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
WASTAGE?: {
|
|
1420
|
+
amount: number;
|
|
1421
|
+
precision: number;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
};
|
|
1424
|
+
}[] | null | undefined;
|
|
1425
|
+
opening?: {
|
|
1426
|
+
skuId: string;
|
|
1427
|
+
balance: {
|
|
1428
|
+
amount: number;
|
|
1429
|
+
precision: number;
|
|
1430
|
+
};
|
|
1431
|
+
}[] | null | undefined;
|
|
1432
|
+
approvedAt?: string | null | undefined;
|
|
1433
|
+
approvedBy?: {
|
|
1434
|
+
name: string;
|
|
1435
|
+
id: string;
|
|
1436
|
+
} | null | undefined;
|
|
1437
|
+
approveRemark?: string | null | undefined;
|
|
1438
|
+
rejectionHistory?: {
|
|
1439
|
+
rejectedAt: string;
|
|
1440
|
+
rejectedBy: {
|
|
1441
|
+
name: string;
|
|
1442
|
+
id: string;
|
|
1443
|
+
};
|
|
1444
|
+
rejectRemark: string;
|
|
1445
|
+
}[] | null | undefined;
|
|
1446
|
+
closingAdjustmentId?: string | null | undefined;
|
|
1447
|
+
closingId?: string | null | undefined;
|
|
1448
|
+
negativeStockItems?: {
|
|
1449
|
+
remark?: string | null | undefined;
|
|
1450
|
+
sku: {
|
|
1451
|
+
trackingMeasurement?: string | null | undefined;
|
|
1452
|
+
isInactive?: boolean | null | undefined;
|
|
1453
|
+
convert?: {
|
|
1454
|
+
measurement?: string | null | undefined;
|
|
1455
|
+
inventoryBindings?: {
|
|
1456
|
+
measurement?: {
|
|
1457
|
+
name: string;
|
|
1458
|
+
id: string;
|
|
1459
|
+
abbrev: string;
|
|
1460
|
+
conversion: {
|
|
1461
|
+
amount: number;
|
|
1462
|
+
precision: number;
|
|
1463
|
+
};
|
|
1464
|
+
} | null | undefined;
|
|
1465
|
+
rules?: Record<string, any> | null | undefined;
|
|
1466
|
+
alternatives?: {
|
|
1467
|
+
default?: boolean | null | undefined;
|
|
1468
|
+
trackingMeasurement?: string | null | undefined;
|
|
1469
|
+
priority?: number | null | undefined;
|
|
1470
|
+
_id: string;
|
|
1471
|
+
}[] | null | undefined;
|
|
1472
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1473
|
+
amount: {
|
|
1474
|
+
amount: number;
|
|
1475
|
+
precision: number;
|
|
1476
|
+
};
|
|
1477
|
+
id: string;
|
|
1478
|
+
}[] | null | undefined;
|
|
1479
|
+
} | null | undefined;
|
|
1480
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1481
|
+
defaultCost?: {
|
|
1482
|
+
measurement?: {
|
|
1483
|
+
name: string;
|
|
1484
|
+
id: string;
|
|
1485
|
+
abbrev: string;
|
|
1486
|
+
conversion: {
|
|
1487
|
+
amount: number;
|
|
1488
|
+
precision: number;
|
|
1489
|
+
};
|
|
1490
|
+
} | null | undefined;
|
|
1491
|
+
costPerUnit: {
|
|
1492
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1493
|
+
amount: number;
|
|
1494
|
+
precision: number;
|
|
1495
|
+
};
|
|
1496
|
+
} | null | undefined;
|
|
1497
|
+
operationalGroup?: string | null | undefined;
|
|
1498
|
+
thresholds?: {
|
|
1499
|
+
low: number;
|
|
1500
|
+
mid: number;
|
|
1501
|
+
} | null | undefined;
|
|
1502
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1503
|
+
unit: {
|
|
1504
|
+
_id: string;
|
|
1505
|
+
name: string;
|
|
1506
|
+
abbrev: string;
|
|
1507
|
+
precision: number;
|
|
1508
|
+
measurements: {
|
|
1509
|
+
name: string;
|
|
1510
|
+
id: string;
|
|
1511
|
+
abbrev: string;
|
|
1512
|
+
conversion: {
|
|
1513
|
+
amount: number;
|
|
1514
|
+
precision: number;
|
|
1515
|
+
};
|
|
1516
|
+
}[];
|
|
1517
|
+
};
|
|
1518
|
+
code: string;
|
|
1519
|
+
_id: string;
|
|
1520
|
+
name: string;
|
|
1521
|
+
};
|
|
1522
|
+
baseAmount: {
|
|
1523
|
+
amount: number;
|
|
1524
|
+
precision: number;
|
|
1525
|
+
};
|
|
1526
|
+
measurementsAmounts: {
|
|
1527
|
+
measurement: {
|
|
1528
|
+
name: string;
|
|
1529
|
+
id: string;
|
|
1530
|
+
abbrev: string;
|
|
1531
|
+
conversion: {
|
|
1532
|
+
amount: number;
|
|
1533
|
+
precision: number;
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
amount: {
|
|
1537
|
+
amount: number;
|
|
1538
|
+
precision: number;
|
|
1539
|
+
};
|
|
1540
|
+
}[];
|
|
1541
|
+
}[] | null | undefined;
|
|
1542
|
+
activityLogs?: {
|
|
1543
|
+
remark?: string | null | undefined;
|
|
1544
|
+
action: "approveDraft" | "rejectDraft" | "markAsFailed";
|
|
1545
|
+
performedAt: string;
|
|
1546
|
+
performedBy: {
|
|
1547
|
+
name: string;
|
|
1548
|
+
id: string;
|
|
1549
|
+
};
|
|
1550
|
+
}[] | null | undefined;
|
|
1551
|
+
status: "DRAFT" | "COMPLETED" | "FAILED" | "PROCESSING";
|
|
1552
|
+
_id: string;
|
|
1553
|
+
updatedAt: string;
|
|
1554
|
+
createdAt: string;
|
|
1555
|
+
items: {
|
|
1556
|
+
remark?: string | null | undefined;
|
|
1557
|
+
sku: {
|
|
1558
|
+
trackingMeasurement?: string | null | undefined;
|
|
1559
|
+
isInactive?: boolean | null | undefined;
|
|
1560
|
+
convert?: {
|
|
1561
|
+
measurement?: string | null | undefined;
|
|
1562
|
+
inventoryBindings?: {
|
|
1563
|
+
measurement?: {
|
|
1564
|
+
name: string;
|
|
1565
|
+
id: string;
|
|
1566
|
+
abbrev: string;
|
|
1567
|
+
conversion: {
|
|
1568
|
+
amount: number;
|
|
1569
|
+
precision: number;
|
|
1570
|
+
};
|
|
1571
|
+
} | null | undefined;
|
|
1572
|
+
rules?: Record<string, any> | null | undefined;
|
|
1573
|
+
alternatives?: {
|
|
1574
|
+
default?: boolean | null | undefined;
|
|
1575
|
+
trackingMeasurement?: string | null | undefined;
|
|
1576
|
+
priority?: number | null | undefined;
|
|
1577
|
+
_id: string;
|
|
1578
|
+
}[] | null | undefined;
|
|
1579
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1580
|
+
amount: {
|
|
1581
|
+
amount: number;
|
|
1582
|
+
precision: number;
|
|
1583
|
+
};
|
|
1584
|
+
id: string;
|
|
1585
|
+
}[] | null | undefined;
|
|
1586
|
+
} | null | undefined;
|
|
1587
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1588
|
+
defaultCost?: {
|
|
1589
|
+
measurement?: {
|
|
1590
|
+
name: string;
|
|
1591
|
+
id: string;
|
|
1592
|
+
abbrev: string;
|
|
1593
|
+
conversion: {
|
|
1594
|
+
amount: number;
|
|
1595
|
+
precision: number;
|
|
1596
|
+
};
|
|
1597
|
+
} | null | undefined;
|
|
1598
|
+
costPerUnit: {
|
|
1599
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1600
|
+
amount: number;
|
|
1601
|
+
precision: number;
|
|
1602
|
+
};
|
|
1603
|
+
} | null | undefined;
|
|
1604
|
+
operationalGroup?: string | null | undefined;
|
|
1605
|
+
thresholds?: {
|
|
1606
|
+
low: number;
|
|
1607
|
+
mid: number;
|
|
1608
|
+
} | null | undefined;
|
|
1609
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1610
|
+
unit: {
|
|
1611
|
+
_id: string;
|
|
1612
|
+
name: string;
|
|
1613
|
+
abbrev: string;
|
|
1614
|
+
precision: number;
|
|
1615
|
+
measurements: {
|
|
1616
|
+
name: string;
|
|
1617
|
+
id: string;
|
|
1618
|
+
abbrev: string;
|
|
1619
|
+
conversion: {
|
|
1620
|
+
amount: number;
|
|
1621
|
+
precision: number;
|
|
1622
|
+
};
|
|
1623
|
+
}[];
|
|
1624
|
+
};
|
|
1625
|
+
code: string;
|
|
1626
|
+
_id: string;
|
|
1627
|
+
name: string;
|
|
1628
|
+
};
|
|
1629
|
+
baseAmount: {
|
|
1630
|
+
amount: number;
|
|
1631
|
+
precision: number;
|
|
1632
|
+
};
|
|
1633
|
+
measurementsAmounts: {
|
|
1634
|
+
measurement: {
|
|
1635
|
+
name: string;
|
|
1636
|
+
id: string;
|
|
1637
|
+
abbrev: string;
|
|
1638
|
+
conversion: {
|
|
1639
|
+
amount: number;
|
|
1640
|
+
precision: number;
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
amount: {
|
|
1644
|
+
amount: number;
|
|
1645
|
+
precision: number;
|
|
1646
|
+
};
|
|
1647
|
+
}[];
|
|
1648
|
+
}[];
|
|
1649
|
+
updatedBy: {
|
|
1650
|
+
name: string;
|
|
1651
|
+
id: string;
|
|
1652
|
+
};
|
|
1653
|
+
createdBy: {
|
|
1654
|
+
name: string;
|
|
1655
|
+
id: string;
|
|
1656
|
+
};
|
|
1657
|
+
usingTemplates: {
|
|
1658
|
+
_rev?: string | null | undefined;
|
|
1659
|
+
updatedAt?: string | null | undefined;
|
|
1660
|
+
ref?: string | null | undefined;
|
|
1661
|
+
locations?: {
|
|
1662
|
+
inventory?: {
|
|
1663
|
+
_id: string;
|
|
1664
|
+
updatedAt: string;
|
|
1665
|
+
} | null | undefined;
|
|
1666
|
+
type: "restaurant" | "warehouse";
|
|
1667
|
+
name: string;
|
|
1668
|
+
acceptRequest: boolean;
|
|
1669
|
+
dbName: string;
|
|
1670
|
+
doc: {
|
|
1671
|
+
_id: string;
|
|
1672
|
+
businessId: string;
|
|
1673
|
+
profile: {
|
|
1674
|
+
code?: string | null | undefined;
|
|
1675
|
+
url?: string | null | undefined;
|
|
1676
|
+
description?: string | null | undefined;
|
|
1677
|
+
_id?: string | null | undefined;
|
|
1678
|
+
legalName?: string | null | undefined;
|
|
1679
|
+
sstRegNo?: string | null | undefined;
|
|
1680
|
+
discovery?: boolean | null | undefined;
|
|
1681
|
+
coverPhoto?: string | null | undefined;
|
|
1682
|
+
thumbnailPhoto?: string | null | undefined;
|
|
1683
|
+
photos?: string[] | null | undefined;
|
|
1684
|
+
operatingHours?: {
|
|
1685
|
+
0: {
|
|
1686
|
+
hours: {
|
|
1687
|
+
end: string;
|
|
1688
|
+
start: string;
|
|
1689
|
+
}[];
|
|
1690
|
+
enable: boolean;
|
|
1691
|
+
};
|
|
1692
|
+
2: {
|
|
1693
|
+
hours: {
|
|
1694
|
+
end: string;
|
|
1695
|
+
start: string;
|
|
1696
|
+
}[];
|
|
1697
|
+
enable: boolean;
|
|
1698
|
+
};
|
|
1699
|
+
1: {
|
|
1700
|
+
hours: {
|
|
1701
|
+
end: string;
|
|
1702
|
+
start: string;
|
|
1703
|
+
}[];
|
|
1704
|
+
enable: boolean;
|
|
1705
|
+
};
|
|
1706
|
+
3: {
|
|
1707
|
+
hours: {
|
|
1708
|
+
end: string;
|
|
1709
|
+
start: string;
|
|
1710
|
+
}[];
|
|
1711
|
+
enable: boolean;
|
|
1712
|
+
};
|
|
1713
|
+
4: {
|
|
1714
|
+
hours: {
|
|
1715
|
+
end: string;
|
|
1716
|
+
start: string;
|
|
1717
|
+
}[];
|
|
1718
|
+
enable: boolean;
|
|
1719
|
+
};
|
|
1720
|
+
5: {
|
|
1721
|
+
hours: {
|
|
1722
|
+
end: string;
|
|
1723
|
+
start: string;
|
|
1724
|
+
}[];
|
|
1725
|
+
enable: boolean;
|
|
1726
|
+
};
|
|
1727
|
+
6: {
|
|
1728
|
+
hours: {
|
|
1729
|
+
end: string;
|
|
1730
|
+
start: string;
|
|
1731
|
+
}[];
|
|
1732
|
+
enable: boolean;
|
|
1733
|
+
};
|
|
1734
|
+
} | null | undefined;
|
|
1735
|
+
tags?: string[] | null | undefined;
|
|
1736
|
+
name: string;
|
|
1737
|
+
address: {
|
|
1738
|
+
coordinates?: number[] | null | undefined;
|
|
1739
|
+
line2?: string | null | undefined;
|
|
1740
|
+
state: string;
|
|
1741
|
+
country: string;
|
|
1742
|
+
line1: string;
|
|
1743
|
+
city: string;
|
|
1744
|
+
postcode: string;
|
|
1745
|
+
};
|
|
1746
|
+
email: string;
|
|
1747
|
+
phoneNo: string;
|
|
1748
|
+
regNo: string;
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
}[] | null | undefined;
|
|
1752
|
+
updatedBy?: {
|
|
1753
|
+
name: string;
|
|
1754
|
+
id: string;
|
|
1755
|
+
} | null | undefined;
|
|
1756
|
+
groups?: {
|
|
1757
|
+
name: string;
|
|
1758
|
+
id: string;
|
|
1759
|
+
items: {
|
|
1760
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
1761
|
+
position?: number | null | undefined;
|
|
1762
|
+
skuId: string;
|
|
1763
|
+
}[];
|
|
1764
|
+
}[] | null | undefined;
|
|
444
1765
|
_id: string;
|
|
445
1766
|
name: string;
|
|
446
1767
|
}[];
|
|
@@ -493,6 +1814,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
493
1814
|
_rev: string;
|
|
494
1815
|
remark?: string | null | undefined;
|
|
495
1816
|
effectiveAt?: string | null | undefined;
|
|
1817
|
+
parentId?: string | null | undefined;
|
|
496
1818
|
adjustmentSnapshot?: {
|
|
497
1819
|
skuId: string;
|
|
498
1820
|
adjustmentsByType: {
|
|
@@ -881,6 +2203,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
881
2203
|
name: string;
|
|
882
2204
|
id: string;
|
|
883
2205
|
} | null | undefined;
|
|
2206
|
+
groups?: {
|
|
2207
|
+
name: string;
|
|
2208
|
+
id: string;
|
|
2209
|
+
items: {
|
|
2210
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
2211
|
+
position?: number | null | undefined;
|
|
2212
|
+
skuId: string;
|
|
2213
|
+
}[];
|
|
2214
|
+
}[] | null | undefined;
|
|
884
2215
|
_id: string;
|
|
885
2216
|
name: string;
|
|
886
2217
|
}[];
|
|
@@ -888,12 +2219,8 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
888
2219
|
}[]>;
|
|
889
2220
|
loading: import("vue").Ref<boolean, boolean>;
|
|
890
2221
|
tableKey: import("vue").Ref<number, number>;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
updateDraftRef: (draft: FdoClosingDraft) => void;
|
|
894
|
-
}, "loading" | "columnDefs" | "drafts" | "tableKey">>, Pick<{
|
|
895
|
-
columnDefs: ColumnDef<DraftWithDisplay>[];
|
|
896
|
-
drafts: import("vue").Ref<{
|
|
2222
|
+
groupsByDraftId: import("vue").Ref<Record<string, ClosingGroupCard[]>, Record<string, ClosingGroupCard[]>>;
|
|
2223
|
+
getRawGroup: (draftId: string, groupId: string) => {
|
|
897
2224
|
stockSnapshot?: {
|
|
898
2225
|
closing?: {
|
|
899
2226
|
costBalances?: {
|
|
@@ -938,65 +2265,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
938
2265
|
precision: number;
|
|
939
2266
|
};
|
|
940
2267
|
}[] | null | undefined;
|
|
941
|
-
_rev
|
|
2268
|
+
_rev?: string | null | undefined;
|
|
942
2269
|
remark?: string | null | undefined;
|
|
943
2270
|
effectiveAt?: string | null | undefined;
|
|
944
2271
|
adjustmentSnapshot?: {
|
|
945
2272
|
skuId: string;
|
|
946
|
-
adjustmentsByType: {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
} | undefined;
|
|
951
|
-
REQUEST?: {
|
|
952
|
-
amount: number;
|
|
953
|
-
precision: number;
|
|
954
|
-
} | undefined;
|
|
955
|
-
SALES?: {
|
|
956
|
-
amount: number;
|
|
957
|
-
precision: number;
|
|
958
|
-
} | undefined;
|
|
959
|
-
RETURN?: {
|
|
960
|
-
amount: number;
|
|
961
|
-
precision: number;
|
|
962
|
-
} | undefined;
|
|
963
|
-
LOSE?: {
|
|
964
|
-
amount: number;
|
|
965
|
-
precision: number;
|
|
966
|
-
} | undefined;
|
|
967
|
-
THEFT?: {
|
|
968
|
-
amount: number;
|
|
969
|
-
precision: number;
|
|
970
|
-
} | undefined;
|
|
971
|
-
DAMAGE?: {
|
|
972
|
-
amount: number;
|
|
973
|
-
precision: number;
|
|
974
|
-
} | undefined;
|
|
975
|
-
EXTRA?: {
|
|
976
|
-
amount: number;
|
|
977
|
-
precision: number;
|
|
978
|
-
} | undefined;
|
|
979
|
-
PURCHASE?: {
|
|
980
|
-
amount: number;
|
|
981
|
-
precision: number;
|
|
982
|
-
} | undefined;
|
|
983
|
-
CONVERT?: {
|
|
984
|
-
amount: number;
|
|
985
|
-
precision: number;
|
|
986
|
-
} | undefined;
|
|
987
|
-
CLOSING?: {
|
|
988
|
-
amount: number;
|
|
989
|
-
precision: number;
|
|
990
|
-
} | undefined;
|
|
991
|
-
USAGE?: {
|
|
992
|
-
amount: number;
|
|
993
|
-
precision: number;
|
|
994
|
-
} | undefined;
|
|
995
|
-
WASTAGE?: {
|
|
996
|
-
amount: number;
|
|
997
|
-
precision: number;
|
|
998
|
-
} | undefined;
|
|
999
|
-
};
|
|
2273
|
+
adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
|
|
2274
|
+
amount: number;
|
|
2275
|
+
precision: number;
|
|
2276
|
+
}>>;
|
|
1000
2277
|
}[] | null | undefined;
|
|
1001
2278
|
opening?: {
|
|
1002
2279
|
skuId: string;
|
|
@@ -1230,6 +2507,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1230
2507
|
name: string;
|
|
1231
2508
|
id: string;
|
|
1232
2509
|
};
|
|
2510
|
+
parentId: string;
|
|
1233
2511
|
usingTemplates: {
|
|
1234
2512
|
_rev?: string | null | undefined;
|
|
1235
2513
|
updatedAt?: string | null | undefined;
|
|
@@ -1329,11 +2607,26 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1329
2607
|
name: string;
|
|
1330
2608
|
id: string;
|
|
1331
2609
|
} | null | undefined;
|
|
2610
|
+
groups?: {
|
|
2611
|
+
name: string;
|
|
2612
|
+
id: string;
|
|
2613
|
+
items: {
|
|
2614
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
2615
|
+
position?: number | null | undefined;
|
|
2616
|
+
skuId: string;
|
|
2617
|
+
}[];
|
|
2618
|
+
}[] | null | undefined;
|
|
1332
2619
|
_id: string;
|
|
1333
2620
|
name: string;
|
|
1334
2621
|
}[];
|
|
1335
|
-
|
|
1336
|
-
|
|
2622
|
+
} | undefined;
|
|
2623
|
+
refreshDraftGroups: (draftId: string) => Promise<void>;
|
|
2624
|
+
fetchDrafts: () => Promise<void>;
|
|
2625
|
+
loadDraft: (draftId: string) => Promise<void>;
|
|
2626
|
+
updateDraftRef: (draft: FdoClosingDraft) => void;
|
|
2627
|
+
}, never>, Pick<{
|
|
2628
|
+
columnDefs: ColumnDef<DraftWithDisplay>[];
|
|
2629
|
+
drafts: import("vue").Ref<{
|
|
1337
2630
|
stockSnapshot?: {
|
|
1338
2631
|
closing?: {
|
|
1339
2632
|
costBalances?: {
|
|
@@ -1381,6 +2674,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1381
2674
|
_rev: string;
|
|
1382
2675
|
remark?: string | null | undefined;
|
|
1383
2676
|
effectiveAt?: string | null | undefined;
|
|
2677
|
+
parentId?: string | null | undefined;
|
|
1384
2678
|
adjustmentSnapshot?: {
|
|
1385
2679
|
skuId: string;
|
|
1386
2680
|
adjustmentsByType: {
|
|
@@ -1769,19 +3063,20 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1769
3063
|
name: string;
|
|
1770
3064
|
id: string;
|
|
1771
3065
|
} | null | undefined;
|
|
3066
|
+
groups?: {
|
|
3067
|
+
name: string;
|
|
3068
|
+
id: string;
|
|
3069
|
+
items: {
|
|
3070
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
3071
|
+
position?: number | null | undefined;
|
|
3072
|
+
skuId: string;
|
|
3073
|
+
}[];
|
|
3074
|
+
}[] | null | undefined;
|
|
1772
3075
|
_id: string;
|
|
1773
3076
|
name: string;
|
|
1774
3077
|
}[];
|
|
1775
3078
|
closingIdDisplay: string | null;
|
|
1776
|
-
}[]
|
|
1777
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
1778
|
-
tableKey: import("vue").Ref<number, number>;
|
|
1779
|
-
fetchDrafts: () => Promise<void>;
|
|
1780
|
-
loadDraft: (draftId: string) => Promise<void>;
|
|
1781
|
-
updateDraftRef: (draft: FdoClosingDraft) => void;
|
|
1782
|
-
}, never>, Pick<{
|
|
1783
|
-
columnDefs: ColumnDef<DraftWithDisplay>[];
|
|
1784
|
-
drafts: import("vue").Ref<{
|
|
3079
|
+
}[], DraftWithDisplay[] | {
|
|
1785
3080
|
stockSnapshot?: {
|
|
1786
3081
|
closing?: {
|
|
1787
3082
|
costBalances?: {
|
|
@@ -1829,6 +3124,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1829
3124
|
_rev: string;
|
|
1830
3125
|
remark?: string | null | undefined;
|
|
1831
3126
|
effectiveAt?: string | null | undefined;
|
|
3127
|
+
parentId?: string | null | undefined;
|
|
1832
3128
|
adjustmentSnapshot?: {
|
|
1833
3129
|
skuId: string;
|
|
1834
3130
|
adjustmentsByType: {
|
|
@@ -2217,11 +3513,24 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2217
3513
|
name: string;
|
|
2218
3514
|
id: string;
|
|
2219
3515
|
} | null | undefined;
|
|
3516
|
+
groups?: {
|
|
3517
|
+
name: string;
|
|
3518
|
+
id: string;
|
|
3519
|
+
items: {
|
|
3520
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
3521
|
+
position?: number | null | undefined;
|
|
3522
|
+
skuId: string;
|
|
3523
|
+
}[];
|
|
3524
|
+
}[] | null | undefined;
|
|
2220
3525
|
_id: string;
|
|
2221
3526
|
name: string;
|
|
2222
3527
|
}[];
|
|
2223
3528
|
closingIdDisplay: string | null;
|
|
2224
|
-
}[]
|
|
3529
|
+
}[]>;
|
|
3530
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
3531
|
+
tableKey: import("vue").Ref<number, number>;
|
|
3532
|
+
groupsByDraftId: import("vue").Ref<Record<string, ClosingGroupCard[]>, Record<string, ClosingGroupCard[]>>;
|
|
3533
|
+
getRawGroup: (draftId: string, groupId: string) => {
|
|
2225
3534
|
stockSnapshot?: {
|
|
2226
3535
|
closing?: {
|
|
2227
3536
|
costBalances?: {
|
|
@@ -2266,65 +3575,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2266
3575
|
precision: number;
|
|
2267
3576
|
};
|
|
2268
3577
|
}[] | null | undefined;
|
|
2269
|
-
_rev
|
|
3578
|
+
_rev?: string | null | undefined;
|
|
2270
3579
|
remark?: string | null | undefined;
|
|
2271
3580
|
effectiveAt?: string | null | undefined;
|
|
2272
3581
|
adjustmentSnapshot?: {
|
|
2273
3582
|
skuId: string;
|
|
2274
|
-
adjustmentsByType: {
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
} | undefined;
|
|
2279
|
-
REQUEST?: {
|
|
2280
|
-
amount: number;
|
|
2281
|
-
precision: number;
|
|
2282
|
-
} | undefined;
|
|
2283
|
-
SALES?: {
|
|
2284
|
-
amount: number;
|
|
2285
|
-
precision: number;
|
|
2286
|
-
} | undefined;
|
|
2287
|
-
RETURN?: {
|
|
2288
|
-
amount: number;
|
|
2289
|
-
precision: number;
|
|
2290
|
-
} | undefined;
|
|
2291
|
-
LOSE?: {
|
|
2292
|
-
amount: number;
|
|
2293
|
-
precision: number;
|
|
2294
|
-
} | undefined;
|
|
2295
|
-
THEFT?: {
|
|
2296
|
-
amount: number;
|
|
2297
|
-
precision: number;
|
|
2298
|
-
} | undefined;
|
|
2299
|
-
DAMAGE?: {
|
|
2300
|
-
amount: number;
|
|
2301
|
-
precision: number;
|
|
2302
|
-
} | undefined;
|
|
2303
|
-
EXTRA?: {
|
|
2304
|
-
amount: number;
|
|
2305
|
-
precision: number;
|
|
2306
|
-
} | undefined;
|
|
2307
|
-
PURCHASE?: {
|
|
2308
|
-
amount: number;
|
|
2309
|
-
precision: number;
|
|
2310
|
-
} | undefined;
|
|
2311
|
-
CONVERT?: {
|
|
2312
|
-
amount: number;
|
|
2313
|
-
precision: number;
|
|
2314
|
-
} | undefined;
|
|
2315
|
-
CLOSING?: {
|
|
2316
|
-
amount: number;
|
|
2317
|
-
precision: number;
|
|
2318
|
-
} | undefined;
|
|
2319
|
-
USAGE?: {
|
|
2320
|
-
amount: number;
|
|
2321
|
-
precision: number;
|
|
2322
|
-
} | undefined;
|
|
2323
|
-
WASTAGE?: {
|
|
2324
|
-
amount: number;
|
|
2325
|
-
precision: number;
|
|
2326
|
-
} | undefined;
|
|
2327
|
-
};
|
|
3583
|
+
adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
|
|
3584
|
+
amount: number;
|
|
3585
|
+
precision: number;
|
|
3586
|
+
}>>;
|
|
2328
3587
|
}[] | null | undefined;
|
|
2329
3588
|
opening?: {
|
|
2330
3589
|
skuId: string;
|
|
@@ -2558,6 +3817,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2558
3817
|
name: string;
|
|
2559
3818
|
id: string;
|
|
2560
3819
|
};
|
|
3820
|
+
parentId: string;
|
|
2561
3821
|
usingTemplates: {
|
|
2562
3822
|
_rev?: string | null | undefined;
|
|
2563
3823
|
updatedAt?: string | null | undefined;
|
|
@@ -2657,15 +3917,22 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2657
3917
|
name: string;
|
|
2658
3918
|
id: string;
|
|
2659
3919
|
} | null | undefined;
|
|
3920
|
+
groups?: {
|
|
3921
|
+
name: string;
|
|
3922
|
+
id: string;
|
|
3923
|
+
items: {
|
|
3924
|
+
disabledMeasurements?: string[] | null | undefined;
|
|
3925
|
+
position?: number | null | undefined;
|
|
3926
|
+
skuId: string;
|
|
3927
|
+
}[];
|
|
3928
|
+
}[] | null | undefined;
|
|
2660
3929
|
_id: string;
|
|
2661
3930
|
name: string;
|
|
2662
3931
|
}[];
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
2666
|
-
tableKey: import("vue").Ref<number, number>;
|
|
3932
|
+
} | undefined;
|
|
3933
|
+
refreshDraftGroups: (draftId: string) => Promise<void>;
|
|
2667
3934
|
fetchDrafts: () => Promise<void>;
|
|
2668
3935
|
loadDraft: (draftId: string) => Promise<void>;
|
|
2669
3936
|
updateDraftRef: (draft: FdoClosingDraft) => void;
|
|
2670
|
-
}, "fetchDrafts" | "loadDraft" | "updateDraftRef">>;
|
|
3937
|
+
}, "getRawGroup" | "refreshDraftGroups" | "fetchDrafts" | "loadDraft" | "updateDraftRef">>;
|
|
2671
3938
|
export {};
|