@colijnit/transaction 257.1.73 → 257.1.75

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 +37 -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 +37 -39
  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 +188 -63
  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 -1
  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 = "257.1.73";
7
- this.publishDate = "23-6-2025 12:23:33";
6
+ this.symVer = "257.1.75";
7
+ this.publishDate = "24-6-2025 21:12:04";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU3LjEuNzNcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMy02LTIwMjUgMTI6MjM6MzNcIjtcbn0iXX0=
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU3LjEuNzVcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyNC02LTIwMjUgMjE6MTI6MDRcIjtcbn0iXX0=
@@ -295,8 +295,8 @@ class Version {
295
295
  constructor() {
296
296
  this.name = "@colijnit/transaction";
297
297
  this.description = "Colijn IT transaction package";
298
- this.symVer = "257.1.73";
299
- this.publishDate = "23-6-2025 12:23:33";
298
+ this.symVer = "257.1.75";
299
+ this.publishDate = "24-6-2025 21:12:04";
300
300
  }
301
301
  }
302
302
 
@@ -1287,6 +1287,7 @@ class TransactionEventService {
1287
1287
  this.selectAllSalesOrderLinesToPick = new Subject();
1288
1288
  this.selectAllSalesOrderLinesToBePicked = new Subject();
1289
1289
  this.selectAllPurchaseOrderLinesForReceiveGoods = new Subject();
1290
+ this.setColliStickerAmount = new Subject();
1290
1291
  this.updatingSalesOrderGeneratePurchaseOrders = new Subject();
1291
1292
  this.updatingSalesOrderConfirmation = new Subject();
1292
1293
  this.updatingSalesOrderGoodsToBePicked = new Subject();
@@ -9039,6 +9040,7 @@ var TransactionCfgName;
9039
9040
  /* Received rubric */
9040
9041
  TransactionCfgName["LineQuantityToReceive"] = "lineQuantityToReceive";
9041
9042
  TransactionCfgName["StickerAmount"] = "stickerAmount";
9043
+ TransactionCfgName["CollieAmount"] = "collieAmount";
9042
9044
  TransactionCfgName["LineWarehouseLocationReceived"] = "lineWarehouseLocationReceived";
9043
9045
  /* Invoice_check rubric */
9044
9046
  /* Service Overview Tab*/
@@ -13876,7 +13878,8 @@ class TransactionService extends PendingReasonService {
13876
13878
  detail.warehouseNr = line.warehouseNumber;
13877
13879
  detail.locationNr = line.locationNr;
13878
13880
  detail.batchNr = line.batchNr;
13879
- detail.numberOfStickers = line.stickerAmount;
13881
+ detail.numberOfColli = line.chosenPackageAmount;
13882
+ //detail.numberOfStickers = line.stickerAmount;
13880
13883
  detail.printerName = line.printerName;
13881
13884
  detail.reportId = line.reportId;
13882
13885
  receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS.push(detail);
@@ -13908,7 +13911,8 @@ class TransactionService extends PendingReasonService {
13908
13911
  detail.warehouseNr = line.warehouseNumber;
13909
13912
  detail.locationNr = line.locationNr;
13910
13913
  detail.batchNr = line.batchNr;
13911
- detail.numberOfStickers = line.stickerAmount;
13914
+ detail.numberOfColli = line.chosenPackageAmount;
13915
+ //detail.numberOfStickers = line.stickerAmount;
13912
13916
  detail.printerName = line.printerName;
13913
13917
  detail.reportId = line.reportId;
13914
13918
  receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS.push(detail);
@@ -20034,6 +20038,9 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
20034
20038
  handleSelectAllLines(value) {
20035
20039
  this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.next(value);
20036
20040
  }
20041
+ handleNoColliStickers(value) {
20042
+ this.transactionEventService.setColliStickerAmount.next(value);
20043
+ }
20037
20044
  handleGlobalLocationChange(location) {
20038
20045
  this.globalWarehouseLocation = location;
20039
20046
  this.transactionLines
@@ -20122,44 +20129,39 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
20122
20129
  selector: "co-transaction-quick-access-received-goods",
20123
20130
  template: `
20124
20131
  <div class="quick-access-wrapper" *ngIf="!hideQuickAccessContent">
20125
- <div class="sub-section">
20126
- <co-input-date
20127
- [placeholder]="'RECEIVED_DATE' | localize"
20128
- [(model)]="commitDate"
20129
- ></co-input-date>
20130
- <co-input-text
20131
- [placeholder]="'PACKING_SLIP' | localize"
20132
- [(model)]="packingSlipNr"
20133
- ></co-input-text>
20134
- <!--
20135
- <co-transaction-labeled-warehouse-location-button *ngIf="internalParamMLocat && showWarehouseLocationButton"
20136
- [locationNr]="globalWarehouseLocation"
20137
- [warehouseNumber]="warehouseNumber"
20138
- (locationNrChange)="handleGlobalLocationChange($event)"
20139
- ></co-transaction-labeled-warehouse-location-button>
20140
- -->
20141
- <co-quick-send-button
20142
- [showSendMethodIcon]="false"
20143
- [icon]="icons.CheckDuotone"
20144
- [showLoader]="showProcessingLoader"
20145
- [title]="'PROCESS'"
20146
- (sendIconClicked)="handleCommitEvent()"
20147
- (openSendMethodDialog)="showSendMethodDialog = true"
20148
- ></co-quick-send-button>
20149
- </div>
20150
- <div class="sub-section"w>
20151
- <co-input-checkbox
20152
- class="checkbox-wrapper"
20153
- [label]="'SELECT_ALL' | localize"
20154
- [(model)]="localCheckboxState"
20155
- (modelChange)="handleSelectAllLines($event)"
20156
- ></co-input-checkbox>
20157
- <co-input-checkbox
20158
- class="checkbox-wrapper"
20159
- [label]="'NO_PACKAGE_STICKERS' | localize"
20160
- [(model)]="colliCheckboxState"
20161
- (modelChange)="handleSelectAllLines($event)"
20162
- ></co-input-checkbox>
20132
+ <div class="sub-section-input">
20133
+ <div class="sub-section">
20134
+ <co-input-date
20135
+ [placeholder]="'RECEIVED_DATE' | localize"
20136
+ [(model)]="commitDate"
20137
+ ></co-input-date>
20138
+ <co-input-text
20139
+ [placeholder]="'PACKING_SLIP' | localize"
20140
+ [(model)]="packingSlipNr"
20141
+ ></co-input-text>
20142
+ <co-quick-send-button
20143
+ [showSendMethodIcon]="false"
20144
+ [icon]="icons.CheckDuotone"
20145
+ [showLoader]="showProcessingLoader"
20146
+ [title]="'PROCESS'"
20147
+ (sendIconClicked)="handleCommitEvent()"
20148
+ (openSendMethodDialog)="showSendMethodDialog = true"
20149
+ ></co-quick-send-button>
20150
+
20151
+ </div>
20152
+ <div class="sub-section">
20153
+ <co-input-checkbox
20154
+ class="checkbox-wrapper"
20155
+ [label]="'SELECT_ALL' | localize"
20156
+ [(model)]="localCheckboxState"
20157
+ (modelChange)="handleSelectAllLines($event)"
20158
+ ></co-input-checkbox>
20159
+ <co-input-checkbox
20160
+ class="checkbox-wrapper"
20161
+ [label]="'NO_PACKAGE_STICKERS' | localize"
20162
+ [(model)]="colliCheckboxState"
20163
+ (modelChange)="handleNoColliStickers($event)"
20164
+ ></co-input-checkbox>
20163
20165
  </div>
20164
20166
  </div>
20165
20167
  <co-send-method-dialog *ngIf="showSendMethodDialog"
@@ -21500,6 +21502,14 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
21500
21502
  this._subscriptions.push(this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.subscribe((value) => {
21501
21503
  this.selected = value && this.showCheckboxForLine;
21502
21504
  this.detectChanges();
21505
+ }), this.transactionEventService.setColliStickerAmount.subscribe((value) => {
21506
+ if (value) {
21507
+ this.transactionLine.stickerAmount = 0;
21508
+ }
21509
+ else {
21510
+ this.calcStickerAmount();
21511
+ }
21512
+ this.detectChanges();
21503
21513
  }), this.transactionEventService.transactionLineChanged.subscribe((transLine) => {
21504
21514
  if (transLine.lineNr === this.transactionLine.lineNr) {
21505
21515
  this._handleTransactionLineSet(transLine);
@@ -21514,7 +21524,22 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
21514
21524
  if (this.transactionLine.articleLineStatus) {
21515
21525
  this.transactionLine.articleLineStatus.quantityToReceive = amount;
21516
21526
  }
21517
- this.transactionLine.stickerAmount = amount * (this.transactionLine.productItemsAmount ? this.transactionLine.productItemsAmount : 1);
21527
+ this.calcStickerAmount();
21528
+ }
21529
+ calcStickerAmount() {
21530
+ if (this.transactionLine) {
21531
+ let collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
21532
+ let receive = (this.transactionLine.articleLineStatus && this.transactionLine.articleLineStatus.quantityToReceive) ? this.transactionLine.articleLineStatus.quantityToReceive : 1;
21533
+ if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
21534
+ this.transactionLine.stickerAmount = Math.ceil(collie * receive);
21535
+ }
21536
+ else if (this.transactionLine.purchasePackageCode === 'R') {
21537
+ this.transactionLine.stickerAmount = Math.ceil(collie);
21538
+ }
21539
+ else {
21540
+ this.transactionLine.stickerAmount = 0;
21541
+ }
21542
+ }
21518
21543
  }
21519
21544
  transactionLineSet() {
21520
21545
  super.transactionLineSet();
@@ -21525,7 +21550,8 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
21525
21550
  this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
21526
21551
  !transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
21527
21552
  this.showCheckboxForLine = transLine.articleLineStatus.quantityReceived !== transLine.amount || transLine.articleLineStatus.quantityToReceive > 0;
21528
- this.transactionLine.stickerAmount = transLine.articleLineStatus.quantityToReceive * (transLine.productItemsAmount ? transLine.productItemsAmount : 1);
21553
+ this.transactionLine.chosenPackageAmount = transLine.packagesAmountForTransport;
21554
+ this.calcStickerAmount();
21529
21555
  this.detectChanges();
21530
21556
  }
21531
21557
  }
@@ -21536,6 +21562,7 @@ TransactionReceiveGoodsLineBaseComponent.decorators = [
21536
21562
  class TransactionReceiveGoodsLineComponent extends TransactionReceiveGoodsLineBaseComponent {
21537
21563
  constructor() {
21538
21564
  super(...arguments);
21565
+ this.cfgNames = TransactionCfgName;
21539
21566
  this.statusBarConfigNames = {
21540
21567
  statusBarIB: this.cfgNames.StatusBarIB,
21541
21568
  statusBarNT: this.cfgNames.StatusBarNT,
@@ -21547,6 +21574,17 @@ class TransactionReceiveGoodsLineComponent extends TransactionReceiveGoodsLineBa
21547
21574
  showClass() {
21548
21575
  return true;
21549
21576
  }
21577
+ changeNrPackagesNotAllowed() {
21578
+ if (!this.transactionLine) {
21579
+ return true;
21580
+ }
21581
+ else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
21582
+ return true;
21583
+ }
21584
+ else {
21585
+ return false;
21586
+ }
21587
+ }
21550
21588
  }
21551
21589
  TransactionReceiveGoodsLineComponent.decorators = [
21552
21590
  { type: Component, args: [{
@@ -21613,11 +21651,29 @@ TransactionReceiveGoodsLineComponent.decorators = [
21613
21651
  ></co-input-text>
21614
21652
  </div>
21615
21653
  </div>
21616
- <co-transaction-print-package-sticker
21617
- class="transaction-field-wrapper medium"
21618
- [screenConfigurationObject]="cfgNames.StickerAmount"
21619
- [inputLabel]="true"
21620
- ></co-transaction-print-package-sticker>
21654
+ <div class="transaction-field-wrapper">
21655
+ <div class="inside-field">
21656
+ <co-transaction-line-label [insideLabel]="'NUMBER_PACKAGES'"></co-transaction-line-label>
21657
+ <co-input-number-picker class="amount-number-picker"
21658
+ [(model)]="transactionLine.chosenPackageAmount"
21659
+ [screenConfigurationObject]="cfgNames.CollieAmount"
21660
+ [decimals]="decimals"
21661
+ [min]="1"
21662
+ [forceReadonly] = "readonly || changeNrPackagesNotAllowed() || lineQuantityReceived === transactionLine.amount"
21663
+ (modelChange)="calcStickerAmount()">
21664
+ </co-input-number-picker>
21665
+ </div>
21666
+ </div>
21667
+ <div class="transaction-field-wrapper">
21668
+ <div class="inside-field">
21669
+ <co-transaction-print-package-sticker
21670
+ [forceReadonly]="true"
21671
+ [screenConfigurationObject]="cfgNames.StickerAmount"
21672
+ [inputLabel]="true"
21673
+ [stickerAmount]="transactionLine.stickerAmount"
21674
+ ></co-transaction-print-package-sticker>
21675
+ </div>
21676
+ </div>
21621
21677
  <div class="transaction-field-wrapper medium">
21622
21678
  <div class="inside-field">
21623
21679
  <co-transaction-line-label [insideLabel]="'QUANTITY_TO_RECEIVE'"></co-transaction-line-label>
@@ -21627,7 +21683,6 @@ TransactionReceiveGoodsLineComponent.decorators = [
21627
21683
  [decimals]="decimals"
21628
21684
  [min]="1"
21629
21685
  [max]="transactionLine.amount - lineQuantityReceived"
21630
- [leftIconData]="iconCacheService.getIcon(icons.CartFlatbedBoxesRegular)"
21631
21686
  [readonly]="readonly || lineQuantityReceived === transactionLine.amount"
21632
21687
  (modelChange)="changeLineAmount($event)">
21633
21688
  </co-input-number-picker>
@@ -34950,8 +35005,8 @@ class TransactionPrintPackageStickerComponent extends TransactionQuickAccessSend
34950
35005
  super(...arguments);
34951
35006
  this.icons = Icon;
34952
35007
  this.inputLabel = false;
34953
- // todo: check this component
34954
- this.tempModel = 0;
35008
+ this.forceReadonly = false;
35009
+ this.stickerAmount = 0;
34955
35010
  this.reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
34956
35011
  this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
34957
35012
  this.reportDocumentPdfRequest = new ReportingDocumentPdfBaseRequest();
@@ -34960,9 +35015,9 @@ class TransactionPrintPackageStickerComponent extends TransactionQuickAccessSend
34960
35015
  return true;
34961
35016
  }
34962
35017
  handleShowDialog() {
34963
- // if (this.lineQuantityToReceive) {
34964
- this.showSendMethodDialog = true;
34965
- // }
35018
+ if (this.stickerAmount > 0) {
35019
+ this.showSendMethodDialog = true;
35020
+ }
34966
35021
  }
34967
35022
  emailDocument(request) {
34968
35023
  return;
@@ -34995,9 +35050,9 @@ TransactionPrintPackageStickerComponent.decorators = [
34995
35050
  <co-transaction-line-label *ngIf="inputLabel" [insideLabel]="'STICKER_AMOUNT'"></co-transaction-line-label>
34996
35051
  <co-input-number-picker
34997
35052
  [hidden]="hidden"
34998
- [(model)]="tempModel"
34999
- [disabled]="readonly"
35000
- [readonly]="readonly"
35053
+ [model]="stickerAmount"
35054
+ [disabled]="readonly || forceReadonly"
35055
+ [readonly]="readonly || forceReadonly"
35001
35056
  [min]="0"
35002
35057
  [leftIconData]="iconCacheService.getIcon(icons.SharpRegularBarcodeReadTag)"
35003
35058
  (iconClick)="handleShowDialog()">
@@ -35029,6 +35084,8 @@ TransactionPrintPackageStickerComponent.decorators = [
35029
35084
  ];
35030
35085
  TransactionPrintPackageStickerComponent.propDecorators = {
35031
35086
  inputLabel: [{ type: Input }],
35087
+ forceReadonly: [{ type: Input }],
35088
+ stickerAmount: [{ type: Input }],
35032
35089
  showClass: [{ type: HostBinding, args: ["class.co-transaction-print-package-sticker",] }]
35033
35090
  };
35034
35091
 
@@ -36846,6 +36903,7 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
36846
36903
  this.goodsReceiptHistory = [];
36847
36904
  this.returnStockMode = false;
36848
36905
  this.availableStockCollection = [];
36906
+ this.warehouseLocationButtonDisabled = false;
36849
36907
  this._subs = [];
36850
36908
  }
36851
36909
  showClass() {
@@ -36940,6 +36998,32 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
36940
36998
  this.receiptDetails.batchNr = availableStock.batchNumber;
36941
36999
  this.receiptDetails.lineNr = this.transactionLine.lineNr;
36942
37000
  }
37001
+ calcStickerAmount() {
37002
+ if (this.transactionLine) {
37003
+ let collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
37004
+ let receive = this.transactionLine.quantityToReceive ? this.transactionLine.quantityToReceive : 1;
37005
+ if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
37006
+ this.transactionLine.stickerAmount = Math.ceil(collie * receive);
37007
+ }
37008
+ else if (this.transactionLine.purchasePackageCode === 'R') {
37009
+ this.transactionLine.stickerAmount = Math.ceil(collie);
37010
+ }
37011
+ else {
37012
+ this.transactionLine.stickerAmount = 0;
37013
+ }
37014
+ }
37015
+ }
37016
+ changeNrPackagesNotAllowed() {
37017
+ if (!this.transactionLine) {
37018
+ return true;
37019
+ }
37020
+ else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
37021
+ return true;
37022
+ }
37023
+ else {
37024
+ return false;
37025
+ }
37026
+ }
36943
37027
  transactionLineSet() {
36944
37028
  super.transactionLineSet();
36945
37029
  this._handleTransactionLineSet(this.transactionLine);
@@ -36952,6 +37036,8 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
36952
37036
  this.returnStockMode = this.transactionLine.amount < 0;
36953
37037
  this.receiptDetails.batchNr = this.transactionLine.batchNr;
36954
37038
  this.getGoodsReceiptHistory();
37039
+ this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
37040
+ !transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
36955
37041
  }
36956
37042
  _getAvailableStock() {
36957
37043
  return __awaiter(this, void 0, void 0, function* () {
@@ -36975,15 +37061,37 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
36975
37061
  </div>
36976
37062
  </div-->
36977
37063
  <div class="side-panel-input-row">
36978
- <co-input-number-picker class="side-panel-input"
36979
- [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive"
37064
+ <co-input-number-picker class="side-panel-input"[label]="'QUANTITY_TO_RECEIVE' | localize" [showPermanentLabel]="true"
37065
+ [max]="returnStockMode ? returnMaxToReceive : lineQuantityToReceive" [screenConfigurationObject]="cfgNames.LineQuantityToReceive"
36980
37066
  [(model)]="receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive"
36981
37067
  [decimals]="2"
36982
37068
  [min]="0"
36983
37069
  [readonly]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly"
36984
37070
  [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive"
36985
37071
  [required]="true"
37072
+ (modelChange)="calcStickerAmount()"
36986
37073
  ></co-input-number-picker>
37074
+ <co-input-number-picker class="side-panel-input" [label]="'NUMBER_PACKAGES' | localize" [showPermanentLabel]="true"
37075
+ [screenConfigurationObject]="cfgNames.CollieAmount"
37076
+ [(model)]="transactionLine.chosenPackageAmount"
37077
+ [decimals]="2"
37078
+ [min]="0"
37079
+ [forceReadonly]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()"
37080
+ [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()"
37081
+ [required]="true"
37082
+ (modelChange)="calcStickerAmount()"
37083
+ ></co-input-number-picker>
37084
+ <co-input-number-picker class="side-panel-input" [label]="'STICKER_AMOUNT' | localize" [showPermanentLabel]="true"
37085
+ [screenConfigurationObject]="cfgNames.StickerAmount"
37086
+ [(model)]="transactionLine.stickerAmount"
37087
+ [decimals]="2"
37088
+ [min]="0"
37089
+ [readonly]="true"
37090
+ [disabled]="true"
37091
+ [required]="true"
37092
+ ></co-input-number-picker>
37093
+ </div>
37094
+ <div class="side-panel-input-row">
36987
37095
  <co-input-date class="side-panel-input"
36988
37096
  [placeholder]="'RECEIVED_DATE' | localize"
36989
37097
  [(model)]="request.receivedDate"
@@ -36998,6 +37106,17 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
36998
37106
  ></co-input-text>
36999
37107
  </div>
37000
37108
  <div class="side-panel-input-row">
37109
+ <co-transaction-line-warehouse-button class="warehouse-buttons"
37110
+ [screenConfigurationObject]="cfgNames.LineWarehouse"
37111
+ [inputLabel]="true" [screenConfigurationObject]="cfgNames.LineWarehouse"
37112
+
37113
+ ></co-transaction-line-warehouse-button>
37114
+ <co-transaction-line-warehouse-location-button class="warehouse-buttons"
37115
+ [screenConfigurationObject]="cfgNames.LineWarehouseLocationReceived"
37116
+ [readonly]="warehouseLocationButtonDisabled"
37117
+ [inputLabel]="true" [screenConfigurationObject]="cfgNames.LineWarehouseLocationReceived"
37118
+ ></co-transaction-line-warehouse-location-button>
37119
+ </div>
37001
37120
  <!-- dit ding werkt helemaal niet
37002
37121
  <co-transaction-labeled-warehouse-location-button class="side-panel-input" *ngIf="transactionLine.isLocationRequired"
37003
37122
  [readonly]="returnStockMode || receiptDetails.quantityToReceive === 0"
@@ -37006,6 +37125,7 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37006
37125
  (locationNrChange)="receiptDetails.locationNr = $event"
37007
37126
  ></co-transaction-labeled-warehouse-location-button>
37008
37127
  -->
37128
+ <div class="side-panel-input-row">
37009
37129
  <co-input-text class="side-panel-input" [(model)]="receiptDetails.batchNr" *ngIf="transactionLine.isBatchNrRequired"
37010
37130
  [hideArrowButtons]="true"
37011
37131
  [readonly]="readonly || returnStockMode"
@@ -37026,6 +37146,7 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
37026
37146
  <co-button
37027
37147
  [iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
37028
37148
  (click)="handleSaveDetailsEdit()"
37149
+ [disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly"
37029
37150
  ></co-button>
37030
37151
  <co-button class="cancel-button"
37031
37152
  [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
@@ -37191,7 +37312,11 @@ TransactionLinePurchaseReceiveGoodsModule.decorators = [
37191
37312
  TransactionReceivingGoodsHistoryModule,
37192
37313
  TransactionAvailableStockGridModule,
37193
37314
  ButtonModule,
37194
- TransactionLabeledWarehouseLocationButtonModule
37315
+ TransactionLabeledWarehouseLocationButtonModule,
37316
+ TransactionLineLabelModule,
37317
+ ScreenConfigurationModule,
37318
+ TransactionLineWarehouseButtonModule,
37319
+ TransactionPrintPackageStickerModule
37195
37320
  ],
37196
37321
  declarations: [
37197
37322
  TransactionLinePurchaseReceiveGoodsComponent
@@ -52117,7 +52242,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
52117
52242
  return this.transactionLines.some(line => line.directSell && line.dropShipment);
52118
52243
  }
52119
52244
  showInvoiceSelection() {
52120
- return this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesInvoice && payment.outstandingAmount > 0).length > 1;
52245
+ return this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesInvoice && payment.outstandingAmount !== 0).length > 1;
52121
52246
  }
52122
52247
  handleSelectInvoiceLines(paymentInfo) {
52123
52248
  this.orderPaymentAnalysis.forEach(invoice => invoice.isSelected = false);
@@ -52344,7 +52469,7 @@ TransactionHeaderPopupPaymentComponent.decorators = [
52344
52469
  <tr *ngFor="let paymentInfo of orderPaymentAnalysis">
52345
52470
  <td class="left" *ngIf="showInvoiceSelection()">
52346
52471
  <co-input-radio-button
52347
- *ngIf="paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount > 0"
52472
+ *ngIf="paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount !== 0"
52348
52473
  class="default-width"
52349
52474
  [(model)]="paymentInfo.isSelected"
52350
52475
  (modelChange)="handleSelectInvoiceLines(paymentInfo)">