@colijnit/transaction 257.1.71 → 257.1.73

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.
Files changed (20) hide show
  1. package/bundles/colijnit-transaction.umd.js +38 -10
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +3 -5
  5. package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +5 -2
  6. package/esm2015/lib/component/payment/payment.component.js +10 -3
  7. package/esm2015/lib/component/relation/relation-address/relation-address.component.js +25 -15
  8. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.js +3 -1
  9. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -3
  10. package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +3 -3
  11. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +10 -2
  12. package/esm2015/lib/transaction-version.js +3 -3
  13. package/fesm2015/colijnit-transaction.js +53 -27
  14. package/fesm2015/colijnit-transaction.js.map +1 -1
  15. package/lib/component/deposit-payment/deposit-payment.component.d.ts +2 -1
  16. package/lib/component/payment/payment.component.d.ts +2 -0
  17. package/lib/component/relation/relation-address/relation-address.component.d.ts +5 -0
  18. package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.d.ts +1 -0
  19. package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -0
  20. package/package.json +1 -1
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "257.1.71";
37
- this.publishDate = "18/06/2025, 17:04:01";
36
+ this.symVer = "257.1.73";
37
+ this.publishDate = "23-6-2025 12:23:33";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -21525,7 +21525,7 @@
21525
21525
  CheckoutOverviewRelationEditComponent.decorators = [
21526
21526
  { type: i0.Component, args: [{
21527
21527
  selector: 'co-checkout-overview-relation-edit',
21528
- template: "\n <div class=\"relation-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-type *ngIf=\"relationKind === relKind.Customer\"\n [screenConfigurationObject]=\"cfgNames.RelationType\"\n [relation]=\"relation\"\n (relationChange)=\"handleRelationTypeChange($event)\"\n ></co-relation-type>\n <co-button class=\"empty-relation-button default-width\" [label]=\"'EMPTY' | localize\"\n (click)=\"emptyRelation($event)\"></co-button>\n </div>\n <div class=\"checkout-data-row\" *ngIf=\"relationKind === relKind.Customer\">\n <relation-customer-groups\n [screenConfigurationObject]=\"cfgNames.RelationCustomerGroup\"\n [model]=\"customerGroup\"\n (modelChange)=\"handleCustomerGroupChange($event)\">\n </relation-customer-groups>\n <relation-customer-languages\n [screenConfigurationObject]=\"cfgNames.RelationLanguage\"\n [model]=\"customerLanguage\"\n (modelChange)=\"handleCustomerLanguageChange($event)\">\n </relation-customer-languages>\n <relation-customer-titles\n [screenConfigurationObject]=\"cfgNames.RelationTitle\"\n [model]=\"customerTitle\"\n (modelChange)=\"handleCustomerTitleChange($event)\">\n </relation-customer-titles>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-general\n [configNames]=\"relationGeneralConfigNames\"\n [relation]=\"relation\"\n [relationType]=\"relationType\"\n (relationChange)=\"updateRelation($event)\"\n (inputChangeForSuggestions)=\"handleInputChange($event)\"\n ></co-relation-general>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-address\n [configNames]=\"relationAddressConfigNames\"\n [address]=\"address\"\n (inputChangeForSuggestions)=\"handleInputChange($event)\"\n ></co-relation-address>\n </div>\n </div>\n <div class=\"checkout-data-column\" *ngIf=\"relationKind === relKind.Customer\">\n <div class=\"checkout-data-row\">\n <co-vat-payment [model]=\"vatPayment\"\n [screenConfigurationObject]=\"cfgNames.RelationVatPayment\"\n (modelChange)=\"handleVatPaymentChange($event)\"\n ></co-vat-payment>\n <co-vat-code [model]=\"vatCode\" *ngIf=\"!vatPayment\"\n [screenConfigurationObject]=\"cfgNames.RelationVatCode\"\n (modelChange)=\"handleVatCodeChange($event)\"\n ></co-vat-code>\n </div>\n </div>\n <ng-container *ngIf=\"showAddresses\">\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressNawNr\"\n [noSaveOnAddAddress]=\"true\"\n (selectedNawNrChange)=\"handleDeliveryAddressChange($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"checkout-label-column\" *ngIf=\"relationKind === relKind.Customer\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\" *ngIf=\"relationKind === relKind.Customer\">\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"service.invoiceAddressSameAsDelivery\"\n (modelChange)=\"checkSameAddress($event)\"\n [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n </div>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!service.invoiceAddressSameAsDelivery\"\n @showHideInvoiceAddress>\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressNawNr\"\n [noSaveOnAddAddress]=\"true\"\n (selectedNawNrChange)=\"invoiceAddressChange.emit($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"showContactDetails\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-contact-details\n [configNames]=\"contactDetailsConfigNames\"\n [(relation)]=\"relation\"\n [relationKind]=\"relationKind\"></co-relation-contact-details>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"relationKind === relKind.Customer && showPreferences\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-preferences\n [(relation)]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </ng-container>\n </div>\n </co-form>\n </div>\n ",
21528
+ template: "\n <div class=\"relation-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-type *ngIf=\"relationKind === relKind.Customer\"\n [screenConfigurationObject]=\"cfgNames.RelationType\"\n [relation]=\"relation\"\n (relationChange)=\"handleRelationTypeChange($event)\"\n ></co-relation-type>\n <co-button class=\"empty-relation-button default-width\" [label]=\"'EMPTY' | localize\"\n (click)=\"emptyRelation($event)\"></co-button>\n </div>\n <div class=\"checkout-data-row\" *ngIf=\"relationKind === relKind.Customer\">\n <relation-customer-groups\n [screenConfigurationObject]=\"cfgNames.RelationCustomerGroup\"\n [model]=\"customerGroup\"\n (modelChange)=\"handleCustomerGroupChange($event)\">\n </relation-customer-groups>\n <relation-customer-languages\n [screenConfigurationObject]=\"cfgNames.RelationLanguage\"\n [model]=\"customerLanguage\"\n (modelChange)=\"handleCustomerLanguageChange($event)\">\n </relation-customer-languages>\n <relation-customer-titles\n [screenConfigurationObject]=\"cfgNames.RelationTitle\"\n [model]=\"customerTitle\"\n (modelChange)=\"handleCustomerTitleChange($event)\">\n </relation-customer-titles>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-general\n [configNames]=\"relationGeneralConfigNames\"\n [relation]=\"relation\"\n [relationType]=\"relationType\"\n (relationChange)=\"updateRelation($event)\"\n (inputChangeForSuggestions)=\"handleInputChange($event)\"\n ></co-relation-general>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-address\n [configNames]=\"relationAddressConfigNames\"\n [address]=\"address\"\n (inputChangeForSuggestions)=\"handleInputChange($event)\"\n ></co-relation-address>\n </div>\n <div *ngIf=\"relationKind === relKind.Customer\">\n <co-vat-payment [model]=\"vatPayment\"\n [screenConfigurationObject]=\"cfgNames.RelationVatPayment\"\n (modelChange)=\"handleVatPaymentChange($event)\"\n ></co-vat-payment>\n <co-vat-code [model]=\"vatCode\" *ngIf=\"!vatPayment\"\n [screenConfigurationObject]=\"cfgNames.RelationVatCode\"\n (modelChange)=\"handleVatCodeChange($event)\"\n ></co-vat-code>\n </div>\n </div>\n <ng-container *ngIf=\"showAddresses\">\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressNawNr\"\n [noSaveOnAddAddress]=\"true\"\n (selectedNawNrChange)=\"handleDeliveryAddressChange($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"checkout-label-column\" *ngIf=\"relationKind === relKind.Customer\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\" *ngIf=\"relationKind === relKind.Customer\">\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"service.invoiceAddressSameAsDelivery\"\n (modelChange)=\"checkSameAddress($event)\"\n [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n </div>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!service.invoiceAddressSameAsDelivery\"\n @showHideInvoiceAddress>\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressNawNr\"\n [noSaveOnAddAddress]=\"true\"\n (selectedNawNrChange)=\"invoiceAddressChange.emit($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"showContactDetails\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-contact-details\n [configNames]=\"contactDetailsConfigNames\"\n [(relation)]=\"relation\"\n [relationKind]=\"relationKind\"></co-relation-contact-details>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"relationKind === relKind.Customer && showPreferences\">\n <div class=\"checkout-label-column\">\n <span #indexLabel></span>\n <span class=\"label-description\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-preferences\n [(relation)]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </ng-container>\n </div>\n </co-form>\n </div>\n ",
21529
21529
  providers: [
21530
21530
  corecomponents_v12.FormMasterService,
21531
21531
  RelationSuggestionsService
@@ -22928,7 +22928,7 @@
22928
22928
  _this.transactionService = transactionService;
22929
22929
  _this.addressChange = new i0.EventEmitter();
22930
22930
  _this.countries = [];
22931
- // public addressTypes: CoDomainValue[] = [];
22931
+ _this.addressTypes = [];
22932
22932
  _this.fields = { text: "description", value: "code" };
22933
22933
  _this.postalCodeCheckErrorMessage = "";
22934
22934
  _this._prevPostalCodeForCheck = "";
@@ -22958,6 +22958,9 @@
22958
22958
  _this.countries = countries;
22959
22959
  _this._setSelectedAddress();
22960
22960
  });
22961
+ this._connector.getAddressTypes('NL').then(function (codes) {
22962
+ _this.addressTypes = codes;
22963
+ });
22961
22964
  return [2 /*return*/];
22962
22965
  });
22963
22966
  });
@@ -23032,6 +23035,14 @@
23032
23035
  this.inputChangeForSuggestions.next(this.suggestionRequest);
23033
23036
  }
23034
23037
  };
23038
+ RelationAddressComponent.prototype.handleAddressTypeChange = function (addressType) {
23039
+ if (Object.values(addressType_enum.AddressType).includes(addressType.code)) {
23040
+ this.address.addressType = addressType.code;
23041
+ }
23042
+ };
23043
+ RelationAddressComponent.prototype.addressTypeForCode = function (addressType) {
23044
+ return this.addressTypes.find(function (addressTypeListItem) { return addressTypeListItem.code === addressType; });
23045
+ };
23035
23046
  RelationAddressComponent.prototype._setSelectedAddress = function () {
23036
23047
  var _this = this;
23037
23048
  if (!this.address || !this.countries) {
@@ -23047,7 +23058,7 @@
23047
23058
  RelationAddressComponent.decorators = [
23048
23059
  { type: i0.Component, args: [{
23049
23060
  selector: "co-relation-address",
23050
- template: "\n <label *ngIf=label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"relation-address-data-row default\" [class.validation-error]=\"wrongAddress\">\n <co-input-text\n [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"handlePostalCodeChange()\"\n required\n ></co-input-text>\n <co-input-text class=\"default-width\"\n [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n [digitsOnly]=\"true\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"changeHouseNo()\"\n required\n ></co-input-text>\n <co-input-text\n [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n <span *ngIf=\"wrongAddress\" class=\"wrong-address\" [textContent]=\"'UNKNOWN_ADDRESS_CHECK_IT' | localize\"></span>\n </div>\n <div class=\"relation-address-data-row default\">\n <co-input-text\n [(model)]=\"address.streetName\"\n [placeholder]=\"'STREET' | localize\" required\n (modelChange)=\"handleStreetChange()\"></co-input-text>\n <co-input-text\n [(model)]=\"address.city\"\n [placeholder]=\"'CITY' | localize\" required\n (modelChange)=\"handleCityChange()\"></co-input-text>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [model]=\"countryModel\"\n [collection]=\"countries\"\n [displayField]=\"'description'\"\n [label]=\"'COUNTRY' | localize\"\n [required]=\"true\"\n (modelChange)=\"handleCountryChange($event)\"\n ></co-list-of-values>\n </div>\n<!-- <div class=\"relation-address-data-row default single\">-->\n<!-- <co-list-of-values-->\n<!-- [(model)]=\"address.addressType\"-->\n<!-- [collection]=\"addressTypes\"-->\n<!-- [displayField]=\"'description'\"-->\n<!-- [label]=\"'ADDRESS_TYPE' | localize\"-->\n<!-- [required]=\"true\"-->\n<!-- ></co-list-of-values>-->\n<!-- </div>-->\n<!-- -->\n ",
23061
+ template: "\n <label *ngIf=label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"relation-address-data-row default\" [class.validation-error]=\"wrongAddress\">\n <co-input-text\n [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"handlePostalCodeChange()\"\n required\n ></co-input-text>\n <co-input-text class=\"default-width\"\n [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n [digitsOnly]=\"true\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"changeHouseNo()\"\n required\n ></co-input-text>\n <co-input-text\n [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n <span *ngIf=\"wrongAddress\" class=\"wrong-address\" [textContent]=\"'UNKNOWN_ADDRESS_CHECK_IT' | localize\"></span>\n </div>\n <div class=\"relation-address-data-row default\">\n <co-input-text\n [(model)]=\"address.streetName\"\n [placeholder]=\"'STREET' | localize\" required\n (modelChange)=\"handleStreetChange()\"></co-input-text>\n <co-input-text\n [(model)]=\"address.city\"\n [placeholder]=\"'CITY' | localize\" required\n (modelChange)=\"handleCityChange()\"></co-input-text>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [model]=\"countryModel\"\n [collection]=\"countries\"\n [displayField]=\"'description'\"\n [label]=\"'COUNTRY' | localize\"\n [required]=\"true\"\n (modelChange)=\"handleCountryChange($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [model]=\"addressTypeForCode(address.addressType)\"\n (modelChange)=\"handleAddressTypeChange($event)\"\n [collection]=\"addressTypes\"\n [displayField]=\"'description'\"\n [label]=\"'ADDRESS_TYPE' | localize\"\n [required]=\"true\"\n ></co-list-of-values>\n </div>\n \n ",
23051
23062
  encapsulation: i0.ViewEncapsulation.None
23052
23063
  },] }
23053
23064
  ];
@@ -25682,6 +25693,7 @@
25682
25693
  _this.additionalFileName = '';
25683
25694
  _this.pdfDoc = '';
25684
25695
  _this.disablePdfPreview = false;
25696
+ _this.isAdditionalDocAllowedByScreenConfig = false;
25685
25697
  return _this;
25686
25698
  }
25687
25699
  TransactionQuickAccessSendMethodBaseComponent.prototype.ngOnInit = function () {
@@ -25805,6 +25817,9 @@
25805
25817
  this.transactionService.getTermsAndConditionsForm(this.transactionInfo.id).then(function (result) {
25806
25818
  _this.additionalFileContents = result;
25807
25819
  _this.additionalFileName = _this.transactionInfo.transactionKind + '_' + _this.transactionInfo.transactionNr.toString();
25820
+ // @ts-ignore
25821
+ _this.isAdditionalDocEnabled = _this.isAdditionalDocAllowedByScreenConfig && !!result;
25822
+ _this.detectChanges();
25808
25823
  });
25809
25824
  };
25810
25825
  TransactionQuickAccessSendMethodBaseComponent.prototype.upsertDocument = function (doc) {
@@ -25846,7 +25861,11 @@
25846
25861
  this._getEmailLayouts();
25847
25862
  this._getPrintLayouts();
25848
25863
  this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
25849
- this.isAdditionalDocEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
25864
+ this.isAdditionalDocAllowedByScreenConfig =
25865
+ this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
25866
+ if (this.isAdditionalDocAllowedByScreenConfig) {
25867
+ this.getTermsAndConditionsForm();
25868
+ }
25850
25869
  this.getHistoricDocuments();
25851
25870
  };
25852
25871
  TransactionQuickAccessSendMethodBaseComponent.prototype._getPrinters = function () {
@@ -27227,6 +27246,7 @@
27227
27246
  _this.transactionTypeCategory = TransactionTypeCategory;
27228
27247
  _this.warehouseLocationButtonDisabled = false;
27229
27248
  _this.showCheckboxForLine = false;
27249
+ _this.returnStockMode = false;
27230
27250
  _this._subscriptions = [];
27231
27251
  return _this;
27232
27252
  }
@@ -27256,6 +27276,7 @@
27256
27276
  TransactionReceiveGoodsLineBaseComponent.prototype.transactionLineSet = function () {
27257
27277
  _super.prototype.transactionLineSet.call(this);
27258
27278
  this._handleTransactionLineSet(this.transactionLine);
27279
+ this.returnStockMode = this.transactionLine.amount < 0;
27259
27280
  };
27260
27281
  TransactionReceiveGoodsLineBaseComponent.prototype._handleTransactionLineSet = function (transLine) {
27261
27282
  this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
@@ -27291,7 +27312,7 @@
27291
27312
  TransactionReceiveGoodsLineComponent.decorators = [
27292
27313
  { type: i0.Component, args: [{
27293
27314
  selector: "co-transaction-receive-goods-line",
27294
- template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\">\n </co-transaction-line-warehouse-location-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"transactionLine.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"true\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <co-transaction-print-package-sticker\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-print-package-sticker>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_TO_RECEIVE'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [model]=\"transactionLine.articleLineStatus?.quantityToReceive\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLine.amount - lineQuantityReceived\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)\"\n [readonly]=\"readonly || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n </div>\n <co-editable-label\n class=\"transaction-field-wrapper small transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
27315
+ template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\">\n </co-transaction-line-warehouse-location-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"transactionLine.batchNr\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"this.returnStockMode || readonly\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <co-transaction-print-package-sticker\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [inputLabel]=\"true\"\n ></co-transaction-print-package-sticker>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_TO_RECEIVE'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [model]=\"transactionLine.articleLineStatus?.quantityToReceive\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLine.amount - lineQuantityReceived\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)\"\n [readonly]=\"readonly || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n </div>\n <co-editable-label\n class=\"transaction-field-wrapper small transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
27295
27316
  encapsulation: i0.ViewEncapsulation.None,
27296
27317
  changeDetection: i0.ChangeDetectionStrategy.OnPush
27297
27318
  },] }
@@ -40061,7 +40082,8 @@
40061
40082
  this.receiptDetails.lineNr = this.transactionLine.lineNr;
40062
40083
  this.receiptDetails.quantityToReceive = this.lineQuantityToReceive;
40063
40084
  this.receiptDetails.locationNr = this.transactionLine.locationNr;
40064
- this.returnStockMode === this.transactionLine.amount < 0;
40085
+ this.returnStockMode = this.transactionLine.amount < 0;
40086
+ this.receiptDetails.batchNr = this.transactionLine.batchNr;
40065
40087
  this.getGoodsReceiptHistory();
40066
40088
  };
40067
40089
  TransactionLinePurchaseReceiveGoodsComponent.prototype._getAvailableStock = function () {
@@ -40084,7 +40106,7 @@
40084
40106
  TransactionLinePurchaseReceiveGoodsComponent.decorators = [
40085
40107
  { type: i0.Component, args: [{
40086
40108
  selector: 'co-transaction-line-purchase-receive-goods',
40087
- template: "\n <div class=\"receive-details-wrapper form-and-buttons\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [decimals]=\"2\"\n [min]=\"0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive\"\n [required]=\"true\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"!returnStockMode\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n<!-- dit ding werkt helemaal niet\n <co-transaction-labeled-warehouse-location-button class=\"side-panel-input\" *ngIf=\"transactionLine.isLocationRequired\"\n [readonly]=\"returnStockMode || receiptDetails.quantityToReceive === 0\"\n [warehouseNumber]=\"transactionLine.warehouseNumber\"\n [(locationNr)]=\"transactionLine.locationNr\"\n (locationNrChange)=\"receiptDetails.locationNr = $event\"\n ></co-transaction-labeled-warehouse-location-button>\n-->\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.batchNr\" *ngIf=\"transactionLine.isBatchNrRequired\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.serialNr\" *ngIf=\"transactionLine.isSerialNrRequired\"\n [type]=\"'text'\"\n [maxLength]=\"15\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </co-form>\n <div class=\"save-cancel-wrapper\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n ></co-button>\n <!-- <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\"-->\n <!-- [class.disabled]=\"receiptDetails.quantityToReceive === 0\">-->\n <!-- <span class=\"commit-text\" [textContent]=\"returnStockMode ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>-->\n <!-- </div>-->\n </div>\n </div>\n <co-transaction-receiving-goods-history *ngIf=\"transactionLine.amount >= 0\"\n [goodsReceiptHistory]=\"goodsReceiptHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid *ngIf=\"transactionLine.amount < 0\"\n [collection]=\"availableStockCollection\"\n (selectStock)=\"handleSelectStock($event)\"\n ></co-transaction-available-stock-grid>\n ",
40109
+ template: "\n <div class=\"receive-details-wrapper form-and-buttons\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [decimals]=\"2\"\n [min]=\"0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive\"\n [required]=\"true\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"!returnStockMode\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n<!-- dit ding werkt helemaal niet\n <co-transaction-labeled-warehouse-location-button class=\"side-panel-input\" *ngIf=\"transactionLine.isLocationRequired\"\n [readonly]=\"returnStockMode || receiptDetails.quantityToReceive === 0\"\n [warehouseNumber]=\"transactionLine.warehouseNumber\"\n [(locationNr)]=\"transactionLine.locationNr\"\n (locationNrChange)=\"receiptDetails.locationNr = $event\"\n ></co-transaction-labeled-warehouse-location-button>\n-->\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.batchNr\" *ngIf=\"transactionLine.isBatchNrRequired\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.serialNr\" *ngIf=\"transactionLine.isSerialNrRequired\"\n [type]=\"'text'\"\n [maxLength]=\"15\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </co-form>\n <div class=\"save-cancel-wrapper\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n ></co-button>\n <!-- <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\"-->\n <!-- [class.disabled]=\"receiptDetails.quantityToReceive === 0\">-->\n <!-- <span class=\"commit-text\" [textContent]=\"returnStockMode ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>-->\n <!-- </div>-->\n </div>\n </div>\n <co-transaction-receiving-goods-history *ngIf=\"transactionLine.amount >= 0\"\n [goodsReceiptHistory]=\"goodsReceiptHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid *ngIf=\"transactionLine.amount < 0\"\n [collection]=\"availableStockCollection\"\n (selectStock)=\"handleSelectStock($event)\"\n ></co-transaction-available-stock-grid>\n ",
40088
40110
  providers: [
40089
40111
  corecomponents_v12.FormMasterService
40090
40112
  ],
@@ -49988,12 +50010,15 @@
49988
50010
  _super.prototype.cashRegisterSelected.call(this, cashRegister, index);
49989
50011
  this.activeCashRegister = cashRegister;
49990
50012
  };
50013
+ PaymentComponent.prototype.onDepositPaymentFetched = function (depositAmount) {
50014
+ this.depositAmount = depositAmount;
50015
+ };
49991
50016
  return PaymentComponent;
49992
50017
  }(TransactionPaymentBaseComponent));
49993
50018
  PaymentComponent.decorators = [
49994
50019
  { type: i0.Component, args: [{
49995
50020
  selector: "co-payment",
49996
- template: "\n <div class=\"payment-wrapper\">\n <div class=\"payment-methods-register-wrapper\">\n <div class=\"payment-methods-wrapper\">\n <div class=\"payment-methods-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT' | localize\"></span>\n <!--span class=\"payment-header-title extra\" [textContent]=\"'FREE' | localize:false\"></span-->\n <span class=\"payment-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize:false\"></span>\n </div>\n <div class=\"payment-methods co-small-scrollbar\">\n <co-loader class=\"loader\" *ngIf=\"showLoader\"></co-loader>\n <ng-container *ngIf=\"!showLoader\">\n <co-payment-tile *ngFor=\"let paymentMethod of paymentMethods; let index = index\"\n [image]=\"paymentMethod.image\"\n [description]=\"paymentMethod.payment.description\"\n [selected]=\"paymentMethodIdx === index\"\n (selectedChange)=\"paymentMethodSelected(paymentMethod.payment, index)\"\n ></co-payment-tile>\n </ng-container>\n </div>\n </div>\n <div class=\"payment-cash-register-wrapper\" *ngIf=\"showCashRegisters\">\n <div class=\"payment-cash-register-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT_CASH_REGISTER' | localize\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let cashRegister of cashRegisters; let index = index\"\n [icon]=\"cashRegister.icon\"\n [description]=\"cashRegister.description\"\n [selected]=\"cashRegisterIdx === index\"\n (selectedChange)=\"cashRegisterSelected(cashRegister, index)\"\n ></co-payment-tile>\n </div>\n </div>\n </div>\n <div class=\"payment-to-pay-wrapper\">\n <div class=\"payment-to-pay-total\">\n <div class=\"payment-to-pay-header\">\n <span class=\"payment-header-title\" [textContent]=\"'TOTAL_AMOUNT_TO_PAY' | localize\"></span>\n <span class=\"payment-total-pay\" [textContent]=\"amount === 0 ? amount : (amount | coCurrency)\"></span>\n </div>\n <div class=\"payment-input-button-wrapper\">\n <div class=\"payment-input-button\">\n <co-payment-to-pay\n [amountToPay]=\"paymentService.amountToPay\"></co-payment-to-pay>\n <div class=\"payment-to-pay-button\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"paymentService.amountToPay === 0\"\n (click)=\"handlePayment()\">\n </co-button>\n </div>\n </div>\n <div class=\"payment-bookdate\" *ngIf=\"showPaymentDate\">\n <co-input-date [(model)]=\"paymentDate\"></co-input-date>\n </div>\n <div class=\"payment-error-message\" *ngIf=\"paymentService.statusMessage\"\n [textContent]=\"paymentService.statusMessage\"></div>\n </div>\n </div>\n\n <div class=\"payment-deposit\">\n <co-deposit-payment [branch]=\"branch\" [transactionUuid]=\"transactionUuid\"></co-deposit-payment>\n </div>\n <co-key-pad class=\"payment-to-pay-keypad\" *ngIf=\"showKeyPad\"\n [showValue]=\"false\"\n [emitModelChangeOnEnter]=\"false\"\n [model]=\"paymentService.amountToPay\"\n (modelChange)=\"handleKeyPadModelChange($event)\"\n (enterClick)=\"handlePayment()\"\n ></co-key-pad>\n </div>\n </div>\n <co-dialog *ngIf=\"paymentService.showPspQrCode\" (closeClick)=\"paymentService.showPspQrCode = false\">\n <co-payment-qr-code\n [qrCodeImage]=\"paymentService.qrCodeImage\"\n ></co-payment-qr-code>\n </co-dialog>\n ",
50021
+ template: "\n <div class=\"payment-wrapper\">\n <div class=\"payment-methods-register-wrapper\">\n <div class=\"payment-methods-wrapper\">\n <div class=\"payment-methods-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT' | localize\"></span>\n <!--span class=\"payment-header-title extra\" [textContent]=\"'FREE' | localize:false\"></span-->\n <span class=\"payment-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize:false\"></span>\n </div>\n <div class=\"payment-methods co-small-scrollbar\">\n <co-loader class=\"loader\" *ngIf=\"showLoader\"></co-loader>\n <ng-container *ngIf=\"!showLoader\">\n <co-payment-tile *ngFor=\"let paymentMethod of paymentMethods; let index = index\"\n [image]=\"paymentMethod.image\"\n [description]=\"paymentMethod.payment.description\"\n [selected]=\"paymentMethodIdx === index\"\n (selectedChange)=\"paymentMethodSelected(paymentMethod.payment, index)\"\n ></co-payment-tile>\n </ng-container>\n </div>\n </div>\n <div class=\"payment-cash-register-wrapper\" *ngIf=\"showCashRegisters\">\n <div class=\"payment-cash-register-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT_CASH_REGISTER' | localize\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let cashRegister of cashRegisters; let index = index\"\n [icon]=\"cashRegister.icon\"\n [description]=\"cashRegister.description\"\n [selected]=\"cashRegisterIdx === index\"\n (selectedChange)=\"cashRegisterSelected(cashRegister, index)\"\n ></co-payment-tile>\n </div>\n </div>\n </div>\n <div class=\"payment-to-pay-wrapper\">\n <div class=\"payment-to-pay-total\">\n <div class=\"payment-to-pay-header\">\n <span class=\"payment-header-title\" [textContent]=\"'TOTAL_AMOUNT_TO_PAY' | localize\"></span>\n <span class=\"payment-total-pay\" [textContent]=\"depositAmount ? (depositAmount | coCurrency: true) : (paymentService.amount | coCurrency: true)\"></span>\n </div>\n <div class=\"payment-input-button-wrapper\">\n <div class=\"payment-input-button\">\n <co-payment-to-pay\n [amountToPay]=\"paymentService.amountToPay\"></co-payment-to-pay>\n <div class=\"payment-to-pay-button\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"paymentService.amountToPay === 0\"\n (click)=\"handlePayment()\">\n </co-button>\n </div>\n </div>\n <div class=\"payment-bookdate\" *ngIf=\"showPaymentDate\">\n <co-input-date [(model)]=\"paymentDate\"></co-input-date>\n </div>\n <div class=\"payment-error-message\" *ngIf=\"paymentService.statusMessage\"\n [textContent]=\"paymentService.statusMessage\"></div>\n </div>\n </div>\n\n <div class=\"payment-deposit\">\n <co-deposit-payment\n [branch]=\"branch\"\n [transactionUuid]=\"transactionUuid\"\n (depositPaymentFetched)=\"onDepositPaymentFetched($event)\">\n </co-deposit-payment>\n </div>\n <co-key-pad class=\"payment-to-pay-keypad\" *ngIf=\"showKeyPad\"\n [showValue]=\"false\"\n [emitModelChangeOnEnter]=\"false\"\n [model]=\"paymentService.amountToPay\"\n (modelChange)=\"handleKeyPadModelChange($event)\"\n (enterClick)=\"handlePayment()\"\n ></co-key-pad>\n </div>\n </div>\n <co-dialog *ngIf=\"paymentService.showPspQrCode\" (closeClick)=\"paymentService.showPspQrCode = false\">\n <co-payment-qr-code\n [qrCodeImage]=\"paymentService.qrCodeImage\"\n ></co-payment-qr-code>\n </co-dialog>\n ",
49997
50022
  providers: [
49998
50023
  TransactionPaymentService
49999
50024
  ],
@@ -50137,6 +50162,7 @@
50137
50162
  this._transactionEventService = _transactionEventService;
50138
50163
  this.transKind = transactionKind_enum.TransactionKind;
50139
50164
  this.showTitle = true;
50165
+ this.depositPaymentFetched = new i0.EventEmitter();
50140
50166
  this.paymentMethods = [];
50141
50167
  this.depositPayments = [];
50142
50168
  this.showLoader = true;
@@ -50162,6 +50188,7 @@
50162
50188
  this._paymentConnectorService.getDepositPaymentInfo(this.transactionUuid).then(function (info) {
50163
50189
  _this.depositPayments.length = 0;
50164
50190
  if (info && info.depositPayments) {
50191
+ _this.depositPaymentFetched.emit(info.depositAmount);
50165
50192
  info.depositPayments.sort(function (a, b) { return a.id > b.id ? 1 : -1; });
50166
50193
  info.depositPayments.forEach(function (dp) {
50167
50194
  var paymentMethod = _this.paymentMethods.find(function (pm) { return pm.payment.code === dp.paymentMethodCode; });
@@ -50200,6 +50227,7 @@
50200
50227
  transactionKind: [{ type: i0.Input }],
50201
50228
  showTitle: [{ type: i0.Input }],
50202
50229
  transactionUuid: [{ type: i0.Input }],
50230
+ depositPaymentFetched: [{ type: i0.Output }],
50203
50231
  showClass: [{ type: i0.HostBinding, args: ["class.co-deposit-payment",] }]
50204
50232
  };
50205
50233