@hitsoft/e-donusum 1.0.95 → 1.0.97
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/esm2020/lib/components/hit-inbound-invoices/hit-inbound-invoice.component.mjs +50 -48
- package/esm2020/lib/components/hit-invoices/hit-invoice.component.mjs +5 -4
- package/esm2020/lib/hit-proxy/hit-invoices/hit-invoice.service.mjs +4 -4
- package/fesm2015/hitsoft-e-donusum.mjs +56 -53
- package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
- package/fesm2020/hitsoft-e-donusum.mjs +56 -53
- package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
- package/lib/hit-proxy/hit-invoices/hit-invoice.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9159,10 +9159,10 @@ class HitInvoiceService {
|
|
|
9159
9159
|
loadUrl: 'api/e-donusum/invoices/show-all-files',
|
|
9160
9160
|
params: { invoiceUUID: invoiceUUID }
|
|
9161
9161
|
});
|
|
9162
|
-
this.sendInvoiceById = (
|
|
9163
|
-
method: '
|
|
9162
|
+
this.sendInvoiceById = (input) => this.restService.request({
|
|
9163
|
+
method: 'POST',
|
|
9164
9164
|
url: '/api/e-donusum/invoices/send-invoice-by-id',
|
|
9165
|
-
|
|
9165
|
+
body: input
|
|
9166
9166
|
}, { apiName: this.apiName });
|
|
9167
9167
|
this.getInvoicePdfsMultiple = (invoiceIds) => this.restService.request({
|
|
9168
9168
|
method: 'GET',
|
|
@@ -9430,7 +9430,8 @@ class HitInvoiceComponent {
|
|
|
9430
9430
|
});
|
|
9431
9431
|
}
|
|
9432
9432
|
selectInvoiceSerial(record) {
|
|
9433
|
-
|
|
9433
|
+
debugger;
|
|
9434
|
+
this.invoiceService.updateInvoiceSerial(this.selectedInvoiceIds, record.Seri.code).subscribe(() => {
|
|
9434
9435
|
this.isSerialModalOpen = false;
|
|
9435
9436
|
this.toasterService.success("Belge serileri başarıyla seçildi.");
|
|
9436
9437
|
this.dxInvoiceInstance.instance.refresh();
|
|
@@ -9447,7 +9448,7 @@ class HitInvoiceComponent {
|
|
|
9447
9448
|
this.dxInvoiceInstance.instance.getVisibleRows().filter(i => i.isSelected == true).forEach(element => {
|
|
9448
9449
|
ids.push({
|
|
9449
9450
|
id: element.data.id,
|
|
9450
|
-
selectedSerial: element.data.selectedInvoiceSerial
|
|
9451
|
+
selectedSerial: element.data.selectedInvoiceSerial.code
|
|
9451
9452
|
});
|
|
9452
9453
|
});
|
|
9453
9454
|
this.invoiceService.getInvoicePdfsMultiple(ids.map(p => p.id)).subscribe(data => {
|
|
@@ -9486,7 +9487,7 @@ class HitInvoiceComponent {
|
|
|
9486
9487
|
this.dxInvoiceInstance.instance.getVisibleRows().filter(i => i.isSelected == true).forEach(element => {
|
|
9487
9488
|
ids.push({
|
|
9488
9489
|
id: element.data.id,
|
|
9489
|
-
selectedSerial: element.data.selectedInvoiceSerial
|
|
9490
|
+
selectedSerial: element.data.selectedInvoiceSerial.code
|
|
9490
9491
|
});
|
|
9491
9492
|
});
|
|
9492
9493
|
if (ids.filter(p => isNullOrEmpty(p.selectedSerial)).length > 0) {
|
|
@@ -10696,10 +10697,10 @@ class HitInboundInvoiceComponent {
|
|
|
10696
10697
|
let requestDtoDocumentLines = [];
|
|
10697
10698
|
draftGridLines.forEach(element => {
|
|
10698
10699
|
requestDtoDocumentLines.push({
|
|
10699
|
-
quantity: element.
|
|
10700
|
-
baseType: element.
|
|
10701
|
-
baseEntry: element.
|
|
10702
|
-
baseLine: element.
|
|
10700
|
+
quantity: element.selectedQty,
|
|
10701
|
+
baseType: element.objType,
|
|
10702
|
+
baseEntry: element.docEntry,
|
|
10703
|
+
baseLine: element.lineNum
|
|
10703
10704
|
});
|
|
10704
10705
|
});
|
|
10705
10706
|
let requestDto = {
|
|
@@ -10735,10 +10736,10 @@ class HitInboundInvoiceComponent {
|
|
|
10735
10736
|
let requestDtoDocumentLines = [];
|
|
10736
10737
|
documentGridLines.forEach(element => {
|
|
10737
10738
|
requestDtoDocumentLines.push({
|
|
10738
|
-
quantity: element.
|
|
10739
|
-
baseType: element.
|
|
10740
|
-
baseEntry: element.
|
|
10741
|
-
baseLine: element.
|
|
10739
|
+
quantity: element.selectedQty,
|
|
10740
|
+
baseType: element.objType,
|
|
10741
|
+
baseEntry: element.docEntry,
|
|
10742
|
+
baseLine: element.lineNum
|
|
10742
10743
|
});
|
|
10743
10744
|
});
|
|
10744
10745
|
let requestDto = {
|
|
@@ -10771,49 +10772,51 @@ class HitInboundInvoiceComponent {
|
|
|
10771
10772
|
}
|
|
10772
10773
|
createDraftDocument() {
|
|
10773
10774
|
this.isModalBusyForDocument = true;
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
if (
|
|
10777
|
-
this.
|
|
10778
|
-
.
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
}
|
|
10783
|
-
else {
|
|
10784
|
-
this.isModalBusyForDocument = false;
|
|
10785
|
-
return;
|
|
10786
|
-
}
|
|
10787
|
-
});
|
|
10788
|
-
}
|
|
10789
|
-
else {
|
|
10790
|
-
this.toasterService.error("Kayıtlı belge oluşturulurken boş satır girilemez.");
|
|
10791
|
-
}
|
|
10792
|
-
}
|
|
10793
|
-
else {
|
|
10794
|
-
if (gridLines.filter(x => x.data.selectedQty > x.data.openQty).length > 0) {
|
|
10795
|
-
this.confirmation
|
|
10796
|
-
.info('Seçilen miktarı, açık miktardan büyük olan satır/satırlar mevcut. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
|
|
10797
|
-
.subscribe((status) => {
|
|
10798
|
-
if (status == "confirm") {
|
|
10799
|
-
if (this.isDraft)
|
|
10775
|
+
const dataSource = this.dxDocumentLines.instance.getDataSource();
|
|
10776
|
+
dataSource.store().load().then((gridLines) => {
|
|
10777
|
+
if (gridLines.length == 0) {
|
|
10778
|
+
if (this.isDraft) {
|
|
10779
|
+
this.confirmation
|
|
10780
|
+
.info('Tabloda satır bulunmadığı için taslak belge boş olarak oluşturulacaktır. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
|
|
10781
|
+
.subscribe((status) => {
|
|
10782
|
+
if (status == "confirm") {
|
|
10800
10783
|
this.sendDraft(gridLines);
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10784
|
+
}
|
|
10785
|
+
else {
|
|
10786
|
+
this.isModalBusyForDocument = false;
|
|
10787
|
+
return;
|
|
10788
|
+
}
|
|
10789
|
+
});
|
|
10790
|
+
}
|
|
10791
|
+
else {
|
|
10792
|
+
this.toasterService.error("Kayıtlı belge oluşturulurken boş satır girilemez.");
|
|
10793
|
+
}
|
|
10809
10794
|
}
|
|
10810
10795
|
else {
|
|
10811
|
-
if (
|
|
10812
|
-
this.
|
|
10813
|
-
|
|
10814
|
-
|
|
10796
|
+
if (gridLines.filter(x => x.selectedQty > x.openQty).length > 0) {
|
|
10797
|
+
this.confirmation
|
|
10798
|
+
.info('Seçilen miktarı, açık miktardan büyük olan satır/satırlar mevcut. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
|
|
10799
|
+
.subscribe((status) => {
|
|
10800
|
+
if (status == "confirm") {
|
|
10801
|
+
if (this.isDraft)
|
|
10802
|
+
this.sendDraft(gridLines);
|
|
10803
|
+
else
|
|
10804
|
+
this.sendDocument(gridLines);
|
|
10805
|
+
}
|
|
10806
|
+
else {
|
|
10807
|
+
this.isModalBusyForDocument = false;
|
|
10808
|
+
return;
|
|
10809
|
+
}
|
|
10810
|
+
});
|
|
10811
|
+
}
|
|
10812
|
+
else {
|
|
10813
|
+
if (this.isDraft)
|
|
10814
|
+
this.sendDraft(gridLines);
|
|
10815
|
+
else
|
|
10816
|
+
this.sendDocument(gridLines);
|
|
10817
|
+
}
|
|
10815
10818
|
}
|
|
10816
|
-
}
|
|
10819
|
+
});
|
|
10817
10820
|
}
|
|
10818
10821
|
processManual(record) {
|
|
10819
10822
|
this.service.processManual(record.id).subscribe(result => {
|