@things-factory/tax-invoice 7.0.1-alpha.9 → 7.0.1-alpha.92
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/bootstrap.ts +1 -0
- package/client/pages/tax-audit-result/tax-audit-result-importer.ts +7 -18
- package/client/pages/tax-audit-result/tax-audit-result-list-page.ts +10 -25
- package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +0 -1
- package/client/pages/tax-invoice-send/company-list-popup.ts +7 -11
- package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +52 -907
- package/client/pages/tax-invoice-send/tax-invoice-send.ts +1181 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +1 -1
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.d.ts +1 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js +4 -11
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js +8 -16
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.d.ts +0 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +0 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/company-list-popup.d.ts +4 -0
- package/dist-client/pages/tax-invoice-send/company-list-popup.js +7 -11
- package/dist-client/pages/tax-invoice-send/company-list-popup.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.d.ts +2 -79
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +40 -803
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.d.ts +112 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js +1086 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/index.js +1 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js +6 -2
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result.js +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js +0 -4
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.js +18 -6
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-type.js +4 -0
- package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-util.js +1 -0
- package/dist-server/service/tax-invoice/tax-invoice-util.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice.js +8 -3
- package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js +11 -3
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js +3 -3
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/server/service/index.ts +1 -0
- package/server/service/tax-audit-result/tax-audit-result-history.ts +8 -4
- package/server/service/tax-audit-result/tax-audit-result.ts +6 -2
- package/server/service/tax-invoice/tax-invoice-mutation.ts +0 -3
- package/server/service/tax-invoice/tax-invoice-query.ts +19 -7
- package/server/service/tax-invoice/tax-invoice-type.ts +3 -0
- package/server/service/tax-invoice/tax-invoice-util.ts +1 -0
- package/server/service/tax-invoice/tax-invoice.ts +19 -4
- package/server/service/tax-invoice-api/tax-invoice-api.ts +16 -3
- package/server/service/tax-invoice-company/tax-invoice-company.ts +11 -3
- package/server/service/tax-invoice-item/tax-invoice-item.ts +19 -5
package/client/bootstrap.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function bootstrap() {}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -7,9 +8,11 @@ import { property } from 'lit/decorators.js'
|
|
|
7
8
|
import { client } from '@operato/graphql'
|
|
8
9
|
import { i18next } from '@operato/i18n'
|
|
9
10
|
import { isMobileDevice } from '@operato/utils'
|
|
11
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
10
12
|
|
|
11
13
|
export class TaxAuditResultImporter extends LitElement {
|
|
12
14
|
static styles = [
|
|
15
|
+
ButtonContainerStyles,
|
|
13
16
|
css`
|
|
14
17
|
:host {
|
|
15
18
|
display: flex;
|
|
@@ -21,16 +24,6 @@ export class TaxAuditResultImporter extends LitElement {
|
|
|
21
24
|
ox-grist {
|
|
22
25
|
flex: 1;
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
.button-container {
|
|
26
|
-
display: flex;
|
|
27
|
-
margin-left: auto;
|
|
28
|
-
padding: var(--padding-default);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
mwc-button {
|
|
32
|
-
margin-left: var(--margin-default);
|
|
33
|
-
}
|
|
34
27
|
`
|
|
35
28
|
]
|
|
36
29
|
|
|
@@ -60,21 +53,18 @@ export class TaxAuditResultImporter extends LitElement {
|
|
|
60
53
|
]
|
|
61
54
|
}
|
|
62
55
|
|
|
63
|
-
|
|
64
56
|
render() {
|
|
65
57
|
return html`
|
|
66
58
|
<ox-grist
|
|
67
59
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
68
60
|
.config=${this.columns}
|
|
69
|
-
.data=${
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|
|
61
|
+
.data=${{
|
|
62
|
+
records: this.taxAuditResults
|
|
63
|
+
}}
|
|
74
64
|
></ox-grist>
|
|
75
65
|
|
|
76
66
|
<div class="button-container">
|
|
77
|
-
<
|
|
67
|
+
<button @click="${this.save.bind(this)}"><md-icon>save</md-icon>${i18next.t('button.save')}</button>
|
|
78
68
|
</div>
|
|
79
69
|
`
|
|
80
70
|
}
|
|
@@ -94,4 +84,3 @@ export class TaxAuditResultImporter extends LitElement {
|
|
|
94
84
|
this.dispatchEvent(new CustomEvent('imported'))
|
|
95
85
|
}
|
|
96
86
|
}
|
|
97
|
-
|
|
@@ -5,12 +5,7 @@ import { PageView, store } from '@operato/shell'
|
|
|
5
5
|
import { css, html } from 'lit'
|
|
6
6
|
import { customElement, property, query } from 'lit/decorators.js'
|
|
7
7
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
8
|
-
import {
|
|
9
|
-
ColumnConfig,
|
|
10
|
-
DataGrist,
|
|
11
|
-
FetchOption,
|
|
12
|
-
SortersControl
|
|
13
|
-
} from '@operato/data-grist'
|
|
8
|
+
import { ColumnConfig, DataGrist, FetchOption, SortersControl } from '@operato/data-grist'
|
|
14
9
|
import { client } from '@operato/graphql'
|
|
15
10
|
import { i18next, localize } from '@operato/i18n'
|
|
16
11
|
import { notify, openPopup } from '@operato/layout'
|
|
@@ -24,7 +19,6 @@ import { TaxAuditResultImporter } from './tax-audit-result-importer'
|
|
|
24
19
|
|
|
25
20
|
@customElement('tax-audit-result-list-page')
|
|
26
21
|
export class TaxAuditResultListPage extends connect(store)(localize(i18next)(ScopedElementsMixin(PageView))) {
|
|
27
|
-
|
|
28
22
|
static styles = [
|
|
29
23
|
ScrollbarStyles,
|
|
30
24
|
CommonGristStyles,
|
|
@@ -93,11 +87,7 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
93
87
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')
|
|
94
88
|
|
|
95
89
|
return html`
|
|
96
|
-
<ox-grist
|
|
97
|
-
.mode=${mode}
|
|
98
|
-
.config=${this.gristConfig}
|
|
99
|
-
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
100
|
-
>
|
|
90
|
+
<ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
101
91
|
<div slot="headroom">
|
|
102
92
|
<div id="filters">
|
|
103
93
|
<ox-filters-form autofocus></ox-filters-form>
|
|
@@ -105,7 +95,7 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
105
95
|
|
|
106
96
|
<div id="sorters">
|
|
107
97
|
Sort
|
|
108
|
-
<
|
|
98
|
+
<md-icon
|
|
109
99
|
@click=${e => {
|
|
110
100
|
const target = e.currentTarget
|
|
111
101
|
this.sortersControl.open({
|
|
@@ -113,7 +103,7 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
113
103
|
top: target.offsetTop + target.offsetHeight
|
|
114
104
|
})
|
|
115
105
|
}}
|
|
116
|
-
>expand_more</
|
|
106
|
+
>expand_more</md-icon
|
|
117
107
|
>
|
|
118
108
|
<ox-popup id="sorter-control">
|
|
119
109
|
<ox-sorters-control> </ox-sorters-control>
|
|
@@ -121,9 +111,10 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
121
111
|
</div>
|
|
122
112
|
|
|
123
113
|
<div id="modes">
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
<
|
|
114
|
+
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
|
|
115
|
+
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
|
|
116
|
+
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
|
117
|
+
</div>
|
|
127
118
|
</div>
|
|
128
119
|
</div>
|
|
129
120
|
</ox-grist>
|
|
@@ -312,12 +303,7 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
312
303
|
|
|
313
304
|
async exportHandler() {
|
|
314
305
|
const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records
|
|
315
|
-
const targetFieldSet = new Set([
|
|
316
|
-
'id',
|
|
317
|
-
'name',
|
|
318
|
-
'description',
|
|
319
|
-
'active'
|
|
320
|
-
])
|
|
306
|
+
const targetFieldSet = new Set(['id', 'name', 'description', 'active'])
|
|
321
307
|
|
|
322
308
|
return exportTargets.map(taxAuditResult => {
|
|
323
309
|
let tempObj = {}
|
|
@@ -346,10 +332,9 @@ export class TaxAuditResultListPage extends connect(store)(localize(i18next)(Sco
|
|
|
346
332
|
title: i18next.t('title.import tax-audit-result')
|
|
347
333
|
}
|
|
348
334
|
)
|
|
349
|
-
|
|
335
|
+
|
|
350
336
|
popup.onclosed = () => {
|
|
351
337
|
this.grist.fetch()
|
|
352
338
|
}
|
|
353
339
|
}
|
|
354
340
|
}
|
|
355
|
-
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import { css, html, LitElement } from 'lit'
|
|
4
5
|
import { property, query } from 'lit/decorators.js'
|
|
5
6
|
import { DataGrist } from '@operato/data-grist'
|
|
6
7
|
import { i18next } from '@operato/i18n'
|
|
8
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
7
9
|
|
|
8
10
|
export class CompanyListPopup extends LitElement {
|
|
9
11
|
static styles = [
|
|
12
|
+
ButtonContainerStyles,
|
|
10
13
|
css`
|
|
11
14
|
:host {
|
|
12
15
|
display: flex;
|
|
@@ -18,16 +21,6 @@ export class CompanyListPopup extends LitElement {
|
|
|
18
21
|
ox-grist {
|
|
19
22
|
flex: 1;
|
|
20
23
|
}
|
|
21
|
-
|
|
22
|
-
.button-container {
|
|
23
|
-
display: flex;
|
|
24
|
-
margin-left: auto;
|
|
25
|
-
padding: var(--padding-default);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
mwc-button {
|
|
29
|
-
margin-left: var(--margin-default);
|
|
30
|
-
}
|
|
31
24
|
`
|
|
32
25
|
]
|
|
33
26
|
|
|
@@ -163,6 +156,9 @@ export class CompanyListPopup extends LitElement {
|
|
|
163
156
|
selectable: {
|
|
164
157
|
multiple: false
|
|
165
158
|
},
|
|
159
|
+
handlers: {
|
|
160
|
+
click: 'select-row-toggle'
|
|
161
|
+
},
|
|
166
162
|
appendable: false
|
|
167
163
|
}
|
|
168
164
|
}
|
|
@@ -178,7 +174,7 @@ export class CompanyListPopup extends LitElement {
|
|
|
178
174
|
></ox-grist>
|
|
179
175
|
|
|
180
176
|
<div class="button-container">
|
|
181
|
-
<
|
|
177
|
+
<button @click="${this.select.bind(this)}"><md-icon>select_check_box</md-icon>${i18next.t('button.select')}</button>
|
|
182
178
|
</div>
|
|
183
179
|
`
|
|
184
180
|
}
|