@things-factory/tax-invoice 8.0.64 → 8.0.66
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/pages/tax-invoice-api/tax-invoice-api-page.ts +6 -1
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +6 -1
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/index.d.ts +2 -2
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.d.ts +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js +11 -0
- 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 +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +4 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/tax-invoice-api/tax-invoice-api-query.ts +6 -0
- package/server/service/tax-invoice-api/tax-invoice-api-type.ts +3 -0
- package/things-factory.config.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/tax-invoice",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.66",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@things-factory/export-ui-excel": "^8.0.64",
|
|
35
35
|
"@things-factory/shell": "^8.0.64"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "bad5bd7d03a5c378856ec664d1c5abde15472684"
|
|
38
38
|
}
|
|
@@ -23,6 +23,12 @@ export class TaxInvoiceApiQuery {
|
|
|
23
23
|
return { items, total }
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
@Query(returns => TaxInvoiceApi, { nullable: true, description: 'To fetch a Default Tax Invoice Api' })
|
|
27
|
+
async defaultTaxInvoiceApi(@Ctx() context: ResolverContext): Promise<TaxInvoiceApi | null> {
|
|
28
|
+
const { domain } = context.state
|
|
29
|
+
return await getRepository(TaxInvoiceApi).findOne({ where: { isDefault: true, domain: { id: domain.id } } })
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
@FieldResolver(type => Domain)
|
|
27
33
|
async domain(@Root() taxInvoiceApi: TaxInvoiceApi): Promise<Domain> {
|
|
28
34
|
return taxInvoiceApi.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoiceApi.domainId }))
|
package/things-factory.config.js
CHANGED
|
@@ -3,10 +3,12 @@ import bootstrap from './dist-client/bootstrap'
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
route,
|
|
6
|
-
routes: [
|
|
6
|
+
routes: [
|
|
7
|
+
{
|
|
7
8
|
tagname: 'tax-invoice-list-page',
|
|
8
9
|
page: 'tax-invoice-list'
|
|
9
|
-
},
|
|
10
|
+
},
|
|
11
|
+
{
|
|
10
12
|
tagname: 'tax-invoice-send-page',
|
|
11
13
|
page: 'tax-invoice-send'
|
|
12
14
|
},
|
|
@@ -17,6 +19,10 @@ export default {
|
|
|
17
19
|
{
|
|
18
20
|
tagname: 'tax-invoice-api-page',
|
|
19
21
|
page: 'tax-invoice-api'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
tagname: 'tax-audit-result-list-page',
|
|
25
|
+
page: 'tax-audit-result-list'
|
|
20
26
|
}
|
|
21
27
|
],
|
|
22
28
|
bootstrap
|