@colijnit/transaction 256.1.77 → 256.1.78

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.
@@ -283,8 +283,8 @@ class Version {
283
283
  constructor() {
284
284
  this.name = "@colijnit/transaction";
285
285
  this.description = "Colijn IT transaction package";
286
- this.symVer = "256.1.77";
287
- this.publishDate = "9-4-2025 18:02:14";
286
+ this.symVer = "256.1.78";
287
+ this.publishDate = "14/04/2025, 16:41:24";
288
288
  }
289
289
  }
290
290
 
@@ -47157,7 +47157,7 @@ class TransactionPaymentService {
47157
47157
  const amountToPayRequest = new CalculateAmountToPayRequest();
47158
47158
  amountToPayRequest.transactionUuid = this.transactionUuid;
47159
47159
  amountToPayRequest.paymentMethodCode = this.currentPaymentMethod.code;
47160
- this._paymentConnectorService.calculateAmountToPayWithLineSelection(amountToPayRequest).then((result) => {
47160
+ this._paymentConnectorService.calculateAmountToPay(amountToPayRequest).then((result) => {
47161
47161
  this.amountToPay = result.amountToPay;
47162
47162
  });
47163
47163
  });
@@ -49394,7 +49394,9 @@ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionInputHe
49394
49394
  }
49395
49395
  transactionInfoSet() {
49396
49396
  super.transactionInfoSet();
49397
- this.option = this.transactionInfo.preferredDeliveryDate2;
49397
+ if (this.transactionInfo.preferredDeliveryDate2) {
49398
+ this.option = this.transactionInfo.preferredDeliveryDate2;
49399
+ }
49398
49400
  }
49399
49401
  }
49400
49402
  TransactionHeaderPreferredDeliveryDateComponent.decorators = [
@@ -56047,7 +56049,10 @@ TransactionHeaderCustomerPortalComponent.decorators = [
56047
56049
  </div>
56048
56050
  <div class="planning-request-button-wrapper" *ngIf="showPreferredPlanning && !showPlanningDialog"
56049
56051
  (click)="checkCanPlanDelivery()">
56050
- <span [textContent]="'PREFERRED_DELIVERY_DATE_HEADER' | localize"></span>
56052
+ <div class="preferred-delivery-date">
56053
+ <span [textContent]="'PREFERRED_DELIVERY_DATE_HEADER' | localize"></span>
56054
+ <span [textContent]="transaction.transactionInfo.preferredDeliveryDate | date:'dd-MM-yyyy'"></span>
56055
+ </div>
56051
56056
  <co-icon class="planning-request-button" [class.co-transaction-check]="transaction.transactionInfo.deliveryDateDefinitive"
56052
56057
  [iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
56053
56058
  </div>
@@ -58081,6 +58086,14 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
58081
58086
  this.customers = [];
58082
58087
  this.copyTransactionRequest = new CopyTransactionRequest();
58083
58088
  this.closeDialog = new EventEmitter();
58089
+ this.getCustomers = (text) => {
58090
+ const request = new RelationRequest();
58091
+ request.relationType = RelationKind.Customer;
58092
+ request.general = text;
58093
+ return this.relationService.getRelationListObjects(request).then((customers) => {
58094
+ return customers;
58095
+ });
58096
+ };
58084
58097
  }
58085
58098
  showClass() {
58086
58099
  return true;
@@ -58088,8 +58101,8 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
58088
58101
  transactionSet() {
58089
58102
  this.copyTransactionRequest.transactionDate = new Date();
58090
58103
  this.copyTransactionRequest.transId = this.transactionInfo.id;
58104
+ this.selectedCustomer = this.transactionInfo.relation;
58091
58105
  this._getSalesPersons();
58092
- this._getCustomers();
58093
58106
  this._getBranches();
58094
58107
  }
58095
58108
  getHeaderTitle() {
@@ -58160,75 +58173,66 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
58160
58173
  });
58161
58174
  });
58162
58175
  }
58163
- _getCustomers() {
58164
- return __awaiter(this, void 0, void 0, function* () {
58165
- const request = new RelationRequest();
58166
- this.relationService.getRelationListObjects(request).then((customers) => {
58167
- this.customers = customers;
58168
- });
58169
- this.copyTransactionRequest.transactionRelationId = this.transactionInfo.relation.relationId;
58170
- this.selectedCustomer = this.transactionInfo.relation;
58171
- });
58172
- }
58173
58176
  }
58174
58177
  TransactionCopyOrderComponent.decorators = [
58175
58178
  { type: Component, args: [{
58176
58179
  selector: "co-transaction-copy-order",
58177
58180
  template: `
58178
- <co-dialog
58179
- [modal]="true"
58180
- [headerTemplate]="headerTemplate"
58181
- [footerTemplate]="footerTemplate"
58182
- (closeClick)="closeDialog.next()">
58183
- <div class="content-wrapper">
58184
- <span [textContent]="'BASIC_ORDER_DETAILS' | localize"></span>
58185
- <div class="selection-wrapper">
58186
- <co-list-of-values
58187
- [readonly]="readonly"
58188
- [required]="true"
58189
- [label]="'CUSTOMER' | localize"
58190
- [collection]="customers"
58191
- [displayField]="'familyName'"
58192
- [(model)]="selectedCustomer">
58193
- </co-list-of-values>
58194
- <co-list-of-values
58195
- [readonly]="readonly"
58196
- [required]="true"
58197
- [label]="'BRANCH' | localize"
58198
- [collection]="branches"
58199
- [displayField]="'description'"
58200
- [(model)]="selectedBranch">
58201
- </co-list-of-values>
58202
- <co-input-date
58203
- [placeholder]="'ORDER_DATE' | localize"
58204
- [(model)]="copyTransactionRequest.transactionDate">
58205
- </co-input-date>
58206
- <co-list-of-values
58207
- [readonly]="readonly"
58208
- [label]="'SALES_PERSON' | localize"
58209
- [collection]="salesPersons"
58210
- [displayField]="'name'"
58211
- [(model)]="selectedSalesPerson">
58212
- </co-list-of-values>
58213
- </div>
58214
- </div>
58215
- </co-dialog>
58181
+ <co-dialog
58182
+ [modal]="true"
58183
+ [headerTemplate]="headerTemplate"
58184
+ [footerTemplate]="footerTemplate"
58185
+ (closeClick)="closeDialog.next()">
58186
+ <div class="content-wrapper">
58187
+ <span [textContent]="'BASIC_ORDER_DETAILS' | localize"></span>
58188
+ <div class="selection-wrapper">
58189
+ <co-list-of-values
58190
+ [largeCollection]="true"
58191
+ [collectionLoadFn]="getCustomers"
58192
+ [readonly]="readonly"
58193
+ [required]="true"
58194
+ [label]="'CUSTOMER' | localize"
58195
+ [displayField]="'familyName'"
58196
+ [(model)]="selectedCustomer">
58197
+ </co-list-of-values>
58198
+ <co-list-of-values
58199
+ [readonly]="readonly"
58200
+ [required]="true"
58201
+ [label]="'BRANCH' | localize"
58202
+ [collection]="branches"
58203
+ [displayField]="'description'"
58204
+ [(model)]="selectedBranch">
58205
+ </co-list-of-values>
58206
+ <co-input-date
58207
+ [placeholder]="'ORDER_DATE' | localize"
58208
+ [(model)]="copyTransactionRequest.transactionDate">
58209
+ </co-input-date>
58210
+ <co-list-of-values
58211
+ [readonly]="readonly"
58212
+ [label]="'SALES_PERSON' | localize"
58213
+ [collection]="salesPersons"
58214
+ [displayField]="'name'"
58215
+ [(model)]="selectedSalesPerson">
58216
+ </co-list-of-values>
58217
+ </div>
58218
+ </div>
58219
+ </co-dialog>
58216
58220
 
58217
- <ng-template #headerTemplate>
58218
- <div class="header-wrapper">
58219
- <co-icon [iconData]="iconCacheService.getIcon(icons.BoxesPackingRegular)"></co-icon>
58220
- <div class="co-dialog-header-title" [textContent]="getHeaderTitle() | localize"></div>
58221
- </div>
58222
- </ng-template>
58221
+ <ng-template #headerTemplate>
58222
+ <div class="header-wrapper">
58223
+ <co-icon [iconData]="iconCacheService.getIcon(icons.BoxesPackingRegular)"></co-icon>
58224
+ <div class="co-dialog-header-title" [textContent]="getHeaderTitle() | localize"></div>
58225
+ </div>
58226
+ </ng-template>
58223
58227
 
58224
- <ng-template #footerTemplate>
58225
- <div class="co-dialog-footer-button-wrapper">
58226
- <co-default-confirm-cancel-buttons
58227
- (handleConfirmButtonClicked)="handleOkClick()"
58228
- (handleCancelButtonClicked)="handleCancelClick()">
58229
- </co-default-confirm-cancel-buttons>
58230
- </div>
58231
- </ng-template>
58228
+ <ng-template #footerTemplate>
58229
+ <div class="co-dialog-footer-button-wrapper">
58230
+ <co-default-confirm-cancel-buttons
58231
+ (handleConfirmButtonClicked)="handleOkClick()"
58232
+ (handleCancelButtonClicked)="handleCancelClick()">
58233
+ </co-default-confirm-cancel-buttons>
58234
+ </div>
58235
+ </ng-template>
58232
58236
  `,
58233
58237
  encapsulation: ViewEncapsulation.None
58234
58238
  },] }