@colijnit/transaction 255.1.44 → 255.1.46

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 (38) hide show
  1. package/bundles/colijnit-transaction.umd.js +157 -64
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/avatar/avatar.component.js +8 -3
  5. package/esm2015/lib/component/core/base/transaction-base.component.js +24 -11
  6. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +3 -1
  7. package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-picking-button-bar-button.component.js +32 -10
  8. package/esm2015/lib/component/transaction-card/transaction-card-purchase-confirmation/transaction-card-purchase-confirmation.component.js +101 -96
  9. package/esm2015/lib/component/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +4 -4
  10. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +2 -3
  11. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-order.component.js +7 -2
  12. package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +3 -8
  13. package/esm2015/lib/component/transaction-line-fields/transaction-line-amount.component.js +7 -8
  14. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +2 -2
  15. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +2 -2
  16. package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.js +2 -2
  17. package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/transaction-lines-side-panel-service-order.component.js +6 -4
  18. package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/transaction-lines-side-panel-service-order.module.js +4 -3
  19. package/esm2015/lib/component/transaction-service-overview/components/transaction-service-message.component.js +3 -2
  20. package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +22 -15
  21. package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.module.js +4 -3
  22. package/esm2015/lib/enum/transaction-cfg-name.enum.js +12 -1
  23. package/esm2015/lib/enum/transaction-picking-button-category.enum.js +7 -0
  24. package/esm2015/lib/service/transaction-mapping.service.js +9 -1
  25. package/esm2015/lib/service/transaction-payment.service.js +4 -4
  26. package/esm2015/lib/service/transaction.service.js +21 -6
  27. package/esm2015/lib/transaction-version.js +3 -3
  28. package/fesm2015/colijnit-transaction.js +256 -163
  29. package/fesm2015/colijnit-transaction.js.map +1 -1
  30. package/lib/component/core/base/transaction-base.component.d.ts +4 -1
  31. package/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-picking-button-bar-button.component.d.ts +6 -2
  32. package/lib/component/transaction-card/transaction-card/style/_layout.scss +14 -1
  33. package/lib/component/transaction-line-fields/transaction-line-amount.component.d.ts +1 -1
  34. package/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/transaction-lines-side-panel-service-order.component.d.ts +2 -0
  35. package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -1
  36. package/lib/enum/transaction-cfg-name.enum.d.ts +12 -1
  37. package/lib/enum/transaction-picking-button-category.enum.d.ts +5 -0
  38. package/package.json +2 -2
@@ -268,8 +268,8 @@ class Version {
268
268
  constructor() {
269
269
  this.name = "@colijnit/transaction";
270
270
  this.description = "Colijn IT transaction package";
271
- this.symVer = "255.1.44";
272
- this.publishDate = "02/10/2024, 09:45:49";
271
+ this.symVer = "255.1.46";
272
+ this.publishDate = "03/10/2024, 16:19:52";
273
273
  }
274
274
  }
275
275
 
@@ -7940,6 +7940,17 @@ var TransactionCfgName;
7940
7940
  /* Invoice_check rubric */
7941
7941
  /* Service Overview Tab*/
7942
7942
  TransactionCfgName["ServiceMessage"] = "serviceMessage";
7943
+ TransactionCfgName["ServiceWizardMessage"] = "serviceWizardMessage";
7944
+ TransactionCfgName["ServiceOverviewImage"] = "serviceOverviewImage";
7945
+ TransactionCfgName["ServicePriority"] = "servicePriority";
7946
+ TransactionCfgName["ServiceCauseCode"] = "serviceCauseCode";
7947
+ TransactionCfgName["ServiceEntryType"] = "serviceEntryType";
7948
+ TransactionCfgName["HeaderTaskCreator"] = "headerTaskCreator";
7949
+ TransactionCfgName["HeaderActivityList"] = "headerActivityList";
7950
+ TransactionCfgName["HeaderHistActivities"] = "headerHistActivities";
7951
+ TransactionCfgName["HeaderProductDetails"] = "headerProductDetails";
7952
+ TransactionCfgName["HeaderOrderDetails"] = "headerOrderDetails";
7953
+ TransactionCfgName["HeaderPurchaseDetails"] = "headerPurchaseDetails";
7943
7954
  })(TransactionCfgName || (TransactionCfgName = {}));
7944
7955
 
7945
7956
  class TransactionScreenConfigurationService extends BaseModuleScreenConfigService {
@@ -8058,6 +8069,14 @@ class TransactionBaseComponent {
8058
8069
  this._orderLineSets = [];
8059
8070
  this._transactionTotal = new TransactionTotal();
8060
8071
  this._baseSubs = [];
8072
+ this.handleCommit = (value) => __awaiter(this, void 0, void 0, function* () {
8073
+ if (yield this.lockTransaction()) {
8074
+ this.committing = true;
8075
+ const response = yield this.commit(value);
8076
+ this.committing = false;
8077
+ return response;
8078
+ }
8079
+ });
8061
8080
  }
8062
8081
  set cfgName(value) {
8063
8082
  this._cfgName = value;
@@ -8066,6 +8085,17 @@ class TransactionBaseComponent {
8066
8085
  get cfgName() {
8067
8086
  return this._cfgName;
8068
8087
  }
8088
+ set forceWritable(value) {
8089
+ this._forceWritable = value;
8090
+ if (this._forceWritable) {
8091
+ this.readonly = false;
8092
+ this.headerReadonly = false;
8093
+ this.tooltipMessage = undefined;
8094
+ }
8095
+ }
8096
+ get forceWritable() {
8097
+ return this._forceWritable;
8098
+ }
8069
8099
  set transaction(value) {
8070
8100
  this._transaction = value;
8071
8101
  if (this._transaction) {
@@ -8243,16 +8273,6 @@ class TransactionBaseComponent {
8243
8273
  ngOnDestroy() {
8244
8274
  this._baseSubs.forEach(s => s.unsubscribe());
8245
8275
  }
8246
- handleCommit(value) {
8247
- return __awaiter(this, void 0, void 0, function* () {
8248
- if (yield this.lockTransaction()) {
8249
- this.committing = true;
8250
- const response = yield this.commit(value);
8251
- this.committing = false;
8252
- return response;
8253
- }
8254
- });
8255
- }
8256
8276
  deleteTransactionLineClick(event) {
8257
8277
  return __awaiter(this, void 0, void 0, function* () {
8258
8278
  event.preventDefault();
@@ -8299,6 +8319,9 @@ class TransactionBaseComponent {
8299
8319
  }
8300
8320
  }
8301
8321
  prepareTooltipMessage() {
8322
+ if (this.forceWritable) { // should not check readonly-ness
8323
+ return;
8324
+ }
8302
8325
  this.tooltipMessage = '';
8303
8326
  let tooltips = [];
8304
8327
  if (this.headerTooltipMessages.length > 0 || this.lineTooltipMessages.length > 0) {
@@ -8354,6 +8377,7 @@ TransactionBaseComponent.ctorParameters = () => [
8354
8377
  ];
8355
8378
  TransactionBaseComponent.propDecorators = {
8356
8379
  cfgName: [{ type: Input }],
8380
+ forceWritable: [{ type: Input }],
8357
8381
  transaction: [{ type: Input }],
8358
8382
  transactionLine: [{ type: Input }],
8359
8383
  transactionMarginInfo: [{ type: Input }],
@@ -8538,6 +8562,7 @@ DialogTransactionLineWarehouseCcComponent.decorators = [
8538
8562
  [transactionLine]="transactionLine"
8539
8563
  [value]="commissionCode"
8540
8564
  [useModel]="false"
8565
+ [forceWritable]="true"
8541
8566
  (valueChange)="handleCommissionCodeChange($event)"></co-transaction-line-commission-code>
8542
8567
  </div>
8543
8568
  <div class="transaction-line-warehouse-cc-section">
@@ -8546,6 +8571,7 @@ DialogTransactionLineWarehouseCcComponent.decorators = [
8546
8571
  [transactionLine]="transactionLine"
8547
8572
  [value]="warehouse"
8548
8573
  [useModel]="false"
8574
+ [forceWritable]="true"
8549
8575
  [transactionInfo]="transactionInfo"
8550
8576
  (valueChange)="handleWarehouseChange($event)"></co-transaction-line-warehouse>
8551
8577
  </div>
@@ -11159,15 +11185,30 @@ class TransactionService extends PendingReasonService {
11159
11185
  deleteTransactionLine(transactionUuid, TransactionLineUuid) {
11160
11186
  return __awaiter(this, void 0, void 0, function* () {
11161
11187
  const response = yield this.connector.deleteTransactionLine(transactionUuid, TransactionLineUuid);
11162
- this.transactionDirty = true;
11163
- return this.handleLineOperationStatuses(response);
11188
+ if (response) {
11189
+ this.transactionDirty = true;
11190
+ return this.handleLineOperationStatuses(response);
11191
+ }
11192
+ if (!this.manualSaveParam) {
11193
+ yield this.rollback();
11194
+ }
11195
+ return false;
11164
11196
  });
11165
11197
  }
11166
11198
  changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity) {
11167
11199
  return __awaiter(this, void 0, void 0, function* () {
11168
- const response = yield this.connector.changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity);
11169
- this.transactionDirty = true;
11170
- return this.handleLineOperationStatuses(response);
11200
+ const response = yield this.connector.changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity)
11201
+ .catch(() => {
11202
+ return null;
11203
+ });
11204
+ if (response) {
11205
+ this.transactionDirty = true;
11206
+ return this.handleLineOperationStatuses(response);
11207
+ }
11208
+ if (!this.manualSaveParam) {
11209
+ yield this.rollback();
11210
+ }
11211
+ return false;
11171
11212
  });
11172
11213
  }
11173
11214
  getGoodsReceiptHistory(transId, lineNr) {
@@ -21490,14 +21531,23 @@ TransactionCardOrderDeliveryComponent.propDecorators = {
21490
21531
  showClass: [{ type: HostBinding, args: ["class.co-transaction-card-order-delivery",] }]
21491
21532
  };
21492
21533
 
21534
+ var TransactionPickingButtonCategory;
21535
+ (function (TransactionPickingButtonCategory) {
21536
+ TransactionPickingButtonCategory["OrderPicking"] = "serviceOrderPicking";
21537
+ TransactionPickingButtonCategory["OrderToBePicked"] = "serviceOrderToBePicked";
21538
+ TransactionPickingButtonCategory["OrderPicked"] = "serviceOrderPicked";
21539
+ })(TransactionPickingButtonCategory || (TransactionPickingButtonCategory = {}));
21540
+
21493
21541
  class TransactionSalesPickingButtonBarButtonComponent extends TransactionButtonBarButtonBaseComponent {
21494
- constructor(iconCacheService, _mappingService, _transactionEventService) {
21542
+ constructor(iconCacheService, _mappingService, _transactionEventService, _transactionService) {
21495
21543
  super();
21496
21544
  this.iconCacheService = iconCacheService;
21497
21545
  this._mappingService = _mappingService;
21498
21546
  this._transactionEventService = _transactionEventService;
21547
+ this._transactionService = _transactionService;
21499
21548
  this.icons = Icon;
21500
21549
  this.category = TransactionTypeCategory;
21550
+ this.buttonCategory = TransactionPickingButtonCategory;
21501
21551
  this.buttonClicked = new EventEmitter();
21502
21552
  this.showClass = true;
21503
21553
  this.showCategories = false;
@@ -21532,18 +21582,35 @@ class TransactionSalesPickingButtonBarButtonComponent extends TransactionButtonB
21532
21582
  this.showCategories = !this.showCategories;
21533
21583
  }
21534
21584
  handlePickingCategoryClicked(event, category) {
21535
- const pickingButton = this._mappingService.getButtonBar(TransactionKind.SalesOrder)
21536
- .find((button) => button.title === 'LOGISTICS');
21585
+ let pickingButton;
21586
+ if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
21587
+ pickingButton = this._mappingService.getButtonBar(TransactionKind.SalesOrder)
21588
+ .find((button) => button.title === 'LOGISTICS');
21589
+ }
21590
+ else {
21591
+ pickingButton = this._mappingService.getButtonBar(TransactionKind.ServiceOrder)
21592
+ .find((button) => button.title === 'LOGISTICS');
21593
+ }
21537
21594
  this.showCategories = false;
21538
21595
  event.preventDefault();
21539
21596
  event.stopPropagation();
21540
- if (category === TransactionTypeCategory.SalesOrderToBePicked) {
21597
+ if (category === TransactionPickingButtonCategory.OrderToBePicked) {
21541
21598
  pickingButton.icon = this.icons.BoxesPackingRegular;
21542
- pickingButton.category = TransactionTypeCategory.SalesOrderToBePicked;
21599
+ if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
21600
+ pickingButton.category = TransactionTypeCategory.SalesOrderToBePicked;
21601
+ }
21602
+ else {
21603
+ pickingButton.category = TransactionTypeCategory.ServiceOrderToBePicked;
21604
+ }
21543
21605
  }
21544
21606
  else {
21545
21607
  pickingButton.icon = this.icons.RegularBoxesPackingCircleCheck;
21546
- pickingButton.category = TransactionTypeCategory.SalesOrderPicked;
21608
+ if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
21609
+ pickingButton.category = TransactionTypeCategory.SalesOrderPicked;
21610
+ }
21611
+ else {
21612
+ pickingButton.category = TransactionTypeCategory.ServiceOrderPicked;
21613
+ }
21547
21614
  }
21548
21615
  this.buttonClicked.next(pickingButton);
21549
21616
  }
@@ -21560,12 +21627,12 @@ TransactionSalesPickingButtonBarButtonComponent.decorators = [
21560
21627
  <co-icon class="co-transaction-button-bar-icon" [iconData]="iconCacheService.getIcon(iconName)"></co-icon>
21561
21628
  <span class="button-title" [textContent]="title | localize"></span>
21562
21629
  <div class="picking-type-wrapper" *ngIf="showCategories">
21563
- <div class="button-wrapper" (click)="handlePickingCategoryClicked($event, category.SalesOrderToBePicked)">
21630
+ <div class="button-wrapper" (click)="handlePickingCategoryClicked($event, buttonCategory.OrderToBePicked)">
21564
21631
  <co-animated-checkbox [checked]="toBePickedChecked"></co-animated-checkbox>
21565
21632
  <co-icon class="co-transaction-button-bar-icon" [iconData]="iconCacheService.getIcon(icons.BoxesPackingRegular)"></co-icon>
21566
21633
  <span class="button-title" [textContent]="'TO_PICK' | localize"></span>
21567
21634
  </div>
21568
- <div class="button-wrapper" (click)="handlePickingCategoryClicked($event, category.SalesOrderPicked)">
21635
+ <div class="button-wrapper" (click)="handlePickingCategoryClicked($event, buttonCategory.OrderPicked)">
21569
21636
  <co-animated-checkbox [checked]="pickedChecked"></co-animated-checkbox>
21570
21637
  <co-icon class="co-transaction-button-bar-icon"
21571
21638
  [iconData]="iconCacheService.getIcon(icons.RegularBoxesPackingCircleCheck)"></co-icon>
@@ -21580,7 +21647,8 @@ TransactionSalesPickingButtonBarButtonComponent.decorators = [
21580
21647
  TransactionSalesPickingButtonBarButtonComponent.ctorParameters = () => [
21581
21648
  { type: IconCacheService },
21582
21649
  { type: TransactionMappingService },
21583
- { type: TransactionEventService }
21650
+ { type: TransactionEventService },
21651
+ { type: TransactionService }
21584
21652
  ];
21585
21653
  TransactionSalesPickingButtonBarButtonComponent.propDecorators = {
21586
21654
  buttonClicked: [{ type: Output }],
@@ -23488,8 +23556,8 @@ TransactionLinesSidePanelCashDeskComponent.decorators = [
23488
23556
  [paymentViewModel]="selectedPaymentMethod"
23489
23557
  [cashRegisterNr]="cashRegisterNr"
23490
23558
  [cashRegisterGroupId]="cashRegisterGroupId"
23491
- [cashRegisterDrawerId]="cashRegisterDrawerId"
23492
23559
  [cashRegisterDrawerNr]="cashRegisterDrawerNr"
23560
+ [cashRegisterDrawerId]="cashRegisterDrawerId"
23493
23561
  [printerName]="printerName"
23494
23562
  [emailLayout]="emailLayout"
23495
23563
  [printerLayout]="printerLayout"
@@ -24030,104 +24098,109 @@ TransactionCardPurchaseConfirmationComponent.decorators = [
24030
24098
  { type: Component, args: [{
24031
24099
  selector: 'co-transaction-card-purchase-confirmation',
24032
24100
  template: `
24033
- <co-transaction-base-card
24034
- [transactionInfo]="transactionInfo"
24101
+ <co-transaction-base-card
24102
+ [transactionInfo]="transactionInfo"
24103
+ [transactionLine]="transactionLine"
24104
+ [showColorIndicator]="showColorIndicator"
24105
+ [colorIndicatorColor]="colorIndicatorColor"
24106
+ (dragover)="handleDragOver($event)"
24107
+ (drop)="handleDrop($event)"
24108
+ (dragleave)="handleDragLeave($event)"
24109
+ >
24110
+ <div class="transaction-card-wrapper">
24111
+ <co-transaction-card-header
24112
+ [transactionLine]="transactionLine"
24113
+ [showActionButtons]="true"
24114
+ [showCheckbox]="showCheckboxForLine"
24115
+ [showThumbnail]="false"
24116
+ [expanded]="expanded"
24117
+ >
24118
+ </co-transaction-card-header>
24119
+
24120
+ <div class="transaction-card-content-wrapper">
24121
+ <div class="content-base top-base">
24122
+ <co-transaction-line-commission-button [transactionLine]="transactionLine"
24123
+ [transactionInfo]="transactionInfo"></co-transaction-line-commission-button>
24124
+ <co-transaction-line-supplier-button [transactionLine]="transactionLine"
24125
+ [transactionInfo]="transactionInfo"></co-transaction-line-supplier-button>
24126
+ <co-transaction-line-statusbar data-action="openSidePanel"
24127
+ [screenConfigurationObject]="cfgNames.StatusBar"
24128
+ [configNames]="statusBarConfigNames"
24129
+ [transactionInfo]="transactionInfo"
24130
+ [transactionLine]="transactionLine"
24131
+ [activeCategory]="transactionTypeCategory.PurchaseOrderOrderConfirmation"
24132
+ ></co-transaction-line-statusbar>
24133
+ </div>
24134
+ <div class="content-base bottom-base">
24135
+ <co-input-text
24136
+ class="transaction-line-totals-price"
24137
+ [class.warning]="showColorIndicator && transactionLine.purchasePortalLine.grossOrderPrice != transactionLine.purchasePortalLine.confirmedPrice"
24138
+ [model]="transactionLine.purchasePortalLine.grossOrderPrice | coCurrency"
24139
+ [readonly]="true"
24140
+ [customHeight]="true">
24141
+ </co-input-text>
24142
+ <co-transaction-line-discount-button
24143
+ [screenConfigurationObject]="cfgNames.LineDiscount"
24035
24144
  [transactionLine]="transactionLine"
24036
- [showColorIndicator]="showColorIndicator"
24037
- [colorIndicatorColor]="colorIndicatorColor"
24038
- (dragover)="handleDragOver($event)"
24039
- (drop)="handleDrop($event)"
24040
- (dragleave)="handleDragLeave($event)"
24041
- >
24042
- <div class="transaction-card-wrapper">
24043
- <co-transaction-card-header
24044
- [transactionLine]="transactionLine"
24045
- [showActionButtons]="true"
24046
- [showCheckbox]="showCheckboxForLine"
24047
- [showThumbnail]="false"
24048
- [expanded]="expanded"
24049
- >
24050
- </co-transaction-card-header>
24051
-
24052
- <div class="transaction-card-content-wrapper">
24053
- <div class="content-base top-base">
24054
- <co-transaction-line-commission-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-commission-button>
24055
- <co-transaction-line-supplier-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-supplier-button>
24056
- <co-transaction-line-statusbar data-action="openSidePanel"
24057
- [screenConfigurationObject]="cfgNames.StatusBar"
24058
- [configNames]="statusBarConfigNames"
24059
- [transactionInfo]="transactionInfo"
24060
- [transactionLine]="transactionLine"
24061
- [activeCategory]="transactionTypeCategory.PurchaseOrderOrderConfirmation"
24062
- ></co-transaction-line-statusbar>
24063
- </div>
24064
- <div class="content-base bottom-base">
24065
- <co-input-text class="transaction-line-totals-price"
24066
- [model]="transactionLine.purchasePortalLine.grossOrderPrice | coCurrency"
24067
- [readonly]="true"
24068
- [customHeight]="true"
24069
- ></co-input-text>
24070
- <co-transaction-line-discount-button
24071
- [screenConfigurationObject]="cfgNames.LineDiscount"
24072
- [transactionLine]="transactionLine"
24073
- [transactionInfo]="transactionInfo"
24074
- ></co-transaction-line-discount-button>
24075
- <div class="transaction-line-totals-amount">
24076
- <co-input-text
24077
- [model]="transactionLine.amount"
24078
- [leftIconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"
24079
- [readonly]="true"
24080
- [customHeight]="true"
24081
- ></co-input-text>
24082
- </div>
24083
- <co-input-text class="transaction-line-totals-total"
24084
- [model]="transactionLine.displayNetLineTotal | coCurrency"
24085
- [readonly]="true"
24086
- [customHeight]="true"
24087
- ></co-input-text>
24088
- </div>
24089
- <div class="content-expanded" *ngIf="expanded">
24090
- <co-input-text
24091
- [model]="transactionLine.purchasePortalLine.articleNoSupplier ? transactionLine.purchasePortalLine.articleNoSupplier : '-'"
24092
- [leftIconData]="iconCacheService.getIcon(icons.RegularIndustryTag)"
24093
- [customHeight]="true"
24094
- [readonly]="true"
24095
- ></co-input-text>
24096
- <co-transaction-line-supplier-delivery-date-button
24097
- [screenConfigurationObject]="cfgNames.LineConfirmedDate"
24098
- [transactionLine]="transactionLine"
24099
- ></co-transaction-line-supplier-delivery-date-button>
24100
- </div>
24101
- <div class="content-expanded" *ngIf="expanded">
24102
- <co-input-number-picker class="amount-number-picker"
24103
- [screenConfigurationObject]="cfgNames.LineConfirmedAmount"
24104
- [required]="true"
24105
- [(model)]="+transactionLine.quantityPurchaseToConfirm"
24106
- [decimals]="decimals"
24107
- [min]="1"
24108
- [max]="+transactionLine.purchasePortalLine.amountOrdered"
24109
- [leftIconData]="iconCacheService.getIcon(icons.FileCircleInfoRegular)"
24110
- ></co-input-number-picker>
24111
- <co-transaction-line-confirmed-price class="transaction-line-confirmed-price price"
24112
- [screenConfigurationObject]="cfgNames.LineConfirmedPrice"
24113
- [(price)]="transactionLine.purchasePortalLine.confirmedPrice"
24114
- [showLabel]="false"
24115
- [defaultEditMode]="false"
24116
- ></co-transaction-line-confirmed-price>
24117
- </div>
24145
+ [transactionInfo]="transactionInfo"
24146
+ ></co-transaction-line-discount-button>
24147
+ <div class="transaction-line-totals-amount">
24148
+ <co-input-text
24149
+ [class.warning]="showColorIndicator && transactionLine.amount !== transactionLine.quantityPurchaseToConfirm"
24150
+ [model]="transactionLine.amount"
24151
+ [leftIconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"
24152
+ [readonly]="true"
24153
+ [customHeight]="true"
24154
+ ></co-input-text>
24118
24155
  </div>
24119
-
24120
- <co-transaction-card-footer
24121
- [statusBarConfigNames]="statusBarConfigNames"
24122
- [transaction]="transaction"
24123
- [transactionLine]="transactionLine"
24124
- [transactionTypeCategory]="transactionTypeCategory.SalesOrderPurchase"
24125
- [expanded]="expanded"
24126
- (expandClicked)="expanded = !expanded"
24127
- ></co-transaction-card-footer>
24156
+ <co-input-text class="transaction-line-totals-total"
24157
+ [model]="transactionLine.displayNetLineTotal | coCurrency"
24158
+ [readonly]="true"
24159
+ [customHeight]="true"
24160
+ ></co-input-text>
24161
+ </div>
24162
+ <div class="content-expanded" *ngIf="expanded">
24163
+ <co-input-text
24164
+ [model]="transactionLine.purchasePortalLine.articleNoSupplier ? transactionLine.purchasePortalLine.articleNoSupplier : '-'"
24165
+ [leftIconData]="iconCacheService.getIcon(icons.RegularIndustryTag)"
24166
+ [customHeight]="true"
24167
+ [readonly]="true"
24168
+ ></co-input-text>
24169
+ <co-transaction-line-supplier-delivery-date-button
24170
+ [screenConfigurationObject]="cfgNames.LineConfirmedDate"
24171
+ [transactionLine]="transactionLine"
24172
+ ></co-transaction-line-supplier-delivery-date-button>
24173
+ </div>
24174
+ <div class="content-expanded" *ngIf="expanded">
24175
+ <co-input-number-picker class="amount-number-picker"
24176
+ [screenConfigurationObject]="cfgNames.LineConfirmedAmount"
24177
+ [required]="true"
24178
+ [(model)]="+transactionLine.quantityPurchaseToConfirm"
24179
+ [decimals]="decimals"
24180
+ [min]="1"
24181
+ [max]="+transactionLine.purchasePortalLine.amountOrdered"
24182
+ [leftIconData]="iconCacheService.getIcon(icons.FileCircleInfoRegular)"
24183
+ ></co-input-number-picker>
24184
+ <co-transaction-line-confirmed-price class="transaction-line-confirmed-price price"
24185
+ [screenConfigurationObject]="cfgNames.LineConfirmedPrice"
24186
+ [(price)]="transactionLine.purchasePortalLine.confirmedPrice"
24187
+ [showLabel]="false"
24188
+ [defaultEditMode]="false"
24189
+ ></co-transaction-line-confirmed-price>
24190
+ </div>
24128
24191
  </div>
24129
- </co-transaction-base-card>
24130
- `,
24192
+
24193
+ <co-transaction-card-footer
24194
+ [statusBarConfigNames]="statusBarConfigNames"
24195
+ [transaction]="transaction"
24196
+ [transactionLine]="transactionLine"
24197
+ [transactionTypeCategory]="transactionTypeCategory.SalesOrderPurchase"
24198
+ [expanded]="expanded"
24199
+ (expandClicked)="expanded = !expanded"
24200
+ ></co-transaction-card-footer>
24201
+ </div>
24202
+ </co-transaction-base-card>
24203
+ `,
24131
24204
  encapsulation: ViewEncapsulation.None
24132
24205
  },] }
24133
24206
  ];
@@ -24146,6 +24219,7 @@ class TransactionLinesSidePanelServiceOrderComponent extends TransactionBaseComp
24146
24219
  this.transactionService = transactionService;
24147
24220
  this.changeDetector = changeDetector;
24148
24221
  this.Icon = Icon;
24222
+ this.cfgNames = TransactionCfgName;
24149
24223
  this.showDetails = false;
24150
24224
  }
24151
24225
  showClass() {
@@ -24169,7 +24243,7 @@ TransactionLinesSidePanelServiceOrderComponent.decorators = [
24169
24243
  selector: 'co-transaction-lines-side-panel-service-order',
24170
24244
  template: `
24171
24245
  <div class="full-details-wrapper">
24172
- <div class="details-wrapper">
24246
+ <div class="details-wrapper" [screenConfigurationObject]="cfgNames.HeaderProductDetails" screenConfigNativeElement>
24173
24247
  <div class="details-label-wrapper clickable" (click)="showDetailsClick()">
24174
24248
  <label class="detail-label" [textContent]="'ARTICLE_DETAILS' | localize"
24175
24249
  ></label>
@@ -24200,7 +24274,7 @@ TransactionLinesSidePanelServiceOrderComponent.decorators = [
24200
24274
  <div class="show-details-wrapper"
24201
24275
  *ngIf="showDetails"
24202
24276
  [@slideToggle]="showDetails ? 'open' : 'closed'">
24203
- <div class="details-wrapper">
24277
+ <div class="details-wrapper" [screenConfigurationObject]="cfgNames.HeaderOrderDetails" screenConfigNativeElement>
24204
24278
  <div class="details-label-wrapper">
24205
24279
  <label class="detail-label" [textContent]="'SALESORDER_DETAIL' | localize"
24206
24280
  ></label>
@@ -24227,7 +24301,7 @@ TransactionLinesSidePanelServiceOrderComponent.decorators = [
24227
24301
  </div>
24228
24302
  </div>
24229
24303
  </div>
24230
- <div class="details-wrapper">
24304
+ <div class="details-wrapper" [screenConfigurationObject]="cfgNames.HeaderPurchaseDetails" screenConfigNativeElement>
24231
24305
  <div class="details-label-wrapper">
24232
24306
  <label class="detail-label" [textContent]="'PURCHASEORDER_DETAIL' | localize"
24233
24307
  ></label>
@@ -24880,6 +24954,14 @@ class TransactionMappingService {
24880
24954
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderToBePicked }, TransactionQuickAccessToBePickedComponent],
24881
24955
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPicked }, TransactionQuickAccessPickedComponent],
24882
24956
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPlanning }, TransactionQuickAccessPlanningComponent],
24957
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionQuickAccessOverviewComponent],
24958
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionQuickAccessOrderPurchaseComponent],
24959
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderAllocation }, TransactionQuickAccessGoodsAllocationComponent],
24960
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderDeliveryNote }, TransactionQuickAccessOrderDeliveryComponent],
24961
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderInvoice }, TransactionQuickAccessInvoiceComponent],
24962
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderToBePicked }, TransactionQuickAccessToBePickedComponent],
24963
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPicked }, TransactionQuickAccessPickedComponent],
24964
+ [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPlanning }, TransactionQuickAccessPlanningComponent],
24883
24965
  [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionQuickAccessSalesQuotationComponent]
24884
24966
  ]);
24885
24967
  this._transactionGridComponent = new Map([
@@ -25962,7 +26044,7 @@ TransactionLineCommissionCodeComponent.decorators = [
25962
26044
  <co-transaction-line-checkbox-list
25963
26045
  [committing]="committing"
25964
26046
  [collection]="viewModelsFiltered"
25965
- [readonly]="readonly"
26047
+ [readonly]="readonly && !forceWritable"
25966
26048
  [tooltip]="tooltipMessage"
25967
26049
  (checked)="handleChecked($event)"
25968
26050
  ></co-transaction-line-checkbox-list>
@@ -26392,7 +26474,7 @@ TransactionLineWarehouseComponent.decorators = [
26392
26474
  <co-transaction-line-checkbox-list
26393
26475
  [committing]="committing"
26394
26476
  [collection]="viewModelsFiltered"
26395
- [readonly]="readonly"
26477
+ [readonly]="readonly && !forceWritable"
26396
26478
  [tooltip]="tooltipMessage"
26397
26479
  (checked)="handleChecked($event)"
26398
26480
  ></co-transaction-line-checkbox-list>
@@ -27698,23 +27780,22 @@ class TransactionLineAmountComponent extends TransactionBaseComponent {
27698
27780
  constructor() {
27699
27781
  super(...arguments);
27700
27782
  this.isReturn = false;
27701
- }
27702
- showClass() {
27703
- return true;
27704
- }
27705
- commit(amount) {
27706
- return __awaiter(this, void 0, void 0, function* () {
27783
+ this.commit = (amount) => __awaiter(this, void 0, void 0, function* () {
27707
27784
  if (this.transactionInfo && this.transactionLine && this.transactionLine.amount !== amount) {
27785
+ this.localAmount = amount;
27708
27786
  const oldAmount = this.transactionLine.amount;
27709
27787
  const success = yield this.transactionService.changeTransactionLineQuantity(this.transactionInfo.uuid, this.transactionLine.uuid, amount);
27710
27788
  if (!success) {
27711
- this.localAmount = amount;
27789
+ this.localAmount = oldAmount;
27712
27790
  }
27713
27791
  return success;
27714
27792
  }
27715
27793
  return true;
27716
27794
  });
27717
27795
  }
27796
+ showClass() {
27797
+ return true;
27798
+ }
27718
27799
  transactionLineSet() {
27719
27800
  const _super = Object.create(null, {
27720
27801
  transactionLineSet: { get: () => super.transactionLineSet }
@@ -30549,6 +30630,11 @@ AvatarComponent.decorators = [
30549
30630
  </svg>
30550
30631
  </ng-template>
30551
30632
  `,
30633
+ providers: [{
30634
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
30635
+ useExisting: forwardRef(() => AvatarComponent)
30636
+ }
30637
+ ],
30552
30638
  changeDetection: ChangeDetectionStrategy.OnPush,
30553
30639
  encapsulation: ViewEncapsulation.None
30554
30640
  },] }
@@ -30667,8 +30753,8 @@ class TransactionPaymentService {
30667
30753
  this.pollingForStatusStarted = new Subject();
30668
30754
  this.pollingForStatusEnded = new Subject();
30669
30755
  this.doNotFetchAmountToPayForRemaining = false;
30670
- this._paymentStatusPollIntervalMs = 5000;
30671
- this._paymentStatusMaxPollInterval = 60;
30756
+ this._paymentStatusPollIntervalMs = 1000;
30757
+ this._paymentStatusMaxPollInterval = 300; // give the customer 5 minutes (300 x 1 second interval) to pay
30672
30758
  this._paymentStatusPollIntervalCount = 0;
30673
30759
  }
30674
30760
  set currentPaymentMethod(value) {
@@ -30876,10 +30962,10 @@ class TransactionPaymentService {
30876
30962
  }
30877
30963
  setCashDrawerIdIfValidDrawer(drawerNr) {
30878
30964
  return __awaiter(this, void 0, void 0, function* () {
30879
- this._cashRegisterDrawerId = NaN;
30880
30965
  if (!drawerNr) {
30881
30966
  return;
30882
30967
  }
30968
+ this._cashRegisterDrawerId = NaN;
30883
30969
  let request = new CashDrawersRequest();
30884
30970
  request.group = this.cashRegisterGroupId;
30885
30971
  request.date = "?='" + this._datePipe.transform(new Date(), "dd-MM-yyyy") + "'";
@@ -32332,12 +32418,11 @@ TransactionHeaderDeliveryComponent.decorators = [
32332
32418
  [transactionInfo]="transactionInfo"
32333
32419
  ></co-transaction-header-delivery-method-button>
32334
32420
 
32335
- <!--div class="header-delivery-preferred-deliverydate-label co-transaction-label" [textContent]="'PREFERRED_DATE' | localize"></div>
32336
32421
  <co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
32337
32422
  [transactionInfo]="transactionInfo"
32338
32423
  [defaultEditMode]="false"
32339
32424
  [showLabel]="false"
32340
- ></co-transaction-header-preferred-delivery-date-->
32425
+ ></co-transaction-header-preferred-delivery-date>
32341
32426
  </ng-template>
32342
32427
  <ng-template #hiddenBlock>
32343
32428
  <co-transaction-header-partial-delivery class="transaction-header-partial-delivery co-transaction-label"
@@ -33980,6 +34065,10 @@ TransactionHeaderPopupOrderComponent.decorators = [
33980
34065
  </co-project-code-modal>
33981
34066
  </div>
33982
34067
  `,
34068
+ providers: [{
34069
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
34070
+ useExisting: forwardRef(() => TransactionHeaderPopupOrderComponent)
34071
+ }],
33983
34072
  encapsulation: ViewEncapsulation.None
33984
34073
  },] }
33985
34074
  ];
@@ -39239,11 +39328,6 @@ TransactionInternalComponent.decorators = [
39239
39328
  </div>
39240
39329
  </ng-container>
39241
39330
  `,
39242
- providers: [{
39243
- provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
39244
- useExisting: forwardRef(() => TransactionInternalComponent)
39245
- }
39246
- ],
39247
39331
  encapsulation: ViewEncapsulation.None
39248
39332
  },] }
39249
39333
  ];
@@ -52354,27 +52438,28 @@ TransactionServiceOverviewComponent.decorators = [
52354
52438
  <div class="service-message-wrapper">
52355
52439
  <label class="label service-label" [textContent]="'SERVICE_REPORT'| localize"></label>
52356
52440
  <span *ngIf="transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers"
52357
- [textContent]="transactionServiceInfo.wizardQuestionsAndAnswers"></span> <!--[screenConfigurationObject]="" screenConfigNativeElement-->
52441
+ [textContent]="transactionServiceInfo.wizardQuestionsAndAnswers" [screenConfigurationObject]="cfgNames.ServiceWizardMessage" screenConfigNativeElement
52442
+ ></span> <!---->
52358
52443
  <co-transaction-service-message class="transaction-service-message" [transaction]="transaction">
52359
52444
  </co-transaction-service-message>
52360
52445
  </div>
52361
- <co-files-upload (documentChangeEvent)="upsertDocument($event)"
52446
+ <co-files-upload (documentChangeEvent)="upsertDocument($event)" [screenConfigurationObject]="cfgNames.ServiceOverviewImage"
52362
52447
  (documentDeleted)="deleteDocument($event)"
52363
52448
  [label]="'ADD_IMAGES' | localize"
52364
52449
  [documents]="documents"
52365
- [isEditable]="false">
52450
+ [isEditable]="false" > <!---->
52366
52451
  </co-files-upload>
52367
52452
  <div class="service-order-lines-wrapper">
52368
52453
  <div class="service-message-extra-wrapper">
52369
52454
  <co-list-of-values [label]="'PRIORITY'| localize" displayField="description" [model]="priorityModel"
52370
- [collection]="priorityDomainColl"
52371
- (modelChange)="setPriority($event)"></co-list-of-values>
52455
+ [collection]="priorityDomainColl" [screenConfigurationObject]="cfgNames.ServicePriority"
52456
+ (modelChange)="setPriority($event)"></co-list-of-values> <!---->
52372
52457
  <co-list-of-values [label]="'CAUSE_CODE' | localize" displayField="description" [model]="causeCodeModel"
52373
- [collection]="causeCodeColl"
52374
- (modelChange)="setCauseCode($event)"></co-list-of-values>
52458
+ [collection]="causeCodeColl" [screenConfigurationObject]="cfgNames.ServiceCauseCode"
52459
+ (modelChange)="setCauseCode($event)"></co-list-of-values> <!---->
52375
52460
  <co-list-of-values [label]="'ENTRY_TYPE' | localize" displayField="description" [model]="entryTypeModel"
52376
- [collection]="entryTypeColl"
52377
- (modelChange)="setEntryType($event)"></co-list-of-values>
52461
+ [collection]="entryTypeColl" [screenConfigurationObject]="cfgNames.ServiceEntryType"
52462
+ (modelChange)="setEntryType($event)"></co-list-of-values> <!---->
52378
52463
  </div>
52379
52464
  <co-transaction-lines-side-panel
52380
52465
  class="higher-max-width"
@@ -52386,22 +52471,27 @@ TransactionServiceOverviewComponent.decorators = [
52386
52471
  </div>
52387
52472
  <div class="activity-list-component-wrapper">
52388
52473
  <div class="activity-task-creator-wrapper">
52389
- <co-component-activity-list #openActivities [showActivityHeader]="showActivityHeader" [table]="TableName.Transactions" [key]="transactionInfo.id.toString()" (refreshRequested)="finishedActivitiesRefreshRequested()">
52474
+ <co-component-activity-list #openActivities [showActivityHeader]="showActivityHeader" [screenConfigurationObject]="cfgNames.HeaderActivityList"
52475
+ [table]="TableName.Transactions" [key]="transactionInfo.id.toString()" (refreshRequested)="finishedActivitiesRefreshRequested()">
52390
52476
  </co-component-activity-list>
52391
52477
  <co-task-creator [table]="TableName.Transactions" [remarkAndWorkKey]="transactionInfo.id.toString()" [taskKey]="transactionInfo.transactionNr.toString()"
52392
52478
  [author]="transactionService.loggedInUser" [branchNo]="transactionInfo.branch.relationNr.toString()"
52393
- [workflowCategoryType]="WorkflowCategoryType.ServiceOrder"
52479
+ [workflowCategoryType]="WorkflowCategoryType.ServiceOrder" [screenConfigurationObject]="cfgNames.HeaderTaskCreator"
52394
52480
  (activityCreated)="fullActivitiesRefreshRequested()"></co-task-creator>
52395
52481
  </div>
52396
52482
  <div class="activity-list-conv-wrapper">
52397
- <label class="label history-label" [textContent]="'HISTORIC_ACTIVITY_CHAT'| localize"></label>
52398
- <co-activity-list [activities]="activities"></co-activity-list>
52483
+ <label class="label history-label" [textContent]="'HISTORIC_ACTIVITY_CHAT'| localize" [screenConfigurationObject]="cfgNames.HeaderHistActivities" screenConfigNativeElement></label>
52484
+ <co-activity-list [activities]="activities" [screenConfigurationObject]="cfgNames.HeaderHistActivities"></co-activity-list>
52399
52485
  </div>
52400
52486
  </div>
52401
52487
  </div>
52402
52488
  </div>
52403
52489
 
52404
52490
  `,
52491
+ providers: [{
52492
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
52493
+ useExisting: forwardRef(() => TransactionServiceOverviewComponent)
52494
+ }],
52405
52495
  encapsulation: ViewEncapsulation.None
52406
52496
  },] }
52407
52497
  ];
@@ -52455,7 +52545,8 @@ TransactionServiceMessageComponent.decorators = [
52455
52545
  [model]="transactionServiceInfo.reportMessage"
52456
52546
  [forceReadonly]="readonly"
52457
52547
  [showSaveCancel]="true"
52458
- ></co-input-textarea> <!--[screenConfigurationObject]="cfgNames.ServiceMessage"-->
52548
+ [screenConfigurationObject]="cfgNames.ServiceMessage"
52549
+ ></co-input-textarea>
52459
52550
  `,
52460
52551
  encapsulation: ViewEncapsulation.None
52461
52552
  },] }
@@ -53584,7 +53675,8 @@ TransactionLinesSidePanelServiceOrderModule.decorators = [
53584
53675
  CommonModule,
53585
53676
  InputTextareaModule,
53586
53677
  InputTextModule,
53587
- IconModule
53678
+ IconModule,
53679
+ ScreenConfigurationModule
53588
53680
  ],
53589
53681
  declarations: [
53590
53682
  TransactionLinesSidePanelServiceOrderComponent
@@ -53631,7 +53723,8 @@ TransactionServiceOverviewModule.decorators = [
53631
53723
  ComponentActivityListModule,
53632
53724
  TaskCreatorModule,
53633
53725
  TransactionLinesSidePanelModule,
53634
- TransactionServiceMessageModule
53726
+ TransactionServiceMessageModule,
53727
+ ScreenConfigurationModule,
53635
53728
  ],
53636
53729
  declarations: [
53637
53730
  TransactionServiceOverviewComponent
@@ -55240,7 +55333,7 @@ class TransactionCashRegisterDialogComponent extends TransactionBaseComponent {
55240
55333
  this.selectedPrinterLayout = defaultPrintLayout ? defaultPrintLayout : null;
55241
55334
  const defaultEmailLayout = this.emailLayouts.find((layout) => layout.isDefault);
55242
55335
  this.selectedEmailLayout = defaultEmailLayout ? defaultEmailLayout : null;
55243
- if (this.activeCashDrawer && this.activePrinter && defaultPrintLayout && defaultEmailLayout) {
55336
+ if (this.activeCashDrawer && this.activePrinter && defaultPrintLayout && defaultEmailLayout && this.cashRegisters.length === 1) {
55244
55337
  this.saveButtonClick();
55245
55338
  }
55246
55339
  }
@@ -55275,7 +55368,7 @@ TransactionCashRegisterDialogComponent.decorators = [
55275
55368
  ></co-payment-tile>
55276
55369
  </div>
55277
55370
 
55278
- <co-list-of-values [label]="'CASH_DRAWER' | localize"
55371
+ <co-list-of-values [label]="'CASH_DRAWER' | localize" *ngIf="!activeCashRegister?.defaultDrawerNumber"
55279
55372
  [(model)]="activeCashDrawer"
55280
55373
  [displayField]="'nr'"
55281
55374
  [collection]="cashDrawers"
@@ -55286,7 +55379,7 @@ TransactionCashRegisterDialogComponent.decorators = [
55286
55379
  (modelChange)="handleDrawerChanged($event)"
55287
55380
  ></co-list-of-values>
55288
55381
 
55289
- <co-list-of-values [label]="'PRINTER' | localize"
55382
+ <co-list-of-values [label]="'PRINTER' | localize" *ngIf="!activeCashRegister?.defaultPrinter"
55290
55383
  [(model)]="activePrinter"
55291
55384
  [displayField]="'name'"
55292
55385
  [collection]="printerList"