@colijnit/transaction 12.1.156 → 12.1.157

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.
@@ -32,8 +32,8 @@
32
32
  function Version() {
33
33
  this.name = "@colijnit/transaction";
34
34
  this.description = "Colijn IT transaction package";
35
- this.symVer = "12.1.156";
36
- this.publishDate = "1-11-2023 12:38:21";
35
+ this.symVer = "12.1.157";
36
+ this.publishDate = "11/2/2023, 12:30:20 PM";
37
37
  }
38
38
  return Version;
39
39
  }());
@@ -38021,7 +38021,7 @@
38021
38021
  var transaction = this._transaction;
38022
38022
  this.statusbarData = [];
38023
38023
  if (this.screenConfigService.getObjectConfigurationFor(this._configNames.statusBarBT).immediatelyVisible()) {
38024
- this.statusbarData.push(this.getStatusbarLine("ORDERED", transaction.quantityOrdered, transaction.quantityToBeOrdered)); //Besteld
38024
+ this.statusbarData.push(this.getStatusbarLine("ORDERED", transaction.quantityOrdered, transaction.quantityToBeOrdered, transaction.isFullyOrdered)); //Besteld
38025
38025
  }
38026
38026
  if (this.screenConfigService.getObjectConfigurationFor(this._configNames.statusBarTG).immediatelyVisible()) {
38027
38027
  this.statusbarData.push(this.getStatusbarLine("ALLOCATED", transaction.quantityAllocated)); //Toegewezen
@@ -38067,8 +38067,15 @@
38067
38067
  this.statusbarData.push(this.getStatusbarLine("INVOICE_CHECK", transaction.quantityInvoiceControl)); //Factuur controle
38068
38068
  }
38069
38069
  };
38070
- TransactionStatusbarComponent.prototype.getStatusbarLine = function (label, quantity, calculateWith) {
38071
- return { label: this._dictionary.get(label), percentage: this.calculatePercentage(quantity, calculateWith === undefined ? this._total : calculateWith) };
38070
+ TransactionStatusbarComponent.prototype.getStatusbarLine = function (label, quantity, calculateWith, forceDisplayFullyProcessed) {
38071
+ var percentage;
38072
+ if (forceDisplayFullyProcessed) {
38073
+ percentage = 100;
38074
+ }
38075
+ else {
38076
+ percentage = this.calculatePercentage(quantity, calculateWith === undefined ? this._total : calculateWith);
38077
+ }
38078
+ return { label: this._dictionary.get(label), percentage: percentage };
38072
38079
  };
38073
38080
  TransactionStatusbarComponent.prototype.calculatePercentage = function (amount, totalAmount) {
38074
38081
  if (amount === 0 || totalAmount === 0) {