@things-factory/tax-invoice 6.2.177 → 6.3.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-client/pages/main.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -1
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.d.ts +5 -5
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/company-list-popup.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +2 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/service/index.d.ts +9 -0
- package/dist-server/service/tax-audit-result/event-subscriber.d.ts +7 -0
- package/dist-server/service/tax-audit-result/event-subscriber.js +2 -2
- package/dist-server/service/tax-audit-result/event-subscriber.js.map +1 -1
- package/dist-server/service/tax-audit-result/index.d.ts +7 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.d.ts +25 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js +2 -2
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.d.ts +10 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js +2 -2
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-query.d.ts +12 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js +2 -2
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-type.d.ts +23 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js +6 -6
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result.d.ts +25 -0
- package/dist-server/service/tax-audit-result/tax-audit-result.js +3 -3
- package/dist-server/service/tax-audit-result/tax-audit-result.js.map +1 -1
- package/dist-server/service/tax-invoice/index.d.ts +5 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.d.ts +10 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js +2 -2
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.d.ts +14 -0
- package/dist-server/service/tax-invoice/tax-invoice-query.js +2 -2
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-type.d.ts +86 -0
- package/dist-server/service/tax-invoice/tax-invoice-type.js +8 -8
- package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-util.d.ts +133 -0
- package/dist-server/service/tax-invoice/tax-invoice-util.js +1 -2
- package/dist-server/service/tax-invoice/tax-invoice-util.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice.d.ts +120 -0
- package/dist-server/service/tax-invoice/tax-invoice.js +7 -7
- package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -1
- package/dist-server/service/tax-invoice-api/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.d.ts +8 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js +2 -2
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.d.ts +10 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js +2 -2
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.d.ts +33 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +6 -6
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api.d.ts +31 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js +2 -2
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js.map +1 -1
- package/dist-server/service/tax-invoice-company/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.d.ts +7 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js +2 -2
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.d.ts +14 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js +2 -2
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.d.ts +38 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js +6 -6
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company.d.ts +29 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js +2 -2
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js.map +1 -1
- package/dist-server/service/tax-invoice-item/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.d.ts +10 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js +2 -2
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.d.ts +11 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js +2 -2
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.d.ts +29 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js +6 -6
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item.d.ts +23 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js +2 -2
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -1
- package/dist-server/service/unipost-api/tax-invoice-inquiry.d.ts +16 -0
- package/dist-server/service/unipost-api/tax-invoice-inquiry.js +4 -4
- package/dist-server/service/unipost-api/tax-invoice-inquiry.js.map +1 -1
- package/dist-server/service/unipost-api/tax-invoice-send.d.ts +1 -0
- package/dist-server/service/unipost-api/tax-invoice-send.js +1 -2
- package/dist-server/service/unipost-api/tax-invoice-send.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice/tax-invoice-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAAuG;AACvG,yDAAgD;AAChD,+CAA6D;AAC7D,yDAAsE;AACtE,2EAAqE;AAG9D,IAAM,eAAe,GAArB,MAAM,eAAe;IAEpB,AAAN,KAAK,CAAC,UAAU,CAAY,EAAU,EAAS,OAAwB;QACrE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,wBAAU,CAAC,CAAC,OAAO,CAAC;YAC7C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,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A,IAAA,mBAAI,GAAE,CAAA;;6CAAa,wBAAU;;6CAE1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAa,wBAAU;;8CAE3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAa,wBAAU;;8CAE3C;0BA1EU,eAAe;IAD3B,IAAA,uBAAQ,EAAC,wBAAU,CAAC;GACR,eAAe,CA2E3B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Category, Purpose, TaxInvoice } from './tax-invoice'\nimport { TaxInvoiceList, TaxInvoiceSummary } from './tax-invoice-type'\nimport { TaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item'\n\n@Resolver(TaxInvoice)\nexport class TaxInvoiceQuery {\n @Query(returns => TaxInvoice!, { nullable: true, description: 'To fetch a TaxInvoice' })\n async taxInvoice(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<TaxInvoice> {\n const { domain } = context.state\n\n return await getRepository(TaxInvoice).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => TaxInvoiceList, { description: 'To fetch multiple TaxInvoices' })\n async taxInvoices(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<TaxInvoiceList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(TaxInvoice),\n searchables: ['memo']\n })\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => TaxInvoiceSummary, { description: 'To fetch TaxInvoices Summary' })\n async taxInvoicesSummary(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<TaxInvoiceSummary> {\n const { domain } = context.state\n let category = params.filters.filter(v => v.name === 'category')?.[0]?.value\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params: { ...params, pagination: {} },\n repository: await getRepository(TaxInvoice)\n })\n\n // 매입/매출이 있으면 그냥 가격으로 표시, 전체 조회면 매출-매입 으로 계산\n if (category) {\n queryBuilder\n .select('COUNT(id)', 'cnt')\n .addSelect('SUM(supply_amount)', 'supply_amount')\n .addSelect('SUM(tax_amount)', 'tax_amount')\n .addSelect('SUM(total_amount)', 'total_amount')\n } else {\n queryBuilder\n .select('COUNT(id)', 'cnt')\n .addSelect(`SUM(CASE WHEN category = \\'${Category.EXPORT}\\' THEN supply_amount ELSE -1 * supply_amount END)`, 'supply_amount')\n .addSelect(`SUM(CASE WHEN category = \\'${Category.EXPORT}\\' THEN tax_amount ELSE -1 * tax_amount END)`, 'tax_amount')\n .addSelect(`SUM(CASE WHEN category = \\'${Category.EXPORT}\\' THEN total_amount ELSE -1 * total_amount END)`, 'total_amount')\n }\n\n const summary = await queryBuilder.getRawOne()\n\n return { summary }\n }\n\n @FieldResolver(type => [TaxInvoiceItem])\n async taxInvoiceItems(@Root() taxInvoice: TaxInvoice): Promise<TaxInvoiceItem[]> {\n return taxInvoice.id && (await getRepository(TaxInvoiceItem).findBy({ taxInvoice: { id: taxInvoice.id } }))\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() taxInvoice: TaxInvoice): Promise<Domain> {\n return taxInvoice.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoice.domainId }))\n }\n\n @FieldResolver(type => User)\n async updater(@Root() taxInvoice: TaxInvoice): Promise<User> {\n return taxInvoice.updaterId && (await getRepository(User).findOneBy({ id: taxInvoice.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() taxInvoice: TaxInvoice): Promise<User> {\n return taxInvoice.creatorId && (await getRepository(User).findOneBy({ id: taxInvoice.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason, TaxInvoice } from './tax-invoice';
|
|
2
|
+
export declare class NewTaxInvoice {
|
|
3
|
+
memo?: string;
|
|
4
|
+
apiRefId?: string;
|
|
5
|
+
category: Category;
|
|
6
|
+
issueNo?: string;
|
|
7
|
+
approvalNo?: string;
|
|
8
|
+
originalApprovalNo?: string;
|
|
9
|
+
issueDate: string;
|
|
10
|
+
signatureDate: string;
|
|
11
|
+
invoiceType: InvoiceType;
|
|
12
|
+
purpose: Purpose;
|
|
13
|
+
revisedReason?: RevisedReason;
|
|
14
|
+
remark0?: string;
|
|
15
|
+
remark1?: string;
|
|
16
|
+
remark2?: string;
|
|
17
|
+
isSentByApi?: boolean;
|
|
18
|
+
supplierBusinessRegistrationCategory: BusinessRegistrationCategory;
|
|
19
|
+
supplierBusinessRegistrationNumber: string;
|
|
20
|
+
supplierBranchIdentification?: string;
|
|
21
|
+
supplierBusinessName: string;
|
|
22
|
+
supplierRepresentativeName: string;
|
|
23
|
+
supplierAddress?: string;
|
|
24
|
+
supplierBusinessType?: string;
|
|
25
|
+
supplierIndustryType?: string;
|
|
26
|
+
supplierDepartment?: string;
|
|
27
|
+
supplierContactName?: string;
|
|
28
|
+
supplierContactPhone?: string;
|
|
29
|
+
supplierContactEmail?: string;
|
|
30
|
+
supplierContactCellPhone?: string;
|
|
31
|
+
buyerBusinessRegistrationCategory: BusinessRegistrationCategory;
|
|
32
|
+
buyerBusinessRegistrationNumber: string;
|
|
33
|
+
buyerBranchIdentification?: string;
|
|
34
|
+
buyerBusinessName: string;
|
|
35
|
+
buyerRepresentativeName: string;
|
|
36
|
+
buyerAddress?: string;
|
|
37
|
+
buyerBusinessType?: string;
|
|
38
|
+
buyerIndustryType?: string;
|
|
39
|
+
buyer1stDepartment?: string;
|
|
40
|
+
buyer1stContactName?: string;
|
|
41
|
+
buyer1stContactPhone?: string;
|
|
42
|
+
buyer1stContactEmail?: string;
|
|
43
|
+
buyer1stContactCellPhone?: string;
|
|
44
|
+
buyer2ndDepartment?: string;
|
|
45
|
+
buyer2ndContactName?: string;
|
|
46
|
+
buyer2ndContactPhone?: string;
|
|
47
|
+
buyer2ndContactEmail?: string;
|
|
48
|
+
buyer2ndContactCellPhone?: string;
|
|
49
|
+
agentBusinessRegistrationCategory?: BusinessRegistrationCategory;
|
|
50
|
+
agentBusinessRegistrationNumber?: string;
|
|
51
|
+
agentBranchIdentification?: string;
|
|
52
|
+
agentBusinessName?: string;
|
|
53
|
+
agentRepresentativeName?: string;
|
|
54
|
+
agentAddress?: string;
|
|
55
|
+
agentBusinessType?: string;
|
|
56
|
+
agentIndustryType?: string;
|
|
57
|
+
agentDepartment?: string;
|
|
58
|
+
agentContactName?: string;
|
|
59
|
+
agentContactPhone?: string;
|
|
60
|
+
agentContactEmail?: string;
|
|
61
|
+
agentContactCellPhone?: string;
|
|
62
|
+
paymentAmountCash?: number;
|
|
63
|
+
paymentAmountCheck?: number;
|
|
64
|
+
paymentAmountPromissoryNote?: number;
|
|
65
|
+
paymentAmountAccountsReceivable?: number;
|
|
66
|
+
supplyAmount: number;
|
|
67
|
+
taxAmount: number;
|
|
68
|
+
totalAmount: number;
|
|
69
|
+
}
|
|
70
|
+
export declare class TaxInvoicePatch {
|
|
71
|
+
id?: string;
|
|
72
|
+
memo?: string;
|
|
73
|
+
cuFlag?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare class TaxInvoiceList {
|
|
76
|
+
items: TaxInvoice[];
|
|
77
|
+
total: number;
|
|
78
|
+
}
|
|
79
|
+
export declare class TaxInvoiceSummary {
|
|
80
|
+
summary: {
|
|
81
|
+
supply_amount: number;
|
|
82
|
+
tax_amount: number;
|
|
83
|
+
total_amount: number;
|
|
84
|
+
cnt: number;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -7,6 +7,7 @@ const tax_invoice_1 = require("./tax-invoice");
|
|
|
7
7
|
const shell_1 = require("@things-factory/shell");
|
|
8
8
|
let NewTaxInvoice = class NewTaxInvoice {
|
|
9
9
|
};
|
|
10
|
+
exports.NewTaxInvoice = NewTaxInvoice;
|
|
10
11
|
tslib_1.__decorate([
|
|
11
12
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
12
13
|
tslib_1.__metadata("design:type", String)
|
|
@@ -271,12 +272,12 @@ tslib_1.__decorate([
|
|
|
271
272
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false }),
|
|
272
273
|
tslib_1.__metadata("design:type", Number)
|
|
273
274
|
], NewTaxInvoice.prototype, "totalAmount", void 0);
|
|
274
|
-
NewTaxInvoice = tslib_1.__decorate([
|
|
275
|
+
exports.NewTaxInvoice = NewTaxInvoice = tslib_1.__decorate([
|
|
275
276
|
(0, type_graphql_1.InputType)()
|
|
276
277
|
], NewTaxInvoice);
|
|
277
|
-
exports.NewTaxInvoice = NewTaxInvoice;
|
|
278
278
|
let TaxInvoicePatch = class TaxInvoicePatch {
|
|
279
279
|
};
|
|
280
|
+
exports.TaxInvoicePatch = TaxInvoicePatch;
|
|
280
281
|
tslib_1.__decorate([
|
|
281
282
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
282
283
|
tslib_1.__metadata("design:type", String)
|
|
@@ -289,12 +290,12 @@ tslib_1.__decorate([
|
|
|
289
290
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
290
291
|
tslib_1.__metadata("design:type", String)
|
|
291
292
|
], TaxInvoicePatch.prototype, "cuFlag", void 0);
|
|
292
|
-
TaxInvoicePatch = tslib_1.__decorate([
|
|
293
|
+
exports.TaxInvoicePatch = TaxInvoicePatch = tslib_1.__decorate([
|
|
293
294
|
(0, type_graphql_1.InputType)()
|
|
294
295
|
], TaxInvoicePatch);
|
|
295
|
-
exports.TaxInvoicePatch = TaxInvoicePatch;
|
|
296
296
|
let TaxInvoiceList = class TaxInvoiceList {
|
|
297
297
|
};
|
|
298
|
+
exports.TaxInvoiceList = TaxInvoiceList;
|
|
298
299
|
tslib_1.__decorate([
|
|
299
300
|
(0, type_graphql_1.Field)(type => [tax_invoice_1.TaxInvoice]),
|
|
300
301
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -303,18 +304,17 @@ tslib_1.__decorate([
|
|
|
303
304
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
304
305
|
tslib_1.__metadata("design:type", Number)
|
|
305
306
|
], TaxInvoiceList.prototype, "total", void 0);
|
|
306
|
-
TaxInvoiceList = tslib_1.__decorate([
|
|
307
|
+
exports.TaxInvoiceList = TaxInvoiceList = tslib_1.__decorate([
|
|
307
308
|
(0, type_graphql_1.ObjectType)()
|
|
308
309
|
], TaxInvoiceList);
|
|
309
|
-
exports.TaxInvoiceList = TaxInvoiceList;
|
|
310
310
|
let TaxInvoiceSummary = class TaxInvoiceSummary {
|
|
311
311
|
};
|
|
312
|
+
exports.TaxInvoiceSummary = TaxInvoiceSummary;
|
|
312
313
|
tslib_1.__decorate([
|
|
313
314
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject),
|
|
314
315
|
tslib_1.__metadata("design:type", Object)
|
|
315
316
|
], TaxInvoiceSummary.prototype, "summary", void 0);
|
|
316
|
-
TaxInvoiceSummary = tslib_1.__decorate([
|
|
317
|
+
exports.TaxInvoiceSummary = TaxInvoiceSummary = tslib_1.__decorate([
|
|
317
318
|
(0, type_graphql_1.ObjectType)()
|
|
318
319
|
], TaxInvoiceSummary);
|
|
319
|
-
exports.TaxInvoiceSummary = TaxInvoiceSummary;
|
|
320
320
|
//# sourceMappingURL=tax-invoice-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice/tax-invoice-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+CAAuH;AACvH,iDAAoD;AAG7C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAsMzB,CAAA;AArMC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAA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AM3B;AAPU,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAQ7B;AARY,8CAAiB","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason, TaxInvoice } from './tax-invoice'\nimport { ScalarObject } from '@things-factory/shell'\n\n@InputType()\nexport class NewTaxInvoice {\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n apiRefId?: string\n\n @Field({ nullable: false })\n category: Category\n\n @Field({ nullable: true })\n issueNo?: string\n\n @Field({ nullable: true })\n approvalNo?: string\n\n @Field({ nullable: true })\n originalApprovalNo?: string\n\n @Field({ nullable: false })\n issueDate: string\n\n @Field({ nullable: true })\n signatureDate: string\n\n @Field({ nullable: false })\n invoiceType: InvoiceType\n\n @Field({ nullable: false })\n purpose: Purpose\n\n @Field({ nullable: true })\n revisedReason?: RevisedReason\n\n @Field({ nullable: true })\n remark0?: string\n\n @Field({ nullable: true })\n remark1?: string\n\n @Field({ nullable: true })\n remark2?: string\n\n @Field({ nullable: true })\n isSentByApi?: boolean\n\n @Field({ nullable: true })\n supplierBusinessRegistrationCategory: BusinessRegistrationCategory\n\n @Field({ nullable: false })\n supplierBusinessRegistrationNumber: string\n\n @Field({ nullable: true })\n supplierBranchIdentification?: string\n\n @Field({ nullable: false })\n supplierBusinessName: string\n\n @Field({ nullable: false })\n supplierRepresentativeName: string\n\n @Field({ nullable: true })\n supplierAddress?: string\n\n @Field({ nullable: true })\n supplierBusinessType?: string\n\n @Field({ nullable: true })\n supplierIndustryType?: string\n\n @Field({ nullable: true })\n supplierDepartment?: string\n\n @Field({ nullable: true })\n supplierContactName?: string\n\n @Field({ nullable: true })\n supplierContactPhone?: string\n\n @Field({ nullable: true })\n supplierContactEmail?: string\n\n @Field({ nullable: true })\n supplierContactCellPhone?: string\n\n @Field({ nullable: true })\n buyerBusinessRegistrationCategory: BusinessRegistrationCategory\n\n @Field({ nullable: false })\n buyerBusinessRegistrationNumber: string\n\n @Field({ nullable: true })\n buyerBranchIdentification?: string\n\n @Field({ nullable: false })\n buyerBusinessName: string\n\n @Field({ nullable: false })\n buyerRepresentativeName: string\n\n @Field({ nullable: true })\n buyerAddress?: string\n\n @Field({ nullable: true })\n buyerBusinessType?: string\n\n @Field({ nullable: true })\n buyerIndustryType?: string\n\n @Field({ nullable: true })\n buyer1stDepartment?: string\n\n @Field({ nullable: true })\n buyer1stContactName?: string\n\n @Field({ nullable: true })\n buyer1stContactPhone?: string\n\n @Field({ nullable: true })\n buyer1stContactEmail?: string\n\n @Field({ nullable: true })\n buyer1stContactCellPhone?: string\n\n @Field({ nullable: true })\n buyer2ndDepartment?: string\n\n @Field({ nullable: true })\n buyer2ndContactName?: string\n\n @Field({ nullable: true })\n buyer2ndContactPhone?: string\n\n @Field({ nullable: true })\n buyer2ndContactEmail?: string\n\n @Field({ nullable: true })\n buyer2ndContactCellPhone?: string\n\n @Field({ nullable: true })\n agentBusinessRegistrationCategory?: BusinessRegistrationCategory\n\n @Field({ nullable: true })\n agentBusinessRegistrationNumber?: string\n\n @Field({ nullable: true })\n agentBranchIdentification?: string\n\n @Field({ nullable: true })\n agentBusinessName?: string\n\n @Field({ nullable: true })\n agentRepresentativeName?: string\n\n @Field({ nullable: true })\n agentAddress?: string\n\n @Field({ nullable: true })\n agentBusinessType?: string\n\n @Field({ nullable: true })\n agentIndustryType?: string\n\n @Field({ nullable: true })\n agentDepartment?: string\n\n @Field({ nullable: true })\n agentContactName?: string\n\n @Field({ nullable: true })\n agentContactPhone?: string\n\n @Field({ nullable: true })\n agentContactEmail?: string\n\n @Field({ nullable: true })\n agentContactCellPhone?: string\n\n @Field(type => Int, { nullable: true })\n paymentAmountCash?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountCheck?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountPromissoryNote?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountAccountsReceivable?: number\n\n @Field(type => Int, { nullable: false })\n supplyAmount: number\n\n @Field(type => Int, { nullable: true })\n taxAmount: number\n\n @Field(type => Int, { nullable: false })\n totalAmount: number\n}\n\n@InputType()\nexport class TaxInvoicePatch {\n @Field(type => ID, { nullable: false })\n id?: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceList {\n @Field(type => [TaxInvoice])\n items: TaxInvoice[]\n\n @Field(type => Int)\n total: number\n}\n\n@ObjectType()\nexport class TaxInvoiceSummary {\n @Field(type => ScalarObject)\n summary: {\n supply_amount: number\n tax_amount: number\n total_amount: number\n cnt: number\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tax-invoice-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice/tax-invoice-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+CAAuH;AACvH,iDAAoD;AAG7C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAsMzB,CAAA;AAtMY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+CACT;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACV;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;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BAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACX;0BARJ,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAS3B;AAGM,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAU,CAAC,CAAC;;6CACT;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;6CACN;yBALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAQ7B,CAAA;AARY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,CAAC;;kDAM3B;4BAPU,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAQ7B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason, TaxInvoice } from './tax-invoice'\nimport { ScalarObject } from '@things-factory/shell'\n\n@InputType()\nexport class NewTaxInvoice {\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n apiRefId?: string\n\n @Field({ nullable: false })\n category: Category\n\n @Field({ nullable: true })\n issueNo?: string\n\n @Field({ nullable: true })\n approvalNo?: string\n\n @Field({ nullable: true })\n originalApprovalNo?: string\n\n @Field({ nullable: false })\n issueDate: string\n\n @Field({ nullable: true })\n signatureDate: string\n\n @Field({ nullable: false })\n invoiceType: InvoiceType\n\n @Field({ nullable: false })\n purpose: Purpose\n\n @Field({ nullable: true })\n revisedReason?: RevisedReason\n\n @Field({ nullable: true })\n remark0?: string\n\n @Field({ nullable: true })\n remark1?: string\n\n @Field({ nullable: true })\n remark2?: string\n\n @Field({ nullable: true })\n isSentByApi?: boolean\n\n @Field({ nullable: true })\n supplierBusinessRegistrationCategory: BusinessRegistrationCategory\n\n @Field({ nullable: false })\n supplierBusinessRegistrationNumber: string\n\n @Field({ nullable: true })\n supplierBranchIdentification?: string\n\n @Field({ nullable: false })\n supplierBusinessName: string\n\n @Field({ nullable: false })\n supplierRepresentativeName: string\n\n @Field({ nullable: true })\n supplierAddress?: string\n\n @Field({ nullable: true })\n supplierBusinessType?: string\n\n @Field({ nullable: true })\n supplierIndustryType?: string\n\n @Field({ nullable: true })\n supplierDepartment?: string\n\n @Field({ nullable: true })\n supplierContactName?: string\n\n @Field({ nullable: true })\n supplierContactPhone?: string\n\n @Field({ nullable: true })\n supplierContactEmail?: string\n\n @Field({ nullable: true })\n supplierContactCellPhone?: string\n\n @Field({ nullable: true })\n buyerBusinessRegistrationCategory: BusinessRegistrationCategory\n\n @Field({ nullable: false })\n buyerBusinessRegistrationNumber: string\n\n @Field({ nullable: true })\n buyerBranchIdentification?: string\n\n @Field({ nullable: false })\n buyerBusinessName: string\n\n @Field({ nullable: false })\n buyerRepresentativeName: string\n\n @Field({ nullable: true })\n buyerAddress?: string\n\n @Field({ nullable: true })\n buyerBusinessType?: string\n\n @Field({ nullable: true })\n buyerIndustryType?: string\n\n @Field({ nullable: true })\n buyer1stDepartment?: string\n\n @Field({ nullable: true })\n buyer1stContactName?: string\n\n @Field({ nullable: true })\n buyer1stContactPhone?: string\n\n @Field({ nullable: true })\n buyer1stContactEmail?: string\n\n @Field({ nullable: true })\n buyer1stContactCellPhone?: string\n\n @Field({ nullable: true })\n buyer2ndDepartment?: string\n\n @Field({ nullable: true })\n buyer2ndContactName?: string\n\n @Field({ nullable: true })\n buyer2ndContactPhone?: string\n\n @Field({ nullable: true })\n buyer2ndContactEmail?: string\n\n @Field({ nullable: true })\n buyer2ndContactCellPhone?: string\n\n @Field({ nullable: true })\n agentBusinessRegistrationCategory?: BusinessRegistrationCategory\n\n @Field({ nullable: true })\n agentBusinessRegistrationNumber?: string\n\n @Field({ nullable: true })\n agentBranchIdentification?: string\n\n @Field({ nullable: true })\n agentBusinessName?: string\n\n @Field({ nullable: true })\n agentRepresentativeName?: string\n\n @Field({ nullable: true })\n agentAddress?: string\n\n @Field({ nullable: true })\n agentBusinessType?: string\n\n @Field({ nullable: true })\n agentIndustryType?: string\n\n @Field({ nullable: true })\n agentDepartment?: string\n\n @Field({ nullable: true })\n agentContactName?: string\n\n @Field({ nullable: true })\n agentContactPhone?: string\n\n @Field({ nullable: true })\n agentContactEmail?: string\n\n @Field({ nullable: true })\n agentContactCellPhone?: string\n\n @Field(type => Int, { nullable: true })\n paymentAmountCash?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountCheck?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountPromissoryNote?: number\n\n @Field(type => Int, { nullable: true })\n paymentAmountAccountsReceivable?: number\n\n @Field(type => Int, { nullable: false })\n supplyAmount: number\n\n @Field(type => Int, { nullable: true })\n taxAmount: number\n\n @Field(type => Int, { nullable: false })\n totalAmount: number\n}\n\n@InputType()\nexport class TaxInvoicePatch {\n @Field(type => ID, { nullable: false })\n id?: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceList {\n @Field(type => [TaxInvoice])\n items: TaxInvoice[]\n\n @Field(type => Int)\n total: number\n}\n\n@ObjectType()\nexport class TaxInvoiceSummary {\n @Field(type => ScalarObject)\n summary: {\n supply_amount: number\n tax_amount: number\n total_amount: number\n cnt: number\n }\n}\n"]}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { NewTaxInvoiceItem } from 'service/tax-invoice-item/tax-invoice-item-type';
|
|
2
|
+
import { NewTaxInvoice } from './tax-invoice-type';
|
|
3
|
+
import { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason } from './tax-invoice';
|
|
4
|
+
interface UnipostTaxInvoice {
|
|
5
|
+
offset?: string;
|
|
6
|
+
limit?: string;
|
|
7
|
+
aid?: string;
|
|
8
|
+
exd_id?: string;
|
|
9
|
+
exd_refdoc_id?: string;
|
|
10
|
+
exd_issuedatetime?: string;
|
|
11
|
+
exd_issuedatetime_format?: string;
|
|
12
|
+
tid_issueid?: string;
|
|
13
|
+
tid_issuedatetime?: string;
|
|
14
|
+
tid_issuedatetime_format?: string;
|
|
15
|
+
tid_typecode?: InvoiceType;
|
|
16
|
+
tid_typecode_desc?: string;
|
|
17
|
+
tid_purposecode?: Purpose;
|
|
18
|
+
tid_purposecode_desc?: string;
|
|
19
|
+
tid_amendcode?: RevisedReason;
|
|
20
|
+
tid_amendcode_desc?: string;
|
|
21
|
+
tid_originalissueid?: string;
|
|
22
|
+
tid_desc0?: string;
|
|
23
|
+
tid_desc1?: string;
|
|
24
|
+
tid_desc2?: string;
|
|
25
|
+
tid_refimpdoc_id?: string;
|
|
26
|
+
tid_refimpdoc_itemquantity?: string;
|
|
27
|
+
tid_refimpdoc_accept_sdate?: string;
|
|
28
|
+
tid_refimpdoc_accept_edate?: string;
|
|
29
|
+
tit_alice_specorg_biztypecode?: BusinessRegistrationCategory;
|
|
30
|
+
tit_alice_id?: string;
|
|
31
|
+
tit_alice_specorg_taxregid?: string;
|
|
32
|
+
tit_alice_name?: string;
|
|
33
|
+
tit_alice_specperson_name?: string;
|
|
34
|
+
tit_alice_specaddr_lineone?: string;
|
|
35
|
+
tit_alice_typecode?: string;
|
|
36
|
+
tit_alice_classcode?: string;
|
|
37
|
+
tit_alice_defcont_deptname?: string;
|
|
38
|
+
tit_alice_defcont_personname?: string;
|
|
39
|
+
tit_alice_defcont_telcomm?: string;
|
|
40
|
+
tit_alice_defcont_uricomm?: string;
|
|
41
|
+
tit_alice_defcont_cellphone?: string;
|
|
42
|
+
tit_bob_specorg_biztypecode?: BusinessRegistrationCategory;
|
|
43
|
+
tit_bob_id?: string;
|
|
44
|
+
tit_bob_specorg_taxregid?: string;
|
|
45
|
+
tit_bob_name?: string;
|
|
46
|
+
tit_bob_specperson_name?: string;
|
|
47
|
+
tit_bob_specaddr_lineone?: string;
|
|
48
|
+
tit_bob_typecode?: string;
|
|
49
|
+
tit_bob_classcode?: string;
|
|
50
|
+
tit_bob_1stdefcont_deptname?: string;
|
|
51
|
+
tit_bob_1stdefcont_personname?: string;
|
|
52
|
+
tit_bob_1stdefcont_telcomm?: string;
|
|
53
|
+
tit_bob_1stdefcont_uricomm?: string;
|
|
54
|
+
tit_bob_1stdefcont_cellphone?: string;
|
|
55
|
+
tit_bob_2nddefcont_deptname?: string;
|
|
56
|
+
tit_bob_2nddefcont_personname?: string;
|
|
57
|
+
tit_bob_2nddefcont_telcomm?: string;
|
|
58
|
+
tit_bob_2nddefcont_uricomm?: string;
|
|
59
|
+
tit_bob_2nddefcont_cellphone?: string;
|
|
60
|
+
tit_broker_specorg_biztypecode?: BusinessRegistrationCategory;
|
|
61
|
+
tit_broker_id?: string;
|
|
62
|
+
tit_broker_specorg_taxregid?: string;
|
|
63
|
+
tit_broker_name?: string;
|
|
64
|
+
tit_broker_specperson_name?: string;
|
|
65
|
+
tit_broker_specaddr_lineone?: string;
|
|
66
|
+
tit_broker_typecode?: string;
|
|
67
|
+
tit_broker_classcode?: string;
|
|
68
|
+
tit_broker_defcont_deptname?: string;
|
|
69
|
+
tit_broker_defcont_personname?: string;
|
|
70
|
+
tit_broker_defcont_telcomm?: string;
|
|
71
|
+
tit_broker_defcont_uricomm?: string;
|
|
72
|
+
tit_broker_defcont_cellphone?: string;
|
|
73
|
+
tit_specpay_paidamount10?: number;
|
|
74
|
+
tit_specpay_paidamount20?: number;
|
|
75
|
+
tit_specpay_paidamount30?: number;
|
|
76
|
+
tit_specpay_paidamount40?: number;
|
|
77
|
+
tit_specpay_paidamount10_format?: string;
|
|
78
|
+
tit_specpay_paidamount20_format?: string;
|
|
79
|
+
tit_specpay_paidamount30_format?: string;
|
|
80
|
+
tit_specpay_paidamount40_format?: string;
|
|
81
|
+
tit_specsum_chargeamount?: number;
|
|
82
|
+
tit_specsum_taxamount?: number;
|
|
83
|
+
tit_specsum_grandamount?: number;
|
|
84
|
+
tit_specsum_chargeamount_format?: string;
|
|
85
|
+
tit_specsum_taxamount_format?: string;
|
|
86
|
+
tit_specsum_grandamount_format?: string;
|
|
87
|
+
biz_tocharlesconfirmstatus?: string;
|
|
88
|
+
inv_sign?: string;
|
|
89
|
+
mbill_send_status?: string;
|
|
90
|
+
erp_sync_yn?: string;
|
|
91
|
+
prt_yn?: string;
|
|
92
|
+
prt_yn_desc?: string;
|
|
93
|
+
inv_seq?: string;
|
|
94
|
+
view_date?: string;
|
|
95
|
+
reg_date?: string;
|
|
96
|
+
sot_yn?: string;
|
|
97
|
+
table_alias?: string;
|
|
98
|
+
biz_no?: string;
|
|
99
|
+
tAliceItemList?: Array<any>;
|
|
100
|
+
tcTrItemList?: Array<any>;
|
|
101
|
+
tAliceFileList?: Array<any>;
|
|
102
|
+
tAliceDSig?: Object;
|
|
103
|
+
tAliceStat?: Object;
|
|
104
|
+
biz_tocharlesconfirmstatus_desc?: string;
|
|
105
|
+
}
|
|
106
|
+
interface UnipostTaxInvoiceItem {
|
|
107
|
+
offset?: number;
|
|
108
|
+
limit?: number;
|
|
109
|
+
aid?: string;
|
|
110
|
+
exd_id?: string;
|
|
111
|
+
tii_seqnumeric?: number;
|
|
112
|
+
tii_purchaseexpirydatetime?: string;
|
|
113
|
+
tii_purchaseexpirydatetime_format?: string;
|
|
114
|
+
tii_purchaseexpirydatetime_format_month?: string;
|
|
115
|
+
tii_purchaseexpirydatetime_format_day?: string;
|
|
116
|
+
tii_nametext?: string;
|
|
117
|
+
tii_informationtext?: string;
|
|
118
|
+
tii_chargeableunitquantity?: number;
|
|
119
|
+
tii_chargeableunitquantity_format?: string;
|
|
120
|
+
tii_chargeableunittext?: string;
|
|
121
|
+
tii_unitprice_unitamount?: number;
|
|
122
|
+
tii_unitprice_unitamount_format?: string;
|
|
123
|
+
tii_invoiceamount?: number;
|
|
124
|
+
tii_invoiceamount_format?: string;
|
|
125
|
+
tii_totaltax_calcamount?: number;
|
|
126
|
+
tii_totaltax_calcamount_format?: string;
|
|
127
|
+
tii_descriptiontext?: string;
|
|
128
|
+
}
|
|
129
|
+
export declare function parseTaxInvoiceByUnipostFormat(unipostTaxInvoice: UnipostTaxInvoice, unipostTaxInvoiceItems: UnipostTaxInvoiceItem[], category: Category): {
|
|
130
|
+
taxInvoice: NewTaxInvoice;
|
|
131
|
+
taxInvoiceItems: NewTaxInvoiceItem[];
|
|
132
|
+
};
|
|
133
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseTaxInvoiceByUnipostFormat =
|
|
3
|
+
exports.parseTaxInvoiceByUnipostFormat = parseTaxInvoiceByUnipostFormat;
|
|
4
4
|
// 유니포스트 데이터 포맷을 DB에 넣을수 있는 포맷으로 변경
|
|
5
5
|
function parseTaxInvoiceByUnipostFormat(unipostTaxInvoice, unipostTaxInvoiceItems, category) {
|
|
6
6
|
let taxInvoice;
|
|
@@ -88,7 +88,6 @@ function parseTaxInvoiceByUnipostFormat(unipostTaxInvoice, unipostTaxInvoiceItem
|
|
|
88
88
|
}));
|
|
89
89
|
return { taxInvoice, taxInvoiceItems };
|
|
90
90
|
}
|
|
91
|
-
exports.parseTaxInvoiceByUnipostFormat = parseTaxInvoiceByUnipostFormat;
|
|
92
91
|
// YYYYMMDD => YYYY-MM-DD
|
|
93
92
|
const _dateFormat = date => date.replace(/(\d{4})(\d{2})(\d{2})/g, '$1-$2-$3');
|
|
94
93
|
//# sourceMappingURL=tax-invoice-util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-util.js","sourceRoot":"","sources":["../../../server/service/tax-invoice/tax-invoice-util.ts"],"names":[],"mappings":";;;AAmIA,mCAAmC;AACnC,S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ewTaxInvoiceItem } from 'service/tax-invoice-item/tax-invoice-item-type'\nimport { NewTaxInvoice } from './tax-invoice-type'\nimport { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason } from './tax-invoice'\n\ninterface UnipostTaxInvoice {\n offset?: string\n limit?: string\n aid?: string\n exd_id?: string\n exd_refdoc_id?: string\n exd_issuedatetime?: string\n exd_issuedatetime_format?: string\n tid_issueid?: string\n tid_issuedatetime?: string\n tid_issuedatetime_format?: string\n tid_typecode?: InvoiceType\n tid_typecode_desc?: string\n tid_purposecode?: Purpose\n tid_purposecode_desc?: string\n tid_amendcode?: RevisedReason\n tid_amendcode_desc?: string\n tid_originalissueid?: string\n tid_desc0?: string\n tid_desc1?: string\n tid_desc2?: string\n tid_refimpdoc_id?: string\n tid_refimpdoc_itemquantity?: string\n tid_refimpdoc_accept_sdate?: string\n tid_refimpdoc_accept_edate?: string\n tit_alice_specorg_biztypecode?: BusinessRegistrationCategory\n tit_alice_id?: string\n tit_alice_specorg_taxregid?: string\n tit_alice_name?: string\n tit_alice_specperson_name?: string\n tit_alice_specaddr_lineone?: string\n tit_alice_typecode?: string\n tit_alice_classcode?: string\n tit_alice_defcont_deptname?: string\n tit_alice_defcont_personname?: string\n tit_alice_defcont_telcomm?: string\n tit_alice_defcont_uricomm?: string\n tit_alice_defcont_cellphone?: string\n tit_bob_specorg_biztypecode?: BusinessRegistrationCategory\n tit_bob_id?: string\n tit_bob_specorg_taxregid?: string\n tit_bob_name?: string\n tit_bob_specperson_name?: string\n tit_bob_specaddr_lineone?: string\n tit_bob_typecode?: string\n tit_bob_classcode?: string\n tit_bob_1stdefcont_deptname?: string\n tit_bob_1stdefcont_personname?: string\n tit_bob_1stdefcont_telcomm?: string\n tit_bob_1stdefcont_uricomm?: string\n tit_bob_1stdefcont_cellphone?: string\n tit_bob_2nddefcont_deptname?: string\n tit_bob_2nddefcont_personname?: string\n tit_bob_2nddefcont_telcomm?: string\n tit_bob_2nddefcont_uricomm?: string\n tit_bob_2nddefcont_cellphone?: string\n tit_broker_specorg_biztypecode?: BusinessRegistrationCategory\n tit_broker_id?: string\n tit_broker_specorg_taxregid?: string\n tit_broker_name?: string\n tit_broker_specperson_name?: string\n tit_broker_specaddr_lineone?: string\n tit_broker_typecode?: string\n tit_broker_classcode?: string\n tit_broker_defcont_deptname?: string\n tit_broker_defcont_personname?: string\n tit_broker_defcont_telcomm?: string\n tit_broker_defcont_uricomm?: string\n tit_broker_defcont_cellphone?: string\n tit_specpay_paidamount10?: number\n tit_specpay_paidamount20?: number\n tit_specpay_paidamount30?: number\n tit_specpay_paidamount40?: number\n tit_specpay_paidamount10_format?: string\n tit_specpay_paidamount20_format?: string\n tit_specpay_paidamount30_format?: string\n tit_specpay_paidamount40_format?: string\n tit_specsum_chargeamount?: number\n tit_specsum_taxamount?: number\n tit_specsum_grandamount?: number\n tit_specsum_chargeamount_format?: string\n tit_specsum_taxamount_format?: string\n tit_specsum_grandamount_format?: string\n biz_tocharlesconfirmstatus?: string\n inv_sign?: string\n mbill_send_status?: string\n erp_sync_yn?: string\n prt_yn?: string\n prt_yn_desc?: string\n inv_seq?: string\n view_date?: string\n reg_date?: string\n sot_yn?: string\n table_alias?: string\n biz_no?: string\n tAliceItemList?: Array<any>\n tcTrItemList?: Array<any>\n tAliceFileList?: Array<any>\n tAliceDSig?: Object\n tAliceStat?: Object\n biz_tocharlesconfirmstatus_desc?: string\n}\n\ninterface UnipostTaxInvoiceItem {\n offset?: number\n limit?: number\n aid?: string\n exd_id?: string\n tii_seqnumeric?: number\n tii_purchaseexpirydatetime?: string\n tii_purchaseexpirydatetime_format?: string\n tii_purchaseexpirydatetime_format_month?: string\n tii_purchaseexpirydatetime_format_day?: string\n tii_nametext?: string\n tii_informationtext?: string\n tii_chargeableunitquantity?: number\n tii_chargeableunitquantity_format?: string\n tii_chargeableunittext?: string\n tii_unitprice_unitamount?: number\n tii_unitprice_unitamount_format?: string\n tii_invoiceamount?: number\n tii_invoiceamount_format?: string\n tii_totaltax_calcamount?: number\n tii_totaltax_calcamount_format?: string\n tii_descriptiontext?: string\n}\n\n// 유니포스트 데이터 포맷을 DB에 넣을수 있는 포맷으로 변경\nexport function parseTaxInvoiceByUnipostFormat(unipostTaxInvoice: UnipostTaxInvoice, unipostTaxInvoiceItems: UnipostTaxInvoiceItem[], category: Category) {\n let taxInvoice: NewTaxInvoice\n let taxInvoiceItems: NewTaxInvoiceItem[]\n\n // 한개 라도 없으면 전부 빈값으로 리턴\n if (!unipostTaxInvoice || !unipostTaxInvoiceItems) return { taxInvoice, taxInvoiceItems }\n\n // exd_issuedatetime 이 두개는 조회 API에서는 yyyymmdd 로 오지만 발행에서는 yyyymmddhhmmss로 옴\n taxInvoice = {\n issueNo: unipostTaxInvoice.exd_id,\n approvalNo: unipostTaxInvoice.tid_issueid,\n originalApprovalNo: unipostTaxInvoice.tid_originalissueid,\n issueDate: _dateFormat(unipostTaxInvoice.tid_issuedatetime),\n signatureDate: _dateFormat(unipostTaxInvoice.exd_issuedatetime.substring(0, 8)),\n invoiceType: unipostTaxInvoice.tid_typecode,\n purpose: unipostTaxInvoice.tid_purposecode,\n revisedReason: unipostTaxInvoice.tid_amendcode,\n remark0: unipostTaxInvoice.tid_desc0,\n remark1: unipostTaxInvoice.tid_desc1,\n remark2: unipostTaxInvoice.tid_desc2,\n isSentByApi: true,\n category: category,\n supplierBusinessRegistrationCategory: unipostTaxInvoice.tit_alice_specorg_biztypecode,\n supplierBusinessRegistrationNumber: unipostTaxInvoice.tit_alice_id,\n supplierBranchIdentification: unipostTaxInvoice.tit_alice_specorg_taxregid,\n supplierBusinessName: unipostTaxInvoice.tit_alice_name,\n supplierRepresentativeName: unipostTaxInvoice.tit_alice_specperson_name,\n supplierAddress: unipostTaxInvoice.tit_alice_specaddr_lineone,\n supplierBusinessType: unipostTaxInvoice.tit_alice_typecode,\n supplierIndustryType: unipostTaxInvoice.tit_alice_classcode,\n supplierDepartment: unipostTaxInvoice.tit_alice_defcont_deptname,\n supplierContactName: unipostTaxInvoice.tit_alice_defcont_personname,\n supplierContactPhone: unipostTaxInvoice.tit_alice_defcont_telcomm,\n supplierContactEmail: unipostTaxInvoice.tit_alice_defcont_uricomm,\n supplierContactCellPhone: unipostTaxInvoice.tit_alice_defcont_cellphone,\n buyerBusinessRegistrationCategory: unipostTaxInvoice.tit_bob_specorg_biztypecode,\n buyerBusinessRegistrationNumber: unipostTaxInvoice.tit_bob_id,\n buyerBranchIdentification: unipostTaxInvoice.tit_bob_specorg_taxregid,\n buyerBusinessName: unipostTaxInvoice.tit_bob_name,\n buyerRepresentativeName: unipostTaxInvoice.tit_bob_specperson_name,\n buyerAddress: unipostTaxInvoice.tit_bob_specaddr_lineone,\n buyerBusinessType: unipostTaxInvoice.tit_bob_typecode,\n buyerIndustryType: unipostTaxInvoice.tit_bob_classcode,\n buyer1stDepartment: unipostTaxInvoice.tit_bob_1stdefcont_deptname,\n buyer1stContactName: unipostTaxInvoice.tit_bob_1stdefcont_personname,\n buyer1stContactPhone: unipostTaxInvoice.tit_bob_1stdefcont_telcomm,\n buyer1stContactEmail: unipostTaxInvoice.tit_bob_1stdefcont_uricomm,\n buyer1stContactCellPhone: unipostTaxInvoice.tit_bob_1stdefcont_cellphone,\n buyer2ndDepartment: unipostTaxInvoice.tit_bob_2nddefcont_deptname,\n buyer2ndContactName: unipostTaxInvoice.tit_bob_2nddefcont_personname,\n buyer2ndContactPhone: unipostTaxInvoice.tit_bob_2nddefcont_telcomm,\n buyer2ndContactEmail: unipostTaxInvoice.tit_bob_2nddefcont_uricomm,\n buyer2ndContactCellPhone: unipostTaxInvoice.tit_bob_2nddefcont_cellphone,\n agentBusinessRegistrationCategory: unipostTaxInvoice.tit_broker_specorg_biztypecode,\n agentBusinessRegistrationNumber: unipostTaxInvoice.tit_broker_id,\n agentBranchIdentification: unipostTaxInvoice.tit_broker_specorg_taxregid,\n agentBusinessName: unipostTaxInvoice.tit_broker_name,\n agentRepresentativeName: unipostTaxInvoice.tit_broker_specperson_name,\n agentAddress: unipostTaxInvoice.tit_broker_specaddr_lineone,\n agentBusinessType: unipostTaxInvoice.tit_broker_typecode,\n agentIndustryType: unipostTaxInvoice.tit_broker_classcode,\n agentDepartment: unipostTaxInvoice.tit_broker_defcont_deptname,\n agentContactName: unipostTaxInvoice.tit_broker_defcont_personname,\n agentContactPhone: unipostTaxInvoice.tit_broker_defcont_telcomm,\n agentContactEmail: unipostTaxInvoice.tit_broker_defcont_uricomm,\n agentContactCellPhone: unipostTaxInvoice.tit_broker_defcont_cellphone,\n paymentAmountCash: unipostTaxInvoice.tit_specpay_paidamount10,\n paymentAmountCheck: unipostTaxInvoice.tit_specpay_paidamount20,\n paymentAmountPromissoryNote: unipostTaxInvoice.tit_specpay_paidamount30,\n paymentAmountAccountsReceivable: unipostTaxInvoice.tit_specpay_paidamount40,\n supplyAmount: unipostTaxInvoice.tit_specsum_chargeamount,\n taxAmount: unipostTaxInvoice.tit_specsum_taxamount,\n totalAmount: unipostTaxInvoice.tit_specsum_grandamount\n }\n\n taxInvoiceItems = unipostTaxInvoiceItems.map(item => ({\n sequence: item.tii_seqnumeric,\n supplyDate: _dateFormat(item.tii_purchaseexpirydatetime),\n itemName: item.tii_nametext,\n specification: item.tii_informationtext,\n quantity: item.tii_chargeableunitquantity,\n unitPrice: item.tii_unitprice_unitamount,\n supplyPrice: item.tii_invoiceamount,\n taxPrice: item.tii_totaltax_calcamount,\n remark: item.tii_descriptiontext\n }))\n\n return { taxInvoice, taxInvoiceItems }\n}\n\n// YYYYMMDD => YYYY-MM-DD\nconst _dateFormat = date => date.replace(/(\\d{4})(\\d{2})(\\d{2})/g, '$1-$2-$3')\n"]}
|
|
1
|
+
{"version":3,"file":"tax-invoice-util.js","sourceRoot":"","sources":["../../../server/service/tax-invoice/tax-invoice-util.ts"],"names":[],"mappings":";;AAoIA,wEAwFC;AAzFD,mCAAmC;AACnC,SAAgB,8BAA8B,CAAC,iBAAoC,EAAE,sBAA+C,EAAE,QAAkB;IACtJ,IAAI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inessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason } from './tax-invoice'\n\ninterface UnipostTaxInvoice {\n offset?: string\n limit?: string\n aid?: string\n exd_id?: string\n exd_refdoc_id?: string\n exd_issuedatetime?: string\n exd_issuedatetime_format?: string\n tid_issueid?: string\n tid_issuedatetime?: string\n tid_issuedatetime_format?: string\n tid_typecode?: InvoiceType\n tid_typecode_desc?: string\n tid_purposecode?: Purpose\n tid_purposecode_desc?: string\n tid_amendcode?: RevisedReason\n tid_amendcode_desc?: string\n tid_originalissueid?: string\n tid_desc0?: string\n tid_desc1?: string\n tid_desc2?: string\n tid_refimpdoc_id?: string\n tid_refimpdoc_itemquantity?: string\n tid_refimpdoc_accept_sdate?: string\n tid_refimpdoc_accept_edate?: string\n tit_alice_specorg_biztypecode?: BusinessRegistrationCategory\n tit_alice_id?: string\n tit_alice_specorg_taxregid?: string\n tit_alice_name?: string\n tit_alice_specperson_name?: string\n tit_alice_specaddr_lineone?: string\n tit_alice_typecode?: string\n tit_alice_classcode?: string\n tit_alice_defcont_deptname?: string\n tit_alice_defcont_personname?: string\n tit_alice_defcont_telcomm?: string\n tit_alice_defcont_uricomm?: string\n tit_alice_defcont_cellphone?: string\n tit_bob_specorg_biztypecode?: BusinessRegistrationCategory\n tit_bob_id?: string\n tit_bob_specorg_taxregid?: string\n tit_bob_name?: string\n tit_bob_specperson_name?: string\n tit_bob_specaddr_lineone?: string\n tit_bob_typecode?: string\n tit_bob_classcode?: string\n tit_bob_1stdefcont_deptname?: string\n tit_bob_1stdefcont_personname?: string\n tit_bob_1stdefcont_telcomm?: string\n tit_bob_1stdefcont_uricomm?: string\n tit_bob_1stdefcont_cellphone?: string\n tit_bob_2nddefcont_deptname?: string\n tit_bob_2nddefcont_personname?: string\n tit_bob_2nddefcont_telcomm?: string\n tit_bob_2nddefcont_uricomm?: string\n tit_bob_2nddefcont_cellphone?: string\n tit_broker_specorg_biztypecode?: BusinessRegistrationCategory\n tit_broker_id?: string\n tit_broker_specorg_taxregid?: string\n tit_broker_name?: string\n tit_broker_specperson_name?: string\n tit_broker_specaddr_lineone?: string\n tit_broker_typecode?: string\n tit_broker_classcode?: string\n tit_broker_defcont_deptname?: string\n tit_broker_defcont_personname?: string\n tit_broker_defcont_telcomm?: string\n tit_broker_defcont_uricomm?: string\n tit_broker_defcont_cellphone?: string\n tit_specpay_paidamount10?: number\n tit_specpay_paidamount20?: number\n tit_specpay_paidamount30?: number\n tit_specpay_paidamount40?: number\n tit_specpay_paidamount10_format?: string\n tit_specpay_paidamount20_format?: string\n tit_specpay_paidamount30_format?: string\n tit_specpay_paidamount40_format?: string\n tit_specsum_chargeamount?: number\n tit_specsum_taxamount?: number\n tit_specsum_grandamount?: number\n tit_specsum_chargeamount_format?: string\n tit_specsum_taxamount_format?: string\n tit_specsum_grandamount_format?: string\n biz_tocharlesconfirmstatus?: string\n inv_sign?: string\n mbill_send_status?: string\n erp_sync_yn?: string\n prt_yn?: string\n prt_yn_desc?: string\n inv_seq?: string\n view_date?: string\n reg_date?: string\n sot_yn?: string\n table_alias?: string\n biz_no?: string\n tAliceItemList?: Array<any>\n tcTrItemList?: Array<any>\n tAliceFileList?: Array<any>\n tAliceDSig?: Object\n tAliceStat?: Object\n biz_tocharlesconfirmstatus_desc?: string\n}\n\ninterface UnipostTaxInvoiceItem {\n offset?: number\n limit?: number\n aid?: string\n exd_id?: string\n tii_seqnumeric?: number\n tii_purchaseexpirydatetime?: string\n tii_purchaseexpirydatetime_format?: string\n tii_purchaseexpirydatetime_format_month?: string\n tii_purchaseexpirydatetime_format_day?: string\n tii_nametext?: string\n tii_informationtext?: string\n tii_chargeableunitquantity?: number\n tii_chargeableunitquantity_format?: string\n tii_chargeableunittext?: string\n tii_unitprice_unitamount?: number\n tii_unitprice_unitamount_format?: string\n tii_invoiceamount?: number\n tii_invoiceamount_format?: string\n tii_totaltax_calcamount?: number\n tii_totaltax_calcamount_format?: string\n tii_descriptiontext?: string\n}\n\n// 유니포스트 데이터 포맷을 DB에 넣을수 있는 포맷으로 변경\nexport function parseTaxInvoiceByUnipostFormat(unipostTaxInvoice: UnipostTaxInvoice, unipostTaxInvoiceItems: UnipostTaxInvoiceItem[], category: Category) {\n let taxInvoice: NewTaxInvoice\n let taxInvoiceItems: NewTaxInvoiceItem[]\n\n // 한개 라도 없으면 전부 빈값으로 리턴\n if (!unipostTaxInvoice || !unipostTaxInvoiceItems) return { taxInvoice, taxInvoiceItems }\n\n // exd_issuedatetime 이 두개는 조회 API에서는 yyyymmdd 로 오지만 발행에서는 yyyymmddhhmmss로 옴\n taxInvoice = {\n issueNo: unipostTaxInvoice.exd_id,\n approvalNo: unipostTaxInvoice.tid_issueid,\n originalApprovalNo: unipostTaxInvoice.tid_originalissueid,\n issueDate: _dateFormat(unipostTaxInvoice.tid_issuedatetime),\n signatureDate: _dateFormat(unipostTaxInvoice.exd_issuedatetime.substring(0, 8)),\n invoiceType: unipostTaxInvoice.tid_typecode,\n purpose: unipostTaxInvoice.tid_purposecode,\n revisedReason: unipostTaxInvoice.tid_amendcode,\n remark0: unipostTaxInvoice.tid_desc0,\n remark1: unipostTaxInvoice.tid_desc1,\n remark2: unipostTaxInvoice.tid_desc2,\n isSentByApi: true,\n category: category,\n supplierBusinessRegistrationCategory: unipostTaxInvoice.tit_alice_specorg_biztypecode,\n supplierBusinessRegistrationNumber: unipostTaxInvoice.tit_alice_id,\n supplierBranchIdentification: unipostTaxInvoice.tit_alice_specorg_taxregid,\n supplierBusinessName: unipostTaxInvoice.tit_alice_name,\n supplierRepresentativeName: unipostTaxInvoice.tit_alice_specperson_name,\n supplierAddress: unipostTaxInvoice.tit_alice_specaddr_lineone,\n supplierBusinessType: unipostTaxInvoice.tit_alice_typecode,\n supplierIndustryType: unipostTaxInvoice.tit_alice_classcode,\n supplierDepartment: unipostTaxInvoice.tit_alice_defcont_deptname,\n supplierContactName: unipostTaxInvoice.tit_alice_defcont_personname,\n supplierContactPhone: unipostTaxInvoice.tit_alice_defcont_telcomm,\n supplierContactEmail: unipostTaxInvoice.tit_alice_defcont_uricomm,\n supplierContactCellPhone: unipostTaxInvoice.tit_alice_defcont_cellphone,\n buyerBusinessRegistrationCategory: unipostTaxInvoice.tit_bob_specorg_biztypecode,\n buyerBusinessRegistrationNumber: unipostTaxInvoice.tit_bob_id,\n buyerBranchIdentification: unipostTaxInvoice.tit_bob_specorg_taxregid,\n buyerBusinessName: unipostTaxInvoice.tit_bob_name,\n buyerRepresentativeName: unipostTaxInvoice.tit_bob_specperson_name,\n buyerAddress: unipostTaxInvoice.tit_bob_specaddr_lineone,\n buyerBusinessType: unipostTaxInvoice.tit_bob_typecode,\n buyerIndustryType: unipostTaxInvoice.tit_bob_classcode,\n buyer1stDepartment: unipostTaxInvoice.tit_bob_1stdefcont_deptname,\n buyer1stContactName: unipostTaxInvoice.tit_bob_1stdefcont_personname,\n buyer1stContactPhone: unipostTaxInvoice.tit_bob_1stdefcont_telcomm,\n buyer1stContactEmail: unipostTaxInvoice.tit_bob_1stdefcont_uricomm,\n buyer1stContactCellPhone: unipostTaxInvoice.tit_bob_1stdefcont_cellphone,\n buyer2ndDepartment: unipostTaxInvoice.tit_bob_2nddefcont_deptname,\n buyer2ndContactName: unipostTaxInvoice.tit_bob_2nddefcont_personname,\n buyer2ndContactPhone: unipostTaxInvoice.tit_bob_2nddefcont_telcomm,\n buyer2ndContactEmail: unipostTaxInvoice.tit_bob_2nddefcont_uricomm,\n buyer2ndContactCellPhone: unipostTaxInvoice.tit_bob_2nddefcont_cellphone,\n agentBusinessRegistrationCategory: unipostTaxInvoice.tit_broker_specorg_biztypecode,\n agentBusinessRegistrationNumber: unipostTaxInvoice.tit_broker_id,\n agentBranchIdentification: unipostTaxInvoice.tit_broker_specorg_taxregid,\n agentBusinessName: unipostTaxInvoice.tit_broker_name,\n agentRepresentativeName: unipostTaxInvoice.tit_broker_specperson_name,\n agentAddress: unipostTaxInvoice.tit_broker_specaddr_lineone,\n agentBusinessType: unipostTaxInvoice.tit_broker_typecode,\n agentIndustryType: unipostTaxInvoice.tit_broker_classcode,\n agentDepartment: unipostTaxInvoice.tit_broker_defcont_deptname,\n agentContactName: unipostTaxInvoice.tit_broker_defcont_personname,\n agentContactPhone: unipostTaxInvoice.tit_broker_defcont_telcomm,\n agentContactEmail: unipostTaxInvoice.tit_broker_defcont_uricomm,\n agentContactCellPhone: unipostTaxInvoice.tit_broker_defcont_cellphone,\n paymentAmountCash: unipostTaxInvoice.tit_specpay_paidamount10,\n paymentAmountCheck: unipostTaxInvoice.tit_specpay_paidamount20,\n paymentAmountPromissoryNote: unipostTaxInvoice.tit_specpay_paidamount30,\n paymentAmountAccountsReceivable: unipostTaxInvoice.tit_specpay_paidamount40,\n supplyAmount: unipostTaxInvoice.tit_specsum_chargeamount,\n taxAmount: unipostTaxInvoice.tit_specsum_taxamount,\n totalAmount: unipostTaxInvoice.tit_specsum_grandamount\n }\n\n taxInvoiceItems = unipostTaxInvoiceItems.map(item => ({\n sequence: item.tii_seqnumeric,\n supplyDate: _dateFormat(item.tii_purchaseexpirydatetime),\n itemName: item.tii_nametext,\n specification: item.tii_informationtext,\n quantity: item.tii_chargeableunitquantity,\n unitPrice: item.tii_unitprice_unitamount,\n supplyPrice: item.tii_invoiceamount,\n taxPrice: item.tii_totaltax_calcamount,\n remark: item.tii_descriptiontext\n }))\n\n return { taxInvoice, taxInvoiceItems }\n}\n\n// YYYYMMDD => YYYY-MM-DD\nconst _dateFormat = date => date.replace(/(\\d{4})(\\d{2})(\\d{2})/g, '$1-$2-$3')\n"]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { TaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item';
|
|
4
|
+
export declare enum Category {
|
|
5
|
+
EXPORT = "10",// 매출
|
|
6
|
+
IMPORT = "20",// 매입
|
|
7
|
+
NTS = "30"
|
|
8
|
+
}
|
|
9
|
+
export declare enum InvoiceType {
|
|
10
|
+
GENERAL_TAX_INVOICE = "0101",// 일반 전자세금계산서
|
|
11
|
+
ZERO_RATED_TAX_INVOICE = "0102",// 영세율 전자세금계산서
|
|
12
|
+
CONSIGNMENT_TAX_INVOICE = "0103",// 위수탁 전자세금계산서
|
|
13
|
+
IMPORT__RATED_CONSIGNMENT_TAX_INVOICE = "0105",// 영세율 위수탁 전자세금계산서
|
|
14
|
+
REVISED_GENERAL_TAX_INVOICE = "0201",// 수정 일반 전자세금계산서
|
|
15
|
+
REVISED_ZERORATED_TAX_INVOICE = "0202",// 수정 영세율 전자세금계산서
|
|
16
|
+
REVISED_CONSIGNMENT_TAX_INVOICE = "0203",// 수정 위수탁 전자세금계산서
|
|
17
|
+
REVISED_IMPORT_TAX_INVOICE = "0204",// 수정 수입 전자세금계산서
|
|
18
|
+
REVISED_ZERORATED_CONSIGNMENT_TAX_INVOICE = "0205",// 수정 영세율 위수탁 전자세금계산서
|
|
19
|
+
GENERAL_INVOICE = "0301",// 일반 전자계산서
|
|
20
|
+
CONSIGNMENT_INVOICE = "0303",// 위수탁 전자계산서
|
|
21
|
+
IMPORT_INVOICE = "0304",// 수입 전자계산서
|
|
22
|
+
REVISED_GENERAL_INVOICE = "0401",// 수정 일반 전자계산서
|
|
23
|
+
REVISED_CONSIGNMENT_INVOICE = "0403",// 수정 위수탁 전자계산서
|
|
24
|
+
REVISED_IMPORT_INVOICE = "0404"
|
|
25
|
+
}
|
|
26
|
+
export declare enum Purpose {
|
|
27
|
+
RECEIPT = "01",// 영수
|
|
28
|
+
BILLING = "02"
|
|
29
|
+
}
|
|
30
|
+
export declare enum RevisedReason {
|
|
31
|
+
ENTRY_ERROR_CORRECTION = "01",// 기재사항 착오·정정
|
|
32
|
+
SUPPLY_VALUE_CHANGE = "02",// 공급가액 변동
|
|
33
|
+
REVERSAL_ENTRY = "03",// 환입
|
|
34
|
+
CONTRACT_CANCELLATION = "04",// 계약의 해제
|
|
35
|
+
POST_FACTO_DOMESTIC_LC_ISSUANCE = "05",// 내국신용장 사후 개설
|
|
36
|
+
ERROR_BASED_DUPLICATE_ISSUANCE = "06"
|
|
37
|
+
}
|
|
38
|
+
export declare enum BusinessRegistrationCategory {
|
|
39
|
+
BUSINESS_REGISTRATION_NUMBER = "01",// 사업자등록번호
|
|
40
|
+
RESIDENT_REGISTRATION_NUMBER = "02",// 주민등록번호
|
|
41
|
+
FOREIGNER_REGISTRATION_NUMBER = "03"
|
|
42
|
+
}
|
|
43
|
+
export declare class TaxInvoice {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
domain?: Domain;
|
|
46
|
+
domainId?: string;
|
|
47
|
+
taxInvoiceItems?: TaxInvoiceItem[];
|
|
48
|
+
memo?: string;
|
|
49
|
+
category: Category;
|
|
50
|
+
issueNo?: string;
|
|
51
|
+
approvalNo?: string;
|
|
52
|
+
originalApprovalNo?: string;
|
|
53
|
+
issueDate: Date;
|
|
54
|
+
signatureDate?: Date;
|
|
55
|
+
invoiceType: InvoiceType;
|
|
56
|
+
purpose: Purpose;
|
|
57
|
+
revisedReason?: RevisedReason;
|
|
58
|
+
remark0?: string;
|
|
59
|
+
remark1?: string;
|
|
60
|
+
remark2?: string;
|
|
61
|
+
isSentByApi?: boolean;
|
|
62
|
+
supplierBusinessRegistrationCategory?: BusinessRegistrationCategory;
|
|
63
|
+
supplierBusinessRegistrationNumber: string;
|
|
64
|
+
supplierBranchIdentification?: string;
|
|
65
|
+
supplierBusinessName: string;
|
|
66
|
+
supplierRepresentativeName: string;
|
|
67
|
+
supplierAddress?: string;
|
|
68
|
+
supplierBusinessType?: string;
|
|
69
|
+
supplierIndustryType?: string;
|
|
70
|
+
supplierDepartment?: string;
|
|
71
|
+
supplierContactName?: string;
|
|
72
|
+
supplierContactPhone?: string;
|
|
73
|
+
supplierContactEmail?: string;
|
|
74
|
+
supplierContactCellPhone?: string;
|
|
75
|
+
buyerBusinessRegistrationCategory?: BusinessRegistrationCategory;
|
|
76
|
+
buyerBusinessRegistrationNumber: string;
|
|
77
|
+
buyerBranchIdentification?: string;
|
|
78
|
+
buyerBusinessName: string;
|
|
79
|
+
buyerRepresentativeName: string;
|
|
80
|
+
buyerAddress?: string;
|
|
81
|
+
buyerBusinessType?: string;
|
|
82
|
+
buyerIndustryType?: string;
|
|
83
|
+
buyer1stDepartment?: string;
|
|
84
|
+
buyer1stContactName?: string;
|
|
85
|
+
buyer1stContactPhone?: string;
|
|
86
|
+
buyer1stContactEmail?: string;
|
|
87
|
+
buyer1stContactCellPhone?: string;
|
|
88
|
+
buyer2ndDepartment?: string;
|
|
89
|
+
buyer2ndContactName?: string;
|
|
90
|
+
buyer2ndContactPhone?: string;
|
|
91
|
+
buyer2ndContactEmail?: string;
|
|
92
|
+
buyer2ndContactCellPhone?: string;
|
|
93
|
+
agentBusinessRegistrationCategory?: BusinessRegistrationCategory;
|
|
94
|
+
agentBusinessRegistrationNumber?: string;
|
|
95
|
+
agentBranchIdentification?: string;
|
|
96
|
+
agentBusinessName?: string;
|
|
97
|
+
agentRepresentativeName?: string;
|
|
98
|
+
agentAddress?: string;
|
|
99
|
+
agentBusinessType?: string;
|
|
100
|
+
agentIndustryType?: string;
|
|
101
|
+
agentDepartment?: string;
|
|
102
|
+
agentContactName?: string;
|
|
103
|
+
agentContactPhone?: string;
|
|
104
|
+
agentContactEmail?: string;
|
|
105
|
+
agentContactCellPhone?: string;
|
|
106
|
+
paymentAmountCash?: number;
|
|
107
|
+
paymentAmountCheck?: number;
|
|
108
|
+
paymentAmountPromissoryNote?: number;
|
|
109
|
+
paymentAmountAccountsReceivable?: number;
|
|
110
|
+
supplyAmount: number;
|
|
111
|
+
taxAmount?: number;
|
|
112
|
+
totalAmount: number;
|
|
113
|
+
createdAt?: Date;
|
|
114
|
+
updatedAt?: Date;
|
|
115
|
+
deletedAt?: Date;
|
|
116
|
+
creator?: User;
|
|
117
|
+
creatorId?: string;
|
|
118
|
+
updater?: User;
|
|
119
|
+
updaterId?: string;
|
|
120
|
+
}
|
|
@@ -13,7 +13,7 @@ var Category;
|
|
|
13
13
|
Category["EXPORT"] = "10";
|
|
14
14
|
Category["IMPORT"] = "20";
|
|
15
15
|
Category["NTS"] = "30"; // NTS
|
|
16
|
-
})(Category
|
|
16
|
+
})(Category || (exports.Category = Category = {}));
|
|
17
17
|
// 세금계산서 종류
|
|
18
18
|
var InvoiceType;
|
|
19
19
|
(function (InvoiceType) {
|
|
@@ -32,13 +32,13 @@ var InvoiceType;
|
|
|
32
32
|
InvoiceType["REVISED_GENERAL_INVOICE"] = "0401";
|
|
33
33
|
InvoiceType["REVISED_CONSIGNMENT_INVOICE"] = "0403";
|
|
34
34
|
InvoiceType["REVISED_IMPORT_INVOICE"] = "0404"; // 수정 수입 전자계산서
|
|
35
|
-
})(InvoiceType
|
|
35
|
+
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
36
36
|
// 세금계산서 영수/청구 구분 지시자
|
|
37
37
|
var Purpose;
|
|
38
38
|
(function (Purpose) {
|
|
39
39
|
Purpose["RECEIPT"] = "01";
|
|
40
40
|
Purpose["BILLING"] = "02"; // 청구
|
|
41
|
-
})(Purpose
|
|
41
|
+
})(Purpose || (exports.Purpose = Purpose = {}));
|
|
42
42
|
// 세금계산서 수정사유 코드
|
|
43
43
|
var RevisedReason;
|
|
44
44
|
(function (RevisedReason) {
|
|
@@ -48,14 +48,14 @@ var RevisedReason;
|
|
|
48
48
|
RevisedReason["CONTRACT_CANCELLATION"] = "04";
|
|
49
49
|
RevisedReason["POST_FACTO_DOMESTIC_LC_ISSUANCE"] = "05";
|
|
50
50
|
RevisedReason["ERROR_BASED_DUPLICATE_ISSUANCE"] = "06"; // 착오에 의한 이중발급
|
|
51
|
-
})(RevisedReason
|
|
51
|
+
})(RevisedReason || (exports.RevisedReason = RevisedReason = {}));
|
|
52
52
|
// 세금계산서 공급받는자 사업자등록번호 구분코드
|
|
53
53
|
var BusinessRegistrationCategory;
|
|
54
54
|
(function (BusinessRegistrationCategory) {
|
|
55
55
|
BusinessRegistrationCategory["BUSINESS_REGISTRATION_NUMBER"] = "01";
|
|
56
56
|
BusinessRegistrationCategory["RESIDENT_REGISTRATION_NUMBER"] = "02";
|
|
57
57
|
BusinessRegistrationCategory["FOREIGNER_REGISTRATION_NUMBER"] = "03"; // 외국인등록번호
|
|
58
|
-
})(BusinessRegistrationCategory
|
|
58
|
+
})(BusinessRegistrationCategory || (exports.BusinessRegistrationCategory = BusinessRegistrationCategory = {}));
|
|
59
59
|
(0, type_graphql_1.registerEnumType)(Category, {
|
|
60
60
|
name: 'Category',
|
|
61
61
|
description: 'category'
|
|
@@ -78,6 +78,7 @@ var BusinessRegistrationCategory;
|
|
|
78
78
|
});
|
|
79
79
|
let TaxInvoice = class TaxInvoice {
|
|
80
80
|
};
|
|
81
|
+
exports.TaxInvoice = TaxInvoice;
|
|
81
82
|
tslib_1.__decorate([
|
|
82
83
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
83
84
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -455,7 +456,7 @@ tslib_1.__decorate([
|
|
|
455
456
|
(0, typeorm_1.RelationId)((taxInvoice) => taxInvoice.updater),
|
|
456
457
|
tslib_1.__metadata("design:type", String)
|
|
457
458
|
], TaxInvoice.prototype, "updaterId", void 0);
|
|
458
|
-
TaxInvoice = tslib_1.__decorate([
|
|
459
|
+
exports.TaxInvoice = TaxInvoice = tslib_1.__decorate([
|
|
459
460
|
(0, typeorm_1.Entity)(),
|
|
460
461
|
(0, typeorm_1.Index)('ix_tax_invoice_0', (taxInvoice) => [taxInvoice.domain, taxInvoice.id, taxInvoice.deletedAt], {
|
|
461
462
|
unique: true
|
|
@@ -464,5 +465,4 @@ TaxInvoice = tslib_1.__decorate([
|
|
|
464
465
|
(0, typeorm_1.Index)('ix_approval_no', (taxInvoice) => [taxInvoice.domain, taxInvoice.approvalNo], { unique: true }),
|
|
465
466
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for TaxInvoice' })
|
|
466
467
|
], TaxInvoice);
|
|
467
|
-
exports.TaxInvoice = TaxInvoice;
|
|
468
468
|
//# sourceMappingURL=tax-invoice.js.map
|