@things-factory/tax-invoice 8.0.38 → 8.0.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/tax-invoice",
3
- "version": "8.0.38",
3
+ "version": "8.0.54",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -29,10 +29,10 @@
29
29
  "dependencies": {
30
30
  "@operato/graphql": "^8.0.0",
31
31
  "@operato/shell": "^8.0.0",
32
- "@things-factory/auth-base": "^8.0.38",
32
+ "@things-factory/auth-base": "^8.0.54",
33
33
  "@things-factory/env": "^8.0.37",
34
- "@things-factory/export-ui-excel": "^8.0.38",
35
- "@things-factory/shell": "^8.0.38"
34
+ "@things-factory/export-ui-excel": "^8.0.54",
35
+ "@things-factory/shell": "^8.0.54"
36
36
  },
37
- "gitHead": "613db8b1fa9fd156294f113518348247ae61a2db"
37
+ "gitHead": "b222492ba1cb28c9095a66ce2207c8954bcb4b37"
38
38
  }
@@ -7,7 +7,12 @@ import { NewTaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item-type'
7
7
  import { TaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item'
8
8
  import { TaxInvoiceApi } from '../tax-invoice-api/tax-invoice-api'
9
9
  import { AttributeSet } from '@things-factory/shell/dist-server/service/attribute-set/attribute-set'
10
- import { ConfirmData, UnipostTaxType, callTaxInvoiceConfirm, getTaxInvoiceByUniposApi } from '../unipost-api/tax-invoice-inquiry'
10
+ import {
11
+ ConfirmData,
12
+ UnipostTaxType,
13
+ callTaxInvoiceConfirm,
14
+ getTaxInvoiceByUniposApi
15
+ } from '../unipost-api/tax-invoice-inquiry'
11
16
  import { parseTaxInvoiceByUnipostFormat } from './tax-invoice-util'
12
17
 
13
18
  @Resolver(TaxInvoice)
@@ -39,7 +44,10 @@ export class TaxInvoiceMutation {
39
44
  // 그리드에서 메모 수정용 으로만
40
45
  @Directive('@transaction')
41
46
  @Mutation(returns => [TaxInvoice], { description: "To modify multiple TaxInvoices' information" })
42
- async updateMultipleTaxInvoice(@Arg('patches', type => [TaxInvoicePatch]) patches: TaxInvoicePatch[], @Ctx() context: ResolverContext): Promise<TaxInvoice[]> {
47
+ async updateMultipleTaxInvoice(
48
+ @Arg('patches', type => [TaxInvoicePatch]) patches: TaxInvoicePatch[],
49
+ @Ctx() context: ResolverContext
50
+ ): Promise<TaxInvoice[]> {
43
51
  const { domain, user, tx } = context.state
44
52
 
45
53
  let results = []
@@ -76,7 +84,10 @@ export class TaxInvoiceMutation {
76
84
 
77
85
  @Directive('@transaction')
78
86
  @Mutation(returns => Boolean, { description: 'To delete multiple TaxInvoices' })
79
- async deleteTaxInvoices(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {
87
+ async deleteTaxInvoices(
88
+ @Arg('ids', type => [String]) ids: string[],
89
+ @Ctx() context: ResolverContext
90
+ ): Promise<boolean> {
80
91
  const { domain, tx } = context.state
81
92
 
82
93
  await tx.getRepository(TaxInvoice).delete({
@@ -95,7 +106,7 @@ export class TaxInvoiceMutation {
95
106
  const taxInvoiceRepo = tx.getRepository(TaxInvoice)
96
107
  const insertedData: ConfirmData[] = [] // API 호출 후 결과 회신용
97
108
 
98
- const apiInfo = (await taxInvoiceApiRepo.find()).at(0)
109
+ const apiInfo = (await taxInvoiceApiRepo.find())[0]
99
110
  const businessRegistrationNumber = apiInfo.businessRegistrationNumber
100
111
  const { aid = '', bearer = '' } = apiInfo?.attributes
101
112