@things-factory/tax-invoice 6.2.84

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/assets/images/hatiolab-logo.png +0 -0
  3. package/client/bootstrap.ts +0 -0
  4. package/client/index.ts +0 -0
  5. package/client/pages/main.ts +25 -0
  6. package/client/pages/tax-audit-result/tax-audit-result-importer.ts +97 -0
  7. package/client/pages/tax-audit-result/tax-audit-result-list-page.ts +355 -0
  8. package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +424 -0
  9. package/client/pages/tax-invoice/tax-invoice-list-page.ts +517 -0
  10. package/client/pages/tax-invoice-api/tax-invoice-api-page.ts +428 -0
  11. package/client/pages/tax-invoice-company/tax-invoice-company-importer.ts +175 -0
  12. package/client/pages/tax-invoice-company/tax-invoice-company-list-page.ts +496 -0
  13. package/client/route.ts +23 -0
  14. package/client/tsconfig.json +11 -0
  15. package/dist-client/bootstrap.d.ts +0 -0
  16. package/dist-client/bootstrap.js +2 -0
  17. package/dist-client/bootstrap.js.map +1 -0
  18. package/dist-client/index.d.ts +0 -0
  19. package/dist-client/index.js +2 -0
  20. package/dist-client/index.js.map +1 -0
  21. package/dist-client/pages/main.d.ts +1 -0
  22. package/dist-client/pages/main.js +27 -0
  23. package/dist-client/pages/main.js.map +1 -0
  24. package/dist-client/pages/tax-audit-result/tax-audit-result-importer.d.ts +22 -0
  25. package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js +100 -0
  26. package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js.map +1 -0
  27. package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.d.ts +62 -0
  28. package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js +331 -0
  29. package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js.map +1 -0
  30. package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.d.ts +14 -0
  31. package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +430 -0
  32. package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -0
  33. package/dist-client/pages/tax-invoice/tax-invoice-list-page.d.ts +70 -0
  34. package/dist-client/pages/tax-invoice/tax-invoice-list-page.js +500 -0
  35. package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -0
  36. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.d.ts +36 -0
  37. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +419 -0
  38. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -0
  39. package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.d.ts +31 -0
  40. package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js +182 -0
  41. package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js.map +1 -0
  42. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.d.ts +57 -0
  43. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js +477 -0
  44. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js.map +1 -0
  45. package/dist-client/route.d.ts +1 -0
  46. package/dist-client/route.js +20 -0
  47. package/dist-client/route.js.map +1 -0
  48. package/dist-client/tsconfig.tsbuildinfo +1 -0
  49. package/dist-server/index.js +6 -0
  50. package/dist-server/index.js.map +1 -0
  51. package/dist-server/routes.js +25 -0
  52. package/dist-server/routes.js.map +1 -0
  53. package/dist-server/service/index.js +37 -0
  54. package/dist-server/service/index.js.map +1 -0
  55. package/dist-server/service/tax-audit-result/event-subscriber.js +21 -0
  56. package/dist-server/service/tax-audit-result/event-subscriber.js.map +1 -0
  57. package/dist-server/service/tax-audit-result/index.js +12 -0
  58. package/dist-server/service/tax-audit-result/index.js.map +1 -0
  59. package/dist-server/service/tax-audit-result/tax-audit-result-history.js +123 -0
  60. package/dist-server/service/tax-audit-result/tax-audit-result-history.js.map +1 -0
  61. package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js +168 -0
  62. package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js.map +1 -0
  63. package/dist-server/service/tax-audit-result/tax-audit-result-query.js +97 -0
  64. package/dist-server/service/tax-audit-result/tax-audit-result-query.js.map +1 -0
  65. package/dist-server/service/tax-audit-result/tax-audit-result-type.js +86 -0
  66. package/dist-server/service/tax-audit-result/tax-audit-result-type.js.map +1 -0
  67. package/dist-server/service/tax-audit-result/tax-audit-result.js +110 -0
  68. package/dist-server/service/tax-audit-result/tax-audit-result.js.map +1 -0
  69. package/dist-server/service/tax-invoice/index.js +9 -0
  70. package/dist-server/service/tax-invoice/index.js.map +1 -0
  71. package/dist-server/service/tax-invoice/tax-invoice-mutation.js +127 -0
  72. package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -0
  73. package/dist-server/service/tax-invoice/tax-invoice-query.js +90 -0
  74. package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -0
  75. package/dist-server/service/tax-invoice/tax-invoice-type.js +553 -0
  76. package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -0
  77. package/dist-server/service/tax-invoice/tax-invoice.js +465 -0
  78. package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -0
  79. package/dist-server/service/tax-invoice-api/index.js +9 -0
  80. package/dist-server/service/tax-invoice-api/index.js.map +1 -0
  81. package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js +64 -0
  82. package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js.map +1 -0
  83. package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js +79 -0
  84. package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js.map +1 -0
  85. package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +103 -0
  86. package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -0
  87. package/dist-server/service/tax-invoice-api/tax-invoice-api.js +163 -0
  88. package/dist-server/service/tax-invoice-api/tax-invoice-api.js.map +1 -0
  89. package/dist-server/service/tax-invoice-company/index.js +9 -0
  90. package/dist-server/service/tax-invoice-company/index.js.map +1 -0
  91. package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js +80 -0
  92. package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js.map +1 -0
  93. package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js +89 -0
  94. package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js.map +1 -0
  95. package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js +100 -0
  96. package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js.map +1 -0
  97. package/dist-server/service/tax-invoice-company/tax-invoice-company.js +166 -0
  98. package/dist-server/service/tax-invoice-company/tax-invoice-company.js.map +1 -0
  99. package/dist-server/service/tax-invoice-item/index.js +9 -0
  100. package/dist-server/service/tax-invoice-item/index.js.map +1 -0
  101. package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js +127 -0
  102. package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js.map +1 -0
  103. package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js +87 -0
  104. package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js.map +1 -0
  105. package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js +121 -0
  106. package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js.map +1 -0
  107. package/dist-server/service/tax-invoice-item/tax-invoice-item.js +115 -0
  108. package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -0
  109. package/dist-server/tsconfig.tsbuildinfo +1 -0
  110. package/helps/tax-invoice/tax-audit-result.md +160 -0
  111. package/helps/tax-invoice/tax-invoice-api.md +160 -0
  112. package/helps/tax-invoice/tax-invoice-send.md +160 -0
  113. package/helps/tax-invoice/tax-invoice.md +160 -0
  114. package/package.json +37 -0
  115. package/server/index.ts +2 -0
  116. package/server/routes.ts +28 -0
  117. package/server/service/index.ts +36 -0
  118. package/server/service/tax-audit-result/event-subscriber.ts +17 -0
  119. package/server/service/tax-audit-result/index.ts +9 -0
  120. package/server/service/tax-audit-result/tax-audit-result-history.ts +110 -0
  121. package/server/service/tax-audit-result/tax-audit-result-mutation.ts +198 -0
  122. package/server/service/tax-audit-result/tax-audit-result-query.ts +62 -0
  123. package/server/service/tax-audit-result/tax-audit-result-type.ts +61 -0
  124. package/server/service/tax-audit-result/tax-audit-result.ts +95 -0
  125. package/server/service/tax-invoice/index.ts +6 -0
  126. package/server/service/tax-invoice/tax-invoice-mutation.ts +122 -0
  127. package/server/service/tax-invoice/tax-invoice-query.ts +54 -0
  128. package/server/service/tax-invoice/tax-invoice-type.ts +411 -0
  129. package/server/service/tax-invoice/tax-invoice.ts +389 -0
  130. package/server/service/tax-invoice-api/index.ts +6 -0
  131. package/server/service/tax-invoice-api/tax-invoice-api-mutation.ts +67 -0
  132. package/server/service/tax-invoice-api/tax-invoice-api-query.ts +48 -0
  133. package/server/service/tax-invoice-api/tax-invoice-api-type.ts +71 -0
  134. package/server/service/tax-invoice-api/tax-invoice-api.ts +137 -0
  135. package/server/service/tax-invoice-company/index.ts +6 -0
  136. package/server/service/tax-invoice-company/tax-invoice-company-mutation.ts +84 -0
  137. package/server/service/tax-invoice-company/tax-invoice-company-query.ts +53 -0
  138. package/server/service/tax-invoice-company/tax-invoice-company-type.ts +69 -0
  139. package/server/service/tax-invoice-company/tax-invoice-company.ts +142 -0
  140. package/server/service/tax-invoice-item/index.ts +6 -0
  141. package/server/service/tax-invoice-item/tax-invoice-item-mutation.ts +128 -0
  142. package/server/service/tax-invoice-item/tax-invoice-item-query.ts +57 -0
  143. package/server/service/tax-invoice-item/tax-invoice-item-type.ts +86 -0
  144. package/server/service/tax-invoice-item/tax-invoice-item.ts +85 -0
  145. package/server/tsconfig.json +10 -0
  146. package/things-factory.config.js +23 -0
  147. package/translations/en.json +1 -0
  148. package/translations/ja.json +1 -0
  149. package/translations/ko.json +71 -0
  150. package/translations/ms.json +1 -0
  151. package/translations/zh.json +1 -0
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxInvoiceItemList = exports.TaxInvoiceItemPatch = exports.NewTaxInvoiceItem = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const tax_invoice_item_1 = require("./tax-invoice-item");
7
+ let NewTaxInvoiceItem = class NewTaxInvoiceItem {
8
+ };
9
+ tslib_1.__decorate([
10
+ (0, type_graphql_1.Field)({ nullable: false, description: '세금계산서 번호' }),
11
+ tslib_1.__metadata("design:type", String)
12
+ ], NewTaxInvoiceItem.prototype, "taxInvoiceId", void 0);
13
+ tslib_1.__decorate([
14
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '아이템 일련번호' }),
15
+ tslib_1.__metadata("design:type", Number)
16
+ ], NewTaxInvoiceItem.prototype, "sequence", void 0);
17
+ tslib_1.__decorate([
18
+ (0, type_graphql_1.Field)({ nullable: false, description: '공급년월일(YYYYMMDD)' }),
19
+ tslib_1.__metadata("design:type", String)
20
+ ], NewTaxInvoiceItem.prototype, "supplyDate", void 0);
21
+ tslib_1.__decorate([
22
+ (0, type_graphql_1.Field)({ nullable: false, description: '품목명' }),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], NewTaxInvoiceItem.prototype, "itemName", void 0);
25
+ tslib_1.__decorate([
26
+ (0, type_graphql_1.Field)({ nullable: false, description: '규격' }),
27
+ tslib_1.__metadata("design:type", String)
28
+ ], NewTaxInvoiceItem.prototype, "specification", void 0);
29
+ tslib_1.__decorate([
30
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '수량(소수점 2자리까지 허용)' }),
31
+ tslib_1.__metadata("design:type", Number)
32
+ ], NewTaxInvoiceItem.prototype, "quantity", void 0);
33
+ tslib_1.__decorate([
34
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '단가(소수점 2자리까지 허용)' }),
35
+ tslib_1.__metadata("design:type", Number)
36
+ ], NewTaxInvoiceItem.prototype, "unitPrice", void 0);
37
+ tslib_1.__decorate([
38
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '공급가액' }),
39
+ tslib_1.__metadata("design:type", Number)
40
+ ], NewTaxInvoiceItem.prototype, "supplyPrice", void 0);
41
+ tslib_1.__decorate([
42
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '세액' }),
43
+ tslib_1.__metadata("design:type", Number)
44
+ ], NewTaxInvoiceItem.prototype, "taxPrice", void 0);
45
+ tslib_1.__decorate([
46
+ (0, type_graphql_1.Field)({ nullable: true, description: '비고' }),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], NewTaxInvoiceItem.prototype, "remark", void 0);
49
+ NewTaxInvoiceItem = tslib_1.__decorate([
50
+ (0, type_graphql_1.InputType)()
51
+ ], NewTaxInvoiceItem);
52
+ exports.NewTaxInvoiceItem = NewTaxInvoiceItem;
53
+ let TaxInvoiceItemPatch = class TaxInvoiceItemPatch {
54
+ };
55
+ tslib_1.__decorate([
56
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
57
+ tslib_1.__metadata("design:type", String)
58
+ ], TaxInvoiceItemPatch.prototype, "id", void 0);
59
+ tslib_1.__decorate([
60
+ (0, type_graphql_1.Field)({ nullable: false, description: '세금계산서 번호' }),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], TaxInvoiceItemPatch.prototype, "taxInvoiceId", void 0);
63
+ tslib_1.__decorate([
64
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '아이템 일련번호' }),
65
+ tslib_1.__metadata("design:type", Number)
66
+ ], TaxInvoiceItemPatch.prototype, "sequence", void 0);
67
+ tslib_1.__decorate([
68
+ (0, type_graphql_1.Field)({ nullable: false, description: '공급년월일(YYYYMMDD)' }),
69
+ tslib_1.__metadata("design:type", String)
70
+ ], TaxInvoiceItemPatch.prototype, "supplyDate", void 0);
71
+ tslib_1.__decorate([
72
+ (0, type_graphql_1.Field)({ nullable: false, description: '품목명' }),
73
+ tslib_1.__metadata("design:type", String)
74
+ ], TaxInvoiceItemPatch.prototype, "itemName", void 0);
75
+ tslib_1.__decorate([
76
+ (0, type_graphql_1.Field)({ nullable: false, description: '규격' }),
77
+ tslib_1.__metadata("design:type", String)
78
+ ], TaxInvoiceItemPatch.prototype, "specification", void 0);
79
+ tslib_1.__decorate([
80
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '수량(소수점 2자리까지 허용)' }),
81
+ tslib_1.__metadata("design:type", Number)
82
+ ], TaxInvoiceItemPatch.prototype, "quantity", void 0);
83
+ tslib_1.__decorate([
84
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '단가(소수점 2자리까지 허용)' }),
85
+ tslib_1.__metadata("design:type", Number)
86
+ ], TaxInvoiceItemPatch.prototype, "unitPrice", void 0);
87
+ tslib_1.__decorate([
88
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '공급가액' }),
89
+ tslib_1.__metadata("design:type", Number)
90
+ ], TaxInvoiceItemPatch.prototype, "supplyPrice", void 0);
91
+ tslib_1.__decorate([
92
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false, description: '세액' }),
93
+ tslib_1.__metadata("design:type", Number)
94
+ ], TaxInvoiceItemPatch.prototype, "taxPrice", void 0);
95
+ tslib_1.__decorate([
96
+ (0, type_graphql_1.Field)({ nullable: true, description: '비고' }),
97
+ tslib_1.__metadata("design:type", String)
98
+ ], TaxInvoiceItemPatch.prototype, "remark", void 0);
99
+ tslib_1.__decorate([
100
+ (0, type_graphql_1.Field)({ nullable: true }),
101
+ tslib_1.__metadata("design:type", String)
102
+ ], TaxInvoiceItemPatch.prototype, "cuFlag", void 0);
103
+ TaxInvoiceItemPatch = tslib_1.__decorate([
104
+ (0, type_graphql_1.InputType)()
105
+ ], TaxInvoiceItemPatch);
106
+ exports.TaxInvoiceItemPatch = TaxInvoiceItemPatch;
107
+ let TaxInvoiceItemList = class TaxInvoiceItemList {
108
+ };
109
+ tslib_1.__decorate([
110
+ (0, type_graphql_1.Field)(type => [tax_invoice_item_1.TaxInvoiceItem]),
111
+ tslib_1.__metadata("design:type", Array)
112
+ ], TaxInvoiceItemList.prototype, "items", void 0);
113
+ tslib_1.__decorate([
114
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
115
+ tslib_1.__metadata("design:type", Number)
116
+ ], TaxInvoiceItemList.prototype, "total", void 0);
117
+ TaxInvoiceItemList = tslib_1.__decorate([
118
+ (0, type_graphql_1.ObjectType)()
119
+ ], TaxInvoiceItemList);
120
+ exports.TaxInvoiceItemList = TaxInvoiceItemList;
121
+ //# sourceMappingURL=tax-invoice-item-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tax-invoice-item-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item-type.ts"],"names":[],"mappings":";;;;AAEA,+CAAoE;AAEpE,yDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA8B7B,CAAA;AA7BC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;;uDAChC;AAEpB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;;mDACjD;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;;qDACzC;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;;mDAC/B;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;wDACzB;AAErB;IAAC,IAAA,oBAAK,EAAC,IAAI,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AG,CAAC;;iDACN;AALF,kBAAkB;IAD9B,IAAA,yBAAU,GAAE;GACA,kBAAkB,CAM9B;AANY,gDAAkB","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\n\nimport { TaxInvoiceItem } from './tax-invoice-item'\n\n@InputType()\nexport class NewTaxInvoiceItem {\n @Field({ nullable: false, description: '세금계산서 번호' })\n taxInvoiceId: string\n\n @Field(type => Int, { nullable: false, description: '아이템 일련번호' })\n sequence: number\n\n @Field({ nullable: false, description: '공급년월일(YYYYMMDD)' })\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({ nullable: false, description: '세금계산서 번호' })\n taxInvoiceId: string\n\n @Field(type => Int, { nullable: false, description: '아이템 일련번호' })\n sequence: number\n\n @Field({ nullable: false, description: '공급년월일(YYYYMMDD)' })\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,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxInvoiceItem = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const type_graphql_1 = require("type-graphql");
7
+ const shell_1 = require("@things-factory/shell");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ const tax_invoice_1 = require("../tax-invoice/tax-invoice");
10
+ let TaxInvoiceItem = class TaxInvoiceItem {
11
+ constructor() {
12
+ this.version = 1;
13
+ }
14
+ };
15
+ tslib_1.__decorate([
16
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
17
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], TaxInvoiceItem.prototype, "id", void 0);
20
+ tslib_1.__decorate([
21
+ (0, typeorm_1.VersionColumn)(),
22
+ (0, type_graphql_1.Field)({ nullable: true }),
23
+ tslib_1.__metadata("design:type", Number)
24
+ ], TaxInvoiceItem.prototype, "version", void 0);
25
+ tslib_1.__decorate([
26
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ tslib_1.__metadata("design:type", shell_1.Domain)
29
+ ], TaxInvoiceItem.prototype, "domain", void 0);
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.RelationId)((taxInvoiceItem) => taxInvoiceItem.domain),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], TaxInvoiceItem.prototype, "domainId", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.ManyToOne)(type => tax_invoice_1.TaxInvoice),
36
+ (0, type_graphql_1.Field)({ nullable: false }),
37
+ tslib_1.__metadata("design:type", tax_invoice_1.TaxInvoice)
38
+ ], TaxInvoiceItem.prototype, "taxInvoice", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.RelationId)((taxInvoiceItem) => taxInvoiceItem.taxInvoice),
41
+ tslib_1.__metadata("design:type", String)
42
+ ], TaxInvoiceItem.prototype, "taxInvoiceId", void 0);
43
+ tslib_1.__decorate([
44
+ (0, typeorm_1.Column)({ nullable: true, comment: '아이템 일련번호' }),
45
+ (0, type_graphql_1.Field)({ nullable: true, description: '아이템 일련번호' }),
46
+ tslib_1.__metadata("design:type", Number)
47
+ ], TaxInvoiceItem.prototype, "sequence", void 0);
48
+ tslib_1.__decorate([
49
+ (0, typeorm_1.Column)({ nullable: false, comment: '공급년월일(YYYYMMDD)' }),
50
+ (0, type_graphql_1.Field)({ nullable: false, description: '공급년월일(YYYYMMDD)' }),
51
+ tslib_1.__metadata("design:type", String)
52
+ ], TaxInvoiceItem.prototype, "supplyDate", void 0);
53
+ tslib_1.__decorate([
54
+ (0, typeorm_1.Column)({ nullable: false, comment: '품목명' }),
55
+ (0, type_graphql_1.Field)({ nullable: false, description: '품목명' }),
56
+ tslib_1.__metadata("design:type", String)
57
+ ], TaxInvoiceItem.prototype, "itemName", void 0);
58
+ tslib_1.__decorate([
59
+ (0, typeorm_1.Column)({ nullable: false, comment: '규격' }),
60
+ (0, type_graphql_1.Field)({ nullable: false, description: '규격' }),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], TaxInvoiceItem.prototype, "specification", void 0);
63
+ tslib_1.__decorate([
64
+ (0, typeorm_1.Column)('float', { precision: 10, scale: 2, nullable: false, comment: '수량 (소수점 2자리까지 허용)' }),
65
+ (0, type_graphql_1.Field)({ nullable: false, description: '수량 (소수점 2자리까지 허용)' }),
66
+ tslib_1.__metadata("design:type", Number)
67
+ ], TaxInvoiceItem.prototype, "quantity", void 0);
68
+ tslib_1.__decorate([
69
+ (0, typeorm_1.Column)('float', { precision: 10, scale: 2, nullable: false, comment: '단가 (소수점 2자리까지 허용)' }),
70
+ (0, type_graphql_1.Field)({ nullable: false, description: '단가 (소수점 2자리까지 허용)' }),
71
+ tslib_1.__metadata("design:type", Number)
72
+ ], TaxInvoiceItem.prototype, "unitPrice", void 0);
73
+ tslib_1.__decorate([
74
+ (0, typeorm_1.Column)({ nullable: false, comment: '공급 가액' }),
75
+ (0, type_graphql_1.Field)({ nullable: false, description: '공급 가액' }),
76
+ tslib_1.__metadata("design:type", Number)
77
+ ], TaxInvoiceItem.prototype, "supplyPrice", void 0);
78
+ tslib_1.__decorate([
79
+ (0, typeorm_1.Column)({ nullable: false, comment: '세액' }),
80
+ (0, type_graphql_1.Field)({ nullable: false, description: '세액' }),
81
+ tslib_1.__metadata("design:type", Number)
82
+ ], TaxInvoiceItem.prototype, "taxPrice", void 0);
83
+ tslib_1.__decorate([
84
+ (0, typeorm_1.Column)({ nullable: true, comment: '비고' }),
85
+ (0, type_graphql_1.Field)({ nullable: true, description: '비고' }),
86
+ tslib_1.__metadata("design:type", String)
87
+ ], TaxInvoiceItem.prototype, "remark", void 0);
88
+ tslib_1.__decorate([
89
+ (0, typeorm_1.CreateDateColumn)(),
90
+ (0, type_graphql_1.Field)({ nullable: true }),
91
+ tslib_1.__metadata("design:type", Date)
92
+ ], TaxInvoiceItem.prototype, "createdAt", void 0);
93
+ tslib_1.__decorate([
94
+ (0, typeorm_1.DeleteDateColumn)(),
95
+ (0, type_graphql_1.Field)({ nullable: true }),
96
+ tslib_1.__metadata("design:type", Date)
97
+ ], TaxInvoiceItem.prototype, "deletedAt", void 0);
98
+ tslib_1.__decorate([
99
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
100
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
101
+ tslib_1.__metadata("design:type", auth_base_1.User)
102
+ ], TaxInvoiceItem.prototype, "creator", void 0);
103
+ tslib_1.__decorate([
104
+ (0, typeorm_1.RelationId)((taxInvoiceItem) => taxInvoiceItem.creator),
105
+ tslib_1.__metadata("design:type", String)
106
+ ], TaxInvoiceItem.prototype, "creatorId", void 0);
107
+ TaxInvoiceItem = tslib_1.__decorate([
108
+ (0, typeorm_1.Entity)(),
109
+ (0, typeorm_1.Index)('ix_tax_invoice_item_0', (taxInvoiceItem) => [taxInvoiceItem.domain, taxInvoiceItem.id, taxInvoiceItem.deletedAt], { unique: true })
110
+ // @Index('ix_tax_invoice_item_1', (taxInvoiceItem: TaxInvoiceItem) => [taxInvoiceItem.taxInvoiceId])
111
+ ,
112
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for TaxInvoiceItem' })
113
+ ], TaxInvoiceItem);
114
+ exports.TaxInvoiceItem = TaxInvoiceItem;
115
+ //# sourceMappingURL=tax-invoice-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tax-invoice-item.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-item/tax-invoice-item.ts"],"names":[],"mappings":";;;;AAAA,qCAAmK;AACnK,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,4DAAuD;AAMhD,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAOL,YAAO,GAAY,CAAC,CAAA;IAkEtB,CAAC;CAAA,CAAA;AAxEC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACE;AAEpB;IAAC,IAAA,uBAAa,GAAE;IACf,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAEpB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8CAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC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,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;;iDACrD;AAxEP,cAAc;IAJ1B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,EAAE,cAAc,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3J,qGAAqG;;IACpG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,cAAc,CAyE1B;AAzEY,wCAAc","sourcesContent":["import { CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Entity, Index, Column, RelationId, ManyToOne, PrimaryGeneratedColumn, VersionColumn } from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { TaxInvoice } from '../tax-invoice/tax-invoice'\n\n@Entity()\n@Index('ix_tax_invoice_item_0', (taxInvoiceItem: TaxInvoiceItem) => [taxInvoiceItem.domain, taxInvoiceItem.id, taxInvoiceItem.deletedAt], { unique: true })\n// @Index('ix_tax_invoice_item_1', (taxInvoiceItem: TaxInvoiceItem) => [taxInvoiceItem.taxInvoiceId])\n@ObjectType({ description: 'Entity for TaxInvoiceItem' })\nexport class TaxInvoiceItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id!: string\n\n @VersionColumn()\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((taxInvoiceItem: TaxInvoiceItem) => taxInvoiceItem.domain)\n domainId?: string\n\n @ManyToOne(type => TaxInvoice)\n @Field({ nullable: false })\n taxInvoice!: TaxInvoice\n\n @RelationId((taxInvoiceItem: TaxInvoiceItem) => taxInvoiceItem.taxInvoice)\n taxInvoiceId!: string\n\n @Column({ nullable: true, comment: '아이템 일련번호' })\n @Field({ nullable: true, description: '아이템 일련번호' })\n sequence?: number\n\n @Column({ nullable: false, comment: '공급년월일(YYYYMMDD)' })\n @Field({ nullable: false, description: '공급년월일(YYYYMMDD)' })\n supplyDate!: string\n\n @Column({ nullable: false, comment: '품목명' })\n @Field({ nullable: false, description: '품목명' })\n itemName!: string\n\n @Column({ nullable: false, comment: '규격' })\n @Field({ nullable: false, description: '규격' })\n specification!: string\n\n @Column('float', { precision: 10, scale: 2, nullable: false, comment: '수량 (소수점 2자리까지 허용)' })\n @Field({ nullable: false, description: '수량 (소수점 2자리까지 허용)' })\n quantity!: number\n\n @Column('float', { precision: 10, scale: 2, nullable: false, comment: '단가 (소수점 2자리까지 허용)' })\n @Field({ nullable: false, description: '단가 (소수점 2자리까지 허용)' })\n unitPrice!: number\n\n @Column({ nullable: false, comment: '공급 가액' })\n @Field({ nullable: false, description: '공급 가액' })\n supplyPrice!: number\n\n @Column({ nullable: false, comment: '세액' })\n @Field({ nullable: false, description: '세액' })\n taxPrice!: number\n\n @Column({ nullable: true, comment: '비고' })\n @Field({ nullable: true, description: '비고' })\n remark?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: 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((taxInvoiceItem: TaxInvoiceItem) => taxInvoiceItem.creator)\n creatorId?: string\n}\n"]}