@things-factory/tax-invoice 7.0.0-alpha.8 → 7.0.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/client/bootstrap.ts +1 -0
- package/client/pages/tax-audit-result/tax-audit-result-importer.ts +8 -19
- package/client/pages/tax-audit-result/tax-audit-result-list-page.ts +10 -25
- package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +21 -19
- package/client/pages/tax-invoice-api/tax-invoice-api-page.ts +99 -61
- package/client/pages/tax-invoice-company/tax-invoice-company-list-page.ts +2 -67
- package/client/pages/{tax-invoice-company/tax-invoice-company-importer.ts → tax-invoice-send/company-list-popup.ts} +69 -57
- package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +78 -742
- package/client/pages/tax-invoice-send/tax-invoice-send.ts +1181 -0
- package/config/config.development.js +13 -0
- package/config/config.production.js +13 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +1 -1
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/pages/main.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.d.ts +1 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js +5 -12
- 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 +8 -16
- 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.d.ts +0 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +20 -17
- 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.d.ts +3 -2
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +91 -61
- 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.d.ts +0 -16
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js +3 -62
- 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.d.ts +69 -0
- package/dist-client/pages/{tax-invoice-company/tax-invoice-company-importer.js → tax-invoice-send/company-list-popup.js} +75 -60
- package/dist-client/pages/tax-invoice-send/company-list-popup.js.map +1 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.d.ts +11 -78
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +65 -654
- 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.d.ts +112 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js +1086 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js.map +1 -0
- package/dist-client/route.d.ts +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/index.js +1 -0
- package/dist-server/service/index.js.map +1 -1
- 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 +10 -6
- 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 +3 -3
- 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 +4 -4
- 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 -6
- 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 +22 -10
- 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 +12 -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 +2 -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 +15 -10
- 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 +46 -16
- 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 +15 -9
- 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 +32 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +9 -13
- 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 +12 -24
- 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 +44 -9
- 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 +59 -9
- 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 +14 -24
- 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 +3 -3
- 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 +7 -7
- 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 +10 -14
- 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 +5 -7
- package/dist-server/service/unipost-api/tax-invoice-send.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/server/service/index.ts +1 -0
- package/server/service/tax-audit-result/tax-audit-result-history.ts +10 -6
- package/server/service/tax-audit-result/tax-audit-result-query.ts +4 -1
- package/server/service/tax-audit-result/tax-audit-result.ts +6 -2
- package/server/service/tax-invoice/tax-invoice-mutation.ts +0 -3
- package/server/service/tax-invoice/tax-invoice-query.ts +36 -9
- package/server/service/tax-invoice/tax-invoice-type.ts +3 -0
- package/server/service/tax-invoice/tax-invoice-util.ts +1 -0
- package/server/service/tax-invoice/tax-invoice.ts +19 -4
- package/server/service/tax-invoice-api/tax-invoice-api-mutation.ts +63 -24
- package/server/service/tax-invoice-api/tax-invoice-api-query.ts +15 -6
- package/server/service/tax-invoice-api/tax-invoice-api-type.ts +2 -5
- package/server/service/tax-invoice-api/tax-invoice-api.ts +23 -20
- package/server/service/tax-invoice-company/tax-invoice-company-query.ts +39 -6
- package/server/service/tax-invoice-company/tax-invoice-company-type.ts +40 -4
- package/server/service/tax-invoice-company/tax-invoice-company.ts +11 -21
- package/server/service/tax-invoice-item/tax-invoice-item-query.ts +4 -1
- package/server/service/tax-invoice-item/tax-invoice-item.ts +22 -8
- package/server/service/unipost-api/tax-invoice-inquiry.ts +6 -10
- package/server/service/unipost-api/tax-invoice-send.ts +5 -5
- package/translations/ko.json +3 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.d.ts +0 -31
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaxInvoiceCompanyList = exports.TaxInvoiceCompanyPatch = void 0;
|
|
3
|
+
exports.TaxInvoiceCompanyList = exports.TaxInvoiceMyCompany = exports.TaxInvoiceCompanyPatch = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const shell_1 = require("@things-factory/shell");
|
|
7
7
|
const tax_invoice_company_1 = require("./tax-invoice-company");
|
|
8
8
|
let TaxInvoiceCompanyPatch = class TaxInvoiceCompanyPatch {
|
|
9
9
|
};
|
|
10
|
+
exports.TaxInvoiceCompanyPatch = TaxInvoiceCompanyPatch;
|
|
10
11
|
tslib_1.__decorate([
|
|
11
12
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
12
13
|
tslib_1.__metadata("design:type", String)
|
|
@@ -19,10 +20,6 @@ tslib_1.__decorate([
|
|
|
19
20
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
21
|
tslib_1.__metadata("design:type", String)
|
|
21
22
|
], TaxInvoiceCompanyPatch.prototype, "description", void 0);
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
-
tslib_1.__metadata("design:type", Number)
|
|
25
|
-
], TaxInvoiceCompanyPatch.prototype, "type", void 0);
|
|
26
23
|
tslib_1.__decorate([
|
|
27
24
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
25
|
tslib_1.__metadata("design:type", String)
|
|
@@ -79,12 +76,66 @@ tslib_1.__decorate([
|
|
|
79
76
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
80
77
|
tslib_1.__metadata("design:type", String)
|
|
81
78
|
], TaxInvoiceCompanyPatch.prototype, "cuFlag", void 0);
|
|
82
|
-
TaxInvoiceCompanyPatch = tslib_1.__decorate([
|
|
79
|
+
exports.TaxInvoiceCompanyPatch = TaxInvoiceCompanyPatch = tslib_1.__decorate([
|
|
83
80
|
(0, type_graphql_1.InputType)()
|
|
84
81
|
], TaxInvoiceCompanyPatch);
|
|
85
|
-
|
|
82
|
+
let TaxInvoiceMyCompany = class TaxInvoiceMyCompany {
|
|
83
|
+
};
|
|
84
|
+
exports.TaxInvoiceMyCompany = TaxInvoiceMyCompany;
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
+
tslib_1.__metadata("design:type", String)
|
|
88
|
+
], TaxInvoiceMyCompany.prototype, "businessRegistrationNumber", void 0);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
91
|
+
tslib_1.__metadata("design:type", String)
|
|
92
|
+
], TaxInvoiceMyCompany.prototype, "branchIdentification", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
+
tslib_1.__metadata("design:type", String)
|
|
96
|
+
], TaxInvoiceMyCompany.prototype, "businessName", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
99
|
+
tslib_1.__metadata("design:type", String)
|
|
100
|
+
], TaxInvoiceMyCompany.prototype, "representativeName", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
103
|
+
tslib_1.__metadata("design:type", String)
|
|
104
|
+
], TaxInvoiceMyCompany.prototype, "address", void 0);
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
107
|
+
tslib_1.__metadata("design:type", String)
|
|
108
|
+
], TaxInvoiceMyCompany.prototype, "businessType", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
111
|
+
tslib_1.__metadata("design:type", String)
|
|
112
|
+
], TaxInvoiceMyCompany.prototype, "industryType", void 0);
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
116
|
+
], TaxInvoiceMyCompany.prototype, "department", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], TaxInvoiceMyCompany.prototype, "contactName", void 0);
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
123
|
+
tslib_1.__metadata("design:type", String)
|
|
124
|
+
], TaxInvoiceMyCompany.prototype, "contactPhone", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
127
|
+
tslib_1.__metadata("design:type", String)
|
|
128
|
+
], TaxInvoiceMyCompany.prototype, "contactEmail", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
131
|
+
tslib_1.__metadata("design:type", String)
|
|
132
|
+
], TaxInvoiceMyCompany.prototype, "contactCellPhone", void 0);
|
|
133
|
+
exports.TaxInvoiceMyCompany = TaxInvoiceMyCompany = tslib_1.__decorate([
|
|
134
|
+
(0, type_graphql_1.ObjectType)()
|
|
135
|
+
], TaxInvoiceMyCompany);
|
|
86
136
|
let TaxInvoiceCompanyList = class TaxInvoiceCompanyList {
|
|
87
137
|
};
|
|
138
|
+
exports.TaxInvoiceCompanyList = TaxInvoiceCompanyList;
|
|
88
139
|
tslib_1.__decorate([
|
|
89
140
|
(0, type_graphql_1.Field)(type => [tax_invoice_company_1.TaxInvoiceCompany]),
|
|
90
141
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -93,8 +144,7 @@ tslib_1.__decorate([
|
|
|
93
144
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
94
145
|
tslib_1.__metadata("design:type", Number)
|
|
95
146
|
], TaxInvoiceCompanyList.prototype, "total", void 0);
|
|
96
|
-
TaxInvoiceCompanyList = tslib_1.__decorate([
|
|
147
|
+
exports.TaxInvoiceCompanyList = TaxInvoiceCompanyList = tslib_1.__decorate([
|
|
97
148
|
(0, type_graphql_1.ObjectType)()
|
|
98
149
|
], TaxInvoiceCompanyList);
|
|
99
|
-
exports.TaxInvoiceCompanyList = TaxInvoiceCompanyList;
|
|
100
150
|
//# sourceMappingURL=tax-invoice-company-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-company-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iDAAoD;AACpD,+
|
|
1
|
+
{"version":3,"file":"tax-invoice-company-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iDAAoD;AACpD,+DAAyD;AAGlD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAmDlC,CAAA;AAnDY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EA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;AANY,sDAAqB;AAEhC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,uCAAiB,CAAC,CAAC;;oDACT;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;oDACN;gCALF,qBAAqB;IADjC,IAAA,yBAAU,GAAE;GACA,qBAAqB,CAMjC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ScalarObject } from '@things-factory/shell'\nimport { TaxInvoiceCompany } from './tax-invoice-company'\n\n@InputType()\nexport class TaxInvoiceCompanyPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n businessRegistrationNumber?: string\n\n @Field({ nullable: true })\n branchIdentification?: string\n\n @Field({ nullable: true })\n businessName?: string\n\n @Field({ nullable: true })\n representativeName?: string\n\n @Field({ nullable: true })\n address?: string\n\n @Field({ nullable: true })\n businessType?: string\n\n @Field({ nullable: true })\n industryType?: string\n\n @Field({ nullable: true })\n department?: string\n\n @Field({ nullable: true })\n contactName?: string\n\n @Field({ nullable: true })\n contactPhone?: string\n\n @Field({ nullable: true })\n contactEmail?: string\n\n @Field({ nullable: true })\n contactCellPhone?: string\n\n @Field(type => ScalarObject, { nullable: true })\n attributes?: any\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceMyCompany {\n @Field({ nullable: true })\n businessRegistrationNumber?: string\n\n @Field({ nullable: true })\n branchIdentification?: string\n\n @Field({ nullable: true })\n businessName?: string\n\n @Field({ nullable: true })\n representativeName?: string\n\n @Field({ nullable: true })\n address?: string\n\n @Field({ nullable: true })\n businessType?: string\n\n @Field({ nullable: true })\n industryType?: string\n\n @Field({ nullable: true })\n department?: string\n\n @Field({ nullable: true })\n contactName?: string\n\n @Field({ nullable: true })\n contactPhone?: string\n\n @Field({ nullable: true })\n contactEmail?: string\n\n @Field({ nullable: true })\n contactCellPhone?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceCompanyList {\n @Field(type => [TaxInvoiceCompany])\n items: TaxInvoiceCompany[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
export declare class TaxInvoiceCompany {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
domain?: Domain;
|
|
6
|
+
domainId?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
businessRegistrationNumber?: string;
|
|
10
|
+
branchIdentification?: string;
|
|
11
|
+
businessName?: string;
|
|
12
|
+
representativeName?: string;
|
|
13
|
+
address?: string;
|
|
14
|
+
businessType?: string;
|
|
15
|
+
industryType?: string;
|
|
16
|
+
department?: string;
|
|
17
|
+
contactName?: string;
|
|
18
|
+
contactPhone?: string;
|
|
19
|
+
contactEmail?: string;
|
|
20
|
+
contactCellPhone?: string;
|
|
21
|
+
attributes?: any;
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
deletedAt?: Date;
|
|
25
|
+
creator?: User;
|
|
26
|
+
creatorId?: string;
|
|
27
|
+
updater?: User;
|
|
28
|
+
updaterId?: string;
|
|
29
|
+
}
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaxInvoiceCompany =
|
|
3
|
+
exports.TaxInvoiceCompany = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const type_graphql_1 = require("type-graphql");
|
|
7
7
|
const shell_1 = require("@things-factory/shell");
|
|
8
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
var CompanyType;
|
|
10
|
-
(function (CompanyType) {
|
|
11
|
-
CompanyType[CompanyType["SUPPLIER"] = 10] = "SUPPLIER";
|
|
12
|
-
CompanyType[CompanyType["BUYER"] = 20] = "BUYER"; // 거래처
|
|
13
|
-
})(CompanyType = exports.CompanyType || (exports.CompanyType = {}));
|
|
14
|
-
exports.companyTypeLabel = {
|
|
15
|
-
[CompanyType.SUPPLIER]: '공급자',
|
|
16
|
-
[CompanyType.BUYER]: '거래처'
|
|
17
|
-
};
|
|
18
|
-
(0, type_graphql_1.registerEnumType)(CompanyType, {
|
|
19
|
-
name: 'CompanyType',
|
|
20
|
-
description: 'company type'
|
|
21
|
-
});
|
|
22
9
|
let TaxInvoiceCompany = class TaxInvoiceCompany {
|
|
23
10
|
};
|
|
11
|
+
exports.TaxInvoiceCompany = TaxInvoiceCompany;
|
|
24
12
|
tslib_1.__decorate([
|
|
25
13
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -28,7 +16,7 @@ tslib_1.__decorate([
|
|
|
28
16
|
], TaxInvoiceCompany.prototype, "id", void 0);
|
|
29
17
|
tslib_1.__decorate([
|
|
30
18
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
31
|
-
(0, type_graphql_1.Field)(
|
|
19
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
32
20
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
33
21
|
], TaxInvoiceCompany.prototype, "domain", void 0);
|
|
34
22
|
tslib_1.__decorate([
|
|
@@ -45,11 +33,6 @@ tslib_1.__decorate([
|
|
|
45
33
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
34
|
tslib_1.__metadata("design:type", String)
|
|
47
35
|
], TaxInvoiceCompany.prototype, "description", void 0);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
|
50
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
51
|
-
tslib_1.__metadata("design:type", Number)
|
|
52
|
-
], TaxInvoiceCompany.prototype, "type", void 0);
|
|
53
36
|
tslib_1.__decorate([
|
|
54
37
|
(0, typeorm_1.Column)({ nullable: true, comment: '사업자등록번호', transformer: shell_1.encryptTransformer }),
|
|
55
38
|
(0, type_graphql_1.Field)({ nullable: true, description: '사업자등록번호' }),
|
|
@@ -148,11 +131,18 @@ tslib_1.__decorate([
|
|
|
148
131
|
(0, typeorm_1.RelationId)((taxInvoiceCompany) => taxInvoiceCompany.updater),
|
|
149
132
|
tslib_1.__metadata("design:type", String)
|
|
150
133
|
], TaxInvoiceCompany.prototype, "updaterId", void 0);
|
|
151
|
-
TaxInvoiceCompany = tslib_1.__decorate([
|
|
134
|
+
exports.TaxInvoiceCompany = TaxInvoiceCompany = tslib_1.__decorate([
|
|
152
135
|
(0, typeorm_1.Entity)(),
|
|
153
|
-
(0, typeorm_1.Index)('ix_tax_invoice_company_0', (taxInvoiceCompany) => [
|
|
154
|
-
|
|
136
|
+
(0, typeorm_1.Index)('ix_tax_invoice_company_0', (taxInvoiceCompany) => [
|
|
137
|
+
taxInvoiceCompany.domain,
|
|
138
|
+
taxInvoiceCompany.name,
|
|
139
|
+
taxInvoiceCompany.deletedAt
|
|
140
|
+
]),
|
|
141
|
+
(0, typeorm_1.Index)('ix_tax_invoice_company_1', (taxInvoiceCompany) => [
|
|
142
|
+
taxInvoiceCompany.domain,
|
|
143
|
+
taxInvoiceCompany.description,
|
|
144
|
+
taxInvoiceCompany.deletedAt
|
|
145
|
+
]),
|
|
155
146
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for TaxInvoice Company' })
|
|
156
147
|
], TaxInvoiceCompany);
|
|
157
|
-
exports.TaxInvoiceCompany = TaxInvoiceCompany;
|
|
158
148
|
//# sourceMappingURL=tax-invoice-company.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-company.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,iDAAgF;AAChF,yDAAgD;
|
|
1
|
+
{"version":3,"file":"tax-invoice-company.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,iDAAgF;AAChF,yDAAgD;AAczC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAiG7B,CAAA;AAjGY,8CAAiB;AAGnB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;6CACE;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;iDAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC;;mDAC9D;AAIjB;IAFC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1B,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+CACf;AAIb;IAFC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,0BAAkB,EAAE,CAAC;IAC/E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;qEACf;AAInC;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAA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;QAC7B,iBAAiB,CAAC,SAAS;KAC5B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;GAChD,iBAAiB,CAiG7B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Index,\n Entity,\n OneToOne,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain, ScalarObject, encryptTransformer } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\n@Entity()\n@Index('ix_tax_invoice_company_0', (taxInvoiceCompany: TaxInvoiceCompany) => [\n taxInvoiceCompany.domain,\n taxInvoiceCompany.name,\n taxInvoiceCompany.deletedAt\n])\n@Index('ix_tax_invoice_company_1', (taxInvoiceCompany: TaxInvoiceCompany) => [\n taxInvoiceCompany.domain,\n taxInvoiceCompany.description,\n taxInvoiceCompany.deletedAt\n])\n@ObjectType({ description: 'Entity for TaxInvoice Company' })\nexport class TaxInvoiceCompany {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id!: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((taxInvoiceCompany: TaxInvoiceCompany) => taxInvoiceCompany.domain)\n domainId?: string\n\n @Field({ nullable: false })\n @Column({ nullable: false })\n name!: string\n\n @Field({ nullable: true })\n @Column({ nullable: true })\n description?: string\n\n @Column({ nullable: true, comment: '사업자등록번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '사업자등록번호' })\n businessRegistrationNumber?: string\n\n @Column({ nullable: true, comment: '종사업장 식별 코드' })\n @Field({ nullable: true, description: '종사업장 식별 코드' })\n branchIdentification?: string\n\n @Column({ nullable: true, comment: '사업자명' })\n @Field({ nullable: true, description: '사업자명' })\n businessName?: string\n\n @Column({ nullable: true, comment: '대표자명' })\n @Field({ nullable: true, description: '대표자명' })\n representativeName?: string\n\n @Column({ nullable: true, comment: '주소', transformer: encryptTransformer })\n @Field({ nullable: true, description: '주소' })\n address?: string\n\n @Column({ nullable: true, comment: '업태' })\n @Field({ nullable: true, description: '업태' })\n businessType?: string\n\n @Column({ nullable: true, comment: '업종' })\n @Field({ nullable: true, description: '업종' })\n industryType?: string\n\n @Column({ nullable: true, comment: '담당 부서' })\n @Field({ nullable: true, description: '담당 부서' })\n department?: string\n\n @Column({ nullable: true, comment: '담당자명', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자명' })\n contactName?: string\n\n @Column({ nullable: true, comment: '담당자 전화번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 전화번호' })\n contactPhone?: string\n\n @Column({ nullable: true, comment: '담당자 이메일', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 이메일' })\n contactEmail?: string\n\n @Column({ nullable: true, comment: '담당자 핸드폰 번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 핸드폰 번호' })\n contactCellPhone?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n attributes?: any\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((taxInvoiceCompany: TaxInvoiceCompany) => taxInvoiceCompany.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((taxInvoiceCompany: TaxInvoiceCompany) => taxInvoiceCompany.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TaxInvoiceItem } from './tax-invoice-item';
|
|
2
|
+
import { TaxInvoiceItemQuery } from './tax-invoice-item-query';
|
|
3
|
+
import { TaxInvoiceItemMutation } from './tax-invoice-item-mutation';
|
|
4
|
+
export declare const entities: (typeof TaxInvoiceItem)[];
|
|
5
|
+
export declare const resolvers: (typeof TaxInvoiceItemQuery | typeof TaxInvoiceItemMutation)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TaxInvoiceItem } from './tax-invoice-item';
|
|
2
|
+
import { NewTaxInvoiceItem, TaxInvoiceItemPatch } from './tax-invoice-item-type';
|
|
3
|
+
export declare class TaxInvoiceItemMutation {
|
|
4
|
+
createTaxInvoiceItem(taxInvoiceItem: NewTaxInvoiceItem, context: ResolverContext): Promise<TaxInvoiceItem>;
|
|
5
|
+
updateTaxInvoiceItem(id: string, patch: TaxInvoiceItemPatch, context: ResolverContext): Promise<TaxInvoiceItem>;
|
|
6
|
+
updateMultipleTaxInvoiceItem(patches: TaxInvoiceItemPatch[], context: ResolverContext): Promise<TaxInvoiceItem[]>;
|
|
7
|
+
deleteTaxInvoiceItem(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteTaxInvoiceItems(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importTaxInvoiceItems(taxInvoiceItems: TaxInvoiceItemPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -65,6 +65,7 @@ let TaxInvoiceItemMutation = class TaxInvoiceItemMutation {
|
|
|
65
65
|
return true;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
exports.TaxInvoiceItemMutation = TaxInvoiceItemMutation;
|
|
68
69
|
tslib_1.__decorate([
|
|
69
70
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
70
71
|
(0, type_graphql_1.Mutation)(returns => tax_invoice_item_1.TaxInvoiceItem, { description: 'To create new TaxInvoiceItem' }),
|
|
@@ -120,8 +121,7 @@ tslib_1.__decorate([
|
|
|
120
121
|
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
121
122
|
tslib_1.__metadata("design:returntype", Promise)
|
|
122
123
|
], TaxInvoiceItemMutation.prototype, "importTaxInvoiceItems", null);
|
|
123
|
-
TaxInvoiceItemMutation = tslib_1.__decorate([
|
|
124
|
+
exports.TaxInvoiceItemMutation = TaxInvoiceItemMutation = tslib_1.__decorate([
|
|
124
125
|
(0, type_graphql_1.Resolver)(tax_invoice_item_1.TaxInvoiceItem)
|
|
125
126
|
], TaxInvoiceItemMutation);
|
|
126
|
-
exports.TaxInvoiceItemMutation = TaxInvoiceItemMutation;
|
|
127
127
|
//# sourceMappingURL=tax-invoice-item-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-item-mutation.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,yDAAmD;AACnD,mEAAgF;AAGzE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAG3B,AAAN,KAAK,CAAC,oBAAoB,CAAwB,cAAiC,EAAS,OAAwB;QAClH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,iCAAc,CAAC,CAAC,IAAI,iCACrD,cAAc,KACjB,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC;IAIK,AAAN,KAAK,CAAC,oBAAoB,CAAY,EAAU,EAAgB,KAA0B,EAAS,OAAwB;QACzH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,iCAAc,CAAC,CAAA;QACnD,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,IAAI,+CAC/B,cAAc,GACd,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC;IAIK,AAAN,KAAK,CAAC,4BAA4B,CACe,OAA8B,EACtE,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,kBAAkB,GAAG,EAAE,CAAC,aAAa,CAAC,iCAAc,CAAC,CAAA;QAE3D,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"tax-invoice-item-mutation.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,yDAAmD;AACnD,mEAAgF;AAGzE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAG3B,AAAN,KAAK,CAAC,oBAAoB,CAAwB,cAAiC,EAAS,OAAwB;QAClH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,iCAAc,CAAC,CAAC,IA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,EAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,2CAAmB,CAAC,CAAC,CAAA;IACrD,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;mEAWP;iCAvHU,sBAAsB;IADlC,IAAA,uBAAQ,EAAC,iCAAc,CAAC;GACZ,sBAAsB,CAwHlC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { TaxInvoiceItem } from './tax-invoice-item'\nimport { NewTaxInvoiceItem, TaxInvoiceItemPatch } from './tax-invoice-item-type'\n\n@Resolver(TaxInvoiceItem)\nexport class TaxInvoiceItemMutation {\n @Directive('@transaction')\n @Mutation(returns => TaxInvoiceItem, { description: 'To create new TaxInvoiceItem' })\n async createTaxInvoiceItem(@Arg('taxInvoiceItem') taxInvoiceItem: NewTaxInvoiceItem, @Ctx() context: ResolverContext): Promise<TaxInvoiceItem> {\n const { domain, user, tx } = context.state\n\n const result = await tx.getRepository(TaxInvoiceItem).save({\n ...taxInvoiceItem,\n domain,\n creator: user,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => TaxInvoiceItem, { description: 'To modify TaxInvoiceItem information' })\n async updateTaxInvoiceItem(@Arg('id') id: string, @Arg('patch') patch: TaxInvoiceItemPatch, @Ctx() context: ResolverContext): Promise<TaxInvoiceItem> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(TaxInvoiceItem)\n const taxInvoiceItem = await repository.findOne({\n where: { domain: { id: domain.id }, id }\n })\n\n const result = await repository.save({\n ...taxInvoiceItem,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [TaxInvoiceItem], { description: \"To modify multiple TaxInvoiceItems' information\" })\n async updateMultipleTaxInvoiceItem(\n @Arg('patches', type => [TaxInvoiceItemPatch]) patches: TaxInvoiceItemPatch[],\n @Ctx() context: ResolverContext\n ): Promise<TaxInvoiceItem[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const taxInvoiceItemRepo = tx.getRepository(TaxInvoiceItem)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await taxInvoiceItemRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const taxInvoiceItem = await taxInvoiceItemRepo.findOneBy({ id: updateRecord.id })\n\n const result = await taxInvoiceItemRepo.save({\n ...taxInvoiceItem,\n ...updateRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete TaxInvoiceItem' })\n async deleteTaxInvoiceItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(TaxInvoiceItem).delete({ domain: { id: domain.id }, id })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple TaxInvoiceItems' })\n async deleteTaxInvoiceItems(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(TaxInvoiceItem).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To import multiple TaxInvoiceItems' })\n async importTaxInvoiceItems(\n @Arg('taxInvoiceItems', type => [TaxInvoiceItemPatch]) taxInvoiceItems: TaxInvoiceItemPatch[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await Promise.all(\n taxInvoiceItems.map(async (taxInvoiceItem: TaxInvoiceItemPatch) => {\n const createdTaxInvoiceItem: TaxInvoiceItem = await tx.getRepository(TaxInvoiceItem).save({ domain, ...taxInvoiceItem })\n })\n )\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { TaxInvoiceItem } from './tax-invoice-item';
|
|
4
|
+
import { TaxInvoiceItemList } from './tax-invoice-item-type';
|
|
5
|
+
export declare class TaxInvoiceItemQuery {
|
|
6
|
+
taxInvoiceItem(id: string, context: ResolverContext): Promise<TaxInvoiceItem>;
|
|
7
|
+
taxInvoiceItems(params: ListParam, context: ResolverContext): Promise<TaxInvoiceItemList>;
|
|
8
|
+
thumbnail(taxInvoiceItem: TaxInvoiceItem): Promise<string | undefined>;
|
|
9
|
+
domain(taxInvoiceItem: TaxInvoiceItem): Promise<Domain>;
|
|
10
|
+
creator(taxInvoiceItem: TaxInvoiceItem): Promise<User>;
|
|
11
|
+
}
|
|
@@ -43,6 +43,7 @@ let TaxInvoiceItemQuery = class TaxInvoiceItemQuery {
|
|
|
43
43
|
return taxInvoiceItem.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: taxInvoiceItem.creatorId }));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.TaxInvoiceItemQuery = TaxInvoiceItemQuery;
|
|
46
47
|
tslib_1.__decorate([
|
|
47
48
|
(0, type_graphql_1.Query)(returns => tax_invoice_item_1.TaxInvoiceItem, { nullable: true, description: 'To fetch a TaxInvoiceItem' }),
|
|
48
49
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
@@ -53,7 +54,7 @@ tslib_1.__decorate([
|
|
|
53
54
|
], TaxInvoiceItemQuery.prototype, "taxInvoiceItem", null);
|
|
54
55
|
tslib_1.__decorate([
|
|
55
56
|
(0, type_graphql_1.Query)(returns => tax_invoice_item_type_1.TaxInvoiceItemList, { description: 'To fetch multiple TaxInvoiceItems' }),
|
|
56
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
57
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)(type => shell_1.ListParam)),
|
|
57
58
|
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
58
59
|
tslib_1.__metadata("design:type", Function),
|
|
59
60
|
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
@@ -80,8 +81,7 @@ tslib_1.__decorate([
|
|
|
80
81
|
tslib_1.__metadata("design:paramtypes", [tax_invoice_item_1.TaxInvoiceItem]),
|
|
81
82
|
tslib_1.__metadata("design:returntype", Promise)
|
|
82
83
|
], TaxInvoiceItemQuery.prototype, "creator", null);
|
|
83
|
-
TaxInvoiceItemQuery = tslib_1.__decorate([
|
|
84
|
+
exports.TaxInvoiceItemQuery = TaxInvoiceItemQuery = tslib_1.__decorate([
|
|
84
85
|
(0, type_graphql_1.Resolver)(tax_invoice_item_1.TaxInvoiceItem)
|
|
85
86
|
], TaxInvoiceItemQuery);
|
|
86
|
-
exports.TaxInvoiceItemQuery = TaxInvoiceItemQuery;
|
|
87
87
|
//# sourceMappingURL=tax-invoice-item-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-item-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAAuG;AACvG,yDAAgD;AAChD,yDAAmD;AACnD,mEAA4D;AAGrD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAExB,AAAN,KAAK,CAAC,cAAc,CAAY,EAAU,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,iCAAc,CAAC,CAAC,OAAO,CAAC;YACjD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"tax-invoice-item-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAAuG;AACvG,yDAAgD;AAChD,yDAAmD;AACnD,mEAA4D;AAGrD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAExB,AAAN,KAAK,CAAC,cAAc,CAAY,EAAU,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,iCAAc,CAAC,CAAC,OAAO,CAAC;YACjD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CACM,MAAiB,EACnC,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,iCAAc,CAAC;YAC/C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAS,cAA8B;QACpD,MAAM,UAAU,GAAe,MAAM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AAS;;0DAe3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAiB,iCAAc;;oDAUrD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAiB,iCAAc;;iDAElD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAiB,iCAAc;;kDAEnD;8BAlDU,mBAAmB;IAD/B,IAAA,uBAAQ,EAAC,iCAAc,CAAC;GACZ,mBAAmB,CAmD/B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { TaxInvoiceItem } from './tax-invoice-item'\nimport { TaxInvoiceItemList } from './tax-invoice-item-type'\n\n@Resolver(TaxInvoiceItem)\nexport class TaxInvoiceItemQuery {\n @Query(returns => TaxInvoiceItem!, { nullable: true, description: 'To fetch a TaxInvoiceItem' })\n async taxInvoiceItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<TaxInvoiceItem> {\n const { domain } = context.state\n\n return await getRepository(TaxInvoiceItem).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => TaxInvoiceItemList, { description: 'To fetch multiple TaxInvoiceItems' })\n async taxInvoiceItems(\n @Args(type => ListParam) params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<TaxInvoiceItemList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(TaxInvoiceItem),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => String)\n async thumbnail(@Root() taxInvoiceItem: TaxInvoiceItem): Promise<string | undefined> {\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: {\n domain: { id: taxInvoiceItem.domainId },\n refType: TaxInvoiceItem.name,\n refBy: taxInvoiceItem.id\n }\n })\n\n return attachment?.fullpath\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() taxInvoiceItem: TaxInvoiceItem): Promise<Domain> {\n return taxInvoiceItem.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoiceItem.domainId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() taxInvoiceItem: TaxInvoiceItem): Promise<User> {\n return taxInvoiceItem.creatorId && (await getRepository(User).findOneBy({ id: taxInvoiceItem.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TaxInvoiceItem } from './tax-invoice-item';
|
|
2
|
+
export declare class NewTaxInvoiceItem {
|
|
3
|
+
sequence: number;
|
|
4
|
+
supplyDate: string;
|
|
5
|
+
itemName: string;
|
|
6
|
+
specification: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
supplyPrice: number;
|
|
10
|
+
taxPrice: number;
|
|
11
|
+
remark?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class TaxInvoiceItemPatch {
|
|
14
|
+
id?: string;
|
|
15
|
+
sequence: number;
|
|
16
|
+
supplyDate: string;
|
|
17
|
+
itemName: string;
|
|
18
|
+
specification: string;
|
|
19
|
+
quantity: number;
|
|
20
|
+
unitPrice: number;
|
|
21
|
+
supplyPrice: number;
|
|
22
|
+
taxPrice: number;
|
|
23
|
+
remark?: string;
|
|
24
|
+
cuFlag?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class TaxInvoiceItemList {
|
|
27
|
+
items: TaxInvoiceItem[];
|
|
28
|
+
total: number;
|
|
29
|
+
}
|
|
@@ -6,6 +6,7 @@ const type_graphql_1 = require("type-graphql");
|
|
|
6
6
|
const tax_invoice_item_1 = require("./tax-invoice-item");
|
|
7
7
|
let NewTaxInvoiceItem = class NewTaxInvoiceItem {
|
|
8
8
|
};
|
|
9
|
+
exports.NewTaxInvoiceItem = NewTaxInvoiceItem;
|
|
9
10
|
tslib_1.__decorate([
|
|
10
11
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '아이템 일련번호' }),
|
|
11
12
|
tslib_1.__metadata("design:type", Number)
|
|
@@ -42,12 +43,12 @@ tslib_1.__decorate([
|
|
|
42
43
|
(0, type_graphql_1.Field)({ nullable: true, description: '비고' }),
|
|
43
44
|
tslib_1.__metadata("design:type", String)
|
|
44
45
|
], NewTaxInvoiceItem.prototype, "remark", void 0);
|
|
45
|
-
NewTaxInvoiceItem = tslib_1.__decorate([
|
|
46
|
+
exports.NewTaxInvoiceItem = NewTaxInvoiceItem = tslib_1.__decorate([
|
|
46
47
|
(0, type_graphql_1.InputType)()
|
|
47
48
|
], NewTaxInvoiceItem);
|
|
48
|
-
exports.NewTaxInvoiceItem = NewTaxInvoiceItem;
|
|
49
49
|
let TaxInvoiceItemPatch = class TaxInvoiceItemPatch {
|
|
50
50
|
};
|
|
51
|
+
exports.TaxInvoiceItemPatch = TaxInvoiceItemPatch;
|
|
51
52
|
tslib_1.__decorate([
|
|
52
53
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
53
54
|
tslib_1.__metadata("design:type", String)
|
|
@@ -92,12 +93,12 @@ tslib_1.__decorate([
|
|
|
92
93
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
93
94
|
tslib_1.__metadata("design:type", String)
|
|
94
95
|
], TaxInvoiceItemPatch.prototype, "cuFlag", void 0);
|
|
95
|
-
TaxInvoiceItemPatch = tslib_1.__decorate([
|
|
96
|
+
exports.TaxInvoiceItemPatch = TaxInvoiceItemPatch = tslib_1.__decorate([
|
|
96
97
|
(0, type_graphql_1.InputType)()
|
|
97
98
|
], TaxInvoiceItemPatch);
|
|
98
|
-
exports.TaxInvoiceItemPatch = TaxInvoiceItemPatch;
|
|
99
99
|
let TaxInvoiceItemList = class TaxInvoiceItemList {
|
|
100
100
|
};
|
|
101
|
+
exports.TaxInvoiceItemList = TaxInvoiceItemList;
|
|
101
102
|
tslib_1.__decorate([
|
|
102
103
|
(0, type_graphql_1.Field)(type => [tax_invoice_item_1.TaxInvoiceItem]),
|
|
103
104
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -106,8 +107,7 @@ tslib_1.__decorate([
|
|
|
106
107
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
107
108
|
tslib_1.__metadata("design:type", Number)
|
|
108
109
|
], TaxInvoiceItemList.prototype, "total", void 0);
|
|
109
|
-
TaxInvoiceItemList = tslib_1.__decorate([
|
|
110
|
+
exports.TaxInvoiceItemList = TaxInvoiceItemList = tslib_1.__decorate([
|
|
110
111
|
(0, type_graphql_1.ObjectType)()
|
|
111
112
|
], TaxInvoiceItemList);
|
|
112
|
-
exports.TaxInvoiceItemList = TaxInvoiceItemList;
|
|
113
113
|
//# sourceMappingURL=tax-invoice-item-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-item-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,yDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA2B7B,CAAA;
|
|
1
|
+
{"version":3,"file":"tax-invoice-item-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,yDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA2B7B,CAAA;AA3BY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ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X;8BAhCJ,mBAAmB;IAD/B,IAAA,wBAAS,GAAE;GACC,mBAAmB,CAiC/B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iCAAc,CAAC,CAAC;;iDACT;AAGvB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;iDACN;6BALF,kBAAkB;IAD9B,IAAA,yBAAU,GAAE;GACA,kBAAkB,CAM9B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { TaxInvoiceItem } from './tax-invoice-item'\n\n@InputType()\nexport class NewTaxInvoiceItem {\n @Field(type => Int, { nullable: false, description: '아이템 일련번호' })\n sequence: number\n\n @Field({ nullable: false, description: '공급년월일(YYYY-MM-DD)' })\n supplyDate: string\n\n @Field({ nullable: false, description: '품목명' })\n itemName: string\n\n @Field({ nullable: false, description: '규격' })\n specification: string\n\n @Field(type => Int, { nullable: false, description: '수량(소수점 2자리까지 허용)' })\n quantity: number\n\n @Field(type => Int, { nullable: false, description: '단가(소수점 2자리까지 허용)' })\n unitPrice: number\n\n @Field(type => Int, { nullable: false, description: '공급가액' })\n supplyPrice: number\n\n @Field(type => Int, { nullable: false, description: '세액' })\n taxPrice: number\n\n @Field({ nullable: true, description: '비고' })\n remark?: string\n}\n\n@InputType()\nexport class TaxInvoiceItemPatch {\n @Field(type => ID, { nullable: false })\n id?: string\n\n @Field(type => Int, { nullable: false, description: '아이템 일련번호' })\n sequence: number\n\n @Field({ nullable: false, description: '공급년월일(YYYY-MM-DD)' })\n supplyDate: string\n\n @Field({ nullable: false, description: '품목명' })\n itemName: string\n\n @Field({ nullable: false, description: '규격' })\n specification: string\n\n @Field(type => Int, { nullable: false, description: '수량(소수점 2자리까지 허용)' })\n quantity: number\n\n @Field(type => Int, { nullable: false, description: '단가(소수점 2자리까지 허용)' })\n unitPrice: number\n\n @Field(type => Int, { nullable: false, description: '공급가액' })\n supplyPrice: number\n\n @Field(type => Int, { nullable: false, description: '세액' })\n taxPrice: number\n\n @Field({ nullable: true, description: '비고' })\n remark?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceItemList {\n @Field(type => [TaxInvoiceItem])\n items: TaxInvoiceItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { TaxInvoice } from '../tax-invoice/tax-invoice';
|
|
4
|
+
export declare class TaxInvoiceItem {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
domain?: Domain;
|
|
7
|
+
domainId?: string;
|
|
8
|
+
taxInvoice: TaxInvoice;
|
|
9
|
+
taxInvoiceId: string;
|
|
10
|
+
sequence?: number;
|
|
11
|
+
supplyDate: Date;
|
|
12
|
+
itemName: string;
|
|
13
|
+
specification: string;
|
|
14
|
+
quantity: number;
|
|
15
|
+
unitPrice: number;
|
|
16
|
+
supplyPrice: number;
|
|
17
|
+
taxPrice: number;
|
|
18
|
+
remark?: string;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
deletedAt?: Date;
|
|
21
|
+
creator?: User;
|
|
22
|
+
creatorId?: string;
|
|
23
|
+
}
|
|
@@ -9,6 +9,7 @@ const auth_base_1 = require("@things-factory/auth-base");
|
|
|
9
9
|
const tax_invoice_1 = require("../tax-invoice/tax-invoice");
|
|
10
10
|
let TaxInvoiceItem = class TaxInvoiceItem {
|
|
11
11
|
};
|
|
12
|
+
exports.TaxInvoiceItem = TaxInvoiceItem;
|
|
12
13
|
tslib_1.__decorate([
|
|
13
14
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
14
15
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -16,7 +17,7 @@ tslib_1.__decorate([
|
|
|
16
17
|
], TaxInvoiceItem.prototype, "id", void 0);
|
|
17
18
|
tslib_1.__decorate([
|
|
18
19
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
19
|
-
(0, type_graphql_1.Field)(
|
|
20
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
20
21
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
21
22
|
], TaxInvoiceItem.prototype, "domain", void 0);
|
|
22
23
|
tslib_1.__decorate([
|
|
@@ -38,8 +39,8 @@ tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__metadata("design:type", Number)
|
|
39
40
|
], TaxInvoiceItem.prototype, "sequence", void 0);
|
|
40
41
|
tslib_1.__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ nullable:
|
|
42
|
-
(0, type_graphql_1.Field)({ nullable:
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '공급년월일(YYYY-MM-DD)' }),
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true, description: '공급년월일(YYYY-MM-DD)' }),
|
|
43
44
|
tslib_1.__metadata("design:type", Date)
|
|
44
45
|
], TaxInvoiceItem.prototype, "supplyDate", void 0);
|
|
45
46
|
tslib_1.__decorate([
|
|
@@ -53,12 +54,12 @@ tslib_1.__decorate([
|
|
|
53
54
|
tslib_1.__metadata("design:type", String)
|
|
54
55
|
], TaxInvoiceItem.prototype, "specification", void 0);
|
|
55
56
|
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.Column)('float', {
|
|
57
|
+
(0, typeorm_1.Column)('float', { nullable: false, comment: '수량 (소수점 2자리까지 허용)', transformer: shell_1.roundTransformer }),
|
|
57
58
|
(0, type_graphql_1.Field)({ nullable: false, description: '수량 (소수점 2자리까지 허용)' }),
|
|
58
59
|
tslib_1.__metadata("design:type", Number)
|
|
59
60
|
], TaxInvoiceItem.prototype, "quantity", void 0);
|
|
60
61
|
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.Column)('float', {
|
|
62
|
+
(0, typeorm_1.Column)('float', { nullable: false, comment: '단가 (소수점 2자리까지 허용)', transformer: shell_1.roundTransformer }),
|
|
62
63
|
(0, type_graphql_1.Field)({ nullable: false, description: '단가 (소수점 2자리까지 허용)' }),
|
|
63
64
|
tslib_1.__metadata("design:type", Number)
|
|
64
65
|
], TaxInvoiceItem.prototype, "unitPrice", void 0);
|
|
@@ -96,11 +97,10 @@ tslib_1.__decorate([
|
|
|
96
97
|
(0, typeorm_1.RelationId)((taxInvoiceItem) => taxInvoiceItem.creator),
|
|
97
98
|
tslib_1.__metadata("design:type", String)
|
|
98
99
|
], TaxInvoiceItem.prototype, "creatorId", void 0);
|
|
99
|
-
TaxInvoiceItem = tslib_1.__decorate([
|
|
100
|
+
exports.TaxInvoiceItem = TaxInvoiceItem = tslib_1.__decorate([
|
|
100
101
|
(0, typeorm_1.Entity)(),
|
|
101
102
|
(0, typeorm_1.Index)('ix_tax_invoice_item_0', (taxInvoiceItem) => [taxInvoiceItem.domain, taxInvoiceItem.id, taxInvoiceItem.deletedAt], { unique: true }),
|
|
102
103
|
(0, typeorm_1.Index)('ix_tax_invoice_item_1', (taxInvoiceItem) => [taxInvoiceItem.taxInvoice]),
|
|
103
104
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for TaxInvoiceItem' })
|
|
104
105
|
], TaxInvoiceItem);
|
|
105
|
-
exports.TaxInvoiceItem = TaxInvoiceItem;
|
|
106
106
|
//# sourceMappingURL=tax-invoice-item.js.map
|