@things-factory/tax-invoice 8.0.66 → 8.0.69
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/index.ts +10 -0
- package/client/pages/tax-invoice-send/company-list-popup.ts +2 -1
- package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +2 -7
- package/client/pages/tax-invoice-send/tax-invoice-send.ts +102 -21
- package/dist-client/index.d.ts +1 -0
- package/dist-client/index.js +1 -1
- package/dist-client/index.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/company-list-popup.js +7 -3
- 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.js +2 -7
- 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 +1 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js +129 -49
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.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/tax-invoice-query.js +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice.d.ts +1 -0
- package/dist-server/service/tax-invoice/tax-invoice.js +5 -0
- package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -1
- package/dist-server/service/tax-invoice-api/index.d.ts +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.d.ts +2 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js +14 -4
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/tax-invoice/tax-invoice-query.ts +1 -1
- package/server/service/tax-invoice/tax-invoice.ts +4 -0
- package/server/service/tax-invoice-api/tax-invoice-api-mutation.ts +30 -7
|
@@ -65,18 +65,21 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
65
65
|
supplyPrice: 0,
|
|
66
66
|
taxPrice: 0
|
|
67
67
|
};
|
|
68
|
+
this.editMode = true;
|
|
68
69
|
this.supplier = this.defaultSupplier;
|
|
69
70
|
this.buyer = this.defaultBuyer;
|
|
70
71
|
this.taxInvoice = this.defaultTaxInvoice;
|
|
71
72
|
this.taxInvoiceItems = [Object.assign({}, this.defaultTaxInvoiceItem)];
|
|
72
73
|
}
|
|
73
74
|
render() {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
75
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
76
|
+
const invoiceTypeKey = ((_a = this.taxInvoice) === null || _a === void 0 ? void 0 : _a.invoiceType) || InvoiceType.TAX_INVOICE;
|
|
77
|
+
const invoiceTypeLabel = INVOICE_TYPE[invoiceTypeKey] || '';
|
|
78
|
+
const buyerRegCategoryKey = ((_b = this.buyer) === null || _b === void 0 ? void 0 : _b.buyerBusinessRegistrationCategory) || BusinessRegistrationCategory.BUSINESS_REGISTRATION_NUMBER;
|
|
79
|
+
const buyerRegCategoryLabel = SHORT_BUSINESS_REGISTRATION_CATEGORY[buyerRegCategoryKey] || '';
|
|
80
|
+
const readOnly = !this.editMode;
|
|
75
81
|
return html `
|
|
76
|
-
<div class="invoice-type">
|
|
77
|
-
* ${INVOICE_TYPE[(_a = this.taxInvoice) === null || _a === void 0 ? void 0 : _a.invoiceType]}
|
|
78
|
-
(${SHORT_BUSINESS_REGISTRATION_CATEGORY[this.buyer.buyerBusinessRegistrationCategory]})
|
|
79
|
-
</div>
|
|
82
|
+
<div class="invoice-type">* ${invoiceTypeLabel} (${buyerRegCategoryLabel})</div>
|
|
80
83
|
|
|
81
84
|
<div class="title">
|
|
82
85
|
<table>
|
|
@@ -87,16 +90,18 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
87
90
|
const disabled = key !== InvoiceType.TAX_INVOICE && key !== InvoiceType.SMALL_BUSINESS_TAX_INVOICE;
|
|
88
91
|
const checked = key === InvoiceType.TAX_INVOICE;
|
|
89
92
|
return html `
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
<span class="radio-wrapper">
|
|
94
|
+
<label for="${'tax_' + key}">${SHORT_INVOICE_TYPE['TAX_INVOICE'][key]}</label>
|
|
95
|
+
<input
|
|
96
|
+
type="radio"
|
|
97
|
+
id="${'tax_' + key}"
|
|
98
|
+
.value="${key}"
|
|
99
|
+
name="invoiceType"
|
|
100
|
+
?checked=${checked}
|
|
101
|
+
?disabled=${disabled || readOnly}
|
|
102
|
+
@change=${this._onInputTaxInvoice}
|
|
103
|
+
/>
|
|
104
|
+
</span>
|
|
100
105
|
`;
|
|
101
106
|
})}
|
|
102
107
|
</td>
|
|
@@ -113,7 +118,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
113
118
|
value="${key}"
|
|
114
119
|
name="buyerBusinessRegistrationCategory"
|
|
115
120
|
?checked=${checked}
|
|
116
|
-
?disabled=${disabled}
|
|
121
|
+
?disabled=${disabled || readOnly}
|
|
117
122
|
/>
|
|
118
123
|
`;
|
|
119
124
|
})}
|
|
@@ -124,8 +129,8 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
124
129
|
|
|
125
130
|
<div class="body">
|
|
126
131
|
<div class="header">
|
|
127
|
-
<span><button @click=${this._openSupplierPopup}>공급처 선택</button></span>
|
|
128
|
-
<span><button @click=${this._openBuyerPopup}>공급받는자 선택</button></span>
|
|
132
|
+
<span><button @click=${this._openSupplierPopup} ?disabled=${readOnly}>공급처 선택</button></span>
|
|
133
|
+
<span><button @click=${this._openBuyerPopup} ?disabled=${readOnly}>공급받는자 선택</button></span>
|
|
129
134
|
</div>
|
|
130
135
|
|
|
131
136
|
<div class="data">
|
|
@@ -141,10 +146,10 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
141
146
|
<th rowspan="6" class="target">${i18next.t('field.tax invoice supplier')}</th>
|
|
142
147
|
<th required>${i18next.t('field.short business registration number')}</th>
|
|
143
148
|
<td>
|
|
144
|
-
${(
|
|
149
|
+
${(_d = (_c = this.supplier) === null || _c === void 0 ? void 0 : _c.supplierBusinessRegistrationNumber) === null || _d === void 0 ? void 0 : _d.replace(/(\S{3})(\S{2})(\S{5})/g, '$1-$2-$3')}
|
|
145
150
|
</td>
|
|
146
151
|
<th>${i18next.t('field.short branch identification')}</th>
|
|
147
|
-
<td>${(
|
|
152
|
+
<td>${(_e = this.supplier) === null || _e === void 0 ? void 0 : _e.supplierBranchIdentification}</td>
|
|
148
153
|
</tr>
|
|
149
154
|
<tr>
|
|
150
155
|
<th required>${i18next.t('field.short tax invoice business name')}</th>
|
|
@@ -152,8 +157,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
152
157
|
<input
|
|
153
158
|
type="text"
|
|
154
159
|
name="supplierBusinessName"
|
|
155
|
-
.value=${((
|
|
160
|
+
.value=${((_f = this.supplier) === null || _f === void 0 ? void 0 : _f.supplierBusinessName) || ''}
|
|
156
161
|
@input=${this._onInputTaxInvoice}
|
|
162
|
+
?disabled=${readOnly}
|
|
157
163
|
/>
|
|
158
164
|
</td>
|
|
159
165
|
<th required>${i18next.t('field.tax invoice representative name')}</th>
|
|
@@ -161,14 +167,15 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
161
167
|
<input
|
|
162
168
|
type="text"
|
|
163
169
|
name="supplierRepresentativeName"
|
|
164
|
-
.value=${((
|
|
170
|
+
.value=${((_g = this.supplier) === null || _g === void 0 ? void 0 : _g.supplierRepresentativeName) || ''}
|
|
165
171
|
@input=${this._onInputTaxInvoice}
|
|
172
|
+
?disabled=${readOnly}
|
|
166
173
|
/>
|
|
167
174
|
</td>
|
|
168
175
|
</tr>
|
|
169
176
|
<tr>
|
|
170
177
|
<th>${i18next.t('field.address')}</th>
|
|
171
|
-
<td colspan="3">${(
|
|
178
|
+
<td colspan="3">${(_h = this.supplier) === null || _h === void 0 ? void 0 : _h.supplierAddress}</td>
|
|
172
179
|
</tr>
|
|
173
180
|
<tr>
|
|
174
181
|
<th>${i18next.t('field.business type')}</th>
|
|
@@ -176,8 +183,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
176
183
|
<input
|
|
177
184
|
type="text"
|
|
178
185
|
name="supplierBusinessType"
|
|
179
|
-
.value=${((
|
|
186
|
+
.value=${((_j = this.supplier) === null || _j === void 0 ? void 0 : _j.supplierBusinessType) || ''}
|
|
180
187
|
@input=${this._onInputTaxInvoice}
|
|
188
|
+
?disabled=${readOnly}
|
|
181
189
|
/>
|
|
182
190
|
</td>
|
|
183
191
|
<th>${i18next.t('field.industry type')}</th>
|
|
@@ -185,8 +193,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
185
193
|
<input
|
|
186
194
|
type="text"
|
|
187
195
|
name="supplierIndustryType"
|
|
188
|
-
.value=${((
|
|
196
|
+
.value=${((_k = this.supplier) === null || _k === void 0 ? void 0 : _k.supplierIndustryType) || ''}
|
|
189
197
|
@input=${this._onInputTaxInvoice}
|
|
198
|
+
?disabled=${readOnly}
|
|
190
199
|
/>
|
|
191
200
|
</td>
|
|
192
201
|
</tr>
|
|
@@ -196,8 +205,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
196
205
|
<input
|
|
197
206
|
type="text"
|
|
198
207
|
name="supplierContactEmail"
|
|
199
|
-
.value=${((
|
|
208
|
+
.value=${((_l = this.supplier) === null || _l === void 0 ? void 0 : _l.supplierContactEmail) || ''}
|
|
200
209
|
@input=${this._onInputTaxInvoice}
|
|
210
|
+
?disabled=${readOnly}
|
|
201
211
|
/>
|
|
202
212
|
</td>
|
|
203
213
|
</tr>
|
|
@@ -220,8 +230,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
220
230
|
type="text"
|
|
221
231
|
maxlength="10"
|
|
222
232
|
name="buyerBusinessRegistrationNumber"
|
|
223
|
-
.value=${((
|
|
233
|
+
.value=${((_m = this.buyer) === null || _m === void 0 ? void 0 : _m.buyerBusinessRegistrationNumber) || ''}
|
|
224
234
|
@input=${this._onInputTaxInvoice}
|
|
235
|
+
?disabled=${readOnly}
|
|
225
236
|
/>
|
|
226
237
|
</td>
|
|
227
238
|
<th>${i18next.t('field.short branch identification')}</th>
|
|
@@ -229,8 +240,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
229
240
|
<input
|
|
230
241
|
type="text"
|
|
231
242
|
name="buyerBranchIdentification"
|
|
232
|
-
.value=${((
|
|
243
|
+
.value=${((_o = this.buyer) === null || _o === void 0 ? void 0 : _o.buyerBranchIdentification) || ''}
|
|
233
244
|
@input=${this._onInputTaxInvoice}
|
|
245
|
+
?disabled=${readOnly}
|
|
234
246
|
/>
|
|
235
247
|
</td>
|
|
236
248
|
</tr>
|
|
@@ -240,8 +252,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
240
252
|
<input
|
|
241
253
|
type="text"
|
|
242
254
|
name="buyerBusinessName"
|
|
243
|
-
.value=${((
|
|
255
|
+
.value=${((_p = this.buyer) === null || _p === void 0 ? void 0 : _p.buyerBusinessName) || ''}
|
|
244
256
|
@input=${this._onInputTaxInvoice}
|
|
257
|
+
?disabled=${readOnly}
|
|
245
258
|
/>
|
|
246
259
|
</td>
|
|
247
260
|
<th required>${i18next.t('field.tax invoice representative name')}</th>
|
|
@@ -249,8 +262,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
249
262
|
<input
|
|
250
263
|
type="text"
|
|
251
264
|
name="buyerRepresentativeName"
|
|
252
|
-
.value=${((
|
|
265
|
+
.value=${((_q = this.buyer) === null || _q === void 0 ? void 0 : _q.buyerRepresentativeName) || ''}
|
|
253
266
|
@input=${this._onInputTaxInvoice}
|
|
267
|
+
?disabled=${readOnly}
|
|
254
268
|
/>
|
|
255
269
|
</td>
|
|
256
270
|
</tr>
|
|
@@ -260,8 +274,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
260
274
|
<input
|
|
261
275
|
type="text"
|
|
262
276
|
name="buyerAddress"
|
|
263
|
-
.value=${((
|
|
277
|
+
.value=${((_r = this.buyer) === null || _r === void 0 ? void 0 : _r.buyerAddress) || ''}
|
|
264
278
|
@input=${this._onInputTaxInvoice}
|
|
279
|
+
?disabled=${readOnly}
|
|
265
280
|
/>
|
|
266
281
|
</td>
|
|
267
282
|
</tr>
|
|
@@ -271,8 +286,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
271
286
|
<input
|
|
272
287
|
type="text"
|
|
273
288
|
name="buyerBusinessType"
|
|
274
|
-
.value=${((
|
|
289
|
+
.value=${((_s = this.buyer) === null || _s === void 0 ? void 0 : _s.buyerBusinessType) || ''}
|
|
275
290
|
@input=${this._onInputTaxInvoice}
|
|
291
|
+
?disabled=${readOnly}
|
|
276
292
|
/>
|
|
277
293
|
</td>
|
|
278
294
|
|
|
@@ -281,8 +297,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
281
297
|
<input
|
|
282
298
|
type="text"
|
|
283
299
|
name="buyerIndustryType"
|
|
284
|
-
.value=${((
|
|
300
|
+
.value=${((_t = this.buyer) === null || _t === void 0 ? void 0 : _t.buyerIndustryType) || ''}
|
|
285
301
|
@input=${this._onInputTaxInvoice}
|
|
302
|
+
?disabled=${readOnly}
|
|
286
303
|
/>
|
|
287
304
|
</td>
|
|
288
305
|
</tr>
|
|
@@ -292,8 +309,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
292
309
|
<input
|
|
293
310
|
type="text"
|
|
294
311
|
name="buyer1stContactEmail"
|
|
295
|
-
.value=${((
|
|
312
|
+
.value=${((_u = this.buyer) === null || _u === void 0 ? void 0 : _u.buyer1stContactEmail) || ''}
|
|
296
313
|
@input=${this._onInputTaxInvoice}
|
|
314
|
+
?disabled=${readOnly}
|
|
297
315
|
/>
|
|
298
316
|
</td>
|
|
299
317
|
</tr>
|
|
@@ -303,8 +321,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
303
321
|
<input
|
|
304
322
|
type="text"
|
|
305
323
|
name="buyer2ndContactEmail"
|
|
306
|
-
.value=${((
|
|
324
|
+
.value=${((_v = this.buyer) === null || _v === void 0 ? void 0 : _v.buyer2ndContactEmail) || ''}
|
|
307
325
|
@input=${this._onInputTaxInvoice}
|
|
326
|
+
?disabled=${readOnly}
|
|
308
327
|
/>
|
|
309
328
|
</td>
|
|
310
329
|
</tr>
|
|
@@ -320,6 +339,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
320
339
|
name="issueDate"
|
|
321
340
|
.value=${this.taxInvoice.issueDate}
|
|
322
341
|
@input=${this._onInputTaxInvoice}
|
|
342
|
+
?disabled=${readOnly}
|
|
323
343
|
/>
|
|
324
344
|
<span class="desc">※ 작성일자는 공급 연월일을 의미함</span>
|
|
325
345
|
</div>
|
|
@@ -328,18 +348,19 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
328
348
|
<input
|
|
329
349
|
type="text"
|
|
330
350
|
name="remark0"
|
|
331
|
-
.value=${((
|
|
351
|
+
.value=${((_w = this.taxInvoice) === null || _w === void 0 ? void 0 : _w.remark0) || ''}
|
|
332
352
|
@input=${this._onInputTaxInvoice}
|
|
353
|
+
?disabled=${readOnly}
|
|
333
354
|
/>
|
|
334
355
|
</div>
|
|
335
356
|
</div>
|
|
336
357
|
<div class="flex-row">
|
|
337
358
|
<div class="title">${i18next.t('field.total amount')}</div>
|
|
338
|
-
<div class="value">${this._numberFormat((
|
|
359
|
+
<div class="value">${this._numberFormat((_x = this.taxInvoice) === null || _x === void 0 ? void 0 : _x.totalAmount)}</div>
|
|
339
360
|
<div class="title">${i18next.t('field.supply amount')}</div>
|
|
340
|
-
<div class="value">${this._numberFormat((
|
|
361
|
+
<div class="value">${this._numberFormat((_y = this.taxInvoice) === null || _y === void 0 ? void 0 : _y.supplyAmount)}</div>
|
|
341
362
|
<div class="title">${i18next.t('field.tax amount')}</div>
|
|
342
|
-
<div class="value">${this._numberFormat((
|
|
363
|
+
<div class="value">${this._numberFormat((_z = this.taxInvoice) === null || _z === void 0 ? void 0 : _z.taxAmount)}</div>
|
|
343
364
|
</div>
|
|
344
365
|
</div>
|
|
345
366
|
|
|
@@ -349,8 +370,8 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
349
370
|
세액으로 계산할 수 있습니다.
|
|
350
371
|
</div>
|
|
351
372
|
<div class="desc">
|
|
352
|
-
<button class="btn-add" @click=${this._onAddInvoiceItem}>품목추가</button> 품목은 최대
|
|
353
|
-
가능
|
|
373
|
+
<button class="btn-add" @click=${this._onAddInvoiceItem} ?disabled=${readOnly}>품목추가</button> 품목은 최대
|
|
374
|
+
16개까지 추가, 삭제 가능
|
|
354
375
|
</div>
|
|
355
376
|
|
|
356
377
|
<table>
|
|
@@ -379,7 +400,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
379
400
|
<th>${i18next.t('field.delete')}</th>
|
|
380
401
|
</tr>
|
|
381
402
|
|
|
382
|
-
${this.taxInvoiceItems.map((item, idx) =>
|
|
403
|
+
${this.taxInvoiceItems.map((item, idx) => {
|
|
404
|
+
var _a, _b;
|
|
405
|
+
return html `
|
|
383
406
|
<tr>
|
|
384
407
|
<input type="hidden" name="sequence" value=${item.sequence} />
|
|
385
408
|
<td>${this.taxInvoice.issueDate.split('-')[1]}</td>
|
|
@@ -389,7 +412,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
389
412
|
numeric
|
|
390
413
|
maxlength="2"
|
|
391
414
|
name="supplyDate"
|
|
415
|
+
.value=${((_b = (_a = item.supplyDate) === null || _a === void 0 ? void 0 : _a.split('-')) === null || _b === void 0 ? void 0 : _b[2]) || ''}
|
|
392
416
|
@input=${e => this._onInputItem(e, idx)}
|
|
417
|
+
?disabled=${readOnly}
|
|
393
418
|
/>
|
|
394
419
|
</td>
|
|
395
420
|
<td>
|
|
@@ -398,6 +423,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
398
423
|
name="itemName"
|
|
399
424
|
.value=${item.itemName}
|
|
400
425
|
@input=${e => this._onInputItem(e, idx)}
|
|
426
|
+
?disabled=${readOnly}
|
|
401
427
|
/>
|
|
402
428
|
</td>
|
|
403
429
|
<td>
|
|
@@ -406,6 +432,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
406
432
|
name="specification"
|
|
407
433
|
.value=${item.specification}
|
|
408
434
|
@input=${e => this._onInputItem(e, idx)}
|
|
435
|
+
?disabled=${readOnly}
|
|
409
436
|
/>
|
|
410
437
|
</td>
|
|
411
438
|
<td>
|
|
@@ -415,6 +442,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
415
442
|
name="quantity"
|
|
416
443
|
.value=${this._numberFormat(item.quantity)}
|
|
417
444
|
@input=${e => this._onInputItem(e, idx)}
|
|
445
|
+
?disabled=${readOnly}
|
|
418
446
|
/>
|
|
419
447
|
</td>
|
|
420
448
|
<td>
|
|
@@ -424,6 +452,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
424
452
|
name="unitPrice"
|
|
425
453
|
.value=${this._numberFormat(item.unitPrice)}
|
|
426
454
|
@input=${e => this._onInputItem(e, idx)}
|
|
455
|
+
?disabled=${readOnly}
|
|
427
456
|
/>
|
|
428
457
|
</td>
|
|
429
458
|
<td>
|
|
@@ -433,6 +462,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
433
462
|
name="supplyPrice"
|
|
434
463
|
.value=${this._numberFormat(item.supplyPrice)}
|
|
435
464
|
@input=${e => this._onInputItem(e, idx)}
|
|
465
|
+
?disabled=${readOnly}
|
|
436
466
|
/>
|
|
437
467
|
</td>
|
|
438
468
|
<td>
|
|
@@ -442,7 +472,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
442
472
|
name="taxPrice"
|
|
443
473
|
.value=${this._numberFormat(item.taxPrice)}
|
|
444
474
|
@input=${e => this._onInputItem(e, idx)}
|
|
445
|
-
|
|
475
|
+
?disabled=${this.isTaxFree || readOnly}
|
|
446
476
|
/>
|
|
447
477
|
</td>
|
|
448
478
|
<td>
|
|
@@ -451,13 +481,21 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
451
481
|
name="remark"
|
|
452
482
|
.value=${item.remark || ''}
|
|
453
483
|
@input=${e => this._onInputItem(e, idx)}
|
|
484
|
+
?disabled=${readOnly}
|
|
454
485
|
/>
|
|
455
486
|
</td>
|
|
456
487
|
<td>
|
|
457
|
-
<button
|
|
488
|
+
<button
|
|
489
|
+
class="btn-delete"
|
|
490
|
+
@click=${e => this._onRemoveInvoiceItem(e, item.sequence)}
|
|
491
|
+
?disabled=${readOnly}
|
|
492
|
+
>
|
|
493
|
+
삭제
|
|
494
|
+
</button>
|
|
458
495
|
</td>
|
|
459
496
|
</tr>
|
|
460
|
-
|
|
497
|
+
`;
|
|
498
|
+
})}
|
|
461
499
|
</table>
|
|
462
500
|
</div>
|
|
463
501
|
|
|
@@ -481,8 +519,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
481
519
|
type="text"
|
|
482
520
|
numeric
|
|
483
521
|
name="paymentAmountCash"
|
|
484
|
-
.value=${((
|
|
522
|
+
.value=${((_0 = this.taxInvoice) === null || _0 === void 0 ? void 0 : _0.paymentAmountCash) || ''}
|
|
485
523
|
@input=${this._onInputTaxInvoice}
|
|
524
|
+
?disabled=${readOnly}
|
|
486
525
|
/>
|
|
487
526
|
</td>
|
|
488
527
|
<td>
|
|
@@ -490,8 +529,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
490
529
|
type="text"
|
|
491
530
|
numeric
|
|
492
531
|
name="paymentAmountCheck"
|
|
493
|
-
.value=${((
|
|
532
|
+
.value=${((_1 = this.taxInvoice) === null || _1 === void 0 ? void 0 : _1.paymentAmountCheck) || ''}
|
|
494
533
|
@input=${this._onInputTaxInvoice}
|
|
534
|
+
?disabled=${readOnly}
|
|
495
535
|
/>
|
|
496
536
|
</td>
|
|
497
537
|
<td>
|
|
@@ -499,8 +539,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
499
539
|
type="text"
|
|
500
540
|
numeric
|
|
501
541
|
name="paymentAmountPromissoryNote"
|
|
502
|
-
.value=${((
|
|
542
|
+
.value=${((_2 = this.taxInvoice) === null || _2 === void 0 ? void 0 : _2.paymentAmountPromissoryNote) || ''}
|
|
503
543
|
@input=${this._onInputTaxInvoice}
|
|
544
|
+
?disabled=${readOnly}
|
|
504
545
|
/>
|
|
505
546
|
</td>
|
|
506
547
|
<td>
|
|
@@ -508,8 +549,9 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
508
549
|
type="text"
|
|
509
550
|
numeric
|
|
510
551
|
name="paymentAmountAccountsReceivable"
|
|
511
|
-
.value=${((
|
|
552
|
+
.value=${((_3 = this.taxInvoice) === null || _3 === void 0 ? void 0 : _3.paymentAmountAccountsReceivable) || ''}
|
|
512
553
|
@input=${this._onInputTaxInvoice}
|
|
554
|
+
?disabled=${readOnly}
|
|
513
555
|
/>
|
|
514
556
|
</td>
|
|
515
557
|
</tr>
|
|
@@ -525,6 +567,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
525
567
|
.value=${Purpose.INVOICE}
|
|
526
568
|
@change=${this._onInputTaxInvoice}
|
|
527
569
|
checked
|
|
570
|
+
?disabled=${readOnly}
|
|
528
571
|
/>
|
|
529
572
|
<label for="purpose_20">${PURPOSE[Purpose.INVOICE]}</label>
|
|
530
573
|
</div>
|
|
@@ -535,6 +578,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
535
578
|
name="purpose"
|
|
536
579
|
.value=${Purpose.RECEIPT}
|
|
537
580
|
@change=${this._onInputTaxInvoice}
|
|
581
|
+
?disabled=${readOnly}
|
|
538
582
|
/>
|
|
539
583
|
<label for="purpose_10">${PURPOSE[Purpose.RECEIPT]}</label>
|
|
540
584
|
</div>
|
|
@@ -709,6 +753,11 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
709
753
|
supplierContactEmail: e.detail.contactEmail || '',
|
|
710
754
|
supplierContactCellPhone: e.detail.contactCellPhone || ''
|
|
711
755
|
};
|
|
756
|
+
this.dispatchEvent(new CustomEvent('supplier-selected', {
|
|
757
|
+
detail: { supplier: this.supplier },
|
|
758
|
+
bubbles: true,
|
|
759
|
+
composed: true
|
|
760
|
+
}));
|
|
712
761
|
history.back();
|
|
713
762
|
}}
|
|
714
763
|
>
|
|
@@ -762,6 +811,11 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
762
811
|
buyer1stContactEmail: e.detail.contactEmail || '',
|
|
763
812
|
buyer1stContactCellPhone: e.detail.contactCellPhone || ''
|
|
764
813
|
};
|
|
814
|
+
this.dispatchEvent(new CustomEvent('buyer-selected', {
|
|
815
|
+
detail: { buyer: this.buyer },
|
|
816
|
+
bubbles: true,
|
|
817
|
+
composed: true
|
|
818
|
+
}));
|
|
765
819
|
history.back();
|
|
766
820
|
}}
|
|
767
821
|
>
|
|
@@ -846,6 +900,16 @@ TaxInvoiceSend.styles = [
|
|
|
846
900
|
input:disabled {
|
|
847
901
|
background-color: #eee;
|
|
848
902
|
}
|
|
903
|
+
input[type='radio'] {
|
|
904
|
+
cursor: pointer;
|
|
905
|
+
}
|
|
906
|
+
input[type='radio']:disabled {
|
|
907
|
+
cursor: default;
|
|
908
|
+
}
|
|
909
|
+
input[type='radio'] + label,
|
|
910
|
+
label + input[type='radio'] {
|
|
911
|
+
cursor: pointer;
|
|
912
|
+
}
|
|
849
913
|
|
|
850
914
|
div.invoice-type {
|
|
851
915
|
font-size: 18px;
|
|
@@ -881,6 +945,17 @@ TaxInvoiceSend.styles = [
|
|
|
881
945
|
& > input {
|
|
882
946
|
margin: 0 5px 0 1px;
|
|
883
947
|
}
|
|
948
|
+
& .radio-wrapper {
|
|
949
|
+
display: inline-flex;
|
|
950
|
+
align-items: center;
|
|
951
|
+
gap: 4px;
|
|
952
|
+
margin-right: 6px;
|
|
953
|
+
cursor: pointer;
|
|
954
|
+
|
|
955
|
+
input[type='radio'] {
|
|
956
|
+
margin: 0;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
884
959
|
}
|
|
885
960
|
}
|
|
886
961
|
|
|
@@ -1012,6 +1087,7 @@ TaxInvoiceSend.styles = [
|
|
|
1012
1087
|
|
|
1013
1088
|
span.type-wrapper {
|
|
1014
1089
|
margin: 0 10px;
|
|
1090
|
+
cursor: pointer;
|
|
1015
1091
|
|
|
1016
1092
|
& > div {
|
|
1017
1093
|
display: flex;
|
|
@@ -1063,6 +1139,10 @@ TaxInvoiceSend.styles = [
|
|
|
1063
1139
|
}
|
|
1064
1140
|
`
|
|
1065
1141
|
];
|
|
1142
|
+
__decorate([
|
|
1143
|
+
property({ type: Boolean }),
|
|
1144
|
+
__metadata("design:type", Boolean)
|
|
1145
|
+
], TaxInvoiceSend.prototype, "editMode", void 0);
|
|
1066
1146
|
__decorate([
|
|
1067
1147
|
property({ type: Object }),
|
|
1068
1148
|
__metadata("design:type", Object)
|