@hitsoft/e-donusum 100.1.2-Edo-Test → 100.1.3-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.
@@ -11058,7 +11058,7 @@ class HitInboundInvoiceComponent {
11058
11058
  this.documentLines = [];
11059
11059
  }
11060
11060
  sendDraft(draftGridLines) {
11061
- 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;
11061
+ 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;
11062
11062
  let requestDtoDocumentLines = [];
11063
11063
  draftGridLines.forEach(element => {
11064
11064
  var _a, _b;
@@ -11093,19 +11093,19 @@ class HitInboundInvoiceComponent {
11093
11093
  docEntry: null,
11094
11094
  docNum: null,
11095
11095
  docCurrency: (_b = (_a = this.selectedInboundInvoice) === null || _a === void 0 ? void 0 : _a.documentCurrencyCode) === null || _b === void 0 ? void 0 : _b.toString(),
11096
- docObjectCode: "oPurchaseInvoices",
11097
- docDate: (_d = (_c = this.selectedInboundInvoice) === null || _c === void 0 ? void 0 : _c.issueDate) === null || _d === void 0 ? void 0 : _d.toString(),
11098
- taxDate: (_f = (_e = this.selectedInboundInvoice) === null || _e === void 0 ? void 0 : _e.issueDate) === null || _f === void 0 ? void 0 : _f.toString(),
11099
- docDueDate: (_h = (_g = this.selectedInboundInvoice) === null || _g === void 0 ? void 0 : _g.paymentTermsPaymentDueDate) === null || _h === void 0 ? void 0 : _h.toString(),
11100
- docRate: (((_j = this.selectedInboundInvoice) === null || _j === void 0 ? void 0 : _j.pricingExchangeRateCalculationRate) <= 1 || isNullOrEmpty((_k = this.selectedInboundInvoice) === null || _k === void 0 ? void 0 : _k.pricingExchangeRateCalculationRate)) ? 1 : this.selectedInboundInvoice.pricingExchangeRateCalculationRate,
11101
- cardCode: (_m = (_l = this.selectedInboundInvoice) === null || _l === void 0 ? void 0 : _l.accountingSupplierPartyVknTckn) === null || _m === void 0 ? void 0 : _m.toString(),
11102
- numAtCard: (_p = (_o = this.selectedInboundInvoice) === null || _o === void 0 ? void 0 : _o.invoiceId) === null || _p === void 0 ? void 0 : _p.toString(),
11103
- u_EFATNO: (_r = (_q = this.selectedInboundInvoice) === null || _q === void 0 ? void 0 : _q.invoiceId) === null || _r === void 0 ? void 0 : _r.toString(),
11104
- u_UUID: (_t = (_s = this.selectedInboundInvoice) === null || _s === void 0 ? void 0 : _s.uuId) === null || _t === void 0 ? void 0 : _t.toString(),
11105
- u_SEND: (_v = (_u = this.selectedInboundInvoice) === null || _u === void 0 ? void 0 : _u.invoiceTypeCode) === null || _v === void 0 ? void 0 : _v.toString(),
11106
- u_ProfileId: (_x = (_w = this.selectedInboundInvoice) === null || _w === void 0 ? void 0 : _w.profileId) === null || _x === void 0 ? void 0 : _x.toString(),
11096
+ docObjectCode: ((_c = this.selectedInboundInvoice) === null || _c === void 0 ? void 0 : _c.invoiceTypeCode) === "IADE" ? "oCreditNotes" : "oPurchaseInvoices",
11097
+ docDate: (_e = (_d = this.selectedInboundInvoice) === null || _d === void 0 ? void 0 : _d.issueDate) === null || _e === void 0 ? void 0 : _e.toString(),
11098
+ taxDate: (_g = (_f = this.selectedInboundInvoice) === null || _f === void 0 ? void 0 : _f.issueDate) === null || _g === void 0 ? void 0 : _g.toString(),
11099
+ docDueDate: (_j = (_h = this.selectedInboundInvoice) === null || _h === void 0 ? void 0 : _h.paymentTermsPaymentDueDate) === null || _j === void 0 ? void 0 : _j.toString(),
11100
+ docRate: (((_k = this.selectedInboundInvoice) === null || _k === void 0 ? void 0 : _k.pricingExchangeRateCalculationRate) <= 1 || isNullOrEmpty((_l = this.selectedInboundInvoice) === null || _l === void 0 ? void 0 : _l.pricingExchangeRateCalculationRate)) ? 1 : this.selectedInboundInvoice.pricingExchangeRateCalculationRate,
11101
+ cardCode: (_o = (_m = this.selectedInboundInvoice) === null || _m === void 0 ? void 0 : _m.accountingSupplierPartyVknTckn) === null || _o === void 0 ? void 0 : _o.toString(),
11102
+ numAtCard: (_q = (_p = this.selectedInboundInvoice) === null || _p === void 0 ? void 0 : _p.invoiceId) === null || _q === void 0 ? void 0 : _q.toString(),
11103
+ u_EFATNO: (_s = (_r = this.selectedInboundInvoice) === null || _r === void 0 ? void 0 : _r.invoiceId) === null || _s === void 0 ? void 0 : _s.toString(),
11104
+ u_UUID: (_u = (_t = this.selectedInboundInvoice) === null || _t === void 0 ? void 0 : _t.uuId) === null || _u === void 0 ? void 0 : _u.toString(),
11105
+ u_SEND: (_w = (_v = this.selectedInboundInvoice) === null || _v === void 0 ? void 0 : _v.invoiceTypeCode) === null || _w === void 0 ? void 0 : _w.toString(),
11106
+ u_ProfileId: (_y = (_x = this.selectedInboundInvoice) === null || _x === void 0 ? void 0 : _x.profileId) === null || _y === void 0 ? void 0 : _y.toString(),
11107
11107
  documentLines: requestDtoDocumentLines,
11108
- bPL_IDAssignedToInvoice: this.isBranch ? (_0 = (_z = (_y = this.formDocument) === null || _y === void 0 ? void 0 : _y.controls) === null || _z === void 0 ? void 0 : _z.selectedBranch) === null || _0 === void 0 ? void 0 : _0.value : 1 // Varsayılan şube - test için
11108
+ bPL_IDAssignedToInvoice: this.isBranch ? (_1 = (_0 = (_z = this.formDocument) === null || _z === void 0 ? void 0 : _z.controls) === null || _0 === void 0 ? void 0 : _0.selectedBranch) === null || _1 === void 0 ? void 0 : _1.value : 1 // Varsayılan şube - test için
11109
11109
  };
11110
11110
  this.service.createDraftDocument(requestDto, this.selectedInboundInvoice.id)
11111
11111
  .pipe(finalize$1(() => {