@colijnit/transaction 258.1.37 → 258.1.39

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 (26) hide show
  1. package/bundles/colijnit-transaction.umd.js +96 -18
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +3 -3
  5. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.js +27 -3
  6. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +30 -7
  7. package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +67 -3
  8. package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.module.js +10 -3
  9. package/esm2015/lib/component/transaction-print-package-sticker/transaction-print-package-sticker.component.js +11 -9
  10. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +28 -26
  11. package/esm2015/lib/enum/transaction-cfg-name.enum.js +2 -1
  12. package/esm2015/lib/service/transaction-event.service.js +2 -1
  13. package/esm2015/lib/service/transaction.service.js +5 -3
  14. package/esm2015/lib/transaction-version.js +3 -3
  15. package/fesm2015/colijnit-transaction.js +172 -50
  16. package/fesm2015/colijnit-transaction.js.map +1 -1
  17. package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.d.ts +1 -0
  18. package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.d.ts +3 -0
  19. package/lib/component/transaction-line-purchase-receive-goods/style/_layout.scss +11 -0
  20. package/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.d.ts +4 -1
  21. package/lib/component/transaction-print-package-sticker/transaction-print-package-sticker.component.d.ts +2 -1
  22. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +7 -6
  23. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +1 -0
  24. package/lib/enum/transaction-cfg-name.enum.d.ts +1 -0
  25. package/lib/service/transaction-event.service.d.ts +1 -0
  26. package/package.json +1 -1
@@ -3,8 +3,8 @@ export class Version {
3
3
  constructor() {
4
4
  this.name = "@colijnit/transaction";
5
5
  this.description = "Colijn IT transaction package";
6
- this.symVer = "258.1.37";
7
- this.publishDate = "23-6-2025 11:42:41";
6
+ this.symVer = "258.1.39";
7
+ this.publishDate = "24-6-2025 18:25:54";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU4LjEuMzdcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMy02LTIwMjUgMTE6NDI6NDFcIjtcbn0iXX0=
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU4LjEuMzlcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyNC02LTIwMjUgMTg6MjU6NTRcIjtcbn0iXX0=
@@ -294,8 +294,8 @@ class Version {
294
294
  constructor() {
295
295
  this.name = "@colijnit/transaction";
296
296
  this.description = "Colijn IT transaction package";
297
- this.symVer = "258.1.37";
298
- this.publishDate = "23-6-2025 11:42:41";
297
+ this.symVer = "258.1.39";
298
+ this.publishDate = "24-6-2025 18:25:54";
299
299
  }
300
300
  }
301
301
 
@@ -1297,6 +1297,7 @@ class TransactionEventService {
1297
1297
  this.selectedTransportDay = new Subject();
1298
1298
  this.resetTransportDayFilteredOrders = new Subject();
1299
1299
  this.selectAllPurchaseOrderLinesForReceiveGoods = new Subject();
1300
+ this.setColliStickerAmount = new Subject();
1300
1301
  this.updatingSalesOrderGeneratePurchaseOrders = new Subject();
1301
1302
  this.updatingSalesOrderConfirmation = new Subject();
1302
1303
  this.updatingSalesOrderGoodsToBePicked = new Subject();
@@ -9087,6 +9088,7 @@ var TransactionCfgName;
9087
9088
  /* Received rubric */
9088
9089
  TransactionCfgName["LineQuantityToReceive"] = "lineQuantityToReceive";
9089
9090
  TransactionCfgName["StickerAmount"] = "stickerAmount";
9091
+ TransactionCfgName["CollieAmount"] = "collieAmount";
9090
9092
  TransactionCfgName["LineWarehouseLocationReceived"] = "lineWarehouseLocationReceived";
9091
9093
  /* Invoice_check rubric */
9092
9094
  /* Service Overview Tab*/
@@ -14010,7 +14012,8 @@ class TransactionService extends PendingReasonService {
14010
14012
  detail.warehouseNr = line.warehouseNumber;
14011
14013
  detail.locationNr = line.locationNr;
14012
14014
  detail.batchNr = line.batchNr;
14013
- detail.numberOfStickers = line.stickerAmount;
14015
+ detail.numberOfColli = line.chosenPackageAmount;
14016
+ //detail.numberOfStickers = line.stickerAmount;
14014
14017
  detail.printerName = line.printerName;
14015
14018
  detail.reportId = line.reportId;
14016
14019
  receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS.push(detail);
@@ -14042,7 +14045,8 @@ class TransactionService extends PendingReasonService {
14042
14045
  detail.warehouseNr = line.warehouseNumber;
14043
14046
  detail.locationNr = line.locationNr;
14044
14047
  detail.batchNr = line.batchNr;
14045
- detail.numberOfStickers = line.stickerAmount;
14048
+ detail.numberOfColli = line.chosenPackageAmount;
14049
+ //detail.numberOfStickers = line.stickerAmount;
14046
14050
  detail.printerName = line.printerName;
14047
14051
  detail.reportId = line.reportId;
14048
14052
  receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS.push(detail);
@@ -20553,6 +20557,9 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
20553
20557
  handleSelectAllLines(value) {
20554
20558
  this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.next(value);
20555
20559
  }
20560
+ handleNoColliStickers(value) {
20561
+ this.transactionEventService.setColliStickerAmount.next(value);
20562
+ }
20556
20563
  handleGlobalLocationChange(location) {
20557
20564
  this.globalWarehouseLocation = location;
20558
20565
  this.transactionLines
@@ -20641,46 +20648,45 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
20641
20648
  selector: "co-transaction-quick-access-received-goods",
20642
20649
  template: `
20643
20650
  <div class="quick-access-wrapper" *ngIf="!hideQuickAccessContent">
20644
- <div class="sub-section">
20645
- <div class="sub-section-input">
20651
+ <div class="sub-section-input">
20652
+ <div class="sub-section">
20646
20653
  <co-input-date
20647
20654
  [placeholder]="'RECEIVED_DATE' | localize"
20648
20655
  [(model)]="commitDate"
20649
20656
  ></co-input-date>
20657
+ <co-input-text
20658
+ [placeholder]="'PACKING_SLIP' | localize"
20659
+ [(model)]="packingSlipNr"
20660
+ ></co-input-text>
20661
+ <!--
20662
+ <co-transaction-labeled-warehouse-location-button *ngIf="internalParamMLocat && showWarehouseLocationButton"
20663
+ [locationNr]="globalWarehouseLocation"
20664
+ [warehouseNumber]="warehouseNumber"
20665
+ (locationNrChange)="handleGlobalLocationChange($event)"
20666
+ ></co-transaction-labeled-warehouse-location-button>
20667
+ -->
20668
+ <co-quick-send-button
20669
+ [showSendMethodIcon]="false"
20670
+ [icon]="icons.CheckDuotone"
20671
+ [showLoader]="showProcessingLoader"
20672
+ [title]="'PROCESS'"
20673
+ (sendIconClicked)="handleCommitEvent()"
20674
+ (openSendMethodDialog)="showSendMethodDialog = true"
20675
+ ></co-quick-send-button>
20676
+ </div>
20677
+ <div class="sub-section">
20650
20678
  <co-input-checkbox
20651
20679
  class="checkbox-wrapper"
20652
20680
  [label]="'SELECT_ALL' | localize"
20653
20681
  [(model)]="localCheckboxState"
20654
20682
  (modelChange)="handleSelectAllLines($event)"
20655
20683
  ></co-input-checkbox>
20656
- </div>
20657
- <div class="sub-section-input">
20658
- <co-input-text
20659
- [placeholder]="'PACKING_SLIP' | localize"
20660
- [(model)]="packingSlipNr"
20661
- ></co-input-text>
20662
20684
  <co-input-checkbox
20663
20685
  class="checkbox-wrapper"
20664
20686
  [label]="'NO_PACKAGE_STICKERS' | localize"
20665
20687
  [(model)]="colliCheckboxState"
20666
- (modelChange)="handleSelectAllLines($event)"
20688
+ (modelChange)="handleNoColliStickers($event)"
20667
20689
  ></co-input-checkbox>
20668
- </div>
20669
- <!--
20670
- <co-transaction-labeled-warehouse-location-button *ngIf="internalParamMLocat && showWarehouseLocationButton"
20671
- [locationNr]="globalWarehouseLocation"
20672
- [warehouseNumber]="warehouseNumber"
20673
- (locationNrChange)="handleGlobalLocationChange($event)"
20674
- ></co-transaction-labeled-warehouse-location-button>
20675
- -->
20676
- <co-quick-send-button
20677
- [showSendMethodIcon]="false"
20678
- [icon]="icons.CheckDuotone"
20679
- [showLoader]="showProcessingLoader"
20680
- [title]="'PROCESS'"
20681
- (sendIconClicked)="handleCommitEvent()"
20682
- (openSendMethodDialog)="showSendMethodDialog = true"
20683
- ></co-quick-send-button>
20684
20690
  </div>
20685
20691
  </div>
20686
20692
  <co-send-method-dialog *ngIf="showSendMethodDialog"
@@ -22023,6 +22029,14 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
22023
22029
  this._subscriptions.push(this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.subscribe((value) => {
22024
22030
  this.selected = value && this.showCheckboxForLine;
22025
22031
  this.detectChanges();
22032
+ }), this.transactionEventService.setColliStickerAmount.subscribe((value) => {
22033
+ if (value) {
22034
+ this.transactionLine.stickerAmount = 0;
22035
+ }
22036
+ else {
22037
+ this.calcStickerAmount();
22038
+ }
22039
+ this.detectChanges();
22026
22040
  }), this.transactionEventService.transactionLineChanged.subscribe((transLine) => {
22027
22041
  if (transLine.lineNr === this.transactionLine.lineNr) {
22028
22042
  this._handleTransactionLineSet(transLine);
@@ -22037,7 +22051,22 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
22037
22051
  if (this.transactionLine.articleLineStatus) {
22038
22052
  this.transactionLine.articleLineStatus.quantityToReceive = amount;
22039
22053
  }
22040
- this.transactionLine.stickerAmount = amount * (this.transactionLine.productItemsAmount ? this.transactionLine.productItemsAmount : 1);
22054
+ this.calcStickerAmount();
22055
+ }
22056
+ calcStickerAmount() {
22057
+ if (this.transactionLine) {
22058
+ let collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
22059
+ let receive = (this.transactionLine.articleLineStatus && this.transactionLine.articleLineStatus.quantityToReceive) ? this.transactionLine.articleLineStatus.quantityToReceive : 1;
22060
+ if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
22061
+ this.transactionLine.stickerAmount = Math.ceil(collie * receive);
22062
+ }
22063
+ else if (this.transactionLine.purchasePackageCode === 'R') {
22064
+ this.transactionLine.stickerAmount = Math.ceil(collie);
22065
+ }
22066
+ else {
22067
+ this.transactionLine.stickerAmount = 0;
22068
+ }
22069
+ }
22041
22070
  }
22042
22071
  transactionLineSet() {
22043
22072
  super.transactionLineSet();
@@ -22048,7 +22077,8 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
22048
22077
  this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
22049
22078
  !transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
22050
22079
  this.showCheckboxForLine = transLine.articleLineStatus.quantityReceived !== transLine.amount || transLine.articleLineStatus.quantityToReceive > 0;
22051
- this.transactionLine.stickerAmount = transLine.articleLineStatus.quantityToReceive * (transLine.productItemsAmount ? transLine.productItemsAmount : 1);
22080
+ this.transactionLine.chosenPackageAmount = transLine.packagesAmountForTransport;
22081
+ this.calcStickerAmount();
22052
22082
  this.detectChanges();
22053
22083
  }
22054
22084
  }
@@ -22059,6 +22089,7 @@ TransactionReceiveGoodsLineBaseComponent.decorators = [
22059
22089
  class TransactionReceiveGoodsLineComponent extends TransactionReceiveGoodsLineBaseComponent {
22060
22090
  constructor() {
22061
22091
  super(...arguments);
22092
+ this.cfgNames = TransactionCfgName;
22062
22093
  this.statusBarConfigNames = {
22063
22094
  statusBarIB: this.cfgNames.StatusBarIB,
22064
22095
  statusBarNT: this.cfgNames.StatusBarNT,
@@ -22070,6 +22101,17 @@ class TransactionReceiveGoodsLineComponent extends TransactionReceiveGoodsLineBa
22070
22101
  showClass() {
22071
22102
  return true;
22072
22103
  }
22104
+ changeNrPackagesNotAllowed() {
22105
+ if (!this.transactionLine) {
22106
+ return true;
22107
+ }
22108
+ else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
22109
+ return true;
22110
+ }
22111
+ else {
22112
+ return false;
22113
+ }
22114
+ }
22073
22115
  }
22074
22116
  TransactionReceiveGoodsLineComponent.decorators = [
22075
22117
  { type: Component, args: [{
@@ -22136,11 +22178,20 @@ TransactionReceiveGoodsLineComponent.decorators = [
22136
22178
  ></co-input-text>
22137
22179
  </div>
22138
22180
  </div>
22139
- <co-transaction-print-package-sticker
22140
- class="transaction-field-wrapper medium"
22141
- [screenConfigurationObject]="cfgNames.StickerAmount"
22142
- [inputLabel]="true"
22143
- ></co-transaction-print-package-sticker>
22181
+ <div class="transaction-field-wrapper">
22182
+ <div class="inside-field">
22183
+ <co-transaction-line-label [insideLabel]="'NUMBER_PACKAGES'"></co-transaction-line-label>
22184
+ <co-input-number-picker class="amount-number-picker"
22185
+ [(model)]="transactionLine.chosenPackageAmount"
22186
+ [screenConfigurationObject]="cfgNames.CollieAmount"
22187
+ [decimals]="decimals"
22188
+ [min]="1"
22189
+ [forceReadonly] = "readonly || changeNrPackagesNotAllowed() || lineQuantityReceived === transactionLine.amount"
22190
+ (modelChange)="calcStickerAmount()">
22191
+ </co-input-number-picker>
22192
+ <!-- [screenConfigurationObject]="cfgNames.LineQuantityToReceive"-->
22193
+ </div>
22194
+ </div>
22144
22195
  <div class="transaction-field-wrapper">
22145
22196
  <div class="inside-field">
22146
22197
  <co-transaction-line-label [insideLabel]="'QUANTITY_TO_RECEIVE'"></co-transaction-line-label>
@@ -22150,7 +22201,6 @@ TransactionReceiveGoodsLineComponent.decorators = [
22150
22201
  [decimals]="decimals"
22151
22202
  [min]="1"
22152
22203
  [max]="transactionLine.amount - lineQuantityReceived"
22153
- [leftIconData]="iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)"
22154
22204
  [readonly]="readonly || lineQuantityReceived === transactionLine.amount"
22155
22205
  (modelChange)="changeLineAmount($event)">
22156
22206
  </co-input-number-picker>
@@ -22159,8 +22209,10 @@ TransactionReceiveGoodsLineComponent.decorators = [
22159
22209
  <div class="transaction-field-wrapper">
22160
22210
  <div class="inside-field">
22161
22211
  <co-transaction-print-package-sticker
22212
+ [forceReadonly]="true"
22162
22213
  [screenConfigurationObject]="cfgNames.StickerAmount"
22163
22214
  [inputLabel]="true"
22215
+ [stickerAmount]="transactionLine.stickerAmount"
22164
22216
  ></co-transaction-print-package-sticker>
22165
22217
  </div>
22166
22218
  </div>
@@ -35496,8 +35548,8 @@ class TransactionPrintPackageStickerComponent extends TransactionQuickAccessSend
35496
35548
  super(...arguments);
35497
35549
  this.icons = Icon;
35498
35550
  this.inputLabel = false;
35499
- // todo: check this component
35500
- this.tempModel = 0;
35551
+ this.forceReadonly = false;
35552
+ this.stickerAmount = 0;
35501
35553
  this.reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
35502
35554
  this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
35503
35555
  this.reportDocumentPdfRequest = new ReportingDocumentPdfBaseRequest();
@@ -35506,9 +35558,9 @@ class TransactionPrintPackageStickerComponent extends TransactionQuickAccessSend
35506
35558
  return true;
35507
35559
  }
35508
35560
  handleShowDialog() {
35509
- // if (this.lineQuantityToReceive) {
35510
- this.showSendMethodDialog = true;
35511
- // }
35561
+ if (this.stickerAmount > 0) {
35562
+ this.showSendMethodDialog = true;
35563
+ }
35512
35564
  }
35513
35565
  emailDocument(request) {
35514
35566
  return;
@@ -35541,9 +35593,9 @@ TransactionPrintPackageStickerComponent.decorators = [
35541
35593
  <co-transaction-line-label *ngIf="inputLabel" [insideLabel]="'STICKER_AMOUNT'"></co-transaction-line-label>
35542
35594
  <co-input-number-picker
35543
35595
  [hidden]="hidden"
35544
- [(model)]="tempModel"
35545
- [disabled]="readonly"
35546
- [readonly]="readonly"
35596
+ [model]="stickerAmount"
35597
+ [disabled]="readonly || forceReadonly"
35598
+ [readonly]="readonly || forceReadonly"
35547
35599
  [min]="0"
35548
35600
  [leftIconData]="iconCacheService.getIcon(icons.SharpRegularBarcodeReadTag)"
35549
35601
  (iconClick)="handleShowDialog()">
@@ -35575,6 +35627,8 @@ TransactionPrintPackageStickerComponent.decorators = [
35575
35627
  ];
35576
35628
  TransactionPrintPackageStickerComponent.propDecorators = {
35577
35629
  inputLabel: [{ type: Input }],
35630
+ forceReadonly: [{ type: Input }],
35631
+ stickerAmount: [{ type: Input }],
35578
35632
  showClass: [{ type: HostBinding, args: ["class.co-transaction-print-package-sticker",] }]
35579
35633
  };
35580
35634
 
@@ -37395,6 +37449,7 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
37395
37449
  this.goodsReceiptHistory = [];
37396
37450
  this.returnStockMode = false;
37397
37451
  this.availableStockCollection = [];
37452
+ this.warehouseLocationButtonDisabled = false;
37398
37453
  this._subs = [];
37399
37454
  }
37400
37455
  showClass() {
@@ -37489,6 +37544,32 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
37489
37544
  this.receiptDetails.batchNr = availableStock.batchNumber;
37490
37545
  this.receiptDetails.lineNr = this.transactionLine.lineNr;
37491
37546
  }
37547
+ calcStickerAmount() {
37548
+ if (this.transactionLine) {
37549
+ let collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
37550
+ let receive = this.transactionLine.quantityToReceive ? this.transactionLine.quantityToReceive : 1;
37551
+ if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
37552
+ this.transactionLine.stickerAmount = Math.ceil(collie * receive);
37553
+ }
37554
+ else if (this.transactionLine.purchasePackageCode === 'R') {
37555
+ this.transactionLine.stickerAmount = Math.ceil(collie);
37556
+ }
37557
+ else {
37558
+ this.transactionLine.stickerAmount = 0;
37559
+ }
37560
+ }
37561
+ }
37562
+ changeNrPackagesNotAllowed() {
37563
+ if (!this.transactionLine) {
37564
+ return true;
37565
+ }
37566
+ else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
37567
+ return true;
37568
+ }
37569
+ else {
37570
+ return false;
37571
+ }
37572
+ }
37492
37573
  transactionLineSet() {
37493
37574
  super.transactionLineSet();
37494
37575
  this._handleTransactionLineSet(this.transactionLine);
@@ -37501,6 +37582,8 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
37501
37582
  this.returnStockMode = this.transactionLine.amount < 0;
37502
37583
  this.receiptDetails.batchNr = this.transactionLine.batchNr;
37503
37584
  this.getGoodsReceiptHistory();
37585
+ this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
37586
+ !transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
37504
37587
  }
37505
37588
  _getAvailableStock() {
37506
37589
  return __awaiter(this, void 0, void 0, function* () {
@@ -37524,15 +37607,37 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37524
37607
  </div>
37525
37608
  </div-->
37526
37609
  <div class="side-panel-input-row">
37527
- <co-input-number-picker class="side-panel-input"
37528
- [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive"
37610
+ <co-input-number-picker class="side-panel-input"[label]="'QUANTITY_TO_RECEIVE' | localize" [showPermanentLabel]="true"
37611
+ [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive" [screenConfigurationObject]="cfgNames.LineQuantityToReceive"
37529
37612
  [(model)]="receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive"
37530
37613
  [decimals]="2"
37531
37614
  [min]="0"
37532
37615
  [readonly]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly"
37533
37616
  [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive"
37534
37617
  [required]="true"
37618
+ (modelChange)="calcStickerAmount()"
37619
+ ></co-input-number-picker>
37620
+ <co-input-number-picker class="side-panel-input" [label]="'NUMBER_PACKAGES' | localize" [showPermanentLabel]="true"
37621
+ [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive" [screenConfigurationObject]="cfgNames.CollieAmount"
37622
+ [(model)]="transactionLine.chosenPackageAmount"
37623
+ [decimals]="2"
37624
+ [min]="0"
37625
+ [forceReadonly]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()"
37626
+ [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()"
37627
+ [required]="true"
37628
+ (modelChange)="calcStickerAmount()"
37629
+ ></co-input-number-picker>
37630
+ <co-input-number-picker class="side-panel-input" [label]="'STICKER_AMOUNT' | localize" [showPermanentLabel]="true"
37631
+ [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive" [screenConfigurationObject]="cfgNames.StickerAmount"
37632
+ [(model)]="transactionLine.stickerAmount"
37633
+ [decimals]="2"
37634
+ [min]="0"
37635
+ [readonly]="true"
37636
+ [disabled]="true"
37637
+ [required]="true"
37535
37638
  ></co-input-number-picker>
37639
+ </div>
37640
+ <div class="side-panel-input-row">
37536
37641
  <co-input-date class="side-panel-input"
37537
37642
  [placeholder]="'RECEIVED_DATE' | localize"
37538
37643
  [(model)]="request.receivedDate"
@@ -37547,6 +37652,17 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37547
37652
  ></co-input-text>
37548
37653
  </div>
37549
37654
  <div class="side-panel-input-row">
37655
+ <co-transaction-line-warehouse-button class="warehouse-buttons"
37656
+ [screenConfigurationObject]="cfgNames.LineWarehouse"
37657
+ [inputLabel]="true" [screenConfigurationObject]="cfgNames.LineWarehouse"
37658
+
37659
+ ></co-transaction-line-warehouse-button>
37660
+ <co-transaction-line-warehouse-location-button class="warehouse-buttons"
37661
+ [screenConfigurationObject]="cfgNames.LineWarehouseLocationReceived"
37662
+ [readonly]="warehouseLocationButtonDisabled"
37663
+ [inputLabel]="true" [screenConfigurationObject]="cfgNames.LineWarehouseLocationReceived"
37664
+ ></co-transaction-line-warehouse-location-button>
37665
+ </div>
37550
37666
  <!-- dit ding werkt helemaal niet
37551
37667
  <co-transaction-labeled-warehouse-location-button class="side-panel-input" *ngIf="transactionLine.isLocationRequired"
37552
37668
  [readonly]="returnStockMode || receiptDetails.quantityToReceive === 0"
@@ -37555,6 +37671,7 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37555
37671
  (locationNrChange)="receiptDetails.locationNr = $event"
37556
37672
  ></co-transaction-labeled-warehouse-location-button>
37557
37673
  -->
37674
+ <div class="side-panel-input-row">
37558
37675
  <co-input-text class="side-panel-input" [(model)]="receiptDetails.batchNr" *ngIf="transactionLine.isBatchNrRequired"
37559
37676
  [hideArrowButtons]="true"
37560
37677
  [readonly]="readonly || returnStockMode"
@@ -37575,6 +37692,7 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37575
37692
  <co-button
37576
37693
  [iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
37577
37694
  (click)="handleSaveDetailsEdit()"
37695
+ [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly"
37578
37696
  ></co-button>
37579
37697
  <co-button class="cancel-button"
37580
37698
  [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
@@ -37740,7 +37858,11 @@ TransactionLinePurchaseReceiveGoodsModule.decorators = [
37740
37858
  TransactionReceivingGoodsHistoryModule,
37741
37859
  TransactionAvailableStockGridModule,
37742
37860
  ButtonModule,
37743
- TransactionLabeledWarehouseLocationButtonModule
37861
+ TransactionLabeledWarehouseLocationButtonModule,
37862
+ TransactionLineLabelModule,
37863
+ ScreenConfigurationModule,
37864
+ TransactionLineWarehouseButtonModule,
37865
+ TransactionPrintPackageStickerModule
37744
37866
  ],
37745
37867
  declarations: [
37746
37868
  TransactionLinePurchaseReceiveGoodsComponent
@@ -53001,7 +53123,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
53001
53123
  return this.transactionLines.some(line => line.directSell && line.dropShipment);
53002
53124
  }
53003
53125
  showInvoiceSelection() {
53004
- return this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesInvoice && payment.outstandingAmount > 0).length > 1;
53126
+ return this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesInvoice && payment.outstandingAmount !== 0).length > 1;
53005
53127
  }
53006
53128
  handleSelectInvoiceLines(paymentInfo) {
53007
53129
  this.orderPaymentAnalysis.forEach(invoice => invoice.isSelected = false);
@@ -53227,7 +53349,7 @@ TransactionHeaderPopupPaymentComponent.decorators = [
53227
53349
  <tr *ngFor="let paymentInfo of orderPaymentAnalysis">
53228
53350
  <td class="left" *ngIf="showInvoiceSelection()">
53229
53351
  <co-input-radio-button
53230
- *ngIf="paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount > 0"
53352
+ *ngIf="paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount !== 0"
53231
53353
  class="default-width"
53232
53354
  [(model)]="paymentInfo.isSelected"
53233
53355
  (modelChange)="handleSelectInvoiceLines(paymentInfo)">