@colijnit/transaction 255.1.62 → 255.1.67

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 (17) hide show
  1. package/bundles/colijnit-transaction.umd.js +21 -15
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line-base.component.js +2 -2
  5. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line.component.js +11 -6
  6. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line-base.component.js +7 -2
  7. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +11 -6
  8. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-invoice/transaction-quick-access-invoice.component.js +2 -2
  9. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +2 -2
  10. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +2 -2
  11. package/esm2015/lib/component/transaction-send-documents/transaction-send-documents.component.js +6 -5
  12. package/esm2015/lib/service/transaction.service.js +3 -3
  13. package/esm2015/lib/transaction-version.js +3 -3
  14. package/fesm2015/colijnit-transaction.js +39 -23
  15. package/fesm2015/colijnit-transaction.js.map +1 -1
  16. package/lib/component/transaction-send-documents/transaction-send-documents.component.d.ts +1 -0
  17. 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 = "255.1.62";
7
- this.publishDate = "27/11/2024, 13:50:14";
6
+ this.symVer = "255.1.67";
7
+ this.publishDate = "20/12/2024, 14:37:46";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnN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7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsc0JBQXNCLENBQUM7SUFDOUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU1LjEuNjdcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMC8xMi8yMDI0LCAxNDozNzo0NlwiO1xufSJdfQ==
@@ -277,8 +277,8 @@ class Version {
277
277
  constructor() {
278
278
  this.name = "@colijnit/transaction";
279
279
  this.description = "Colijn IT transaction package";
280
- this.symVer = "255.1.62";
281
- this.publishDate = "27/11/2024, 13:50:14";
280
+ this.symVer = "255.1.67";
281
+ this.publishDate = "20/12/2024, 14:37:46";
282
282
  }
283
283
  }
284
284
 
@@ -12175,7 +12175,7 @@ class TransactionService extends PendingReasonService {
12175
12175
  }
12176
12176
  handleReceiveSelectedPurchaseOrders(date, packingSlipNr) {
12177
12177
  return __awaiter(this, void 0, void 0, function* () {
12178
- const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected && line.articleLineStatus.quantityToReceive > 0);
12178
+ const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected);
12179
12179
  if (selectedLines.length > 0) {
12180
12180
  const receivedGoodsRequest = new ReceiveGoodsForPurchaseOrderRequest();
12181
12181
  receivedGoodsRequest.transId = this.currentTransaction.transactionInfo.id;
@@ -12205,7 +12205,7 @@ class TransactionService extends PendingReasonService {
12205
12205
  }
12206
12206
  handleAllocateSelectedPurchaseOrders() {
12207
12207
  return __awaiter(this, void 0, void 0, function* () {
12208
- const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected && line.quantityToAllocate > 0);
12208
+ const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected);
12209
12209
  if (selectedLines.length > 0) {
12210
12210
  const allocateGoodsRequest = new AllocateGoodsForSalesOrderRequest();
12211
12211
  allocateGoodsRequest.transId = this.currentTransaction.transactionInfo.id;
@@ -17744,7 +17744,7 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
17744
17744
  <co-quick-send-button
17745
17745
  [showSendMethodIcon]="false"
17746
17746
  [icon]="icons.CheckDuotone"
17747
- [showLoader]="this.showProcessingLoader"
17747
+ [showLoader]="showProcessingLoader"
17748
17748
  [title]="'PROCESS'"
17749
17749
  (sendIconClicked)="handleCommitEvent()"
17750
17750
  (openSendMethodDialog)="showSendMethodDialog = true"
@@ -17777,6 +17777,7 @@ class TransactionSendDocumentsComponent extends TransactionBaseComponent {
17777
17777
  constructor() {
17778
17778
  super(...arguments);
17779
17779
  this.showDialog = false;
17780
+ this.LayoutCode = LayoutCode;
17780
17781
  }
17781
17782
  showClass() {
17782
17783
  return true;
@@ -17788,10 +17789,10 @@ class TransactionSendDocumentsComponent extends TransactionBaseComponent {
17788
17789
  super.ngOnDestroy();
17789
17790
  }
17790
17791
  getHistoricDocuments() {
17791
- this.transactionService.getHistoricDocuments(this.transactionInfo.id, this.getLayoutCode())
17792
- .then((result) => {
17792
+ this.transactionService.getHistoricDocuments(this.transactionInfo.id, this.getLayoutCode()).then((result) => {
17793
17793
  if (result) {
17794
17794
  this.historicReports = result;
17795
+ this.detectChanges();
17795
17796
  }
17796
17797
  });
17797
17798
  }
@@ -17800,11 +17801,11 @@ class TransactionSendDocumentsComponent extends TransactionBaseComponent {
17800
17801
  if (this.selected) {
17801
17802
  this.activeReport = null;
17802
17803
  this.selected = false;
17803
- this.detectChanges();
17804
17804
  }
17805
17805
  else {
17806
17806
  this.showDialog = !this.showDialog;
17807
17807
  }
17808
+ this.detectChanges();
17808
17809
  }
17809
17810
  }
17810
17811
  handleShowHistoricDocumentLines(historicReport) {
@@ -17861,7 +17862,7 @@ TransactionSendDocumentsComponent.decorators = [
17861
17862
  <div class="dialog-container">
17862
17863
  <div class="historic-report-line" *ngFor="let report of historicReports" (click)="handleShowHistoricDocumentLines(report)">
17863
17864
  <co-icon [iconData]="iconCacheService.getIcon(getSendMethodIcon(report))"></co-icon>
17864
- <span [textContent]="report.reportId + ' ' + (report.reportCreationDate | date)"></span>
17865
+ <span [textContent]="report.reportId + ' ' + (getLayoutCode() === LayoutCode.Invoice ? report.reportDocNr + ' ' : '') + (report.reportCreationDate | date)"></span>
17865
17866
  </div>
17866
17867
  </div>
17867
17868
  </co-dialog-wizard>
@@ -18666,7 +18667,12 @@ class TransactionOrderDeliveryLineBaseComponent extends TransactionBaseComponent
18666
18667
  transactionLineSet() {
18667
18668
  super.transactionLineSet();
18668
18669
  if (this.transactionLine.amountSelected === undefined) {
18669
- this.transactionLine.amountSelected = this.transactionLine.amount;
18670
+ if (!this.transactionInfo.allowPartialDelivery) {
18671
+ this.transactionLine.amountSelected = this.transactionLine.amount;
18672
+ }
18673
+ else {
18674
+ this.transactionLine.amountSelected = 0;
18675
+ }
18670
18676
  }
18671
18677
  }
18672
18678
  _checkCheckbox() {
@@ -18772,11 +18778,16 @@ TransactionOrderDeliveryLineComponent.decorators = [
18772
18778
  [transactionInfo]="transactionInfo"
18773
18779
  ></co-transaction-line-discount-button>
18774
18780
  <div class="transaction-line-totals-amount">
18775
- <co-transaction-line-amount class="amount-number-picker"
18776
- [screenConfigurationObject]="cfgNames.LineAmount"
18777
- [transactionLine]="transactionLine"
18778
- [transactionInfo]="transactionInfo"
18779
- ></co-transaction-line-amount>
18781
+ <co-input-number-picker class="amount-number-picker"
18782
+ [screenConfigurationObject]="cfgNames.LineQuantityToDeliver"
18783
+ [(model)]="transactionLine.amountSelected"
18784
+ [decimals]="decimals"
18785
+ [min]="!transactionInfo.allowPartialDelivery ? transactionLine.amount : 0"
18786
+ [max]="lineQuantityToDeliver"
18787
+ [readonly]="!transactionLine.selected || readonly || !transactionInfo.allowPartialDelivery"
18788
+ (modelChange)="updateSelectedQuantity()"
18789
+ >
18790
+ </co-input-number-picker>
18780
18791
  </div>
18781
18792
  <co-editable-label class="transaction-line-totals-total price"
18782
18793
  [model]="transactionLine.displayNetLineTotal | coCurrency: true"
@@ -18938,7 +18949,7 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
18938
18949
  return selectedLines.map((line) => {
18939
18950
  const transactionLineReportingRequest = new TransactionLineReportingRequest();
18940
18951
  transactionLineReportingRequest.lineNr = line.lineNr;
18941
- transactionLineReportingRequest.amount = line.articleLineStatus.quantityToDeliver;
18952
+ transactionLineReportingRequest.amount = line.amountSelected;
18942
18953
  return transactionLineReportingRequest;
18943
18954
  });
18944
18955
  }
@@ -20895,7 +20906,7 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
20895
20906
  return selectedLines.map((line) => {
20896
20907
  const transactionLineReportingRequest = new TransactionLineReportingRequest();
20897
20908
  transactionLineReportingRequest.lineNr = line.lineNr;
20898
- transactionLineReportingRequest.amount = line.quantityToInvoice;
20909
+ transactionLineReportingRequest.amount = line.amountSelected;
20899
20910
  return transactionLineReportingRequest;
20900
20911
  });
20901
20912
  }
@@ -20992,7 +21003,7 @@ class TransactionInvoiceLineBaseComponent extends TransactionBaseComponent {
20992
21003
  this.transactionLine.quantityToInvoice = this.lineQuantityToInvoice;
20993
21004
  }
20994
21005
  if (this.transactionLine.amountSelected === undefined) {
20995
- this.transactionLine.amountSelected = this.transactionLine.amount;
21006
+ this.transactionLine.amountSelected = 0;
20996
21007
  }
20997
21008
  }
20998
21009
  handleLineClicked(mouseClick) {
@@ -21121,11 +21132,16 @@ TransactionInvoiceLineComponent.decorators = [
21121
21132
  [transactionInfo]="transactionInfo"
21122
21133
  ></co-transaction-line-discount-button>
21123
21134
  <div class="transaction-line-totals-amount" *ngIf="!lineIsInvoiced">
21124
- <co-transaction-line-amount class="amount-number-picker"
21125
- [screenConfigurationObject]="cfgNames.LineQuantityToInvoice"
21126
- [transactionLine]="transactionLine"
21127
- [transactionInfo]="transactionInfo"
21128
- ></co-transaction-line-amount>
21135
+ <co-input-number-picker class="amount-number-picker"
21136
+ [screenConfigurationObject]="cfgNames.LineQuantityToInvoice"
21137
+ [(model)]="transactionLine.amountSelected"
21138
+ [decimals]="decimals"
21139
+ [min]="1"
21140
+ [max]="lineQuantityToInvoice"
21141
+ [readonly]="!transactionLine.selected || readonly"
21142
+ (modelChange)="updateSelectedQuantity()"
21143
+ >
21144
+ </co-input-number-picker>
21129
21145
  </div>
21130
21146
  <co-editable-label class="transaction-line-totals-total price" *ngIf="!lineIsInvoiced"
21131
21147
  [model]="transactionLine.displayNetLineTotal | coCurrency: true"