@things-factory/tax-invoice 6.2.84
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/CHANGELOG.md +8 -0
- package/assets/images/hatiolab-logo.png +0 -0
- package/client/bootstrap.ts +0 -0
- package/client/index.ts +0 -0
- package/client/pages/main.ts +25 -0
- package/client/pages/tax-audit-result/tax-audit-result-importer.ts +97 -0
- package/client/pages/tax-audit-result/tax-audit-result-list-page.ts +355 -0
- package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +424 -0
- package/client/pages/tax-invoice/tax-invoice-list-page.ts +517 -0
- package/client/pages/tax-invoice-api/tax-invoice-api-page.ts +428 -0
- package/client/pages/tax-invoice-company/tax-invoice-company-importer.ts +175 -0
- package/client/pages/tax-invoice-company/tax-invoice-company-list-page.ts +496 -0
- package/client/route.ts +23 -0
- package/client/tsconfig.json +11 -0
- package/dist-client/bootstrap.d.ts +0 -0
- package/dist-client/bootstrap.js +2 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/main.d.ts +1 -0
- package/dist-client/pages/main.js +27 -0
- package/dist-client/pages/main.js.map +1 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.d.ts +22 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js +100 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js.map +1 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.d.ts +62 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js +331 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js.map +1 -0
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.d.ts +14 -0
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +430 -0
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -0
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.d.ts +70 -0
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.js +500 -0
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -0
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.d.ts +36 -0
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +419 -0
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.d.ts +31 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js +182 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js.map +1 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.d.ts +57 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js +477 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +20 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-server/index.js +6 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/index.js +37 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/tax-audit-result/event-subscriber.js +21 -0
- package/dist-server/service/tax-audit-result/event-subscriber.js.map +1 -0
- package/dist-server/service/tax-audit-result/index.js +12 -0
- package/dist-server/service/tax-audit-result/index.js.map +1 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js +123 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js.map +1 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js +168 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js.map +1 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js +97 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js.map +1 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js +86 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js.map +1 -0
- package/dist-server/service/tax-audit-result/tax-audit-result.js +110 -0
- package/dist-server/service/tax-audit-result/tax-audit-result.js.map +1 -0
- package/dist-server/service/tax-invoice/index.js +9 -0
- package/dist-server/service/tax-invoice/index.js.map +1 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js +127 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -0
- package/dist-server/service/tax-invoice/tax-invoice-query.js +90 -0
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -0
- package/dist-server/service/tax-invoice/tax-invoice-type.js +553 -0
- package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -0
- package/dist-server/service/tax-invoice/tax-invoice.js +465 -0
- package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -0
- package/dist-server/service/tax-invoice-api/index.js +9 -0
- package/dist-server/service/tax-invoice-api/index.js.map +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js +64 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js.map +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js +79 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js.map +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +103 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js +163 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js.map +1 -0
- package/dist-server/service/tax-invoice-company/index.js +9 -0
- package/dist-server/service/tax-invoice-company/index.js.map +1 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js +80 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js.map +1 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js +89 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js.map +1 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js +100 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js.map +1 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js +166 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js.map +1 -0
- package/dist-server/service/tax-invoice-item/index.js +9 -0
- package/dist-server/service/tax-invoice-item/index.js.map +1 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js +127 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js.map +1 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js +87 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js.map +1 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js +121 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js.map +1 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js +115 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/helps/tax-invoice/tax-audit-result.md +160 -0
- package/helps/tax-invoice/tax-invoice-api.md +160 -0
- package/helps/tax-invoice/tax-invoice-send.md +160 -0
- package/helps/tax-invoice/tax-invoice.md +160 -0
- package/package.json +37 -0
- package/server/index.ts +2 -0
- package/server/routes.ts +28 -0
- package/server/service/index.ts +36 -0
- package/server/service/tax-audit-result/event-subscriber.ts +17 -0
- package/server/service/tax-audit-result/index.ts +9 -0
- package/server/service/tax-audit-result/tax-audit-result-history.ts +110 -0
- package/server/service/tax-audit-result/tax-audit-result-mutation.ts +198 -0
- package/server/service/tax-audit-result/tax-audit-result-query.ts +62 -0
- package/server/service/tax-audit-result/tax-audit-result-type.ts +61 -0
- package/server/service/tax-audit-result/tax-audit-result.ts +95 -0
- package/server/service/tax-invoice/index.ts +6 -0
- package/server/service/tax-invoice/tax-invoice-mutation.ts +122 -0
- package/server/service/tax-invoice/tax-invoice-query.ts +54 -0
- package/server/service/tax-invoice/tax-invoice-type.ts +411 -0
- package/server/service/tax-invoice/tax-invoice.ts +389 -0
- package/server/service/tax-invoice-api/index.ts +6 -0
- package/server/service/tax-invoice-api/tax-invoice-api-mutation.ts +67 -0
- package/server/service/tax-invoice-api/tax-invoice-api-query.ts +48 -0
- package/server/service/tax-invoice-api/tax-invoice-api-type.ts +71 -0
- package/server/service/tax-invoice-api/tax-invoice-api.ts +137 -0
- package/server/service/tax-invoice-company/index.ts +6 -0
- package/server/service/tax-invoice-company/tax-invoice-company-mutation.ts +84 -0
- package/server/service/tax-invoice-company/tax-invoice-company-query.ts +53 -0
- package/server/service/tax-invoice-company/tax-invoice-company-type.ts +69 -0
- package/server/service/tax-invoice-company/tax-invoice-company.ts +142 -0
- package/server/service/tax-invoice-item/index.ts +6 -0
- package/server/service/tax-invoice-item/tax-invoice-item-mutation.ts +128 -0
- package/server/service/tax-invoice-item/tax-invoice-item-query.ts +57 -0
- package/server/service/tax-invoice-item/tax-invoice-item-type.ts +86 -0
- package/server/service/tax-invoice-item/tax-invoice-item.ts +85 -0
- package/server/tsconfig.json +10 -0
- package/things-factory.config.js +23 -0
- package/translations/en.json +1 -0
- package/translations/ja.json +1 -0
- package/translations/ko.json +71 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/mwc-icon';
|
|
3
|
+
import '@operato/data-grist';
|
|
4
|
+
import { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles';
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import { i18next, localize } from '@operato/i18n';
|
|
9
|
+
import gql from 'graphql-tag';
|
|
10
|
+
import { INVOICE_TYPE } from './tax-invoice-list-page';
|
|
11
|
+
let TaxInvoiceDetailPopup = class TaxInvoiceDetailPopup extends localize(i18next)(LitElement) {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.taxInvoiceId = '';
|
|
15
|
+
this.detail = {};
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
var _a;
|
|
19
|
+
return html `
|
|
20
|
+
<div class="title">
|
|
21
|
+
<table>
|
|
22
|
+
<tr>
|
|
23
|
+
<th>${i18next.t('field.approval no')}</th>
|
|
24
|
+
<td>${this.detail.approvalNo}</td>
|
|
25
|
+
</tr>
|
|
26
|
+
</table>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="body">
|
|
30
|
+
<div class="invoice-type">* ${INVOICE_TYPE[this.detail.invoiceType]}</div>
|
|
31
|
+
<div class="data">
|
|
32
|
+
<table class="supplier">
|
|
33
|
+
<colgroup>
|
|
34
|
+
<col width="150px" />
|
|
35
|
+
<col width="18%" />
|
|
36
|
+
<col width="32%" />
|
|
37
|
+
<col width="18%" />
|
|
38
|
+
<col width="32%" />
|
|
39
|
+
</colgroup>
|
|
40
|
+
<tr>
|
|
41
|
+
<th rowspan="6" class="target">${i18next.t('field.tax invoice supplier')}</th>
|
|
42
|
+
<th>${i18next.t('field.short business registration number')}</th>
|
|
43
|
+
<td>${this.detail.supplierBusinessRegistrationNumber}</td>
|
|
44
|
+
<th>${i18next.t('field.short branch identification')}</th>
|
|
45
|
+
<td>${this.detail.supplierBranchIdentification}</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<th>${i18next.t('field.short tax invoice business name')}</th>
|
|
49
|
+
<td>${this.detail.supplierBusinessName}</td>
|
|
50
|
+
<th>${i18next.t('field.short representative name')}</th>
|
|
51
|
+
<td>${this.detail.supplierRepresentativeName}</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<th>${i18next.t('field.address')}</th>
|
|
55
|
+
<td colspan="3">${this.detail.supplierAddress}</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<th>${i18next.t('field.business type')}</th>
|
|
59
|
+
<td>${this.detail.supplierBusinessType}</td>
|
|
60
|
+
<th>${i18next.t('field.industry type')}</th>
|
|
61
|
+
<td>${this.detail.supplierIndustryType}</td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<th rowspan="2">${i18next.t('field.email')}</th>
|
|
65
|
+
<td rowspan="2" colspan="3">${this.detail.supplierContactEmail}</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr></tr>
|
|
68
|
+
</table>
|
|
69
|
+
|
|
70
|
+
<table class="buyer">
|
|
71
|
+
<tr>
|
|
72
|
+
<th rowspan="6" class="target">${i18next.t('field.tax invoice buyer')}</th>
|
|
73
|
+
<th>${i18next.t('field.short business registration number')}</th>
|
|
74
|
+
<td>${this.detail.buyerBusinessRegistrationNumber}</td>
|
|
75
|
+
<th>${i18next.t('field.short branch identification')}</th>
|
|
76
|
+
<td>${this.detail.buyerBranchIdentification}</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<th>${i18next.t('field.short tax invoice business name')}</th>
|
|
80
|
+
<td>${this.detail.buyerBusinessName}</td>
|
|
81
|
+
<th>${i18next.t('field.short representative name')}</th>
|
|
82
|
+
<td>${this.detail.buyerRepresentativeName}</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<th>${i18next.t('field.address')}</th>
|
|
86
|
+
<td colspan="3">${this.detail.buyerAddress}</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<th>${i18next.t('field.business type')}</th>
|
|
90
|
+
<td>${this.detail.buyerBusinessType}</td>
|
|
91
|
+
<th>${i18next.t('field.industry type')}</th>
|
|
92
|
+
<td>${this.detail.buyerIndustryType}</td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<th>${i18next.t('field.email')}</th>
|
|
96
|
+
<td colspan="3">${this.detail.buyer1stContactEmail}</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<th>${i18next.t('field.email')}</th>
|
|
100
|
+
<td colspan="3">${this.detail.buyer2ndContactEmail}</td>
|
|
101
|
+
</tr>
|
|
102
|
+
</table>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<div class="info">
|
|
106
|
+
<table>
|
|
107
|
+
<colgroup>
|
|
108
|
+
<col width="15%" />
|
|
109
|
+
<col width="15%" />
|
|
110
|
+
<col width="15%" />
|
|
111
|
+
<col width="15%" />
|
|
112
|
+
<col width="40%" />
|
|
113
|
+
</colgroup>
|
|
114
|
+
<tr>
|
|
115
|
+
<th>${i18next.t('field.issue date')}</th>
|
|
116
|
+
<th>${i18next.t('field.supply amount')}</th>
|
|
117
|
+
<th>${i18next.t('field.tax amount')}</th>
|
|
118
|
+
<th>${i18next.t('field.modification reason')}</th>
|
|
119
|
+
<th>${i18next.t('field.remark0')}</th>
|
|
120
|
+
</tr>
|
|
121
|
+
<tr>
|
|
122
|
+
<td>${this.detail.issueDate}</td>
|
|
123
|
+
<td>${this._numberFormat(this.detail.supplyAmount)}</td>
|
|
124
|
+
<td>${this._numberFormat(this.detail.taxAmount)}</td>
|
|
125
|
+
<td>${this.detail.modificationReason}</td>
|
|
126
|
+
<td>${this.detail.remark0}</td>
|
|
127
|
+
</tr>
|
|
128
|
+
</table>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="items">
|
|
132
|
+
<table>
|
|
133
|
+
<colgroup>
|
|
134
|
+
<col width="4%" />
|
|
135
|
+
<col width="4%" />
|
|
136
|
+
<col width="15%" />
|
|
137
|
+
<col width="9%" />
|
|
138
|
+
<col width="9%" />
|
|
139
|
+
<col width="13%" />
|
|
140
|
+
<col width="13%" />
|
|
141
|
+
<col width="13%" />
|
|
142
|
+
<col width="20%" />
|
|
143
|
+
</colgroup>
|
|
144
|
+
<tr>
|
|
145
|
+
<th>${i18next.t('field.tax invoice month')}</th>
|
|
146
|
+
<th>${i18next.t('field.tax invoice day')}</th>
|
|
147
|
+
<th>${i18next.t('field.tax invoice item name')}</th>
|
|
148
|
+
<th>${i18next.t('field.tax invoice ea')}</th>
|
|
149
|
+
<th>${i18next.t('field.tax invoice quantity')}</th>
|
|
150
|
+
<th>${i18next.t('field.tax invoice price')}</th>
|
|
151
|
+
<th>${i18next.t('field.supply amount')}</th>
|
|
152
|
+
<th>${i18next.t('field.tax amount')}</th>
|
|
153
|
+
<th>${i18next.t('field.remark0')}</th>
|
|
154
|
+
</tr>
|
|
155
|
+
|
|
156
|
+
${(_a = this.detail.taxInvoiceItems) === null || _a === void 0 ? void 0 : _a.map(item => html `
|
|
157
|
+
<tr>
|
|
158
|
+
<td>${item.issueDate}</td>
|
|
159
|
+
<td>${item.supplyAmount}</td>
|
|
160
|
+
<td>${item.taxAmount}</td>
|
|
161
|
+
<td>${item.modificationReason}</td>
|
|
162
|
+
<td>${item.remark0}</td>
|
|
163
|
+
</tr>
|
|
164
|
+
`)}
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<div class="summary">
|
|
169
|
+
<table>
|
|
170
|
+
<colgroup>
|
|
171
|
+
<col width="20%" />
|
|
172
|
+
<col width="20%" />
|
|
173
|
+
<col width="20%" />
|
|
174
|
+
<col width="20%" />
|
|
175
|
+
<col width="20%" />
|
|
176
|
+
</colgroup>
|
|
177
|
+
<tr>
|
|
178
|
+
<th>${i18next.t('field.total amount')}</th>
|
|
179
|
+
<th>${i18next.t('field.tax invoice payment cash')}</th>
|
|
180
|
+
<th>${i18next.t('field.tax invoice payment check')}</th>
|
|
181
|
+
<th>${i18next.t('field.tax invoice payment promissory note')}</th>
|
|
182
|
+
<th>${i18next.t('field.tax invoice payment accounts receivable')}</th>
|
|
183
|
+
</tr>
|
|
184
|
+
<tr>
|
|
185
|
+
<td>${this._numberFormat(this.detail.totalAmount)}</td>
|
|
186
|
+
<td>${this._numberFormat(this.detail.paymentAmountCash)}</td>
|
|
187
|
+
<td>${this._numberFormat(this.detail.paymentAmountCheck)}</td>
|
|
188
|
+
<td>${this._numberFormat(this.detail.paymentAmountPromissoryNote)}</td>
|
|
189
|
+
<td>${this._numberFormat(this.detail.paymentAmountAccountsReceivable)}</td>
|
|
190
|
+
</tr>
|
|
191
|
+
</table>
|
|
192
|
+
<div>${i18next.t('text.tax invoice description payment', { value: i18next.t(`text.tax invoice description purpose ${this.detail.purpose}`) })}</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
`;
|
|
196
|
+
}
|
|
197
|
+
async updated(changed) {
|
|
198
|
+
if (changed.has('taxInvoiceId')) {
|
|
199
|
+
this.detail = await this.getTaxInvoiceDetailById(this.taxInvoiceId);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
async getTaxInvoiceDetailById(id) {
|
|
203
|
+
if (!id)
|
|
204
|
+
return {};
|
|
205
|
+
const response = await client.query({
|
|
206
|
+
query: gql `
|
|
207
|
+
query ($id: String!) {
|
|
208
|
+
responses: taxInvoice(id: $id) {
|
|
209
|
+
id
|
|
210
|
+
name
|
|
211
|
+
category
|
|
212
|
+
approvalNo
|
|
213
|
+
originalApprovalNo
|
|
214
|
+
issueDate
|
|
215
|
+
signatureDate
|
|
216
|
+
invoiceType
|
|
217
|
+
purpose
|
|
218
|
+
revisedReason
|
|
219
|
+
remark0
|
|
220
|
+
remark1
|
|
221
|
+
remark2
|
|
222
|
+
supplierBusinessRegistrationCategory
|
|
223
|
+
supplierBusinessRegistrationNumber
|
|
224
|
+
supplierBranchIdentification
|
|
225
|
+
supplierBusinessName
|
|
226
|
+
supplierRepresentativeName
|
|
227
|
+
supplierAddress
|
|
228
|
+
supplierBusinessType
|
|
229
|
+
supplierIndustryType
|
|
230
|
+
supplierDepartment
|
|
231
|
+
supplierContactName
|
|
232
|
+
supplierContactPhone
|
|
233
|
+
supplierContactEmail
|
|
234
|
+
supplierContactCellPhone
|
|
235
|
+
buyerBusinessRegistrationCategory
|
|
236
|
+
buyerBusinessRegistrationNumber
|
|
237
|
+
buyerBranchIdentification
|
|
238
|
+
buyerBusinessName
|
|
239
|
+
buyerRepresentativeName
|
|
240
|
+
buyerAddress
|
|
241
|
+
buyerBusinessType
|
|
242
|
+
buyerIndustryType
|
|
243
|
+
buyer1stDepartment
|
|
244
|
+
buyer1stContactName
|
|
245
|
+
buyer1stContactPhone
|
|
246
|
+
buyer1stContactEmail
|
|
247
|
+
buyer1stContactCellPhone
|
|
248
|
+
buyer2ndDepartment
|
|
249
|
+
buyer2ndContactName
|
|
250
|
+
buyer2ndContactPhone
|
|
251
|
+
buyer2ndContactEmail
|
|
252
|
+
buyer2ndContactCellPhone
|
|
253
|
+
agentBusinessRegistrationCategory
|
|
254
|
+
agentBusinessRegistrationNumber
|
|
255
|
+
agentBranchIdentification
|
|
256
|
+
agentBusinessName
|
|
257
|
+
agentRepresentativeName
|
|
258
|
+
agentAddress
|
|
259
|
+
agentBusinessType
|
|
260
|
+
agentIndustryType
|
|
261
|
+
agentDepartment
|
|
262
|
+
agentContactName
|
|
263
|
+
agentContactPhone
|
|
264
|
+
agentContactEmail
|
|
265
|
+
agentContactCellPhone
|
|
266
|
+
paymentAmountCash
|
|
267
|
+
paymentAmountCheck
|
|
268
|
+
paymentAmountPromissoryNote
|
|
269
|
+
paymentAmountAccountsReceivable
|
|
270
|
+
supplyAmount
|
|
271
|
+
taxAmount
|
|
272
|
+
totalAmount
|
|
273
|
+
createdAt
|
|
274
|
+
updater {
|
|
275
|
+
id
|
|
276
|
+
name
|
|
277
|
+
}
|
|
278
|
+
updatedAt
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
`,
|
|
282
|
+
variables: { id }
|
|
283
|
+
});
|
|
284
|
+
return response.data.responses || {};
|
|
285
|
+
}
|
|
286
|
+
_numberFormat(value) {
|
|
287
|
+
return !value ? '' : new Intl.NumberFormat('en-US').format(value);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
TaxInvoiceDetailPopup.styles = [
|
|
291
|
+
ScrollbarStyles,
|
|
292
|
+
CommonHeaderStyles,
|
|
293
|
+
css `
|
|
294
|
+
:host {
|
|
295
|
+
display: flex;
|
|
296
|
+
flex-direction: column;
|
|
297
|
+
background-color: var(--main-section-background-color);
|
|
298
|
+
width: 100%;
|
|
299
|
+
padding: 15px;
|
|
300
|
+
font-size: 14px;
|
|
301
|
+
overflow-y: scroll;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
input {
|
|
305
|
+
border: var(--border-dark-color);
|
|
306
|
+
padding: var(--padding-narrow) var(--padding-default);
|
|
307
|
+
max-width: 100px;
|
|
308
|
+
font: var(--input-font);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
table {
|
|
312
|
+
border: solid;
|
|
313
|
+
border-width: 2px 0;
|
|
314
|
+
border-collapse: collapse;
|
|
315
|
+
border-spacing: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.title table {
|
|
319
|
+
border-color: #d3dbe5;
|
|
320
|
+
width: 100%;
|
|
321
|
+
height: 33px;
|
|
322
|
+
|
|
323
|
+
th {
|
|
324
|
+
background-color: #e9edf6;
|
|
325
|
+
}
|
|
326
|
+
td {
|
|
327
|
+
padding-left: 10px;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
div.body {
|
|
332
|
+
margin-top: 15px;
|
|
333
|
+
font-size: 14px;
|
|
334
|
+
|
|
335
|
+
div.data {
|
|
336
|
+
display: flex;
|
|
337
|
+
margin-top: 5px;
|
|
338
|
+
|
|
339
|
+
table {
|
|
340
|
+
flex: 1;
|
|
341
|
+
|
|
342
|
+
td,
|
|
343
|
+
th {
|
|
344
|
+
padding: 5px;
|
|
345
|
+
}
|
|
346
|
+
th.target {
|
|
347
|
+
width: 25px;
|
|
348
|
+
writing-mode: vertical-rl;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&.supplier {
|
|
352
|
+
border-color: #f64843;
|
|
353
|
+
|
|
354
|
+
td,
|
|
355
|
+
th {
|
|
356
|
+
background-color: #fef5f7;
|
|
357
|
+
border: solid 1.5px #f5b1b1;
|
|
358
|
+
}
|
|
359
|
+
th.target {
|
|
360
|
+
background-color: #fedbde;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
&.buyer {
|
|
364
|
+
border-color: #007ed9;
|
|
365
|
+
|
|
366
|
+
td,
|
|
367
|
+
th {
|
|
368
|
+
background-color: #f7f7ff;
|
|
369
|
+
border: solid 1.5px #a7bcff;
|
|
370
|
+
}
|
|
371
|
+
th.target {
|
|
372
|
+
background-color: #c6daf6;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
div.items,
|
|
379
|
+
div.info,
|
|
380
|
+
div.summary {
|
|
381
|
+
margin-top: 15px;
|
|
382
|
+
|
|
383
|
+
table {
|
|
384
|
+
width: 100%;
|
|
385
|
+
border-color: #000;
|
|
386
|
+
border-width: 2px 0px 0px 0px;
|
|
387
|
+
|
|
388
|
+
th {
|
|
389
|
+
background-color: #e9edf5;
|
|
390
|
+
}
|
|
391
|
+
th,
|
|
392
|
+
td {
|
|
393
|
+
border: solid 1.5px #c4d2ff;
|
|
394
|
+
padding: 5px;
|
|
395
|
+
text-align: center;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
div.summary {
|
|
401
|
+
display: flex;
|
|
402
|
+
|
|
403
|
+
& > table {
|
|
404
|
+
flex: 6.7;
|
|
405
|
+
}
|
|
406
|
+
& > div {
|
|
407
|
+
flex: 3.2;
|
|
408
|
+
display: flex;
|
|
409
|
+
justify-content: center;
|
|
410
|
+
align-items: center;
|
|
411
|
+
border: 1.5px solid #c4d2ff;
|
|
412
|
+
border-top: 2px solid #000;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
`
|
|
417
|
+
];
|
|
418
|
+
__decorate([
|
|
419
|
+
property({ type: String }),
|
|
420
|
+
__metadata("design:type", String)
|
|
421
|
+
], TaxInvoiceDetailPopup.prototype, "taxInvoiceId", void 0);
|
|
422
|
+
__decorate([
|
|
423
|
+
state(),
|
|
424
|
+
__metadata("design:type", Object)
|
|
425
|
+
], TaxInvoiceDetailPopup.prototype, "detail", void 0);
|
|
426
|
+
TaxInvoiceDetailPopup = __decorate([
|
|
427
|
+
customElement('tax-invoice-detail-popup')
|
|
428
|
+
], TaxInvoiceDetailPopup);
|
|
429
|
+
export { TaxInvoiceDetailPopup };
|
|
430
|
+
//# sourceMappingURL=tax-invoice-detail-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax-invoice-detail-popup.js","sourceRoot":"","sources":["../../../client/pages/tax-invoice/tax-invoice-detail-popup.ts"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAG/C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAAjE;;QAkIuB,iBAAY,GAAW,EAAE,CAAA;QAC5C,WAAM,GAAQ,EAAE,CAAA;IAwR3B,CAAC;IAtRC,MAAM;;QACJ,OAAO,IAAI,CAAA;;;;kBAIG,OAAO,CAAC,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aderStyles, ScrollbarStyles } from '@operato/styles'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport gql from 'graphql-tag'\nimport { INVOICE_TYPE } from './tax-invoice-list-page'\n\n@customElement('tax-invoice-detail-popup')\nexport class TaxInvoiceDetailPopup extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n CommonHeaderStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--main-section-background-color);\n width: 100%;\n padding: 15px;\n font-size: 14px;\n overflow-y: scroll;\n }\n\n input {\n border: var(--border-dark-color);\n padding: var(--padding-narrow) var(--padding-default);\n max-width: 100px;\n font: var(--input-font);\n }\n\n table {\n border: solid;\n border-width: 2px 0;\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n .title table {\n border-color: #d3dbe5;\n width: 100%;\n height: 33px;\n\n th {\n background-color: #e9edf6;\n }\n td {\n padding-left: 10px;\n }\n }\n\n div.body {\n margin-top: 15px;\n font-size: 14px;\n\n div.data {\n display: flex;\n margin-top: 5px;\n\n table {\n flex: 1;\n\n td,\n th {\n padding: 5px;\n }\n th.target {\n width: 25px;\n writing-mode: vertical-rl;\n }\n\n &.supplier {\n border-color: #f64843;\n\n td,\n th {\n background-color: #fef5f7;\n border: solid 1.5px #f5b1b1;\n }\n th.target {\n background-color: #fedbde;\n }\n }\n &.buyer {\n border-color: #007ed9;\n\n td,\n th {\n background-color: #f7f7ff;\n border: solid 1.5px #a7bcff;\n }\n th.target {\n background-color: #c6daf6;\n }\n }\n }\n }\n\n div.items,\n div.info,\n div.summary {\n margin-top: 15px;\n\n table {\n width: 100%;\n border-color: #000;\n border-width: 2px 0px 0px 0px;\n\n th {\n background-color: #e9edf5;\n }\n th,\n td {\n border: solid 1.5px #c4d2ff;\n padding: 5px;\n text-align: center;\n }\n }\n }\n\n div.summary {\n display: flex;\n\n & > table {\n flex: 6.7;\n }\n & > div {\n flex: 3.2;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1.5px solid #c4d2ff;\n border-top: 2px solid #000;\n }\n }\n }\n `\n ]\n\n @property({ type: String }) taxInvoiceId: string = ''\n @state() detail: any = {}\n\n render() {\n return html`\n <div class=\"title\">\n <table>\n <tr>\n <th>${i18next.t('field.approval no')}</th>\n <td>${this.detail.approvalNo}</td>\n </tr>\n </table>\n </div>\n\n <div class=\"body\">\n <div class=\"invoice-type\">* ${INVOICE_TYPE[this.detail.invoiceType]}</div>\n <div class=\"data\">\n <table class=\"supplier\">\n <colgroup>\n <col width=\"150px\" />\n <col width=\"18%\" />\n <col width=\"32%\" />\n <col width=\"18%\" />\n <col width=\"32%\" />\n </colgroup>\n <tr>\n <th rowspan=\"6\" class=\"target\">${i18next.t('field.tax invoice supplier')}</th>\n <th>${i18next.t('field.short business registration number')}</th>\n <td>${this.detail.supplierBusinessRegistrationNumber}</td>\n <th>${i18next.t('field.short branch identification')}</th>\n <td>${this.detail.supplierBranchIdentification}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.short tax invoice business name')}</th>\n <td>${this.detail.supplierBusinessName}</td>\n <th>${i18next.t('field.short representative name')}</th>\n <td>${this.detail.supplierRepresentativeName}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.address')}</th>\n <td colspan=\"3\">${this.detail.supplierAddress}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.business type')}</th>\n <td>${this.detail.supplierBusinessType}</td>\n <th>${i18next.t('field.industry type')}</th>\n <td>${this.detail.supplierIndustryType}</td>\n </tr>\n <tr>\n <th rowspan=\"2\">${i18next.t('field.email')}</th>\n <td rowspan=\"2\" colspan=\"3\">${this.detail.supplierContactEmail}</td>\n </tr>\n <tr></tr>\n </table>\n\n <table class=\"buyer\">\n <tr>\n <th rowspan=\"6\" class=\"target\">${i18next.t('field.tax invoice buyer')}</th>\n <th>${i18next.t('field.short business registration number')}</th>\n <td>${this.detail.buyerBusinessRegistrationNumber}</td>\n <th>${i18next.t('field.short branch identification')}</th>\n <td>${this.detail.buyerBranchIdentification}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.short tax invoice business name')}</th>\n <td>${this.detail.buyerBusinessName}</td>\n <th>${i18next.t('field.short representative name')}</th>\n <td>${this.detail.buyerRepresentativeName}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.address')}</th>\n <td colspan=\"3\">${this.detail.buyerAddress}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.business type')}</th>\n <td>${this.detail.buyerBusinessType}</td>\n <th>${i18next.t('field.industry type')}</th>\n <td>${this.detail.buyerIndustryType}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.email')}</th>\n <td colspan=\"3\">${this.detail.buyer1stContactEmail}</td>\n </tr>\n <tr>\n <th>${i18next.t('field.email')}</th>\n <td colspan=\"3\">${this.detail.buyer2ndContactEmail}</td>\n </tr>\n </table>\n </div>\n\n <div class=\"info\">\n <table>\n <colgroup>\n <col width=\"15%\" />\n <col width=\"15%\" />\n <col width=\"15%\" />\n <col width=\"15%\" />\n <col width=\"40%\" />\n </colgroup>\n <tr>\n <th>${i18next.t('field.issue date')}</th>\n <th>${i18next.t('field.supply amount')}</th>\n <th>${i18next.t('field.tax amount')}</th>\n <th>${i18next.t('field.modification reason')}</th>\n <th>${i18next.t('field.remark0')}</th>\n </tr>\n <tr>\n <td>${this.detail.issueDate}</td>\n <td>${this._numberFormat(this.detail.supplyAmount)}</td>\n <td>${this._numberFormat(this.detail.taxAmount)}</td>\n <td>${this.detail.modificationReason}</td>\n <td>${this.detail.remark0}</td>\n </tr>\n </table>\n </div>\n\n <div class=\"items\">\n <table>\n <colgroup>\n <col width=\"4%\" />\n <col width=\"4%\" />\n <col width=\"15%\" />\n <col width=\"9%\" />\n <col width=\"9%\" />\n <col width=\"13%\" />\n <col width=\"13%\" />\n <col width=\"13%\" />\n <col width=\"20%\" />\n </colgroup>\n <tr>\n <th>${i18next.t('field.tax invoice month')}</th>\n <th>${i18next.t('field.tax invoice day')}</th>\n <th>${i18next.t('field.tax invoice item name')}</th>\n <th>${i18next.t('field.tax invoice ea')}</th>\n <th>${i18next.t('field.tax invoice quantity')}</th>\n <th>${i18next.t('field.tax invoice price')}</th>\n <th>${i18next.t('field.supply amount')}</th>\n <th>${i18next.t('field.tax amount')}</th>\n <th>${i18next.t('field.remark0')}</th>\n </tr>\n\n ${this.detail.taxInvoiceItems?.map(\n item =>\n html`\n <tr>\n <td>${item.issueDate}</td>\n <td>${item.supplyAmount}</td>\n <td>${item.taxAmount}</td>\n <td>${item.modificationReason}</td>\n <td>${item.remark0}</td>\n </tr>\n `\n )}\n </table>\n </div>\n\n <div class=\"summary\">\n <table>\n <colgroup>\n <col width=\"20%\" />\n <col width=\"20%\" />\n <col width=\"20%\" />\n <col width=\"20%\" />\n <col width=\"20%\" />\n </colgroup>\n <tr>\n <th>${i18next.t('field.total amount')}</th>\n <th>${i18next.t('field.tax invoice payment cash')}</th>\n <th>${i18next.t('field.tax invoice payment check')}</th>\n <th>${i18next.t('field.tax invoice payment promissory note')}</th>\n <th>${i18next.t('field.tax invoice payment accounts receivable')}</th>\n </tr>\n <tr>\n <td>${this._numberFormat(this.detail.totalAmount)}</td>\n <td>${this._numberFormat(this.detail.paymentAmountCash)}</td>\n <td>${this._numberFormat(this.detail.paymentAmountCheck)}</td>\n <td>${this._numberFormat(this.detail.paymentAmountPromissoryNote)}</td>\n <td>${this._numberFormat(this.detail.paymentAmountAccountsReceivable)}</td>\n </tr>\n </table>\n <div>${i18next.t('text.tax invoice description payment', { value: i18next.t(`text.tax invoice description purpose ${this.detail.purpose}`) })}</div>\n </div>\n </div>\n `\n }\n\n async updated(changed) {\n if (changed.has('taxInvoiceId')) {\n this.detail = await this.getTaxInvoiceDetailById(this.taxInvoiceId)\n }\n }\n\n private async getTaxInvoiceDetailById(id: string) {\n if (!id) return {}\n\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n responses: taxInvoice(id: $id) {\n id\n name\n category\n approvalNo\n originalApprovalNo\n issueDate\n signatureDate\n invoiceType\n purpose\n revisedReason\n remark0\n remark1\n remark2\n supplierBusinessRegistrationCategory\n supplierBusinessRegistrationNumber\n supplierBranchIdentification\n supplierBusinessName\n supplierRepresentativeName\n supplierAddress\n supplierBusinessType\n supplierIndustryType\n supplierDepartment\n supplierContactName\n supplierContactPhone\n supplierContactEmail\n supplierContactCellPhone\n buyerBusinessRegistrationCategory\n buyerBusinessRegistrationNumber\n buyerBranchIdentification\n buyerBusinessName\n buyerRepresentativeName\n buyerAddress\n buyerBusinessType\n buyerIndustryType\n buyer1stDepartment\n buyer1stContactName\n buyer1stContactPhone\n buyer1stContactEmail\n buyer1stContactCellPhone\n buyer2ndDepartment\n buyer2ndContactName\n buyer2ndContactPhone\n buyer2ndContactEmail\n buyer2ndContactCellPhone\n agentBusinessRegistrationCategory\n agentBusinessRegistrationNumber\n agentBranchIdentification\n agentBusinessName\n agentRepresentativeName\n agentAddress\n agentBusinessType\n agentIndustryType\n agentDepartment\n agentContactName\n agentContactPhone\n agentContactEmail\n agentContactCellPhone\n paymentAmountCash\n paymentAmountCheck\n paymentAmountPromissoryNote\n paymentAmountAccountsReceivable\n supplyAmount\n taxAmount\n totalAmount\n createdAt\n updater {\n id\n name\n }\n updatedAt\n }\n }\n `,\n variables: { id }\n })\n\n return response.data.responses || {}\n }\n\n private _numberFormat(value: number): string {\n return !value ? '' : new Intl.NumberFormat('en-US').format(value)\n }\n}\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import '@operato/data-grist';
|
|
2
|
+
import { PageView } from '@operato/shell';
|
|
3
|
+
import { FetchOption } from '@operato/data-grist';
|
|
4
|
+
import './tax-invoice-detail-popup';
|
|
5
|
+
export declare const CATEGORY: {
|
|
6
|
+
'10': string;
|
|
7
|
+
'20': string;
|
|
8
|
+
'30': string;
|
|
9
|
+
};
|
|
10
|
+
export declare const INVOICE_TYPE: {
|
|
11
|
+
'0101': string;
|
|
12
|
+
'0102': string;
|
|
13
|
+
'0103': string;
|
|
14
|
+
'0105': string;
|
|
15
|
+
'0201': string;
|
|
16
|
+
'0202': string;
|
|
17
|
+
'0203': string;
|
|
18
|
+
'0204': string;
|
|
19
|
+
'0205': string;
|
|
20
|
+
'0301': string;
|
|
21
|
+
'0303': string;
|
|
22
|
+
'0304': string;
|
|
23
|
+
'0401': string;
|
|
24
|
+
'0403': string;
|
|
25
|
+
'0404': string;
|
|
26
|
+
};
|
|
27
|
+
export declare const PURPOSE: {
|
|
28
|
+
'01': string;
|
|
29
|
+
'02': string;
|
|
30
|
+
};
|
|
31
|
+
declare const TaxInvoiceListPage_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
|
|
32
|
+
export declare class TaxInvoiceListPage extends TaxInvoiceListPage_base {
|
|
33
|
+
static styles: import("lit").CSSResult[];
|
|
34
|
+
gristConfig: any;
|
|
35
|
+
mode: 'CARD' | 'GRID' | 'LIST';
|
|
36
|
+
private grist;
|
|
37
|
+
get context(): {
|
|
38
|
+
title: string;
|
|
39
|
+
help: string;
|
|
40
|
+
actions: {
|
|
41
|
+
icon: string;
|
|
42
|
+
emphasis: {
|
|
43
|
+
raised: boolean;
|
|
44
|
+
outlined: boolean;
|
|
45
|
+
dense: boolean;
|
|
46
|
+
danger: boolean;
|
|
47
|
+
};
|
|
48
|
+
title: string;
|
|
49
|
+
action: () => Promise<void>;
|
|
50
|
+
}[];
|
|
51
|
+
exportable: {
|
|
52
|
+
name: string;
|
|
53
|
+
data: () => Promise<{}[]>;
|
|
54
|
+
accept: string[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
58
|
+
pageInitialized(lifecycle: any): Promise<void>;
|
|
59
|
+
pageUpdated(changes: any, lifecycle: any): Promise<void>;
|
|
60
|
+
fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
|
|
61
|
+
total: any;
|
|
62
|
+
records: any;
|
|
63
|
+
}>;
|
|
64
|
+
_deleteTaxInvoice(): Promise<void>;
|
|
65
|
+
_updateTaxInvoice(): Promise<void>;
|
|
66
|
+
createTaxInvoice(num: string): Promise<void>;
|
|
67
|
+
exportHandler(): Promise<{}[]>;
|
|
68
|
+
private openDetailPopup;
|
|
69
|
+
}
|
|
70
|
+
export {};
|