@feedmepos/mf-inventory-portal 1.7.6-dev.1 → 1.7.7-dev.0
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-C-lDjYhd.js +978 -0
- package/dist/{ApprovalView-BoOxc1dK.js → ApprovalView-DCLRLL0e.js} +9 -9
- package/dist/{BindingsDialog-wFlhR8EO.js → BindingsDialog-BE6sy81o.js} +2 -2
- package/dist/{BindingsPicker-BaGp4AIt.js → BindingsPicker-0VGrA-66.js} +2 -2
- package/dist/{BindingsTable-EXGDe6Sd.js → BindingsTable-CxZ5l3VI.js} +3 -3
- package/dist/{BulkReceiveRequestView-BbdsweKp.js → BulkReceiveRequestView-BLKhw3ra.js} +18 -18
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BYPJFpqF.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CPURsfht.js} +1 -1
- package/dist/{ClosingDraftView-BEWKGXJj.js → ClosingDraftView-BbxrHUWE.js} +19 -19
- package/dist/{ClosingHistoryView-BAJHhjM5.js → ClosingHistoryView-VtSTRYHc.js} +5 -5
- package/dist/{ClosingTemplateView-Cfc4leLq.js → ClosingTemplateView-UF_333tz.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CUqTf604.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-WuxoWgrL.js} +1 -1
- package/dist/{DefaultView-CZHNxYUL.js → DefaultView-BRxJ7F35.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-D-aNdHZW.js → DeliveryOrderPrintPreview-DPuT59iz.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DxbdOEAz.js → EmailDialog.vue_vue_type_script_setup_true_lang-Cyj4GC4q.js} +2251 -2251
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BtazE-LI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BYM5JnmS.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-s0_Zlteh.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXDNjPi-.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bx4cyEAD.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-7JUVmexK.js} +2 -2
- package/dist/{FmMultiselectDialog-Bf3NCi_L.js → FmMultiselectDialog-C6uTv5aS.js} +2 -2
- package/dist/{FmMultiselectDialog-Cufpaf2d.js → FmMultiselectDialog-DvYkoSjO.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BuqpGi2E.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C3yDLM9v.js} +5 -5
- package/dist/{ImportView-Dh7yvai2.js → ImportView-zXdM3xW4.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BU-iSbE4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-RAj9Qp4l.js} +1 -1
- package/dist/{IngredientGroupView-DLox-uDL.js → IngredientGroupView-C-5ewGTv.js} +5 -5
- package/dist/{IngredientsView-T2vzP9PF.js → IngredientsView-EKZ1QIDj.js} +16 -16
- package/dist/{IntegrationExplorerView-FZ_ultfa.js → IntegrationExplorerView-CUnVzbbG.js} +4 -4
- package/dist/IntegrationView-YYpz3ALQ.js +6961 -0
- package/dist/{InventoryBindingForm-CDdqkWwR.js → InventoryBindingForm-Dfqei89d.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BvCOt7Fs.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DfdA-B8y.js} +5 -5
- package/dist/{InventoryBindingSummary-qQ3DEjla.js → InventoryBindingSummary-DbT3SnJ_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D7h1e3uk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ca6jYEti.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DLhvdZuv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BkZuon6u.js} +1 -1
- package/dist/{ProductionView-p-HndKao.js → ProductionView-DpSeJM9O.js} +7 -7
- package/dist/{PublishView-oHnKGoOb.js → PublishView-CJxa1ktR.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-B1EmhnJI.js → PurchaseOrderPrintPreview-BzEWmhDr.js} +2 -2
- package/dist/{ReceiveRequestView-Dde9Ycsp.js → ReceiveRequestView-BJ6biaP3.js} +14 -14
- package/dist/{RecipeView-yY0ZHIMz.js → RecipeView-BkLF-BI1.js} +90 -90
- package/dist/{SettingsView-DuGRzHeP.js → SettingsView--fnA7WIu.js} +4 -4
- package/dist/{StockView-BCjjWfIx.js → StockView-BXu1tpvo.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JgcvryPR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C5Amn_eE.js} +1 -1
- package/dist/{SupplierView-DAtpz5Nn.js → SupplierView-BhZsIlwa.js} +12 -12
- package/dist/{SurchargeView-BmXRwfe7.js → SurchargeView-Co6CQqTM.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tbO3G3O3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CXozYsdr.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-addaauvo.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BvliiRSh.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DX6m7_3T.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cd_UayDn.js} +20 -20
- package/dist/{TransferTemplateView-C6v_p0ON.js → TransferTemplateView-DdHuBJkP.js} +20 -20
- package/dist/{UnitCostHistoryView-CSSoVlNm.js → UnitCostHistoryView-BRH1ywhf.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BBIgt8EV.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BmgXYmV0.js} +4 -4
- package/dist/{UnitView-BDQ9q6-J.js → UnitView-BVX2o9UR.js} +8 -8
- package/dist/{WarehouseView-i87pv8X2.js → WarehouseView-Ba6WGnvu.js} +5 -5
- package/dist/{WastageTemplateView-DOGkYpBj.js → WastageTemplateView-Bol80Za-.js} +14 -14
- package/dist/api/changelog.d.ts +46 -0
- package/dist/{app-BwfsfYVp.js → app-LaCUn1-r.js} +19627 -18877
- package/dist/app.d.ts +865 -12
- package/dist/app.js +1 -1
- package/dist/{closing-template-C-i0In9k.js → closing-template-aYhWP2rb.js} +1 -1
- package/dist/{date2-DWs--tfe.js → date2-BoulU1Tu.js} +5 -5
- package/dist/{dayjs.min-CaRV1Wi0.js → dayjs.min-B6FGvuCG.js} +1 -1
- package/dist/{decimal-BjLdoOC1.js → decimal-DwQKc6cE.js} +2 -2
- package/dist/{defineDeepModel-DOpqfJrF.js → defineDeepModel-Caj3HBqQ.js} +1 -1
- package/dist/{duplicate-template-DnI4aJUR.js → duplicate-template-CD-QpX7n.js} +1 -1
- package/dist/{feature-BfrDMg89.js → feature-B4hdHc6A.js} +2 -2
- package/dist/{format-time-from-id-DuUCuxlQ.js → format-time-from-id-Bey5hBMh.js} +1 -1
- package/dist/{format-unit-display-BZ1q1-26.js → format-unit-display-D0VATleX.js} +27 -27
- package/dist/{import-export.helper-BrmNbzq7.js → import-export.helper-BhDB84mp.js} +6 -6
- package/dist/{index-zehKNoXW.js → index-BJXZxK0E.js} +1 -1
- package/dist/{index-BKANvjCM.js → index-BU3gmWhU.js} +1 -1
- package/dist/{index-Bo5t69x5.js → index-bNtRdicK.js} +3 -3
- package/dist/{inventory-core-dart.default-D0NBHAGO.js → inventory-core-dart.default-DFroDIQ3.js} +1 -1
- package/dist/{lz-string-Ct63PQcA.js → lz-string-DGCA2EkM.js} +1 -1
- package/dist/{netsuite-Bpo2Xw-w.js → netsuite-C0jq58Bs.js} +2 -2
- package/dist/{number-CRbGFoU9.js → number-CAvIa5GR.js} +3 -3
- package/dist/{predefined-templates-CdmFddqc.js → predefined-templates-IWiWJZxY.js} +1 -1
- package/dist/{purchase-order-template-BRHeybje.js → purchase-order-template-Cl4tuZRc.js} +1 -1
- package/dist/{recalculationUtils-Cd_DPwFq.js → recalculationUtils-Z4yfpgfp.js} +1 -1
- package/dist/{rules-Bpiyywdn.js → rules-EPds-U6d.js} +2 -2
- package/dist/{stock-483U0nPk.js → stock-CiKb9tvX.js} +3 -3
- package/dist/{stock-CZHMSmF-.js → stock-D5-7HF7g.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CP72Hgs2.js → supplier-DcwSymtQ.js} +2 -2
- package/dist/{surcharge-B3Em7A0m.js → surcharge-BDBH2Cyv.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DMa8f7gU.js → uom-rules-D4cavU4o.js} +1 -1
- package/dist/{use-ingredient-select-dialog-Cnq4K29b.js → use-ingredient-select-dialog-Bj5YXshA.js} +2 -2
- package/dist/{use-inventory-binding-dialog-B2zEOzhB.js → use-inventory-binding-dialog-4G3QTnfv.js} +2 -2
- package/dist/{use-template-enabled-locations-CaLBd9EZ.js → use-template-enabled-locations-BeDwAr1M.js} +2 -2
- package/dist/{use-transfer-locations-C6Quu_0N.js → use-transfer-locations-pTOLEKts.js} +2 -2
- package/dist/{useHrmPermission-BTTu2FyU.js → useHrmPermission-C3W-l036.js} +1 -1
- package/dist/{useNavigationMenu-Ds3D09QU.js → useNavigationMenu-CmXtHYX1.js} +2 -2
- package/dist/{useSseClient-CX4yIR5M.js → useSseClient-EFGFvz0f.js} +1 -1
- package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +19 -0
- package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +2 -0
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +18 -0
- package/dist/views/changelog/composables/change-path.d.ts +10 -0
- package/dist/views/changelog/composables/commit-message.d.ts +9 -0
- package/dist/views/changelog/composables/commit-message.spec.d.ts +1 -0
- package/dist/views/changelog/composables/use-changelog.d.ts +36 -0
- package/dist/views/integration/components/CodemaxInvoiceReceipt.vue.d.ts +25 -0
- package/dist/views/integration/helper/codemax-receipt.d.ts +50 -0
- package/dist/views/integration/helper/codemax-receipt.spec.d.ts +1 -0
- package/dist/{vue-i18n-DomEpNy7.js → vue-i18n-CMyTYc6i.js} +169 -169
- package/dist/{xlsx.util-b7q_LFx2.js → xlsx.util-BhS0EUwW.js} +2 -2
- package/package.json +4 -4
- package/dist/App-D8cvtli6.js +0 -311
- package/dist/IntegrationView-VxG-kJB5.js +0 -6788
package/dist/{use-ingredient-select-dialog-Cnq4K29b.js → use-ingredient-select-dialog-Bj5YXshA.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-LaCUn1-r.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
package/dist/{use-inventory-binding-dialog-B2zEOzhB.js → use-inventory-binding-dialog-4G3QTnfv.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
2
|
+
import { a as P } from "./app-LaCUn1-r.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function A() {
|
|
5
5
|
const u = P(), _ = E();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
2
|
+
import { u as S } from "./app-LaCUn1-r.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l, V as w, Y as R } from "./app-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, V as w, Y as R } from "./app-LaCUn1-r.js";
|
|
2
|
+
import { u as E } from "./supplier-DcwSymtQ.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as T } from "vue";
|
|
2
|
-
import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-
|
|
2
|
+
import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-LaCUn1-r.js";
|
|
3
3
|
import { useCoreStore as C, useI18n as U } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as _ } from "./feature-
|
|
4
|
+
import { u as _ } from "./feature-B4hdHc6A.js";
|
|
5
5
|
const L = O.reduce(
|
|
6
6
|
(o, r) => {
|
|
7
7
|
var i;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: boolean) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
}>>> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChangelogCommit } from '@/api/changelog';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
commits: ChangelogCommit[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
commits: ChangelogCommit[];
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Structured commit message stored by inventory-backend: label key + verb + optional item name. */
|
|
2
|
+
export interface StructuredMessage {
|
|
3
|
+
labelKey: string;
|
|
4
|
+
verb: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseStructuredMessage(message?: string): StructuredMessage | null;
|
|
8
|
+
/** True when a human path segment is a changelog i18n key (vs a literal like an entity name). */
|
|
9
|
+
export declare function isLabelKey(segment: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ChangelogCommit } from '@/api/changelog';
|
|
2
|
+
export declare function useChangelog(): {
|
|
3
|
+
commits: import("vue").Ref<{
|
|
4
|
+
doc_id: string;
|
|
5
|
+
id: string;
|
|
6
|
+
parent: string;
|
|
7
|
+
at: string;
|
|
8
|
+
authors: string[];
|
|
9
|
+
message?: string | undefined;
|
|
10
|
+
changes: {
|
|
11
|
+
at?: string | undefined;
|
|
12
|
+
actor?: string | undefined;
|
|
13
|
+
path: string;
|
|
14
|
+
kind: string;
|
|
15
|
+
from?: string | undefined;
|
|
16
|
+
to?: string | undefined;
|
|
17
|
+
}[];
|
|
18
|
+
}[], ChangelogCommit[] | {
|
|
19
|
+
doc_id: string;
|
|
20
|
+
id: string;
|
|
21
|
+
parent: string;
|
|
22
|
+
at: string;
|
|
23
|
+
authors: string[];
|
|
24
|
+
message?: string | undefined;
|
|
25
|
+
changes: {
|
|
26
|
+
at?: string | undefined;
|
|
27
|
+
actor?: string | undefined;
|
|
28
|
+
path: string;
|
|
29
|
+
kind: string;
|
|
30
|
+
from?: string | undefined;
|
|
31
|
+
to?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
}[]>;
|
|
34
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
35
|
+
load: (recordId: string, limit?: number) => Promise<void>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
payload: unknown;
|
|
3
|
+
billTaxes?: {
|
|
4
|
+
inclusive: boolean;
|
|
5
|
+
taxCode: string;
|
|
6
|
+
taxName: string;
|
|
7
|
+
}[] | undefined;
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
payload: unknown;
|
|
10
|
+
billTaxes?: {
|
|
11
|
+
inclusive: boolean;
|
|
12
|
+
taxCode: string;
|
|
13
|
+
taxName: string;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flattens a Codemax sync-invoice payload (FdtoCodemaxInvoice) into receipt
|
|
3
|
+
* rows for the debug dialog: item lines with their modifier tree indented
|
|
4
|
+
* beneath, then the money summary and payments.
|
|
5
|
+
*
|
|
6
|
+
* The payload is read back from ClickHouse's Nullable(JSON) column, which can
|
|
7
|
+
* hand numbers back as strings — every amount is coerced, and the shape is
|
|
8
|
+
* probed rather than zod-parsed so an old or partial payload still renders.
|
|
9
|
+
*/
|
|
10
|
+
import type { FdtoCodemaxBillTax } from '@feedmepos/codemax-core';
|
|
11
|
+
export interface CodemaxReceiptLine {
|
|
12
|
+
/** 0 = invoice item, 1 = tier-1 modifier, 2+ = nested modifier */
|
|
13
|
+
depth: number;
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
quantity: number;
|
|
17
|
+
/** Net amount (after discount) of this line alone — modifiers are priced separately */
|
|
18
|
+
amount: number;
|
|
19
|
+
}
|
|
20
|
+
export interface CodemaxReceiptTotal {
|
|
21
|
+
label: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
strong?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface CodemaxReceiptTax {
|
|
26
|
+
label: string;
|
|
27
|
+
/** null = the tax is charged on the bill but absent from the payload — the
|
|
28
|
+
* transform skips inclusive taxes, so there is no amount to report */
|
|
29
|
+
amount: number | null;
|
|
30
|
+
/** From the bill row's tax config; null when the bill row carries none and
|
|
31
|
+
* the payload's own numbers reconcile neither way */
|
|
32
|
+
inclusive: boolean | null;
|
|
33
|
+
}
|
|
34
|
+
export interface CodemaxReceipt {
|
|
35
|
+
lines: CodemaxReceiptLine[];
|
|
36
|
+
totals: CodemaxReceiptTotal[];
|
|
37
|
+
payments: {
|
|
38
|
+
label: string;
|
|
39
|
+
amount: number;
|
|
40
|
+
}[];
|
|
41
|
+
/** Line-level taxes, summed per tax across the whole invoice */
|
|
42
|
+
taxes: CodemaxReceiptTax[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns null when the value is not a Codemax invoice payload (skip rows, run
|
|
46
|
+
* summaries). `billTaxes` comes from the bill row — the payload has no
|
|
47
|
+
* inclusive flag of its own — and decides whether each tax is reported inside
|
|
48
|
+
* the prices (a pill) or added on top (a summary row).
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildCodemaxReceipt(payload: unknown, billTaxes?: FdtoCodemaxBillTax[]): CodemaxReceipt | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|