@things-factory/tax-invoice 8.0.69 → 8.0.74

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.69",
3
+ "version": "8.0.74",
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.64",
32
+ "@things-factory/auth-base": "^8.0.74",
33
33
  "@things-factory/env": "^8.0.64",
34
34
  "@things-factory/export-ui-excel": "^8.0.64",
35
35
  "@things-factory/shell": "^8.0.64"
36
36
  },
37
- "gitHead": "e28557e156cee7b63f9c247f9fb717c74afa6d0f"
37
+ "gitHead": "52ffc383d8baed71dd99a2bc85f4253b3fe69977"
38
38
  }
@@ -96,4 +96,13 @@ export class TaxInvoiceQuery {
96
96
  async creator(@Root() taxInvoice: TaxInvoice): Promise<User> {
97
97
  return taxInvoice.creatorId && (await getRepository(User).findOneBy({ id: taxInvoice.creatorId }))
98
98
  }
99
+
100
+ @FieldResolver(type => Boolean)
101
+ async isMatched(@Root() taxInvoice: TaxInvoice): Promise<boolean> {
102
+ const binding = await getRepository('tax_invoice_binding').findOne({
103
+ where: { taxInvoice: { id: taxInvoice.id } }
104
+ })
105
+
106
+ return !!binding
107
+ }
99
108
  }
@@ -109,10 +109,6 @@ export class TaxInvoice {
109
109
  @Field({ nullable: true, description: '메모' })
110
110
  memo?: string
111
111
 
112
- @Column({ nullable: true, comment: '요청 제품 (거래명세표) ID' })
113
- @Field({ nullable: true, description: '연결된 RequestProduct ID' })
114
- requestProductId?: string
115
-
116
112
  @Column({ nullable: false, comment: '세금계산서 구분 (매출: 10, 매입: 20, NTS: 30)' })
117
113
  @Field({ nullable: false, description: '세금계산서 구분 (매출: 10, 매입: 20, NTS: 30)' })
118
114
  category!: Category
@@ -83,5 +83,6 @@
83
83
  "field.tax invoice payment promissory note": "어음",
84
84
  "field.tax invoice payment accounts receivable": "외상 미수금",
85
85
  "field.tax invoice buyer registration category": "공급받는자 구분",
86
- "field.delete": "삭제"
86
+ "field.delete": "삭제",
87
+ "field.is matched": "매칭 여부"
87
88
  }