@colijnit/transaction 257.1.56 → 257.1.57
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 +15 -6
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +12 -4
- package/esm2015/lib/component/transaction-search/transaction-batch-process-dialog/transaction-batch-process-dialog.component.js +2 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +14 -5
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "257.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.57";
|
|
37
|
+
this.publishDate = "08/05/2025, 16:24:28";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -46534,7 +46534,7 @@
|
|
|
46534
46534
|
BatchProcessDialogComponent.decorators = [
|
|
46535
46535
|
{ type: i0.Component, args: [{
|
|
46536
46536
|
selector: "co-batch-process-dialog",
|
|
46537
|
-
template: "\n <header>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.GearSolid)\"></co-icon>\n <h3 class=\"title\" [textContent]=\"'RUNNING_PROCESSES' | localize\"></h3>\n <co-icon\n class=\"close-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"onCloseDialog()\">\n </co-icon>\n </header>\n <div class=\"batch-items\">\n <div class=\"batch-item\" *ngFor=\"let progressItem of this.batchJobProgress\">\n <h4 [textContent]=\"(progressItem.batchJobName).toUpperCase() | localize\"></h4>\n <div class=\"total-number\">\n <span [textContent]=\"'TOTAL_QUANTITY' | localize\"></span>\n <span>: {{ progressItem.numberToProcess }}</span>\n <co-icon\n *ngIf=\"progressItem.numberProcessed === progressItem.numberToProcess\"\n class=\"delete-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\"\n (click)=\"deleteProcess(progressItem)\">\n </co-icon>\n </div>\n\n <div class=\"progress-bar-container\">\n <div\n class=\"progress-bar\"\n [style.width.%]=\"(progressItem.numberProcessed / progressItem.numberToProcess) * 100\">\n </div>\n </div>\n\n <div class=\"errors\" [textContent]=\"progressItem.errors\"></div>\n </div>\n </div>\n ",
|
|
46537
|
+
template: "\n <header>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.GearSolid)\"></co-icon>\n <h3 class=\"title\" [textContent]=\"'RUNNING_PROCESSES' | localize\"></h3>\n <co-icon\n class=\"close-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"onCloseDialog()\">\n </co-icon>\n </header>\n <div class=\"batch-items\">\n <div class=\"batch-item\" *ngFor=\"let progressItem of this.batchJobProgress\">\n <h4 [textContent]=\"(progressItem.batchJobName).toUpperCase() | localize\"></h4>\n <div class=\"total-number\">\n <span [textContent]=\"'TOTAL_QUANTITY' | localize\"></span>\n <span>: {{ progressItem.numberToProcess }}</span>\n <co-icon\n *ngIf=\"progressItem.numberProcessed === progressItem.numberToProcess\"\n class=\"delete-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\"\n (click)=\"deleteProcess(progressItem)\">\n </co-icon>\n </div>\n <div [textContent]=\"progressItem.startDatetime | date\"></div>\n\n <div class=\"progress-bar-container\">\n <div\n class=\"progress-bar\"\n [style.width.%]=\"(progressItem.numberProcessed / progressItem.numberToProcess) * 100\">\n </div>\n </div>\n\n <div class=\"errors\" [textContent]=\"progressItem.errors\"></div>\n </div>\n </div>\n ",
|
|
46538
46538
|
encapsulation: i0.ViewEncapsulation.None
|
|
46539
46539
|
},] }
|
|
46540
46540
|
];
|
|
@@ -57163,6 +57163,7 @@
|
|
|
57163
57163
|
_super.prototype.ngOnInit.call(this);
|
|
57164
57164
|
this._subs.push(this.transactionEventService.transactionPaymentDone.subscribe(function () { return _this._getDepositPaymentInfo(); }), this.transactionEventService.activeRubricChange.subscribe(function (rubric) {
|
|
57165
57165
|
_this.showRemainingPayment = rubric.category === TransactionTypeCategory.SalesOrderDeliveryNote || rubric.category === TransactionTypeCategory.SalesOrderInvoice;
|
|
57166
|
+
_this._getOutstandingPaymentLeft();
|
|
57166
57167
|
}));
|
|
57167
57168
|
};
|
|
57168
57169
|
TransactionHeaderPaymentComponent.prototype.ngOnDestroy = function () {
|
|
@@ -57187,7 +57188,7 @@
|
|
|
57187
57188
|
});
|
|
57188
57189
|
};
|
|
57189
57190
|
TransactionHeaderPaymentComponent.prototype.openModal = function () {
|
|
57190
|
-
this.
|
|
57191
|
+
this.outstandingPaymentLeft
|
|
57191
57192
|
? this.showDialog = true
|
|
57192
57193
|
: this.showPaymentDialog = true;
|
|
57193
57194
|
};
|
|
@@ -57213,10 +57214,18 @@
|
|
|
57213
57214
|
_this.paid = info.depositPaymentAmountTotal;
|
|
57214
57215
|
}
|
|
57215
57216
|
});
|
|
57217
|
+
this._getOutstandingPaymentLeft();
|
|
57218
|
+
}
|
|
57219
|
+
};
|
|
57220
|
+
TransactionHeaderPaymentComponent.prototype._getOutstandingPaymentLeft = function () {
|
|
57221
|
+
var _this = this;
|
|
57222
|
+
if (this.transactionInfo && this.transactionInfo.id) {
|
|
57216
57223
|
var paymentAnalysisRequest = new orderPaymentAnalysisFilter_bo.OrderPaymentAnalysisFilter();
|
|
57217
57224
|
paymentAnalysisRequest.transactionId = this.transactionInfo.id;
|
|
57218
57225
|
this._paymentConnectorService.getSalesOrderPaymentAnalysis(paymentAnalysisRequest).then(function (response) {
|
|
57219
|
-
|
|
57226
|
+
if (response && response.length > 0) {
|
|
57227
|
+
_this.outstandingPaymentLeft = response.some(function (item) { return item.outstandingAmount > 0; });
|
|
57228
|
+
}
|
|
57220
57229
|
});
|
|
57221
57230
|
}
|
|
57222
57231
|
};
|
|
@@ -57225,7 +57234,7 @@
|
|
|
57225
57234
|
TransactionHeaderPaymentComponent.decorators = [
|
|
57226
57235
|
{ type: i0.Component, args: [{
|
|
57227
57236
|
selector: 'co-transaction-header-payment',
|
|
57228
|
-
template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"openModal()\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n screenConfigNativeElement\n (click)=\"showDialog = true\">\n <div class=\"header-deposit-label co-transaction-label\">\n <span *ngIf=\"!outstandingPaymentLeft\" [textContent]=\"'INVOICE_TOTAL' | localize\"></span>\n <span *ngIf=\"outstandingPaymentLeft\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></span>\n </div>\n <co-transaction-header-remaining-amount\n class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [isFullyInvoiced]=\"
|
|
57237
|
+
template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"openModal()\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n screenConfigNativeElement\n (click)=\"showDialog = true\">\n <div class=\"header-deposit-label co-transaction-label\">\n <span *ngIf=\"!outstandingPaymentLeft\" [textContent]=\"'INVOICE_TOTAL' | localize\"></span>\n <span *ngIf=\"outstandingPaymentLeft\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></span>\n </div>\n <co-transaction-header-remaining-amount\n class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [isFullyInvoiced]=\"outstandingPaymentLeft\"\n (remainingAmountChange)=\"remainingToPay = $event\">\n </co-transaction-header-remaining-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-downpayment-percentage-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'%' | localize\"></div>\n <co-transaction-header-deposit-percentage class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-percentage>\n </div>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"payment-payed-wrapper\">\n <div class=\"header-payed-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_DONE' | localize\"></div>\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | coCurrency) || 0\"></span>\n </div>\n <div\n class=\"header-payment-button-wrapper\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPaymentHeader\"\n screenConfigNativeElement\n (click)=\"openPayment($event)\">\n <co-icon class=\"header-order-icon\" [iconData]=\"iconCacheService.getIcon(icons.LightCreditCardCheck)\"></co-icon>\n\n <!--co-transaction-header-payment-button *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-header-payment-button-->\n </div>\n </div>\n </ng-template>\n <ng-template #hiddenBlock>\n <!--div class=\"transaction-header-block-row\">\n <div class=\"header-branch-label co-transaction-label\" [textContent]=\"'BRANCH' | localize\"></div>\n <div class=\"branch-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </div-->\n </ng-template>\n <co-transaction-header-popup *ngIf=\"showDialog\"\n [activeCategoryDescription]=\"'PAYMENT_INFORMATION'\"\n (closeClick)=\"showDialog = false\"></co-transaction-header-popup>\n <!--\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <co-deposit-payment [branch]=\"transactionInfo.branch?.relationNr\" [transactionUuid]=\"transactionInfo.uuid\"></co-deposit-payment>\n </div>\n </co-dialog>\n -->\n <co-dialog class=\"payment-dialog\" [modal]=\"true\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showPaymentDialog\" (closeClick)=\"handleCloseDialog()\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize\"></div>\n </div>\n </ng-template>\n <co-payment\n [transId]=\"transactionInfo.id\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"showRemainingPayment ? remainingToPay : toPay\"\n [remainingPayment]=\"showRemainingPayment\"\n [currencyId]=\"transactionInfo.currencyId\"\n [doNotFetchAmountToPayForRemaining]=\"true\"\n [showPaymentDate]=\"true\"\n ></co-payment>\n </co-dialog>\n ",
|
|
57229
57238
|
providers: [
|
|
57230
57239
|
{ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return TransactionHeaderPaymentComponent; }) }
|
|
57231
57240
|
],
|