@things-factory/tax-invoice 9.1.19 → 9.2.5
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/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/tax-invoice-list-page.js +11 -0
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -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/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.d.ts +1 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +23 -17
- 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 +100 -22
- 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/tax-invoice/tax-invoice-mutation.js +13 -3
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.d.ts +1 -0
- package/dist-server/service/tax-invoice/tax-invoice-query.js +19 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +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/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/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/unipost-api/tax-invoice-inquiry.js +2 -0
- package/dist-server/service/unipost-api/tax-invoice-inquiry.js.map +1 -1
- package/dist-server/service/unipost-api/tax-invoice-send.js +1 -0
- package/dist-server/service/unipost-api/tax-invoice-send.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/things-factory.config.js +8 -2
- package/translations/ko.json +2 -1
|
@@ -65,6 +65,7 @@ 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;
|
|
@@ -117,6 +118,16 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
117
118
|
input:disabled {
|
|
118
119
|
background-color: #eee;
|
|
119
120
|
}
|
|
121
|
+
input[type='radio'] {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
input[type='radio']:disabled {
|
|
125
|
+
cursor: default;
|
|
126
|
+
}
|
|
127
|
+
input[type='radio'] + label,
|
|
128
|
+
label + input[type='radio'] {
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
120
131
|
|
|
121
132
|
div.invoice-type {
|
|
122
133
|
font-size: 18px;
|
|
@@ -152,6 +163,17 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
152
163
|
& > input {
|
|
153
164
|
margin: 0 5px 0 1px;
|
|
154
165
|
}
|
|
166
|
+
& .radio-wrapper {
|
|
167
|
+
display: inline-flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: 4px;
|
|
170
|
+
margin-right: 6px;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
|
|
173
|
+
input[type='radio'] {
|
|
174
|
+
margin: 0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
155
177
|
}
|
|
156
178
|
}
|
|
157
179
|
|
|
@@ -283,6 +305,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
283
305
|
|
|
284
306
|
span.type-wrapper {
|
|
285
307
|
margin: 0 10px;
|
|
308
|
+
cursor: pointer;
|
|
286
309
|
|
|
287
310
|
& > div {
|
|
288
311
|
display: flex;
|
|
@@ -335,11 +358,15 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
335
358
|
`
|
|
336
359
|
]; }
|
|
337
360
|
render() {
|
|
361
|
+
let invoiceTypeKey = this.taxInvoice?.invoiceType || InvoiceType.TAX_INVOICE;
|
|
362
|
+
// 일반 전자계산서는 일반 전자세금계산서 타입으로 변환
|
|
363
|
+
invoiceTypeKey = invoiceTypeKey === InvoiceType.INVOICE ? InvoiceType.TAX_INVOICE : invoiceTypeKey;
|
|
364
|
+
const invoiceTypeLabel = INVOICE_TYPE[invoiceTypeKey] || '';
|
|
365
|
+
const buyerRegCategoryKey = this.buyer?.buyerBusinessRegistrationCategory || BusinessRegistrationCategory.BUSINESS_REGISTRATION_NUMBER;
|
|
366
|
+
const buyerRegCategoryLabel = SHORT_BUSINESS_REGISTRATION_CATEGORY[buyerRegCategoryKey] || '';
|
|
367
|
+
const readOnly = !this.editMode;
|
|
338
368
|
return html `
|
|
339
|
-
<div class="invoice-type">
|
|
340
|
-
* ${INVOICE_TYPE[this.taxInvoice?.invoiceType]}
|
|
341
|
-
(${SHORT_BUSINESS_REGISTRATION_CATEGORY[this.buyer.buyerBusinessRegistrationCategory]})
|
|
342
|
-
</div>
|
|
369
|
+
<div class="invoice-type">* ${invoiceTypeLabel} (${buyerRegCategoryLabel})</div>
|
|
343
370
|
|
|
344
371
|
<div class="title">
|
|
345
372
|
<table>
|
|
@@ -348,18 +375,20 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
348
375
|
<td>
|
|
349
376
|
${Object.keys(SHORT_INVOICE_TYPE['TAX_INVOICE']).map(key => {
|
|
350
377
|
const disabled = key !== InvoiceType.TAX_INVOICE && key !== InvoiceType.SMALL_BUSINESS_TAX_INVOICE;
|
|
351
|
-
const checked = key ===
|
|
378
|
+
const checked = key === invoiceTypeKey;
|
|
352
379
|
return html `
|
|
353
|
-
<
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
380
|
+
<span class="radio-wrapper">
|
|
381
|
+
<label for="${'tax_' + key}">${SHORT_INVOICE_TYPE['TAX_INVOICE'][key]}</label>
|
|
382
|
+
<input
|
|
383
|
+
type="radio"
|
|
384
|
+
id="${'tax_' + key}"
|
|
385
|
+
.value="${key}"
|
|
386
|
+
name="invoiceType"
|
|
387
|
+
?checked=${checked}
|
|
388
|
+
?disabled=${disabled || readOnly}
|
|
389
|
+
@change=${this._onInputTaxInvoice}
|
|
390
|
+
/>
|
|
391
|
+
</span>
|
|
363
392
|
`;
|
|
364
393
|
})}
|
|
365
394
|
</td>
|
|
@@ -376,7 +405,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
376
405
|
value="${key}"
|
|
377
406
|
name="buyerBusinessRegistrationCategory"
|
|
378
407
|
?checked=${checked}
|
|
379
|
-
?disabled=${disabled}
|
|
408
|
+
?disabled=${disabled || readOnly}
|
|
380
409
|
/>
|
|
381
410
|
`;
|
|
382
411
|
})}
|
|
@@ -387,8 +416,8 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
387
416
|
|
|
388
417
|
<div class="body">
|
|
389
418
|
<div class="header">
|
|
390
|
-
<span><button @click=${this._openSupplierPopup}>공급처 선택</button></span>
|
|
391
|
-
<span><button @click=${this._openBuyerPopup}>공급받는자 선택</button></span>
|
|
419
|
+
<span><button @click=${this._openSupplierPopup} ?disabled=${readOnly}>공급처 선택</button></span>
|
|
420
|
+
<span><button @click=${this._openBuyerPopup} ?disabled=${readOnly}>공급받는자 선택</button></span>
|
|
392
421
|
</div>
|
|
393
422
|
|
|
394
423
|
<div class="data">
|
|
@@ -417,6 +446,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
417
446
|
name="supplierBusinessName"
|
|
418
447
|
.value=${this.supplier?.supplierBusinessName || ''}
|
|
419
448
|
@input=${this._onInputTaxInvoice}
|
|
449
|
+
?disabled=${readOnly}
|
|
420
450
|
/>
|
|
421
451
|
</td>
|
|
422
452
|
<th required>${i18next.t('field.tax invoice representative name')}</th>
|
|
@@ -426,6 +456,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
426
456
|
name="supplierRepresentativeName"
|
|
427
457
|
.value=${this.supplier?.supplierRepresentativeName || ''}
|
|
428
458
|
@input=${this._onInputTaxInvoice}
|
|
459
|
+
?disabled=${readOnly}
|
|
429
460
|
/>
|
|
430
461
|
</td>
|
|
431
462
|
</tr>
|
|
@@ -441,6 +472,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
441
472
|
name="supplierBusinessType"
|
|
442
473
|
.value=${this.supplier?.supplierBusinessType || ''}
|
|
443
474
|
@input=${this._onInputTaxInvoice}
|
|
475
|
+
?disabled=${readOnly}
|
|
444
476
|
/>
|
|
445
477
|
</td>
|
|
446
478
|
<th>${i18next.t('field.industry type')}</th>
|
|
@@ -450,6 +482,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
450
482
|
name="supplierIndustryType"
|
|
451
483
|
.value=${this.supplier?.supplierIndustryType || ''}
|
|
452
484
|
@input=${this._onInputTaxInvoice}
|
|
485
|
+
?disabled=${readOnly}
|
|
453
486
|
/>
|
|
454
487
|
</td>
|
|
455
488
|
</tr>
|
|
@@ -461,6 +494,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
461
494
|
name="supplierContactEmail"
|
|
462
495
|
.value=${this.supplier?.supplierContactEmail || ''}
|
|
463
496
|
@input=${this._onInputTaxInvoice}
|
|
497
|
+
?disabled=${readOnly}
|
|
464
498
|
/>
|
|
465
499
|
</td>
|
|
466
500
|
</tr>
|
|
@@ -485,6 +519,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
485
519
|
name="buyerBusinessRegistrationNumber"
|
|
486
520
|
.value=${this.buyer?.buyerBusinessRegistrationNumber || ''}
|
|
487
521
|
@input=${this._onInputTaxInvoice}
|
|
522
|
+
?disabled=${readOnly}
|
|
488
523
|
/>
|
|
489
524
|
</td>
|
|
490
525
|
<th>${i18next.t('field.short branch identification')}</th>
|
|
@@ -494,6 +529,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
494
529
|
name="buyerBranchIdentification"
|
|
495
530
|
.value=${this.buyer?.buyerBranchIdentification || ''}
|
|
496
531
|
@input=${this._onInputTaxInvoice}
|
|
532
|
+
?disabled=${readOnly}
|
|
497
533
|
/>
|
|
498
534
|
</td>
|
|
499
535
|
</tr>
|
|
@@ -505,6 +541,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
505
541
|
name="buyerBusinessName"
|
|
506
542
|
.value=${this.buyer?.buyerBusinessName || ''}
|
|
507
543
|
@input=${this._onInputTaxInvoice}
|
|
544
|
+
?disabled=${readOnly}
|
|
508
545
|
/>
|
|
509
546
|
</td>
|
|
510
547
|
<th required>${i18next.t('field.tax invoice representative name')}</th>
|
|
@@ -514,6 +551,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
514
551
|
name="buyerRepresentativeName"
|
|
515
552
|
.value=${this.buyer?.buyerRepresentativeName || ''}
|
|
516
553
|
@input=${this._onInputTaxInvoice}
|
|
554
|
+
?disabled=${readOnly}
|
|
517
555
|
/>
|
|
518
556
|
</td>
|
|
519
557
|
</tr>
|
|
@@ -525,6 +563,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
525
563
|
name="buyerAddress"
|
|
526
564
|
.value=${this.buyer?.buyerAddress || ''}
|
|
527
565
|
@input=${this._onInputTaxInvoice}
|
|
566
|
+
?disabled=${readOnly}
|
|
528
567
|
/>
|
|
529
568
|
</td>
|
|
530
569
|
</tr>
|
|
@@ -536,6 +575,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
536
575
|
name="buyerBusinessType"
|
|
537
576
|
.value=${this.buyer?.buyerBusinessType || ''}
|
|
538
577
|
@input=${this._onInputTaxInvoice}
|
|
578
|
+
?disabled=${readOnly}
|
|
539
579
|
/>
|
|
540
580
|
</td>
|
|
541
581
|
|
|
@@ -546,6 +586,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
546
586
|
name="buyerIndustryType"
|
|
547
587
|
.value=${this.buyer?.buyerIndustryType || ''}
|
|
548
588
|
@input=${this._onInputTaxInvoice}
|
|
589
|
+
?disabled=${readOnly}
|
|
549
590
|
/>
|
|
550
591
|
</td>
|
|
551
592
|
</tr>
|
|
@@ -557,6 +598,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
557
598
|
name="buyer1stContactEmail"
|
|
558
599
|
.value=${this.buyer?.buyer1stContactEmail || ''}
|
|
559
600
|
@input=${this._onInputTaxInvoice}
|
|
601
|
+
?disabled=${readOnly}
|
|
560
602
|
/>
|
|
561
603
|
</td>
|
|
562
604
|
</tr>
|
|
@@ -568,6 +610,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
568
610
|
name="buyer2ndContactEmail"
|
|
569
611
|
.value=${this.buyer?.buyer2ndContactEmail || ''}
|
|
570
612
|
@input=${this._onInputTaxInvoice}
|
|
613
|
+
?disabled=${readOnly}
|
|
571
614
|
/>
|
|
572
615
|
</td>
|
|
573
616
|
</tr>
|
|
@@ -583,6 +626,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
583
626
|
name="issueDate"
|
|
584
627
|
.value=${this.taxInvoice.issueDate}
|
|
585
628
|
@input=${this._onInputTaxInvoice}
|
|
629
|
+
@click=${(e) => e.target.showPicker()}
|
|
586
630
|
/>
|
|
587
631
|
<span class="desc">※ 작성일자는 공급 연월일을 의미함</span>
|
|
588
632
|
</div>
|
|
@@ -593,6 +637,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
593
637
|
name="remark0"
|
|
594
638
|
.value=${this.taxInvoice?.remark0 || ''}
|
|
595
639
|
@input=${this._onInputTaxInvoice}
|
|
640
|
+
?disabled=${readOnly}
|
|
596
641
|
/>
|
|
597
642
|
</div>
|
|
598
643
|
</div>
|
|
@@ -612,8 +657,8 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
612
657
|
세액으로 계산할 수 있습니다.
|
|
613
658
|
</div>
|
|
614
659
|
<div class="desc">
|
|
615
|
-
<button class="btn-add" @click=${this._onAddInvoiceItem}>품목추가</button> 품목은 최대
|
|
616
|
-
가능
|
|
660
|
+
<button class="btn-add" @click=${this._onAddInvoiceItem} ?disabled=${readOnly}>품목추가</button> 품목은 최대
|
|
661
|
+
16개까지 추가, 삭제 가능
|
|
617
662
|
</div>
|
|
618
663
|
|
|
619
664
|
<table>
|
|
@@ -652,6 +697,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
652
697
|
numeric
|
|
653
698
|
maxlength="2"
|
|
654
699
|
name="supplyDate"
|
|
700
|
+
.value=${item.supplyDate?.split('-')?.[2] || ''}
|
|
655
701
|
@input=${e => this._onInputItem(e, idx)}
|
|
656
702
|
/>
|
|
657
703
|
</td>
|
|
@@ -661,6 +707,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
661
707
|
name="itemName"
|
|
662
708
|
.value=${item.itemName}
|
|
663
709
|
@input=${e => this._onInputItem(e, idx)}
|
|
710
|
+
?disabled=${readOnly}
|
|
664
711
|
/>
|
|
665
712
|
</td>
|
|
666
713
|
<td>
|
|
@@ -669,6 +716,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
669
716
|
name="specification"
|
|
670
717
|
.value=${item.specification}
|
|
671
718
|
@input=${e => this._onInputItem(e, idx)}
|
|
719
|
+
?disabled=${readOnly}
|
|
672
720
|
/>
|
|
673
721
|
</td>
|
|
674
722
|
<td>
|
|
@@ -678,6 +726,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
678
726
|
name="quantity"
|
|
679
727
|
.value=${this._numberFormat(item.quantity)}
|
|
680
728
|
@input=${e => this._onInputItem(e, idx)}
|
|
729
|
+
?disabled=${readOnly}
|
|
681
730
|
/>
|
|
682
731
|
</td>
|
|
683
732
|
<td>
|
|
@@ -687,6 +736,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
687
736
|
name="unitPrice"
|
|
688
737
|
.value=${this._numberFormat(item.unitPrice)}
|
|
689
738
|
@input=${e => this._onInputItem(e, idx)}
|
|
739
|
+
?disabled=${readOnly}
|
|
690
740
|
/>
|
|
691
741
|
</td>
|
|
692
742
|
<td>
|
|
@@ -696,6 +746,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
696
746
|
name="supplyPrice"
|
|
697
747
|
.value=${this._numberFormat(item.supplyPrice)}
|
|
698
748
|
@input=${e => this._onInputItem(e, idx)}
|
|
749
|
+
?disabled=${readOnly}
|
|
699
750
|
/>
|
|
700
751
|
</td>
|
|
701
752
|
<td>
|
|
@@ -705,7 +756,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
705
756
|
name="taxPrice"
|
|
706
757
|
.value=${this._numberFormat(item.taxPrice)}
|
|
707
758
|
@input=${e => this._onInputItem(e, idx)}
|
|
708
|
-
|
|
759
|
+
?disabled=${this.isTaxFree || readOnly}
|
|
709
760
|
/>
|
|
710
761
|
</td>
|
|
711
762
|
<td>
|
|
@@ -714,10 +765,17 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
714
765
|
name="remark"
|
|
715
766
|
.value=${item.remark || ''}
|
|
716
767
|
@input=${e => this._onInputItem(e, idx)}
|
|
768
|
+
?disabled=${readOnly}
|
|
717
769
|
/>
|
|
718
770
|
</td>
|
|
719
771
|
<td>
|
|
720
|
-
<button
|
|
772
|
+
<button
|
|
773
|
+
class="btn-delete"
|
|
774
|
+
@click=${e => this._onRemoveInvoiceItem(e, item.sequence)}
|
|
775
|
+
?disabled=${readOnly}
|
|
776
|
+
>
|
|
777
|
+
삭제
|
|
778
|
+
</button>
|
|
721
779
|
</td>
|
|
722
780
|
</tr>
|
|
723
781
|
`)}
|
|
@@ -746,6 +804,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
746
804
|
name="paymentAmountCash"
|
|
747
805
|
.value=${this.taxInvoice?.paymentAmountCash || ''}
|
|
748
806
|
@input=${this._onInputTaxInvoice}
|
|
807
|
+
?disabled=${readOnly}
|
|
749
808
|
/>
|
|
750
809
|
</td>
|
|
751
810
|
<td>
|
|
@@ -755,6 +814,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
755
814
|
name="paymentAmountCheck"
|
|
756
815
|
.value=${this.taxInvoice?.paymentAmountCheck || ''}
|
|
757
816
|
@input=${this._onInputTaxInvoice}
|
|
817
|
+
?disabled=${readOnly}
|
|
758
818
|
/>
|
|
759
819
|
</td>
|
|
760
820
|
<td>
|
|
@@ -764,6 +824,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
764
824
|
name="paymentAmountPromissoryNote"
|
|
765
825
|
.value=${this.taxInvoice?.paymentAmountPromissoryNote || ''}
|
|
766
826
|
@input=${this._onInputTaxInvoice}
|
|
827
|
+
?disabled=${readOnly}
|
|
767
828
|
/>
|
|
768
829
|
</td>
|
|
769
830
|
<td>
|
|
@@ -773,6 +834,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
773
834
|
name="paymentAmountAccountsReceivable"
|
|
774
835
|
.value=${this.taxInvoice?.paymentAmountAccountsReceivable || ''}
|
|
775
836
|
@input=${this._onInputTaxInvoice}
|
|
837
|
+
?disabled=${readOnly}
|
|
776
838
|
/>
|
|
777
839
|
</td>
|
|
778
840
|
</tr>
|
|
@@ -788,6 +850,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
788
850
|
.value=${Purpose.INVOICE}
|
|
789
851
|
@change=${this._onInputTaxInvoice}
|
|
790
852
|
checked
|
|
853
|
+
?disabled=${readOnly}
|
|
791
854
|
/>
|
|
792
855
|
<label for="purpose_20">${PURPOSE[Purpose.INVOICE]}</label>
|
|
793
856
|
</div>
|
|
@@ -798,6 +861,7 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
798
861
|
name="purpose"
|
|
799
862
|
.value=${Purpose.RECEIPT}
|
|
800
863
|
@change=${this._onInputTaxInvoice}
|
|
864
|
+
?disabled=${readOnly}
|
|
801
865
|
/>
|
|
802
866
|
<label for="purpose_10">${PURPOSE[Purpose.RECEIPT]}</label>
|
|
803
867
|
</div>
|
|
@@ -972,6 +1036,11 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
972
1036
|
supplierContactEmail: e.detail.contactEmail || '',
|
|
973
1037
|
supplierContactCellPhone: e.detail.contactCellPhone || ''
|
|
974
1038
|
};
|
|
1039
|
+
this.dispatchEvent(new CustomEvent('supplier-selected', {
|
|
1040
|
+
detail: { supplier: this.supplier },
|
|
1041
|
+
bubbles: true,
|
|
1042
|
+
composed: true
|
|
1043
|
+
}));
|
|
975
1044
|
history.back();
|
|
976
1045
|
}}
|
|
977
1046
|
>
|
|
@@ -1025,6 +1094,11 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
1025
1094
|
buyer1stContactEmail: e.detail.contactEmail || '',
|
|
1026
1095
|
buyer1stContactCellPhone: e.detail.contactCellPhone || ''
|
|
1027
1096
|
};
|
|
1097
|
+
this.dispatchEvent(new CustomEvent('buyer-selected', {
|
|
1098
|
+
detail: { buyer: this.buyer },
|
|
1099
|
+
bubbles: true,
|
|
1100
|
+
composed: true
|
|
1101
|
+
}));
|
|
1028
1102
|
history.back();
|
|
1029
1103
|
}}
|
|
1030
1104
|
>
|
|
@@ -1062,6 +1136,10 @@ let TaxInvoiceSend = class TaxInvoiceSend extends localize(i18next)(LitElement)
|
|
|
1062
1136
|
this.taxInvoice = { ...this.taxInvoice, supplyAmount: supplyPrice, taxAmount: taxPrice, totalAmount: totalAmount };
|
|
1063
1137
|
}
|
|
1064
1138
|
};
|
|
1139
|
+
__decorate([
|
|
1140
|
+
property({ type: Boolean }),
|
|
1141
|
+
__metadata("design:type", Boolean)
|
|
1142
|
+
], TaxInvoiceSend.prototype, "editMode", void 0);
|
|
1065
1143
|
__decorate([
|
|
1066
1144
|
property({ type: Object }),
|
|
1067
1145
|
__metadata("design:type", Object)
|