@hitsoft/e-donusum 1.0.100 → 1.0.102

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.
@@ -10562,10 +10562,10 @@ class HitInboundInvoiceComponent {
10562
10562
  let requestDtoDocumentLines = [];
10563
10563
  draftGridLines.forEach(element => {
10564
10564
  requestDtoDocumentLines.push({
10565
- quantity: element.selectedQty,
10566
- baseType: element.objType,
10567
- baseEntry: element.docEntry,
10568
- baseLine: element.lineNum
10565
+ quantity: element.data.selectedQty,
10566
+ baseType: element.data.objType,
10567
+ baseEntry: element.data.docEntry,
10568
+ baseLine: element.data.lineNum
10569
10569
  });
10570
10570
  });
10571
10571
  let requestDto = {
@@ -10602,10 +10602,10 @@ class HitInboundInvoiceComponent {
10602
10602
  let requestDtoDocumentLines = [];
10603
10603
  documentGridLines.forEach(element => {
10604
10604
  requestDtoDocumentLines.push({
10605
- quantity: element.selectedQty,
10606
- baseType: element.objType,
10607
- baseEntry: element.docEntry,
10608
- baseLine: element.lineNum
10605
+ quantity: element.data.selectedQty,
10606
+ baseType: element.data.objType,
10607
+ baseEntry: element.data.docEntry,
10608
+ baseLine: element.data.lineNum
10609
10609
  });
10610
10610
  });
10611
10611
  let requestDto = {
@@ -10638,51 +10638,49 @@ class HitInboundInvoiceComponent {
10638
10638
  }
10639
10639
  createDraftDocument() {
10640
10640
  this.isModalBusyForDocument = true;
10641
- const dataSource = this.dxDocumentLines.instance.getDataSource();
10642
- dataSource.store().load().then((gridLines) => {
10643
- if (gridLines.length == 0) {
10644
- if (this.isDraft) {
10645
- this.confirmation
10646
- .info('Tabloda satır bulunmadığı için taslak belge boş olarak oluşturulacaktır. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
10647
- .subscribe((status) => {
10648
- if (status == "confirm") {
10641
+ let gridLines = this.dxDocumentLines.instance.getVisibleRows();
10642
+ if (gridLines.length == 0) {
10643
+ if (this.isDraft) {
10644
+ this.confirmation
10645
+ .info('Tabloda satır bulunmadığı için taslak belge boş olarak oluşturulacaktır. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
10646
+ .subscribe((status) => {
10647
+ if (status == "confirm") {
10648
+ this.sendDraft(gridLines);
10649
+ }
10650
+ else {
10651
+ this.isModalBusyForDocument = false;
10652
+ return;
10653
+ }
10654
+ });
10655
+ }
10656
+ else {
10657
+ this.toasterService.error("Kayıtlı belge oluşturulurken boş satır girilemez.");
10658
+ }
10659
+ }
10660
+ else {
10661
+ if (gridLines.filter(x => x.data.selectedQty > x.data.openQty).length > 0) {
10662
+ this.confirmation
10663
+ .info('Seçilen miktarı, açık miktardan büyük olan satır/satırlar mevcut. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
10664
+ .subscribe((status) => {
10665
+ if (status == "confirm") {
10666
+ if (this.isDraft)
10649
10667
  this.sendDraft(gridLines);
10650
- }
10651
- else {
10652
- this.isModalBusyForDocument = false;
10653
- return;
10654
- }
10655
- });
10656
- }
10657
- else {
10658
- this.toasterService.error("Kayıtlı belge oluşturulurken boş satır girilemez.");
10659
- }
10668
+ else
10669
+ this.sendDocument(gridLines);
10670
+ }
10671
+ else {
10672
+ this.isModalBusyForDocument = false;
10673
+ return;
10674
+ }
10675
+ });
10660
10676
  }
10661
10677
  else {
10662
- if (gridLines.filter(x => x.selectedQty > x.openQty).length > 0) {
10663
- this.confirmation
10664
- .info('Seçilen miktarı, açık miktardan büyük olan satır/satırlar mevcut. Devam etmek istiyor musunuz?', { key: '::Bilgi', defaultValue: '' })
10665
- .subscribe((status) => {
10666
- if (status == "confirm") {
10667
- if (this.isDraft)
10668
- this.sendDraft(gridLines);
10669
- else
10670
- this.sendDocument(gridLines);
10671
- }
10672
- else {
10673
- this.isModalBusyForDocument = false;
10674
- return;
10675
- }
10676
- });
10677
- }
10678
- else {
10679
- if (this.isDraft)
10680
- this.sendDraft(gridLines);
10681
- else
10682
- this.sendDocument(gridLines);
10683
- }
10678
+ if (this.isDraft)
10679
+ this.sendDraft(gridLines);
10680
+ else
10681
+ this.sendDocument(gridLines);
10684
10682
  }
10685
- });
10683
+ }
10686
10684
  }
10687
10685
  processManual(record) {
10688
10686
  this.service.processManual(record.id).subscribe(result => {