@hitsoft/e-donusum 100.1.7-Edo-Test → 100.1.9-Edo-Test

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.
@@ -11035,7 +11035,10 @@ class HitInboundInvoiceComponent {
11035
11035
  }
11036
11036
  openPartnerModal(record) {
11037
11037
  this.toasterService.info("Muhatap kontrolü yapılıyor, lütfen bekleyiniz.");
11038
- this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn).subscribe(result => {
11038
+ let cardType = "cSupplier";
11039
+ if (record.invoiceTypeCode == "IADE")
11040
+ cardType = "cCustomer";
11041
+ this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn, cardType).subscribe(result => {
11039
11042
  if (!result) {
11040
11043
  this.buildFormForPartner(record);
11041
11044
  }
@@ -11183,7 +11186,10 @@ class HitInboundInvoiceComponent {
11183
11186
  }
11184
11187
  openDraftForm(record) {
11185
11188
  this.toasterService.info("Muhatap kontrolü yapılıyor, lütfen bekleyiniz.");
11186
- this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn).subscribe(result => {
11189
+ let cardType = "cSupplier";
11190
+ if (record.invoiceTypeCode == "IADE")
11191
+ cardType = "cCustomer";
11192
+ this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn, cardType).subscribe(result => {
11187
11193
  if (!result) {
11188
11194
  this.toasterService.error("İlgili VKN'ye ait (" + record.accountingSupplierPartyVknTckn + ") muhatap bulunamadı, lütfen önce muhatap oluşturun.");
11189
11195
  }
@@ -11197,7 +11203,10 @@ class HitInboundInvoiceComponent {
11197
11203
  }
11198
11204
  openDocumentForm(record) {
11199
11205
  this.toasterService.info("Muhatap kontrolü yapılıyor, lütfen bekleyiniz.");
11200
- this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn).subscribe(result => {
11206
+ let cardType = "cSupplier";
11207
+ if (record.invoiceTypeCode == "IADE")
11208
+ cardType = "cCustomer";
11209
+ this.service.checkBusinessPartnerExist(record.accountingSupplierPartyVknTckn, cardType).subscribe(result => {
11201
11210
  if (!result) {
11202
11211
  this.toasterService.error("İlgili VKN'ye ait (" + record.accountingSupplierPartyVknTckn + ") muhatap bulunamadı, lütfen önce muhatap oluşturun.");
11203
11212
  }