@things-factory/tax-invoice 6.2.86 → 6.2.88

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 (52) hide show
  1. package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +12 -6
  2. package/client/pages/tax-invoice/tax-invoice-list-page.ts +147 -176
  3. package/client/pages/tax-invoice-api/tax-invoice-api-page.ts +6 -5
  4. package/client/pages/tax-invoice-company/tax-invoice-company-importer.ts +2 -2
  5. package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +580 -0
  6. package/client/route.ts +4 -4
  7. package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +18 -9
  8. package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -1
  9. package/dist-client/pages/tax-invoice/tax-invoice-list-page.d.ts +63 -23
  10. package/dist-client/pages/tax-invoice/tax-invoice-list-page.js +149 -168
  11. package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -1
  12. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.d.ts +1 -1
  13. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +6 -5
  14. package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -1
  15. package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js +2 -2
  16. package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js.map +1 -1
  17. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.d.ts +100 -0
  18. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +510 -0
  19. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js.map +1 -0
  20. package/dist-client/route.d.ts +1 -1
  21. package/dist-client/route.js +3 -3
  22. package/dist-client/route.js.map +1 -1
  23. package/dist-client/tsconfig.tsbuildinfo +1 -1
  24. package/dist-server/service/tax-invoice/tax-invoice-mutation.js +132 -27
  25. package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -1
  26. package/dist-server/service/tax-invoice/tax-invoice-query.js +24 -1
  27. package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -1
  28. package/dist-server/service/tax-invoice/tax-invoice-type.js +22 -259
  29. package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -1
  30. package/dist-server/service/tax-invoice/tax-invoice.js +22 -16
  31. package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -1
  32. package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +5 -0
  33. package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -1
  34. package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js.map +1 -1
  35. package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js +4 -4
  36. package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js.map +1 -1
  37. package/dist-server/service/tax-invoice-item/tax-invoice-item.js +3 -3
  38. package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -1
  39. package/dist-server/service/unipost-api/tax-invoice-inquiry.js +90 -0
  40. package/dist-server/service/unipost-api/tax-invoice-inquiry.js.map +1 -0
  41. package/dist-server/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +5 -5
  43. package/server/service/tax-invoice/tax-invoice-mutation.ts +137 -36
  44. package/server/service/tax-invoice/tax-invoice-query.ts +21 -3
  45. package/server/service/tax-invoice/tax-invoice-type.ts +21 -199
  46. package/server/service/tax-invoice/tax-invoice.ts +38 -45
  47. package/server/service/tax-invoice-api/tax-invoice-api-type.ts +4 -0
  48. package/server/service/tax-invoice-item/tax-invoice-item-query.ts +1 -1
  49. package/server/service/tax-invoice-item/tax-invoice-item-type.ts +4 -7
  50. package/server/service/tax-invoice-item/tax-invoice-item.ts +3 -3
  51. package/server/service/unipost-api/tax-invoice-inquiry.ts +103 -0
  52. package/translations/ko.json +10 -1
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaxInvoiceList = exports.TaxInvoicePatch = exports.NewTaxInvoice = void 0;
3
+ exports.TaxInvoiceSummary = exports.TaxInvoiceList = exports.TaxInvoicePatch = exports.NewTaxInvoice = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const tax_invoice_1 = require("./tax-invoice");
7
+ const shell_1 = require("@things-factory/shell");
7
8
  let NewTaxInvoice = class NewTaxInvoice {
8
9
  };
9
10
  tslib_1.__decorate([
10
11
  (0, type_graphql_1.Field)({ nullable: true }),
11
12
  tslib_1.__metadata("design:type", String)
12
- ], NewTaxInvoice.prototype, "name", void 0);
13
+ ], NewTaxInvoice.prototype, "memo", void 0);
13
14
  tslib_1.__decorate([
14
15
  (0, type_graphql_1.Field)({ nullable: true }),
15
16
  tslib_1.__metadata("design:type", String)
@@ -18,6 +19,10 @@ tslib_1.__decorate([
18
19
  (0, type_graphql_1.Field)({ nullable: false }),
19
20
  tslib_1.__metadata("design:type", String)
20
21
  ], NewTaxInvoice.prototype, "category", void 0);
22
+ tslib_1.__decorate([
23
+ (0, type_graphql_1.Field)({ nullable: true }),
24
+ tslib_1.__metadata("design:type", String)
25
+ ], NewTaxInvoice.prototype, "issueNo", void 0);
21
26
  tslib_1.__decorate([
22
27
  (0, type_graphql_1.Field)({ nullable: true }),
23
28
  tslib_1.__metadata("design:type", String)
@@ -28,11 +33,11 @@ tslib_1.__decorate([
28
33
  ], NewTaxInvoice.prototype, "originalApprovalNo", void 0);
29
34
  tslib_1.__decorate([
30
35
  (0, type_graphql_1.Field)({ nullable: false }),
31
- tslib_1.__metadata("design:type", String)
36
+ tslib_1.__metadata("design:type", Date)
32
37
  ], NewTaxInvoice.prototype, "issueDate", void 0);
33
38
  tslib_1.__decorate([
34
39
  (0, type_graphql_1.Field)({ nullable: true }),
35
- tslib_1.__metadata("design:type", String)
40
+ tslib_1.__metadata("design:type", Date)
36
41
  ], NewTaxInvoice.prototype, "signatureDate", void 0);
37
42
  tslib_1.__decorate([
38
43
  (0, type_graphql_1.Field)({ nullable: false }),
@@ -59,7 +64,7 @@ tslib_1.__decorate([
59
64
  tslib_1.__metadata("design:type", String)
60
65
  ], NewTaxInvoice.prototype, "remark2", void 0);
61
66
  tslib_1.__decorate([
62
- (0, type_graphql_1.Field)({ nullable: false }),
67
+ (0, type_graphql_1.Field)({ nullable: true }),
63
68
  tslib_1.__metadata("design:type", String)
64
69
  ], NewTaxInvoice.prototype, "supplierBusinessRegistrationCategory", void 0);
65
70
  tslib_1.__decorate([
@@ -111,7 +116,7 @@ tslib_1.__decorate([
111
116
  tslib_1.__metadata("design:type", String)
112
117
  ], NewTaxInvoice.prototype, "supplierContactCellPhone", void 0);
113
118
  tslib_1.__decorate([
114
- (0, type_graphql_1.Field)({ nullable: false }),
119
+ (0, type_graphql_1.Field)({ nullable: true }),
115
120
  tslib_1.__metadata("design:type", String)
116
121
  ], NewTaxInvoice.prototype, "buyerBusinessRegistrationCategory", void 0);
117
122
  tslib_1.__decorate([
@@ -275,259 +280,7 @@ tslib_1.__decorate([
275
280
  tslib_1.__decorate([
276
281
  (0, type_graphql_1.Field)({ nullable: true }),
277
282
  tslib_1.__metadata("design:type", String)
278
- ], TaxInvoicePatch.prototype, "name", void 0);
279
- tslib_1.__decorate([
280
- (0, type_graphql_1.Field)({ nullable: true }),
281
- tslib_1.__metadata("design:type", String)
282
- ], TaxInvoicePatch.prototype, "apiRefId", void 0);
283
- tslib_1.__decorate([
284
- (0, type_graphql_1.Field)({ nullable: false }),
285
- tslib_1.__metadata("design:type", String)
286
- ], TaxInvoicePatch.prototype, "category", void 0);
287
- tslib_1.__decorate([
288
- (0, type_graphql_1.Field)({ nullable: true }),
289
- tslib_1.__metadata("design:type", String)
290
- ], TaxInvoicePatch.prototype, "approvalNo", void 0);
291
- tslib_1.__decorate([
292
- (0, type_graphql_1.Field)({ nullable: true }),
293
- tslib_1.__metadata("design:type", String)
294
- ], TaxInvoicePatch.prototype, "originalApprovalNo", void 0);
295
- tslib_1.__decorate([
296
- (0, type_graphql_1.Field)({ nullable: false }),
297
- tslib_1.__metadata("design:type", String)
298
- ], TaxInvoicePatch.prototype, "issueDate", void 0);
299
- tslib_1.__decorate([
300
- (0, type_graphql_1.Field)({ nullable: true }),
301
- tslib_1.__metadata("design:type", String)
302
- ], TaxInvoicePatch.prototype, "signatureDate", void 0);
303
- tslib_1.__decorate([
304
- (0, type_graphql_1.Field)({ nullable: false }),
305
- tslib_1.__metadata("design:type", String)
306
- ], TaxInvoicePatch.prototype, "invoiceType", void 0);
307
- tslib_1.__decorate([
308
- (0, type_graphql_1.Field)({ nullable: false }),
309
- tslib_1.__metadata("design:type", String)
310
- ], TaxInvoicePatch.prototype, "purpose", void 0);
311
- tslib_1.__decorate([
312
- (0, type_graphql_1.Field)({ nullable: true }),
313
- tslib_1.__metadata("design:type", String)
314
- ], TaxInvoicePatch.prototype, "revisedReason", void 0);
315
- tslib_1.__decorate([
316
- (0, type_graphql_1.Field)({ nullable: true }),
317
- tslib_1.__metadata("design:type", String)
318
- ], TaxInvoicePatch.prototype, "remark0", void 0);
319
- tslib_1.__decorate([
320
- (0, type_graphql_1.Field)({ nullable: true }),
321
- tslib_1.__metadata("design:type", String)
322
- ], TaxInvoicePatch.prototype, "remark1", void 0);
323
- tslib_1.__decorate([
324
- (0, type_graphql_1.Field)({ nullable: true }),
325
- tslib_1.__metadata("design:type", String)
326
- ], TaxInvoicePatch.prototype, "remark2", void 0);
327
- tslib_1.__decorate([
328
- (0, type_graphql_1.Field)({ nullable: false }),
329
- tslib_1.__metadata("design:type", String)
330
- ], TaxInvoicePatch.prototype, "supplierBusinessRegistrationCategory", void 0);
331
- tslib_1.__decorate([
332
- (0, type_graphql_1.Field)({ nullable: false }),
333
- tslib_1.__metadata("design:type", String)
334
- ], TaxInvoicePatch.prototype, "supplierBusinessRegistrationNumber", void 0);
335
- tslib_1.__decorate([
336
- (0, type_graphql_1.Field)({ nullable: true }),
337
- tslib_1.__metadata("design:type", String)
338
- ], TaxInvoicePatch.prototype, "supplierBranchIdentification", void 0);
339
- tslib_1.__decorate([
340
- (0, type_graphql_1.Field)({ nullable: false }),
341
- tslib_1.__metadata("design:type", String)
342
- ], TaxInvoicePatch.prototype, "supplierBusinessName", void 0);
343
- tslib_1.__decorate([
344
- (0, type_graphql_1.Field)({ nullable: false }),
345
- tslib_1.__metadata("design:type", String)
346
- ], TaxInvoicePatch.prototype, "supplierRepresentativeName", void 0);
347
- tslib_1.__decorate([
348
- (0, type_graphql_1.Field)({ nullable: true }),
349
- tslib_1.__metadata("design:type", String)
350
- ], TaxInvoicePatch.prototype, "supplierAddress", void 0);
351
- tslib_1.__decorate([
352
- (0, type_graphql_1.Field)({ nullable: true }),
353
- tslib_1.__metadata("design:type", String)
354
- ], TaxInvoicePatch.prototype, "supplierBusinessType", void 0);
355
- tslib_1.__decorate([
356
- (0, type_graphql_1.Field)({ nullable: true }),
357
- tslib_1.__metadata("design:type", String)
358
- ], TaxInvoicePatch.prototype, "supplierIndustryType", void 0);
359
- tslib_1.__decorate([
360
- (0, type_graphql_1.Field)({ nullable: true }),
361
- tslib_1.__metadata("design:type", String)
362
- ], TaxInvoicePatch.prototype, "supplierDepartment", void 0);
363
- tslib_1.__decorate([
364
- (0, type_graphql_1.Field)({ nullable: true }),
365
- tslib_1.__metadata("design:type", String)
366
- ], TaxInvoicePatch.prototype, "supplierContactName", void 0);
367
- tslib_1.__decorate([
368
- (0, type_graphql_1.Field)({ nullable: true }),
369
- tslib_1.__metadata("design:type", String)
370
- ], TaxInvoicePatch.prototype, "supplierContactPhone", void 0);
371
- tslib_1.__decorate([
372
- (0, type_graphql_1.Field)({ nullable: true }),
373
- tslib_1.__metadata("design:type", String)
374
- ], TaxInvoicePatch.prototype, "supplierContactEmail", void 0);
375
- tslib_1.__decorate([
376
- (0, type_graphql_1.Field)({ nullable: true }),
377
- tslib_1.__metadata("design:type", String)
378
- ], TaxInvoicePatch.prototype, "supplierContactCellPhone", void 0);
379
- tslib_1.__decorate([
380
- (0, type_graphql_1.Field)({ nullable: false }),
381
- tslib_1.__metadata("design:type", String)
382
- ], TaxInvoicePatch.prototype, "buyerBusinessRegistrationCategory", void 0);
383
- tslib_1.__decorate([
384
- (0, type_graphql_1.Field)({ nullable: false }),
385
- tslib_1.__metadata("design:type", String)
386
- ], TaxInvoicePatch.prototype, "buyerBusinessRegistrationNumber", void 0);
387
- tslib_1.__decorate([
388
- (0, type_graphql_1.Field)({ nullable: true }),
389
- tslib_1.__metadata("design:type", String)
390
- ], TaxInvoicePatch.prototype, "buyerBranchIdentification", void 0);
391
- tslib_1.__decorate([
392
- (0, type_graphql_1.Field)({ nullable: false }),
393
- tslib_1.__metadata("design:type", String)
394
- ], TaxInvoicePatch.prototype, "buyerBusinessName", void 0);
395
- tslib_1.__decorate([
396
- (0, type_graphql_1.Field)({ nullable: false }),
397
- tslib_1.__metadata("design:type", String)
398
- ], TaxInvoicePatch.prototype, "buyerRepresentativeName", void 0);
399
- tslib_1.__decorate([
400
- (0, type_graphql_1.Field)({ nullable: true }),
401
- tslib_1.__metadata("design:type", String)
402
- ], TaxInvoicePatch.prototype, "buyerAddress", void 0);
403
- tslib_1.__decorate([
404
- (0, type_graphql_1.Field)({ nullable: true }),
405
- tslib_1.__metadata("design:type", String)
406
- ], TaxInvoicePatch.prototype, "buyerBusinessType", void 0);
407
- tslib_1.__decorate([
408
- (0, type_graphql_1.Field)({ nullable: true }),
409
- tslib_1.__metadata("design:type", String)
410
- ], TaxInvoicePatch.prototype, "buyerIndustryType", void 0);
411
- tslib_1.__decorate([
412
- (0, type_graphql_1.Field)({ nullable: true }),
413
- tslib_1.__metadata("design:type", String)
414
- ], TaxInvoicePatch.prototype, "buyer1stDepartment", void 0);
415
- tslib_1.__decorate([
416
- (0, type_graphql_1.Field)({ nullable: true }),
417
- tslib_1.__metadata("design:type", String)
418
- ], TaxInvoicePatch.prototype, "buyer1stContactName", void 0);
419
- tslib_1.__decorate([
420
- (0, type_graphql_1.Field)({ nullable: true }),
421
- tslib_1.__metadata("design:type", String)
422
- ], TaxInvoicePatch.prototype, "buyer1stContactPhone", void 0);
423
- tslib_1.__decorate([
424
- (0, type_graphql_1.Field)({ nullable: true }),
425
- tslib_1.__metadata("design:type", String)
426
- ], TaxInvoicePatch.prototype, "buyer1stContactEmail", void 0);
427
- tslib_1.__decorate([
428
- (0, type_graphql_1.Field)({ nullable: true }),
429
- tslib_1.__metadata("design:type", String)
430
- ], TaxInvoicePatch.prototype, "buyer1stContactCellPhone", void 0);
431
- tslib_1.__decorate([
432
- (0, type_graphql_1.Field)({ nullable: true }),
433
- tslib_1.__metadata("design:type", String)
434
- ], TaxInvoicePatch.prototype, "buyer2ndDepartment", void 0);
435
- tslib_1.__decorate([
436
- (0, type_graphql_1.Field)({ nullable: true }),
437
- tslib_1.__metadata("design:type", String)
438
- ], TaxInvoicePatch.prototype, "buyer2ndContactName", void 0);
439
- tslib_1.__decorate([
440
- (0, type_graphql_1.Field)({ nullable: true }),
441
- tslib_1.__metadata("design:type", String)
442
- ], TaxInvoicePatch.prototype, "buyer2ndContactPhone", void 0);
443
- tslib_1.__decorate([
444
- (0, type_graphql_1.Field)({ nullable: true }),
445
- tslib_1.__metadata("design:type", String)
446
- ], TaxInvoicePatch.prototype, "buyer2ndContactEmail", void 0);
447
- tslib_1.__decorate([
448
- (0, type_graphql_1.Field)({ nullable: true }),
449
- tslib_1.__metadata("design:type", String)
450
- ], TaxInvoicePatch.prototype, "buyer2ndContactCellPhone", void 0);
451
- tslib_1.__decorate([
452
- (0, type_graphql_1.Field)({ nullable: true }),
453
- tslib_1.__metadata("design:type", String)
454
- ], TaxInvoicePatch.prototype, "agentBusinessRegistrationCategory", void 0);
455
- tslib_1.__decorate([
456
- (0, type_graphql_1.Field)({ nullable: true }),
457
- tslib_1.__metadata("design:type", String)
458
- ], TaxInvoicePatch.prototype, "agentBusinessRegistrationNumber", void 0);
459
- tslib_1.__decorate([
460
- (0, type_graphql_1.Field)({ nullable: true }),
461
- tslib_1.__metadata("design:type", String)
462
- ], TaxInvoicePatch.prototype, "agentBranchIdentification", void 0);
463
- tslib_1.__decorate([
464
- (0, type_graphql_1.Field)({ nullable: true }),
465
- tslib_1.__metadata("design:type", String)
466
- ], TaxInvoicePatch.prototype, "agentBusinessName", void 0);
467
- tslib_1.__decorate([
468
- (0, type_graphql_1.Field)({ nullable: true }),
469
- tslib_1.__metadata("design:type", String)
470
- ], TaxInvoicePatch.prototype, "agentRepresentativeName", void 0);
471
- tslib_1.__decorate([
472
- (0, type_graphql_1.Field)({ nullable: true }),
473
- tslib_1.__metadata("design:type", String)
474
- ], TaxInvoicePatch.prototype, "agentAddress", void 0);
475
- tslib_1.__decorate([
476
- (0, type_graphql_1.Field)({ nullable: true }),
477
- tslib_1.__metadata("design:type", String)
478
- ], TaxInvoicePatch.prototype, "agentBusinessType", void 0);
479
- tslib_1.__decorate([
480
- (0, type_graphql_1.Field)({ nullable: true }),
481
- tslib_1.__metadata("design:type", String)
482
- ], TaxInvoicePatch.prototype, "agentIndustryType", void 0);
483
- tslib_1.__decorate([
484
- (0, type_graphql_1.Field)({ nullable: true }),
485
- tslib_1.__metadata("design:type", String)
486
- ], TaxInvoicePatch.prototype, "agentDepartment", void 0);
487
- tslib_1.__decorate([
488
- (0, type_graphql_1.Field)({ nullable: true }),
489
- tslib_1.__metadata("design:type", String)
490
- ], TaxInvoicePatch.prototype, "agentContactName", void 0);
491
- tslib_1.__decorate([
492
- (0, type_graphql_1.Field)({ nullable: true }),
493
- tslib_1.__metadata("design:type", String)
494
- ], TaxInvoicePatch.prototype, "agentContactPhone", void 0);
495
- tslib_1.__decorate([
496
- (0, type_graphql_1.Field)({ nullable: true }),
497
- tslib_1.__metadata("design:type", String)
498
- ], TaxInvoicePatch.prototype, "agentContactEmail", void 0);
499
- tslib_1.__decorate([
500
- (0, type_graphql_1.Field)({ nullable: true }),
501
- tslib_1.__metadata("design:type", String)
502
- ], TaxInvoicePatch.prototype, "agentContactCellPhone", void 0);
503
- tslib_1.__decorate([
504
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
505
- tslib_1.__metadata("design:type", Number)
506
- ], TaxInvoicePatch.prototype, "paymentAmountCash", void 0);
507
- tslib_1.__decorate([
508
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
509
- tslib_1.__metadata("design:type", Number)
510
- ], TaxInvoicePatch.prototype, "paymentAmountCheck", void 0);
511
- tslib_1.__decorate([
512
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
513
- tslib_1.__metadata("design:type", Number)
514
- ], TaxInvoicePatch.prototype, "paymentAmountPromissoryNote", void 0);
515
- tslib_1.__decorate([
516
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
517
- tslib_1.__metadata("design:type", Number)
518
- ], TaxInvoicePatch.prototype, "paymentAmountAccountsReceivable", void 0);
519
- tslib_1.__decorate([
520
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false }),
521
- tslib_1.__metadata("design:type", Number)
522
- ], TaxInvoicePatch.prototype, "supplyAmount", void 0);
523
- tslib_1.__decorate([
524
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
525
- tslib_1.__metadata("design:type", Number)
526
- ], TaxInvoicePatch.prototype, "taxAmount", void 0);
527
- tslib_1.__decorate([
528
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: false }),
529
- tslib_1.__metadata("design:type", Number)
530
- ], TaxInvoicePatch.prototype, "totalAmount", void 0);
283
+ ], TaxInvoicePatch.prototype, "memo", void 0);
531
284
  tslib_1.__decorate([
532
285
  (0, type_graphql_1.Field)({ nullable: true }),
533
286
  tslib_1.__metadata("design:type", String)
@@ -550,4 +303,14 @@ TaxInvoiceList = tslib_1.__decorate([
550
303
  (0, type_graphql_1.ObjectType)()
551
304
  ], TaxInvoiceList);
552
305
  exports.TaxInvoiceList = TaxInvoiceList;
306
+ let TaxInvoiceSummary = class TaxInvoiceSummary {
307
+ };
308
+ tslib_1.__decorate([
309
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject),
310
+ tslib_1.__metadata("design:type", Object)
311
+ ], TaxInvoiceSummary.prototype, "summary", void 0);
312
+ TaxInvoiceSummary = tslib_1.__decorate([
313
+ (0, type_graphql_1.ObjectType)()
314
+ ], TaxInvoiceSummary);
315
+ exports.TaxInvoiceSummary = TaxInvoiceSummary;
553
316
  //# 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":";;;;AAEA,+CAAoE;AAEpE,+CAAuH;AAIhH,IAAM,aAAa,GAAnB,MAAM,aAAa;CAgMzB,CAAA;AA/LC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+CACT;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACC;AAE3B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACV;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACL;AAErB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kDACH;AAExB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CACX;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACG;AAE7B;IAAC,IAAA,oBAA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Q,EAAE,IAAI,EAAE,CAAC;;+CACX;AArMJ,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAsM3B;AAtMY,0CAAe;AAyMrB,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAU,CAAC,CAAC;;6CACT;AAEnB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;6CACN;AALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc","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 { BusinessRegistrationCategory, Category, InvoiceType, Purpose, RevisedReason, TaxInvoice } from './tax-invoice'\nimport { TaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item'\n\n@InputType()\nexport class NewTaxInvoice {\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n apiRefId?: string\n\n @Field({ nullable: false })\n category: Category\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: false })\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: false })\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 name?: string\n\n @Field({ nullable: true })\n apiRefId?: string\n\n @Field({ nullable: false })\n category: Category\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: false })\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: false })\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 @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"]}
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;CAmMzB,CAAA;AAlMC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+CACT;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACC;AAE3B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;sCAChB,IAAI;gDAAA;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACX,IAA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AE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACX;AARJ,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAS3B;AATY,0CAAe;AAYrB,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAU,CAAC,CAAC;;6CACT;AAEnB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;6CACN;AALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc;AASpB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAQ7B,CAAA;AAPC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,CAAC;;kDAM3B;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: Date\n\n @Field({ nullable: true })\n signatureDate: Date\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 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"]}
@@ -31,7 +31,7 @@ var InvoiceType;
31
31
  InvoiceType["IMPORT_INVOICE"] = "0304";
32
32
  InvoiceType["REVISED_GENERAL_INVOICE"] = "0401";
33
33
  InvoiceType["REVISED_CONSIGNMENT_INVOICE"] = "0403";
34
- InvoiceType["REVISED_IMPORT_INVOICE"] = "0404"; // 수정 수입 계산서
34
+ InvoiceType["REVISED_IMPORT_INVOICE"] = "0404"; // 수정 수입 전자계산서
35
35
  })(InvoiceType = exports.InvoiceType || (exports.InvoiceType = {}));
36
36
  // 세금계산서 영수/청구 구분 지시자
37
37
  var Purpose;
@@ -98,18 +98,23 @@ tslib_1.__decorate([
98
98
  tslib_1.__metadata("design:type", Array)
99
99
  ], TaxInvoice.prototype, "taxInvoiceItems", void 0);
100
100
  tslib_1.__decorate([
101
- (0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
102
- (0, type_graphql_1.Field)({ nullable: true, description: '이름' }),
101
+ (0, typeorm_1.Column)({ nullable: true, comment: '메모' }),
102
+ (0, type_graphql_1.Field)({ nullable: true, description: '메모' }),
103
103
  tslib_1.__metadata("design:type", String)
104
- ], TaxInvoice.prototype, "name", void 0);
104
+ ], TaxInvoice.prototype, "memo", void 0);
105
105
  tslib_1.__decorate([
106
106
  (0, typeorm_1.Column)({ nullable: false, comment: '세금계산서 구분 (매출: 10, 매입: 20, NTS: 30)' }),
107
107
  (0, type_graphql_1.Field)({ nullable: false, description: '세금계산서 구분 (매출: 10, 매입: 20, NTS: 30)' }),
108
108
  tslib_1.__metadata("design:type", String)
109
109
  ], TaxInvoice.prototype, "category", void 0);
110
110
  tslib_1.__decorate([
111
- (0, typeorm_1.Column)({ nullable: true, comment: '승인 번호' }),
112
- (0, type_graphql_1.Field)({ nullable: true, description: '승인 번호' }),
111
+ (0, typeorm_1.Column)({ nullable: true, comment: '연동 번호 (작성 시 번호, 승인번호와 동일)' }),
112
+ (0, type_graphql_1.Field)({ nullable: true, description: '연동 번호 (작성 시 번호, 승인번호와 동일)' }),
113
+ tslib_1.__metadata("design:type", String)
114
+ ], TaxInvoice.prototype, "issueNo", void 0);
115
+ tslib_1.__decorate([
116
+ (0, typeorm_1.Column)({ nullable: true, comment: '승인 번호 (24자리)' }),
117
+ (0, type_graphql_1.Field)({ nullable: true, description: '승인 번호 (24자리)' }),
113
118
  tslib_1.__metadata("design:type", String)
114
119
  ], TaxInvoice.prototype, "approvalNo", void 0);
115
120
  tslib_1.__decorate([
@@ -118,14 +123,14 @@ tslib_1.__decorate([
118
123
  tslib_1.__metadata("design:type", String)
119
124
  ], TaxInvoice.prototype, "originalApprovalNo", void 0);
120
125
  tslib_1.__decorate([
121
- (0, typeorm_1.Column)({ nullable: false, comment: '세금계산서 작성 일자 (YYYYMMDD)' }),
122
- (0, type_graphql_1.Field)({ nullable: false, description: '세금계산서 작성 일자 (YYYYMMDD)' }),
123
- tslib_1.__metadata("design:type", String)
126
+ (0, typeorm_1.Column)({ nullable: false, comment: '세금계산서 작성 일자 (YYYY-MM-DD)' }),
127
+ (0, type_graphql_1.Field)({ nullable: false, description: '세금계산서 작성 일자 (YYYY-MM-DD)' }),
128
+ tslib_1.__metadata("design:type", Date)
124
129
  ], TaxInvoice.prototype, "issueDate", void 0);
125
130
  tslib_1.__decorate([
126
- (0, typeorm_1.Column)({ nullable: true, comment: '세금계산서 전자 서명 일자 (YYYYMMDD)' }),
127
- (0, type_graphql_1.Field)({ nullable: true, description: '세금계산서 전자 서명 일자 (YYYYMMDD)' }),
128
- tslib_1.__metadata("design:type", String)
131
+ (0, typeorm_1.Column)({ nullable: true, comment: '세금계산서 전자 서명 일자 (YYYY-MM-DD)' }),
132
+ (0, type_graphql_1.Field)({ nullable: true, description: '세금계산서 전자 서명 일자 (YYYY-MM-DD)' }),
133
+ tslib_1.__metadata("design:type", Date)
129
134
  ], TaxInvoice.prototype, "signatureDate", void 0);
130
135
  tslib_1.__decorate([
131
136
  (0, typeorm_1.Column)({ nullable: false, comment: '세금계산서 종류 코드 (일반, 영세율, 위수탁)' }),
@@ -158,8 +163,8 @@ tslib_1.__decorate([
158
163
  tslib_1.__metadata("design:type", String)
159
164
  ], TaxInvoice.prototype, "remark2", void 0);
160
165
  tslib_1.__decorate([
161
- (0, typeorm_1.Column)({ nullable: false, comment: '공급자 사업자등록번호 구분 코드' }),
162
- (0, type_graphql_1.Field)({ nullable: false, description: '공급자 사업자등록번호 구분 코드' }),
166
+ (0, typeorm_1.Column)({ nullable: true, comment: '공급자 사업자등록번호 구분 코드' }),
167
+ (0, type_graphql_1.Field)({ nullable: true, description: '공급자 사업자등록번호 구분 코드' }),
163
168
  tslib_1.__metadata("design:type", String)
164
169
  ], TaxInvoice.prototype, "supplierBusinessRegistrationCategory", void 0);
165
170
  tslib_1.__decorate([
@@ -223,8 +228,8 @@ tslib_1.__decorate([
223
228
  tslib_1.__metadata("design:type", String)
224
229
  ], TaxInvoice.prototype, "supplierContactCellPhone", void 0);
225
230
  tslib_1.__decorate([
226
- (0, typeorm_1.Column)({ nullable: false, comment: '공급받는자 사업자등록번호 구분 코드' }),
227
- (0, type_graphql_1.Field)({ nullable: false, description: '공급받는자 사업자등록번호 구분 코드' }),
231
+ (0, typeorm_1.Column)({ nullable: true, comment: '공급받는자 사업자등록번호 구분 코드' }),
232
+ (0, type_graphql_1.Field)({ nullable: true, description: '공급받는자 사업자등록번호 구분 코드' }),
228
233
  tslib_1.__metadata("design:type", String)
229
234
  ], TaxInvoice.prototype, "buyerBusinessRegistrationCategory", void 0);
230
235
  tslib_1.__decorate([
@@ -451,6 +456,7 @@ TaxInvoice = tslib_1.__decorate([
451
456
  unique: true
452
457
  }),
453
458
  (0, typeorm_1.Index)('ix_tax_invoice_1', (taxInvoice) => [taxInvoice.domain, taxInvoice.issueDate]),
459
+ (0, typeorm_1.Index)('ix_approval_no', (taxInvoice) => [taxInvoice.domain, taxInvoice.approvalNo], { unique: true }),
454
460
  (0, type_graphql_1.ObjectType)({ description: 'Entity for TaxInvoice' })
455
461
  ], TaxInvoice);
456
462
  exports.TaxInvoice = TaxInvoice;