@colijnit/transaction 257.1.76 → 257.1.78
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 +18 -16
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +3 -2
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-interbranch.component.js +3 -2
- package/esm2015/lib/component/stepper/stepper.component.js +2 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +8 -6
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +2 -2
|
@@ -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.78";
|
|
37
|
+
this.publishDate = "05/07/2025, 11:20:58";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -23451,7 +23451,7 @@
|
|
|
23451
23451
|
StepperComponent.decorators = [
|
|
23452
23452
|
{ type: i0.Component, args: [{
|
|
23453
23453
|
selector: "co-stepper",
|
|
23454
|
-
template: "\n <div class=\"stepper-title\">\n <div class=\"stepper-title-wrapper\">\n <co-icon class=\"title-icon\" [iconData]=\"iconCacheService.getIcon(titleIcon)\" [screenConfigurationObject]=\"cfgNames.Title\" screenConfigNativeElement></co-icon>\n <div class=\"title\" [textContent]=\"title | localize\" [screenConfigurationObject]=\"cfgNames.Title\" screenConfigNativeElement></div>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n </div>\n <div class=\"co-stepper-content\" *ngIf=\"showStepper\">\n <div class=\"stepper-step\" [class.last]=\"index === stepChildren.length - 1\" *ngFor=\"let step of stepChildren; let index = index\"\n [class.active]=\"index === activeStep\"\n [class.complete]=\"step.completed\"\n (click)=\"goto(index)\">\n <ng-container *ngIf=\"stepChildren.length > 1\">\n <div class=\"description\" [textContent]=\"step.label\"></div>\n <div class=\"index\"></div>\n </ng-container>\n </div>\n <icon #deliveryTruck *ngIf=\"activeStep !== lastStep\" class=\"delivery-truck\" [icon]=\"icons.DeliveryTruck\"\n [style.left.%]=\"truckPosition\"></icon>\n </div>\n <div class=\"co-stepper-content-wrapper\">\n <ng-content></ng-content>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <ng-template #buttonTemplate>\n <div class=\"stepper-button-wrapper\">\n <ng-container *ngIf=\"showStepper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.ArrowLeftRegular)\" [label]=\"'PREVIOUS' | localize\"\n *ngIf=\"canPrevious\" (click)=\"gotoPrevious()\"></co-button>\n <co-button [iconDataRight]=\"iconCacheService.getIcon(icons.ArrowRightRegular)\" [label]=\"'NEXT' | localize\" *ngIf=\"canNext\"\n (click)=\"gotoNext()\"></co-button>\n </ng-container>\n <co-button *ngIf=\"showCreate\"\n [screenConfigurationObject]=\"cfgNames.OrderButton\"\n [iconData]=\"iconCacheService.getIcon(icons.DetailView)\"\n [label]=\"
|
|
23454
|
+
template: "\n <div class=\"stepper-title\">\n <div class=\"stepper-title-wrapper\">\n <co-icon class=\"title-icon\" [iconData]=\"iconCacheService.getIcon(titleIcon)\" [screenConfigurationObject]=\"cfgNames.Title\" screenConfigNativeElement></co-icon>\n <div class=\"title\" [textContent]=\"title | localize\" [screenConfigurationObject]=\"cfgNames.Title\" screenConfigNativeElement></div>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n </div>\n <div class=\"co-stepper-content\" *ngIf=\"showStepper\">\n <div class=\"stepper-step\" [class.last]=\"index === stepChildren.length - 1\" *ngFor=\"let step of stepChildren; let index = index\"\n [class.active]=\"index === activeStep\"\n [class.complete]=\"step.completed\"\n (click)=\"goto(index)\">\n <ng-container *ngIf=\"stepChildren.length > 1\">\n <div class=\"description\" [textContent]=\"step.label\"></div>\n <div class=\"index\"></div>\n </ng-container>\n </div>\n <icon #deliveryTruck *ngIf=\"activeStep !== lastStep\" class=\"delivery-truck\" [icon]=\"icons.DeliveryTruck\"\n [style.left.%]=\"truckPosition\"></icon>\n </div>\n <div class=\"co-stepper-content-wrapper\">\n <ng-content></ng-content>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <ng-template #buttonTemplate>\n <div class=\"stepper-button-wrapper\">\n <ng-container *ngIf=\"showStepper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.ArrowLeftRegular)\" [label]=\"'PREVIOUS' | localize\"\n *ngIf=\"canPrevious\" (click)=\"gotoPrevious()\"></co-button>\n <co-button [iconDataRight]=\"iconCacheService.getIcon(icons.ArrowRightRegular)\" [label]=\"'NEXT' | localize\" *ngIf=\"canNext\"\n (click)=\"gotoNext()\"></co-button>\n </ng-container>\n <co-button *ngIf=\"showCreate\"\n [screenConfigurationObject]=\"cfgNames.OrderButton\"\n [iconData]=\"iconCacheService.getIcon(icons.DetailView)\"\n [label]=\"title | localize\"\n (click)=\"createClicked.emit($event)\"></co-button>\n </div>\n </ng-template>\n ",
|
|
23455
23455
|
providers: [{
|
|
23456
23456
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
23457
23457
|
useExisting: i0.forwardRef(function () { return StepperComponent; })
|
|
@@ -33902,26 +33902,26 @@
|
|
|
33902
33902
|
return __awaiter(this, void 0, void 0, function () {
|
|
33903
33903
|
var warehouseUpdateSuccess, oldWarehouse_1, oldSourceWarehouse, sourceSuccess;
|
|
33904
33904
|
var _this = this;
|
|
33905
|
-
return __generator(this, function (
|
|
33906
|
-
switch (
|
|
33905
|
+
return __generator(this, function (_b) {
|
|
33906
|
+
switch (_b.label) {
|
|
33907
33907
|
case 0:
|
|
33908
33908
|
warehouseUpdateSuccess = true;
|
|
33909
33909
|
if (this.transactionLine.warehouseNumber !== this.warehouse) {
|
|
33910
33910
|
oldWarehouse_1 = this.transactionLine.warehouseNumber;
|
|
33911
33911
|
this.transactionService.tryToLockTransaction(this.transactionInfo.id, this.transactionInfo.version).then(function (locked) { return __awaiter(_this, void 0, void 0, function () {
|
|
33912
33912
|
var warehouseSuccess;
|
|
33913
|
-
return __generator(this, function (
|
|
33914
|
-
switch (
|
|
33913
|
+
return __generator(this, function (_b) {
|
|
33914
|
+
switch (_b.label) {
|
|
33915
33915
|
case 0:
|
|
33916
33916
|
if (!locked) return [3 /*break*/, 2];
|
|
33917
33917
|
return [4 /*yield*/, this.transactionService.updateWarehouseTransactionLine(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.warehouse)];
|
|
33918
33918
|
case 1:
|
|
33919
|
-
warehouseSuccess =
|
|
33919
|
+
warehouseSuccess = _b.sent();
|
|
33920
33920
|
if (!warehouseSuccess) {
|
|
33921
33921
|
this.transactionLine.warehouseNumber = oldWarehouse_1;
|
|
33922
33922
|
warehouseUpdateSuccess = false;
|
|
33923
33923
|
}
|
|
33924
|
-
|
|
33924
|
+
_b.label = 2;
|
|
33925
33925
|
case 2: return [2 /*return*/];
|
|
33926
33926
|
}
|
|
33927
33927
|
});
|
|
@@ -33931,12 +33931,12 @@
|
|
|
33931
33931
|
oldSourceWarehouse = this.transactionLine.interBranchSourceWarehouseNr;
|
|
33932
33932
|
return [4 /*yield*/, this.transactionService.updateTransactionLineInterBranchSourceWarehouse(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.sourceWarehouse)];
|
|
33933
33933
|
case 1:
|
|
33934
|
-
sourceSuccess =
|
|
33934
|
+
sourceSuccess = _b.sent();
|
|
33935
33935
|
if (!sourceSuccess) {
|
|
33936
33936
|
this.transactionLine.warehouseNumber = oldSourceWarehouse;
|
|
33937
33937
|
warehouseUpdateSuccess = false;
|
|
33938
33938
|
}
|
|
33939
|
-
|
|
33939
|
+
_b.label = 2;
|
|
33940
33940
|
case 2:
|
|
33941
33941
|
if (warehouseUpdateSuccess) {
|
|
33942
33942
|
this.handleClose(AppPopupButtonType.Ok);
|
|
@@ -33949,7 +33949,7 @@
|
|
|
33949
33949
|
DialogTransactionLineWarehouseComponent.prototype._getWarehouseListForDisplay = function () {
|
|
33950
33950
|
return __awaiter(this, void 0, void 0, function () {
|
|
33951
33951
|
var _this = this;
|
|
33952
|
-
return __generator(this, function (
|
|
33952
|
+
return __generator(this, function (_b) {
|
|
33953
33953
|
this.transactionService.getWarehouses().then(function (warehouses) {
|
|
33954
33954
|
_this.warehouseDisplayList = warehouses;
|
|
33955
33955
|
_this.warehouseDescription = _this._getWarehouseDescription(_this.warehouse);
|
|
@@ -33961,8 +33961,9 @@
|
|
|
33961
33961
|
});
|
|
33962
33962
|
};
|
|
33963
33963
|
DialogTransactionLineWarehouseComponent.prototype._getWarehouseDescription = function (warehouseNr) {
|
|
33964
|
+
var _a;
|
|
33964
33965
|
if (warehouseNr !== null && warehouseNr !== undefined) {
|
|
33965
|
-
return this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; }).description;
|
|
33966
|
+
return (_a = this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; })) === null || _a === void 0 ? void 0 : _a.description;
|
|
33966
33967
|
}
|
|
33967
33968
|
else {
|
|
33968
33969
|
return '';
|
|
@@ -53088,7 +53089,7 @@
|
|
|
53088
53089
|
TransactionHeaderPopupPaymentComponent.decorators = [
|
|
53089
53090
|
{ type: i0.Component, args: [{
|
|
53090
53091
|
selector: 'co-transaction-header-popup-payment',
|
|
53091
|
-
template: "\n <div class=\"transaction-header-popup-category-wrapper co-small-scrollbar\">\n <co-form>\n <div class=\"transaction-header-popup-section\">\n <div\n class=\"transaction-header-popup-section-label\"\n *ngIf=\"showPayDownLabel\"\n [textContent]=\"'TO_PAY_DOWN' | localize\">\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-deposit-percentage\n [screenConfigurationObject]=\"cfgNames.DepositPercentage\"\n [lockAndSave]=\"true\"\n (depositUpdated)=\"showOutstandingAmounts()\">\n </co-transaction-header-deposit-percentage>\n <co-transaction-header-deposit-amount class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.DepositAmount\"\n [lockAndSave]=\"true\"\n (businessRuleApplied)=\"showBusinessRuleInfo = $event\">\n </co-transaction-header-deposit-amount>\n </div>\n\n <div class=\"transaction-header-popup-three-column-grid\">\n <co-transaction-header-use-deposit-rule\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.UseDepositRule\"\n [lockAndSave]=\"false\">\n </co-transaction-header-use-deposit-rule>\n <co-transaction-header-auto-recalculate-deposit\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.AutoRecalculateDeposit\"\n [lockAndSave]=\"false\">\n </co-transaction-header-auto-recalculate-deposit>\n <co-transaction-header-divide-evenly\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.DivideEvenly\"\n [lockAndSave]=\"false\">\n </co-transaction-header-divide-evenly>\n <div class=\"transaction-header-popup-business-rule-applied\" *ngIf=\"showBusinessRuleInfo\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CircleExclamationRegular)\"></co-icon>\n <span [textContent]=\"'DEPOSIT_BUSINESS_RULE_APPLIED' | localize\"></span>\n </div>\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-amount-to-settle\n [screenConfigurationObject]=\"cfgNames.AmountToSettle\"\n [lockAndSave]=\"false\">\n </co-transaction-header-amount-to-settle>\n <div class=\"transaction-header-popup-already-paid\">\n <co-input-text\n [screenConfigurationObject]=\"cfgNames.TotalPaidDown\"\n [placeholder]=\"'TOTAL_PAID_DOWN' | localize\" [forceReadonly]=\"true\"\n [model]=\"paidDown\" [formatPipe]=\"currencyPipe\">\n </co-input-text>\n <co-input-text\n [screenConfigurationObject]=\"cfgNames.SettledSoFar\"\n [placeholder]=\"'SETTLED_SO_FAR' | localize\" [forceReadonly]=\"true\"\n [model]=\"settled\" [formatPipe]=\"currencyPipe\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\" *ngIf=\"showCashOnDelivery\">\n <div class=\"cash-on-delivery-row\">\n <co-input-text\n [placeholder]=\"'CASH_ON_DELIVERY' | localize\"\n [forceReadonly]=\"true\"\n [(model)]=\"cashOnDelivery\"\n [formatPipe]=\"currencyPipe\">\n </co-input-text>\n <co-button\n class=\"save-button\"\n [disabled]=\"!isDirectSellEnabled()\"\n [iconData]=\"iconCacheService.getIcon(icons.TruckMovingRegular)\"\n (click)=\"cashOnDeliveryModalVisible = true\">\n </co-button>\n </div>\n <div></div>\n </div>\n\n <div\n class=\"transaction-header-popup-two-column-grid\"\n [screenConfigurationObject]=\"cfgNames.PaymentBtn\"\n screenConfigNativeElement>\n <co-transaction-header-payment-button\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [label]=\"('DELIVERY_TOTAL' | localize) | append:' / ' | append:('TO_SETTLE' | localize:false)\"\n [lockAndSave]=\"false\">\n </co-transaction-header-payment-button>\n </div>\n </div>\n\n <div *ngIf=\"paymentAnalysis\" class=\"transaction-header-popup-section\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'TO_INVOICE' | localize\"></div>\n <div class=\"still-top-pay-stats\">\n <div class=\"payment-item\">\n <label [textContent]=\"'TO_BE_INVOICED' | localize\"></label>\n <div class=\"amount\">{{ paymentAnalysis?.totalToInvoice | coCurrency:true }}</div>\n </div>\n <div class=\"payment-item\">\n <label [textContent]=\"'ALREADY_INVOICED' | localize\"></label>\n <div class=\"amount\">{{ paymentAnalysis?.totalDepositInvoice | coCurrency:true }}</div>\n </div>\n <div class=\"payment-item\">\n <label [textContent]=\"'STILL_TO_PAY' | localize\"></label>\n <div class=\"amount\" [class.outstanding]=\"paymentAnalysis?.totalToPay > 0\">\n <strong>{{ paymentAnalysis?.totalToPay | coCurrency:true }}</strong>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"orderPaymentAnalysis.length > 0\" class=\"payment-information\">\n <co-button\n class=\"save-button payment-button\"\n *ngIf=\"showPaymentButton()\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegular)\"\n (click)=\"openPayment($event)\">\n </co-button>\n\n <div class=\"payment-categories\">\n <div\n class=\"payment-category\"\n [class.selected]=\"activeCategory.index === category.index\"\n *ngFor=\"let category of paymentCategories\"\n (click)=\"handleCategoryClick(category)\">\n <div class=\"title\" [textContent]=\"category.title | localize\"></div>\n </div>\n </div>\n\n <table *ngIf=\"activeCategory.index === 0\">\n <thead>\n <tr>\n <th class=\"left\" *ngIf=\"showInvoiceSelection()\" [textContent]=\"'PAY' | localize\"></th>\n <th class=\"left\" [textContent]=\"'DESCRIPTION' | localize\"></th>\n <th [textContent]=\"'AMOUNT2' | localize\"></th>\n <th [textContent]=\"'PAID' | localize\"></th>\n <th [textContent]=\"'SETTLED' | localize\"></th>\n <th [textContent]=\"'OUTSTANDING' | localize\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let paymentInfo of orderPaymentAnalysis\">\n <td class=\"left\" *ngIf=\"showInvoiceSelection()\">\n <co-input-radio-button\n *ngIf=\"paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount !== 0\"\n class=\"default-width\"\n [(model)]=\"paymentInfo.isSelected\"\n (modelChange)=\"handleSelectInvoiceLines(paymentInfo)\">\n </co-input-radio-button>\n </td>\n <td class=\"left\">\n <span\n *ngIf=\"paymentInfo.transactionKind === transKind.SalesOrder\"\n [textContent]=\"'DEPOSIT' | localize\">\n </span>\n <span *ngIf=\"paymentInfo.transactionKind === transKind.SalesInvoice\">\n <span [textContent]=\"'INVOICE' | localize\"></span>\n <span> {{ paymentInfo.transactionNumber }}</span>\n <span> {{ paymentInfo.transactionDate | date:'dd-MM-yyyy' }}</span>\n </span>\n </td>\n <td><strong>{{ paymentInfo.invoiceAmount | coCurrency:true }}</strong></td>\n <td [class.paid]=\"paymentInfo.paidAmount > 0\">\n <strong>{{ paymentInfo.paidAmount | coCurrency:true }}</strong>\n </td>\n <td>{{ paymentInfo.settledAmount | coCurrency:true }}</td>\n <td [class.outstanding]=\"paymentInfo.outstandingAmount !== 0\">\n <strong>{{ paymentInfo.outstandingAmount | coCurrency:true }}</strong>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div *ngIf=\"activeCategory.index === 1\">\n <p\n *ngIf=\"registeredPaymentInfo && registeredPaymentInfo.payments.length === 0\"\n [textContent]=\"'NOT_FOUND' | localize\">\n </p>\n\n <table *ngIf=\"registeredPaymentInfo && registeredPaymentInfo.payments.length > 0\">\n <thead>\n <tr>\n <th class=\"left\" [textContent]=\"'DESCRIPTION' | localize\"></th>\n <th [textContent]=\"'AMOUNT2' | localize\"></th>\n <th [textContent]=\"'DATE' | localize\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let paymentInfo of registeredPaymentInfo.payments\">\n <td class=\"left\">{{ paymentInfo.reference }}</td>\n <td><strong>{{ paymentInfo.amount | coCurrency:true }}</strong></td>\n <td>{{ paymentInfo.paymentDateTime | date:'dd-MM-yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </co-form>\n\n <co-cash-on-delivery-modal\n *ngIf=\"cashOnDeliveryModalVisible\"\n [transactionInfoUuid]=\"transactionInfo.uuid\"\n (cashAmount)=\"getCashAmount($event)\"\n (showCashOnDeliveryModal)=\"showCashOnDeliveryModal($event)\">\n </co-cash-on-delivery-modal>\n </div>\n\n <co-dialog\n class=\"payment-dialog\"\n *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n (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]=\"transactionIdToPay\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"chosenAmountToPay\"\n [remainingPayment]=\"true\"\n [currencyId]=\"transactionInfo.currencyId\"\n [doNotFetchAmountToPayForRemaining]=\"true\"\n [showPaymentDate]=\"true\">\n </co-payment>\n </co-dialog>\n ",
|
|
53092
|
+
template: "\n <div class=\"transaction-header-popup-category-wrapper co-small-scrollbar\">\n <co-form>\n <div class=\"transaction-header-popup-section\">\n <div\n class=\"transaction-header-popup-section-label\"\n *ngIf=\"showPayDownLabel\"\n [textContent]=\"'TO_PAY_DOWN' | localize\">\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-deposit-percentage\n [screenConfigurationObject]=\"cfgNames.DepositPercentage\"\n [lockAndSave]=\"true\"\n (depositUpdated)=\"showOutstandingAmounts()\">\n </co-transaction-header-deposit-percentage>\n <co-transaction-header-deposit-amount class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.DepositAmount\"\n [lockAndSave]=\"true\"\n (businessRuleApplied)=\"showBusinessRuleInfo = $event\">\n </co-transaction-header-deposit-amount>\n </div>\n\n <div class=\"transaction-header-popup-three-column-grid\">\n <co-transaction-header-use-deposit-rule\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.UseDepositRule\"\n [lockAndSave]=\"false\">\n </co-transaction-header-use-deposit-rule>\n <co-transaction-header-auto-recalculate-deposit\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.AutoRecalculateDeposit\"\n [lockAndSave]=\"false\">\n </co-transaction-header-auto-recalculate-deposit>\n <co-transaction-header-divide-evenly\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.DivideEvenly\"\n [lockAndSave]=\"false\">\n </co-transaction-header-divide-evenly>\n <div class=\"transaction-header-popup-business-rule-applied\" *ngIf=\"showBusinessRuleInfo\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CircleExclamationRegular)\"></co-icon>\n <span [textContent]=\"'DEPOSIT_BUSINESS_RULE_APPLIED' | localize\"></span>\n </div>\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-amount-to-settle\n [screenConfigurationObject]=\"cfgNames.AmountToSettle\"\n [lockAndSave]=\"false\">\n </co-transaction-header-amount-to-settle>\n <div class=\"transaction-header-popup-already-paid\">\n <co-input-text\n [screenConfigurationObject]=\"cfgNames.TotalPaidDown\"\n [placeholder]=\"'TOTAL_PAID_DOWN' | localize\" [forceReadonly]=\"true\"\n [model]=\"paidDown\" [formatPipe]=\"currencyPipe\">\n </co-input-text>\n <co-input-text\n [screenConfigurationObject]=\"cfgNames.SettledSoFar\"\n [placeholder]=\"'SETTLED_SO_FAR' | localize\" [forceReadonly]=\"true\"\n [model]=\"settled\" [formatPipe]=\"currencyPipe\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"transaction-header-popup-two-column-grid\" *ngIf=\"showCashOnDelivery\">\n <div class=\"cash-on-delivery-row\">\n <co-input-text\n [placeholder]=\"'CASH_ON_DELIVERY' | localize\"\n [forceReadonly]=\"true\"\n [(model)]=\"cashOnDelivery\"\n [formatPipe]=\"currencyPipe\">\n </co-input-text>\n <co-button\n class=\"save-button\"\n [disabled]=\"!isDirectSellEnabled()\"\n [iconData]=\"iconCacheService.getIcon(icons.TruckMovingRegular)\"\n (click)=\"cashOnDeliveryModalVisible = true\">\n </co-button>\n </div>\n <div></div>\n </div>\n\n <div\n class=\"transaction-header-popup-two-column-grid\"\n [screenConfigurationObject]=\"cfgNames.PaymentBtn\"\n screenConfigNativeElement>\n <co-transaction-header-payment-button\n *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [label]=\"('DELIVERY_TOTAL' | localize) | append:' / ' | append:('TO_SETTLE' | localize:false)\"\n [lockAndSave]=\"false\">\n </co-transaction-header-payment-button>\n </div>\n </div>\n\n <div *ngIf=\"paymentAnalysis\" class=\"transaction-header-popup-section\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'TO_INVOICE' | localize\"></div>\n <div class=\"still-top-pay-stats\">\n <div class=\"payment-item\">\n <label [textContent]=\"'TO_BE_INVOICED' | localize\"></label>\n <div class=\"amount\">{{ paymentAnalysis?.totalToInvoice | coCurrency:true }}</div>\n </div>\n <div class=\"payment-item\">\n <label [textContent]=\"'ALREADY_INVOICED' | localize\"></label>\n <div class=\"amount\">{{ paymentAnalysis?.totalDepositInvoice | coCurrency:true }}</div>\n </div>\n <div class=\"payment-item\">\n <label [textContent]=\"'STILL_TO_PAY' | localize\"></label>\n <div class=\"amount\" [class.outstanding]=\"paymentAnalysis?.totalToPay > 0\">\n <strong>{{ paymentAnalysis?.totalToPay | coCurrency:true }}</strong>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"orderPaymentAnalysis.length > 0\" class=\"payment-information\">\n <co-button\n class=\"save-button payment-button\"\n *ngIf=\"showPaymentButton()\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegular)\"\n (click)=\"openPayment($event)\">\n </co-button>\n\n <div class=\"payment-categories\">\n <div\n class=\"payment-category\"\n [class.selected]=\"activeCategory.index === category.index\"\n *ngFor=\"let category of paymentCategories\"\n (click)=\"handleCategoryClick(category)\">\n <div class=\"title\" [textContent]=\"category.title | localize\"></div>\n </div>\n </div>\n\n <table *ngIf=\"activeCategory.index === 0\">\n <thead>\n <tr>\n <th class=\"left\" *ngIf=\"showInvoiceSelection()\" [textContent]=\"'PAY' | localize\"></th>\n <th class=\"left\" [textContent]=\"'DESCRIPTION' | localize\"></th>\n <th [textContent]=\"'AMOUNT2' | localize\"></th>\n <th [textContent]=\"'PAID' | localize\"></th>\n <th [textContent]=\"'SETTLED' | localize\"></th>\n <th [textContent]=\"'OUTSTANDING' | localize\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let paymentInfo of orderPaymentAnalysis\">\n <td class=\"left\" *ngIf=\"showInvoiceSelection()\">\n <co-input-radio-button\n *ngIf=\"paymentInfo.transactionKind === transKind.SalesInvoice && paymentInfo.outstandingAmount !== 0\"\n class=\"default-width\"\n [(model)]=\"paymentInfo.isSelected\"\n (modelChange)=\"handleSelectInvoiceLines(paymentInfo)\">\n </co-input-radio-button>\n </td>\n <td class=\"left\">\n <span\n *ngIf=\"paymentInfo.transactionKind === transKind.SalesOrder\"\n [textContent]=\"'DEPOSIT' | localize\">\n </span>\n <span *ngIf=\"paymentInfo.transactionKind === transKind.SalesInvoice\">\n <span [textContent]=\"'INVOICE' | localize\"></span>\n <span> {{ paymentInfo.transactionNumber }}</span>\n <span> {{ paymentInfo.transactionDate | date:'dd-MM-yyyy' }}</span>\n </span>\n </td>\n <td><strong>{{ paymentInfo.invoiceAmount | coCurrency:true }}</strong></td>\n <td [class.paid]=\"paymentInfo.paidAmount !== 0\">\n <strong>{{ paymentInfo.paidAmount | coCurrency:true }}</strong>\n </td>\n <td>{{ paymentInfo.settledAmount | coCurrency:true }}</td>\n <td [class.outstanding]=\"paymentInfo.outstandingAmount !== 0\">\n <strong>{{ paymentInfo.outstandingAmount | coCurrency:true }}</strong>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div *ngIf=\"activeCategory.index === 1\">\n <p\n *ngIf=\"registeredPaymentInfo && registeredPaymentInfo.payments.length === 0\"\n [textContent]=\"'NOT_FOUND' | localize\">\n </p>\n\n <table *ngIf=\"registeredPaymentInfo && registeredPaymentInfo.payments.length > 0\">\n <thead>\n <tr>\n <th class=\"left\" [textContent]=\"'DESCRIPTION' | localize\"></th>\n <th [textContent]=\"'AMOUNT2' | localize\"></th>\n <th [textContent]=\"'DATE' | localize\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let paymentInfo of registeredPaymentInfo.payments\">\n <td class=\"left\">{{ paymentInfo.reference }}</td>\n <td><strong>{{ paymentInfo.amount | coCurrency:true }}</strong></td>\n <td>{{ paymentInfo.paymentDateTime | date:'dd-MM-yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </co-form>\n\n <co-cash-on-delivery-modal\n *ngIf=\"cashOnDeliveryModalVisible\"\n [transactionInfoUuid]=\"transactionInfo.uuid\"\n (cashAmount)=\"getCashAmount($event)\"\n (showCashOnDeliveryModal)=\"showCashOnDeliveryModal($event)\">\n </co-cash-on-delivery-modal>\n </div>\n\n <co-dialog\n class=\"payment-dialog\"\n *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n (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]=\"transactionIdToPay\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"chosenAmountToPay\"\n [remainingPayment]=\"true\"\n [currencyId]=\"transactionInfo.currencyId\"\n [doNotFetchAmountToPayForRemaining]=\"true\"\n [showPaymentDate]=\"true\">\n </co-payment>\n </co-dialog>\n ",
|
|
53092
53093
|
encapsulation: i0.ViewEncapsulation.None
|
|
53093
53094
|
},] }
|
|
53094
53095
|
];
|
|
@@ -61880,7 +61881,7 @@
|
|
|
61880
61881
|
TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseListForDisplay = function () {
|
|
61881
61882
|
return __awaiter(this, void 0, void 0, function () {
|
|
61882
61883
|
var _this = this;
|
|
61883
|
-
return __generator(this, function (
|
|
61884
|
+
return __generator(this, function (_b) {
|
|
61884
61885
|
this._transactionService.getWarehouses().then(function (warehouses) {
|
|
61885
61886
|
_this.warehouseDisplayList = warehouses;
|
|
61886
61887
|
_this.warehouseDescription = _this._getWarehouseDescription(_this.warehouse);
|
|
@@ -61892,8 +61893,9 @@
|
|
|
61892
61893
|
});
|
|
61893
61894
|
};
|
|
61894
61895
|
TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseDescription = function (warehouseNr) {
|
|
61896
|
+
var _a;
|
|
61895
61897
|
if (warehouseNr !== null && warehouseNr !== undefined) {
|
|
61896
|
-
return this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; }).description;
|
|
61898
|
+
return (_a = this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; })) === null || _a === void 0 ? void 0 : _a.description;
|
|
61897
61899
|
}
|
|
61898
61900
|
else {
|
|
61899
61901
|
return '';
|