@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.
- package/bundles/colijnit-transaction.umd.js +12 -5
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.js +11 -4
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +12 -5
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
36
|
-
this.publishDate = "
|
|
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
|
-
|
|
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) {
|