@feedmepos/mf-e-invoice 0.0.14 → 0.0.15
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.vue.d.ts +1 -1
- package/dist/EInvoice-eKtxLE23.js +44080 -0
- package/dist/Entry.vue.d.ts +1 -1
- package/dist/api/index.d.ts +12 -10
- package/dist/app.js +14 -14
- package/dist/components/LocationSelect.vue.d.ts +18 -0
- package/dist/html2canvas.esm-DgRhIRvu.js +4870 -0
- package/dist/index.es-CPOWo2sI.js +5627 -0
- package/dist/main.d.ts +1 -1
- package/dist/purify.es-CW8x7fMd.js +528 -0
- package/dist/store/index.d.ts +8 -5
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types.d.ts +8 -4
- package/dist/utils/profile-format-and-validation.d.ts +12 -0
- package/dist/views/EInvoice.vue.d.ts +1 -1
- package/dist/views/EInvoiceCopyDialog.vue.d.ts +10 -2
- package/dist/views/EInvoiceDocument.vue.d.ts +1 -1
- package/dist/views/EInvoiceSubmission.vue.d.ts +2 -2
- package/dist/views/{EInvoiceSubmissionRow.vue.d.ts → EInvoiceTableHeader.vue.d.ts} +3 -3
- package/dist/views/EInvoiceTableRow.vue.d.ts +22 -0
- package/dist/views/{EInvoiceItemSettingsDialog.vue.d.ts → manager/malaysia/MalaysiaItemSettingsDialog.vue.d.ts} +4 -4
- package/dist/views/{EInvoiceSettingDialog.vue.d.ts → manager/malaysia/MalaysiaProfileDialog.vue.d.ts} +4 -4
- package/dist/views/{EInvoiceDialog.vue.d.ts → manager/malaysia/MalaysiaSettingDialog.vue.d.ts} +1 -1
- package/dist/views/manager/malaysia/data.d.ts +3 -0
- package/dist/views/manager/malaysia/malaysia.d.ts +13 -0
- package/dist/views/manager/malaysia/submission.d.ts +5 -0
- package/dist/views/manager/manager.d.ts +42 -0
- package/dist/views/manager/thailand/ThailandProfileDialog.vue.d.ts +12 -0
- package/dist/views/manager/thailand/ThailandSettingDialog.vue.d.ts +5 -0
- package/dist/views/manager/thailand/data.d.ts +3 -0
- package/dist/views/manager/thailand/submission.d.ts +8 -0
- package/dist/views/manager/thailand/thailand.d.ts +17 -0
- package/dist/views/submission.d.ts +5 -5
- package/package.json +6 -3
- package/dist/EInvoice-BpJic2sj.js +0 -31015
- package/dist/data.d.ts +0 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FdoMyEInvoiceRestaurantProfile, FdoMyEInvoiceMarketingProfile, F_E_INVOICE_MERCHANT_TYPE, FdoMyEInvoiceMerchantProfile } from "@feedmepos/core/entity";
|
|
2
2
|
type BaseMerchantEInvoice = {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
+
code: string;
|
|
5
6
|
thumbnail: string;
|
|
7
|
+
customAttributes: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
6
10
|
type: F_E_INVOICE_MERCHANT_TYPE;
|
|
7
|
-
profile:
|
|
11
|
+
profile: FdoMyEInvoiceMerchantProfile | null;
|
|
8
12
|
};
|
|
9
13
|
export type RestaurantEInvoice = BaseMerchantEInvoice & {
|
|
10
14
|
type: typeof F_E_INVOICE_MERCHANT_TYPE.enum.restaurant;
|
|
11
|
-
profile:
|
|
15
|
+
profile: FdoMyEInvoiceRestaurantProfile;
|
|
12
16
|
};
|
|
13
17
|
export type MarketingEInvoice = BaseMerchantEInvoice & {
|
|
14
18
|
type: typeof F_E_INVOICE_MERCHANT_TYPE.enum.marketing;
|
|
15
19
|
businessId: string;
|
|
16
|
-
profile:
|
|
20
|
+
profile: FdoMyEInvoiceMarketingProfile;
|
|
17
21
|
};
|
|
18
22
|
export type MerchantEInvoice = RestaurantEInvoice | MarketingEInvoice;
|
|
19
23
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare function formatPhone(input: string): string;
|
|
2
|
+
declare function formatPostcode(input: string): string;
|
|
3
|
+
declare function formatEmail(input: string): string;
|
|
4
|
+
declare function getNameValidationRule(): (v: string) => string | true;
|
|
5
|
+
declare function getEmailValidationRule(): (v: string) => string | true;
|
|
6
|
+
declare function getPhoneValidationRule(): (v: string) => string | true;
|
|
7
|
+
declare function getAddressLineValidationRule(required?: boolean): (v: string) => string | true;
|
|
8
|
+
declare function getCityValidationRule(): (v: string) => string | true;
|
|
9
|
+
declare function getSSTValidationRule(): (v: string) => string | true;
|
|
10
|
+
declare function getTINValidationRule(): (v: string) => string | true;
|
|
11
|
+
declare function getPostcodeValidationRule(country: string): (v: string) => string | true;
|
|
12
|
+
export { formatPhone, formatPostcode, formatEmail, getNameValidationRule, getEmailValidationRule, getPhoneValidationRule, getAddressLineValidationRule, getCityValidationRule, getSSTValidationRule, getTINValidationRule, getPostcodeValidationRule, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
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
2
|
export default _default;
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
onCompleted: (value: {
|
|
9
9
|
active?: string | null | undefined;
|
|
10
10
|
phoneNo?: string | null | undefined;
|
|
11
|
+
schedule?: {
|
|
12
|
+
day: number;
|
|
13
|
+
hour: number;
|
|
14
|
+
} | null | undefined;
|
|
11
15
|
queryToken?: string | null | undefined;
|
|
12
16
|
name: string;
|
|
13
17
|
type: "restaurant";
|
|
@@ -29,10 +33,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
29
33
|
tinNo: string;
|
|
30
34
|
msicCode: string;
|
|
31
35
|
}[]) => void;
|
|
32
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
33
37
|
onOnCompleted?: ((value: {
|
|
34
38
|
active?: string | null | undefined;
|
|
35
39
|
phoneNo?: string | null | undefined;
|
|
40
|
+
schedule?: {
|
|
41
|
+
day: number;
|
|
42
|
+
hour: number;
|
|
43
|
+
} | null | undefined;
|
|
36
44
|
queryToken?: string | null | undefined;
|
|
37
45
|
name: string;
|
|
38
46
|
type: "restaurant";
|
|
@@ -54,5 +62,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
54
62
|
tinNo: string;
|
|
55
63
|
msicCode: string;
|
|
56
64
|
}[]) => any) | undefined;
|
|
57
|
-
}, {}, {}>;
|
|
65
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
66
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
title?: string;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Submission } from "./manager/manager";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
3
|
show: (submission_: Submission) => void;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Field } from "./manager/manager";
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
3
|
+
fields: Field[];
|
|
4
4
|
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
6
6
|
default?(_: {}): any;
|
|
7
7
|
}>;
|
|
8
8
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Field } from "./manager/manager";
|
|
2
|
+
interface Props {
|
|
3
|
+
fields: Field[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FdoMyEInvoiceItemInfo } from "@feedmepos/core/entity";
|
|
2
2
|
export interface ItemOption {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
exempted: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare function showDialog(initialValue: Record<string,
|
|
7
|
+
declare function showDialog(initialValue: Record<string, FdoMyEInvoiceItemInfo>, options: ItemOption[]): void;
|
|
8
8
|
declare function hideDialog(): void;
|
|
9
9
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
10
10
|
show: typeof showDialog;
|
|
@@ -13,9 +13,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
13
13
|
onComplete: (items: Record<string, {
|
|
14
14
|
taxExemptionReason?: string | null | undefined;
|
|
15
15
|
}>) => void;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
17
17
|
onOnComplete?: ((items: Record<string, {
|
|
18
18
|
taxExemptionReason?: string | null | undefined;
|
|
19
19
|
}>) => any) | undefined;
|
|
20
|
-
}, {}, {}>;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
declare function showDialog(initialValue:
|
|
1
|
+
import { type FdoMyEInvoiceMerchantProfile } from "@feedmepos/core/entity";
|
|
2
|
+
declare function showDialog(initialValue: FdoMyEInvoiceMerchantProfile): void;
|
|
3
3
|
declare function hideDialog(): void;
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
5
|
show: typeof showDialog;
|
|
6
6
|
hide: typeof hideDialog;
|
|
7
7
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
onCompleted: () => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
10
10
|
onOnCompleted?: (() => any) | undefined;
|
|
11
|
-
}, {}, {}>;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
package/dist/views/{EInvoiceDialog.vue.d.ts → manager/malaysia/MalaysiaSettingDialog.vue.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
show: () => void;
|
|
3
3
|
hide: () => void;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FdoMyEInvoiceMarketingProfile, FdoMyEInvoiceRestaurantProfile, FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
2
|
+
export declare function initMalaysiaRestaurantProfile(restaurant: FdoRestaurant): FdoMyEInvoiceRestaurantProfile;
|
|
3
|
+
export declare function initMalaysiaMarketingProfile(businessId: string, store?: FdoStoreOption): FdoMyEInvoiceMarketingProfile;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption, FdoMyEInvoiceRestaurantProfile, FdoMyEInvoiceMarketingProfile } from "@feedmepos/core/entity";
|
|
2
|
+
import { EInvoiceManager, type Submission } from "../manager";
|
|
3
|
+
declare class MalaysiaManager extends EInvoiceManager {
|
|
4
|
+
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
5
|
+
show: () => void;
|
|
6
|
+
hide: () => void;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
formatSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
9
|
+
initRestaurantProfile(restaurant: FdoRestaurant): FdoMyEInvoiceRestaurantProfile;
|
|
10
|
+
initMarketingProfile(businessId: string, store?: FdoStoreOption): FdoMyEInvoiceMarketingProfile;
|
|
11
|
+
}
|
|
12
|
+
export declare const malaysiaManager: MalaysiaManager;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FdoMyEInvoiceSubmissionDoc, type FdoMyEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
2
|
+
import { type Submission, type SubmissionDocument } from "../manager";
|
|
3
|
+
export declare function formatMalaysiaSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
4
|
+
export declare function formatDocument(doc: FdoMyEInvoiceSubmissionDoc): SubmissionDocument;
|
|
5
|
+
export declare function convertToCSV(submission: Submission): string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
+
import type { FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
3
|
+
import type { RendererElement, RendererNode, VNode } from "vue";
|
|
4
|
+
export type Field = {
|
|
5
|
+
title: string;
|
|
6
|
+
value: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
meta?: any;
|
|
9
|
+
render?: () => VNode<RendererNode, RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export type SubmissionDocument = {
|
|
14
|
+
fields: Field[];
|
|
15
|
+
bills?: Field[][];
|
|
16
|
+
};
|
|
17
|
+
export type Submission = {
|
|
18
|
+
submissionSummary: Field[];
|
|
19
|
+
submissionDetails: Field[];
|
|
20
|
+
merchant: Field[];
|
|
21
|
+
customer?: Field[];
|
|
22
|
+
formatDocuments?: () => SubmissionDocument[];
|
|
23
|
+
export?: {
|
|
24
|
+
[key: string]: () => void;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare abstract class EInvoiceManager {
|
|
28
|
+
private settingDialogRef;
|
|
29
|
+
abstract get settingDialogComponent(): any;
|
|
30
|
+
abstract formatSubmission(submission: AnyEInvoiceSubmission): Submission;
|
|
31
|
+
abstract initRestaurantProfile(restaurant: FdoRestaurant): any;
|
|
32
|
+
abstract initMarketingProfile(businessId: string, store?: FdoStoreOption): any;
|
|
33
|
+
exportSubmissions?(submissions: any[], dateRange: {
|
|
34
|
+
startDate: string;
|
|
35
|
+
endDate: string;
|
|
36
|
+
}): void;
|
|
37
|
+
bindSettingDialogRef(instance: any): void;
|
|
38
|
+
settingDialog(): {
|
|
39
|
+
show(): void;
|
|
40
|
+
hide(): void;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FdoThEInvoiceMerchantProfile } from "@feedmepos/core/entity";
|
|
2
|
+
declare function showDialog(initialValue: FdoThEInvoiceMerchantProfile): void;
|
|
3
|
+
declare function hideDialog(): void;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
|
+
show: typeof showDialog;
|
|
6
|
+
hide: typeof hideDialog;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
onCompleted: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
10
|
+
onOnCompleted?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
show: () => void;
|
|
3
|
+
hide: () => void;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FdoThEInvoiceMarketingProfile, FdoThEInvoiceRestaurantProfile, FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
2
|
+
export declare function initThailandRestaurantProfile(restaurant: FdoRestaurant): FdoThEInvoiceRestaurantProfile;
|
|
3
|
+
export declare function initThailandMarketingProfile(businessId: string, store?: FdoStoreOption): FdoThEInvoiceMarketingProfile;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FdoThEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
2
|
+
import { type Submission, type SubmissionDocument } from "../manager";
|
|
3
|
+
export declare function formatThailandSubmission(submission: FdoThEInvoiceSubmission): Submission;
|
|
4
|
+
export declare function exportThailandSubmission(submissions: FdoThEInvoiceSubmission[], dateRange: {
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
}): void;
|
|
8
|
+
export declare function formatDocument(submission: FdoThEInvoiceSubmission): SubmissionDocument;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type FdoThEInvoiceSubmission, FdoRestaurant, FdoStoreOption, FdoThEInvoiceRestaurantProfile, FdoThEInvoiceMarketingProfile } from "@feedmepos/core/entity";
|
|
2
|
+
import { EInvoiceManager, type Submission } from "../manager";
|
|
3
|
+
declare class ThailandManager extends EInvoiceManager {
|
|
4
|
+
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
5
|
+
show: () => void;
|
|
6
|
+
hide: () => void;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
formatSubmission(submission: FdoThEInvoiceSubmission): Submission;
|
|
9
|
+
exportSubmissions(submissions: FdoThEInvoiceSubmission[], dateRange: {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
}): void;
|
|
13
|
+
initRestaurantProfile(restaurant: FdoRestaurant): FdoThEInvoiceRestaurantProfile;
|
|
14
|
+
initMarketingProfile(businessId: string, store?: FdoStoreOption): FdoThEInvoiceMarketingProfile;
|
|
15
|
+
}
|
|
16
|
+
export declare const thailandManager: ThailandManager;
|
|
17
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { F_EINVOICE_STATUS, F_EINVOICE_SUBMISSION_STATUS,
|
|
1
|
+
import type { F_EINVOICE_STATUS, F_EINVOICE_SUBMISSION_STATUS, FdoMyEInvoiceSubmission, FdoMyEInvoiceSubmissionDoc } from "@feedmepos/core/entity";
|
|
2
2
|
export type Submission = {
|
|
3
3
|
id: string;
|
|
4
4
|
date: string;
|
|
5
5
|
type: string;
|
|
6
6
|
submitFor: string;
|
|
7
7
|
status: F_EINVOICE_SUBMISSION_STATUS;
|
|
8
|
-
original:
|
|
8
|
+
original: FdoMyEInvoiceSubmission;
|
|
9
9
|
};
|
|
10
10
|
type _SubmissionDocument = {
|
|
11
11
|
id: string;
|
|
@@ -25,9 +25,9 @@ type _SubmissionDocument = {
|
|
|
25
25
|
export type SubmissionDocument = _SubmissionDocument & {
|
|
26
26
|
bills?: SubmissionDocument[];
|
|
27
27
|
};
|
|
28
|
-
export declare function formatSubmission(submission:
|
|
29
|
-
export declare function formatDocument(doc:
|
|
30
|
-
export declare function convertToCSV(submission: Omit<
|
|
28
|
+
export declare function formatSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
29
|
+
export declare function formatDocument(doc: FdoMyEInvoiceSubmissionDoc): SubmissionDocument;
|
|
30
|
+
export declare function convertToCSV(submission: Omit<FdoMyEInvoiceSubmission, "pf_documents">, bills: SubmissionDocument[]): string;
|
|
31
31
|
export declare function getNextSubmissionDate(today: string, activationDate: string): {
|
|
32
32
|
nextSubmissionDate: string;
|
|
33
33
|
salesDateRange: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-e-invoice",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -37,13 +37,16 @@
|
|
|
37
37
|
"format": "prettier --write src/"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@feedmepos/core": "^2.14.
|
|
41
|
-
"@feedmepos/mf-common": "^1.
|
|
40
|
+
"@feedmepos/core": "^2.14.28",
|
|
41
|
+
"@feedmepos/mf-common": "^1.26.11",
|
|
42
42
|
"@feedmepos/ui-library": "^1.6.8",
|
|
43
43
|
"@vitejs/plugin-vue-jsx": "^4.0.0",
|
|
44
44
|
"axios": "^1.6.2",
|
|
45
45
|
"dayjs": "^1.11.10",
|
|
46
46
|
"dotenv-cli": "^7.4.2",
|
|
47
|
+
"jspdf": "^3.0.1",
|
|
48
|
+
"jspdf-autotable": "^5.0.2",
|
|
49
|
+
"libphonenumber-js": "^1.12.10",
|
|
47
50
|
"pinia": "^2.1.7",
|
|
48
51
|
"vue": "^3.4.21",
|
|
49
52
|
"vue-router": "^4.3.0"
|