@colijnit/transaction 12.1.99 → 12.1.100
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 +227 -182
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +68 -67
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +69 -68
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +11 -8
- package/esm2015/lib/component/checkout/checkout.component.js +14 -9
- package/esm2015/lib/component/core/base/transaction-base.component.js +12 -12
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.js +3 -3
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +12 -5
- package/esm2015/lib/component/payment/payment.component.js +2 -2
- package/esm2015/lib/component/relation/relation-address-tile/relation-address-tile.component.js +11 -7
- package/esm2015/lib/component/relation/relation-addresses/relation-addresses.component.js +10 -9
- package/esm2015/lib/component/tile/tile.component.js +5 -3
- package/esm2015/lib/component/transaction/transaction.component.js +11 -18
- package/esm2015/lib/component/transaction/transaction.module.js +31 -31
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.component.js +18 -10
- package/esm2015/lib/component/transaction-card/transaction-card-header/transaction-card-header.component.js +7 -7
- package/esm2015/lib/component/transaction-create-date-label/transaction-create-date-label.component.js +4 -4
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +6 -6
- package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +24 -18
- package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.js +6 -6
- package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-percentage.component.js +6 -6
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +6 -6
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +5 -5
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +47 -0
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +4 -44
- package/esm2015/lib/component/transaction-line/transaction-purchase-overview-line/transaction-purchase-overview-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +4 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.module.js +6 -6
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +4 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.module.js +6 -6
- package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +4 -4
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +4 -1
- package/esm2015/lib/component/transaction-line-sales-allocation/transaction-line-sales-allocation.component.js +2 -2
- package/esm2015/lib/component/transaction-line-statusbar/transaction-line-statusbar.component.js +2 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +8 -10
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-purchase-order-overview/transaction-quick-access-purchase-order-overview.component.js +15 -19
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-purchase-order-overview/transaction-quick-access-purchase-order-overview.module.js +13 -11
- package/esm2015/lib/component/transaction-send-documents/transaction-send-documents.component.js +11 -11
- package/esm2015/lib/component/transaction-send-documents/transaction-send-documents.module.js +5 -5
- package/esm2015/lib/service/dialog.service.js +3 -2
- package/esm2015/lib/service/payment.service.js +8 -21
- package/esm2015/lib/service/pending-reason.service.js +12 -12
- package/esm2015/lib/service/transaction-connector-adapter.service.js +52 -52
- package/esm2015/lib/service/transaction-connector.service.js +22 -22
- package/esm2015/lib/service/transaction.service.js +6 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +105 -80
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +13 -13
- package/lib/component/checkout/checkout.component.d.ts +13 -12
- package/lib/component/core/base/transaction-base.component.d.ts +12 -12
- package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.d.ts +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.d.ts +5 -1
- package/lib/component/relation/relation-address-tile/relation-address-tile.component.d.ts +4 -3
- package/lib/component/relation/relation-addresses/relation-addresses.component.d.ts +7 -7
- package/lib/component/tile/tile.component.d.ts +2 -1
- package/lib/component/transaction/transaction.component.d.ts +14 -14
- package/lib/component/transaction-button-bar/transaction-button-bar.component.d.ts +9 -7
- package/lib/component/transaction-card/transaction-card-header/transaction-card-header.component.d.ts +6 -6
- package/lib/component/transaction-create-date-label/transaction-create-date-label.component.d.ts +3 -3
- package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +4 -4
- package/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.d.ts +8 -8
- package/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.d.ts +3 -3
- package/lib/component/transaction-header-fields/transaction-header-deposit-percentage.component.d.ts +3 -3
- package/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.d.ts +6 -6
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +0 -1
- package/lib/component/transaction-line/transaction-line/transaction-line.component.d.ts +5 -5
- package/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.d.ts +22 -0
- package/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.d.ts +2 -21
- package/lib/component/transaction-line/transaction-receive-goods-line/style/material.scss +1 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +4 -4
- package/lib/component/transaction-line-fields/transaction-line-delivery-method.component.d.ts +4 -4
- package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +4 -4
- package/lib/component/transaction-print-package-sticker/style/_layout.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.d.ts +8 -8
- package/lib/component/transaction-quick-access/transaction-quick-access-purchase-order-overview/style/_material-definition.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-purchase-order-overview/transaction-quick-access-purchase-order-overview.component.d.ts +10 -10
- package/lib/component/transaction-send-documents/transaction-send-documents.component.d.ts +9 -9
- package/lib/service/dialog.service.d.ts +2 -1
- package/lib/service/payment.service.d.ts +9 -10
- package/lib/service/pending-reason.service.d.ts +4 -4
- package/lib/service/transaction-connector-adapter.service.d.ts +81 -81
- package/lib/service/transaction-connector.service.d.ts +76 -76
- package/package.json +1 -1
|
@@ -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.100";
|
|
36
|
+
this.publishDate = "18-3-2023 15:36:28";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -1313,6 +1313,7 @@
|
|
|
1313
1313
|
__extends(DialogTransactionLineWarehouseCcComponent, _super);
|
|
1314
1314
|
function DialogTransactionLineWarehouseCcComponent() {
|
|
1315
1315
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1316
|
+
_this.transactionKind = transactionKind_enum.TransactionKind.SalesOrder;
|
|
1316
1317
|
_this.quantity = 1;
|
|
1317
1318
|
return _this;
|
|
1318
1319
|
}
|
|
@@ -1339,6 +1340,10 @@
|
|
|
1339
1340
|
DialogTransactionLineWarehouseCcComponent.prototype.handleDialogClose = function () {
|
|
1340
1341
|
this.handleClose(AppPopupButtonType.Cancel);
|
|
1341
1342
|
};
|
|
1343
|
+
DialogTransactionLineWarehouseCcComponent.prototype.handleClose = function (type) {
|
|
1344
|
+
this.close.emit();
|
|
1345
|
+
this.onClose(type);
|
|
1346
|
+
};
|
|
1342
1347
|
DialogTransactionLineWarehouseCcComponent.prototype.transactionLineSet = function () {
|
|
1343
1348
|
_super.prototype.transactionLineSet.call(this);
|
|
1344
1349
|
this.quantity = this.transactionLine.amount;
|
|
@@ -1350,11 +1355,12 @@
|
|
|
1350
1355
|
DialogTransactionLineWarehouseCcComponent.decorators = [
|
|
1351
1356
|
{ type: i0.Component, args: [{
|
|
1352
1357
|
selector: "co-dialog-transaction-line-warehouse-cc",
|
|
1353
|
-
template: "\n <co-dialog\n [customCssClass]=\"'co-small-toolbar'\"\n [headerTemplate]=\"dialogHeader\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"handleDialogClose()\">\n <div class=\"transaction-line-warehouse-cc-section\">\n <co-input-number-picker class=\"quantity-number-picker\"\n [(model)]=\"quantity\" [min]=\"1\"\n (modelChange)=\"handleQuantityChange($event)\"></co-input-number-picker>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n <co-transaction-line-commission-code\n [transactionLine]=\"transactionLine\"\n [value]=\"commissionCode\"\n [useModel]=\"false\"\n (valueChange)=\"handleCommissionCodeChange($event)\"></co-transaction-line-commission-code>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'WAREHOUSE' | localize\"></div>\n <co-transaction-line-warehouse\n [value]=\"warehouse\"\n [useModel]=\"false\"\n (valueChange)=\"handleWarehouseChange($event)\"></co-transaction-line-warehouse>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"co-dialog-header-title\" [textContent]=\"'COMMISSION_CODE_WAREHOUSE_SELECTION' | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
1358
|
+
template: "\n <co-dialog\n [customCssClass]=\"'co-small-toolbar'\"\n [headerTemplate]=\"dialogHeader\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"handleDialogClose()\">\n <div class=\"transaction-line-warehouse-cc-section\">\n <co-input-number-picker class=\"quantity-number-picker\"\n [(model)]=\"quantity\" [min]=\"1\"\n (modelChange)=\"handleQuantityChange($event)\"></co-input-number-picker>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\" *ngIf=\"transactionKind !== transKind.PurchaseOrder\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n <co-transaction-line-commission-code\n [transactionLine]=\"transactionLine\"\n [value]=\"commissionCode\"\n [useModel]=\"false\"\n (valueChange)=\"handleCommissionCodeChange($event)\"></co-transaction-line-commission-code>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'WAREHOUSE' | localize\"></div>\n <co-transaction-line-warehouse\n [value]=\"warehouse\"\n [useModel]=\"false\"\n (valueChange)=\"handleWarehouseChange($event)\"></co-transaction-line-warehouse>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"co-dialog-header-title\" [textContent]=\"'COMMISSION_CODE_WAREHOUSE_SELECTION' | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
1354
1359
|
encapsulation: i0.ViewEncapsulation.None
|
|
1355
1360
|
},] }
|
|
1356
1361
|
];
|
|
1357
1362
|
DialogTransactionLineWarehouseCcComponent.propDecorators = {
|
|
1363
|
+
transactionKind: [{ type: i0.Input }],
|
|
1358
1364
|
showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-warehouse-cc",] }]
|
|
1359
1365
|
};
|
|
1360
1366
|
|
|
@@ -1468,9 +1474,10 @@
|
|
|
1468
1474
|
};
|
|
1469
1475
|
return this.dynamicComponentService.createComponent(CharacteristicAnswerComponent, data);
|
|
1470
1476
|
};
|
|
1471
|
-
DialogService.prototype.showWarehouseCC = function (transactionLine) {
|
|
1477
|
+
DialogService.prototype.showWarehouseCC = function (transactionKind, transactionLine) {
|
|
1472
1478
|
var data = {
|
|
1473
1479
|
useModel: false,
|
|
1480
|
+
transactionKind: transactionKind,
|
|
1474
1481
|
transactionLine: transactionLine
|
|
1475
1482
|
};
|
|
1476
1483
|
return this.dynamicComponentService.createComponent(DialogTransactionLineWarehouseCcComponent, data);
|
|
@@ -7501,7 +7508,7 @@
|
|
|
7501
7508
|
transLine = response.transactionLines.find(function (t) { return t.lineNr === status.lineNr; });
|
|
7502
7509
|
_b = success;
|
|
7503
7510
|
if (!_b) return [3 /*break*/, 2];
|
|
7504
|
-
return [4 /*yield*/, this_1._handleLineOperationStatus(status, transLine)];
|
|
7511
|
+
return [4 /*yield*/, this_1._handleLineOperationStatus(response, status, transLine)];
|
|
7505
7512
|
case 1:
|
|
7506
7513
|
_b = (_c.sent());
|
|
7507
7514
|
_c.label = 2;
|
|
@@ -7538,7 +7545,7 @@
|
|
|
7538
7545
|
});
|
|
7539
7546
|
});
|
|
7540
7547
|
};
|
|
7541
|
-
PendingReasonService.prototype._handleLineOperationStatus = function (operationStatus, transactionLine) {
|
|
7548
|
+
PendingReasonService.prototype._handleLineOperationStatus = function (transaction, operationStatus, transactionLine) {
|
|
7542
7549
|
return __awaiter(this, void 0, void 0, function () {
|
|
7543
7550
|
var _a;
|
|
7544
7551
|
return __generator(this, function (_b) {
|
|
@@ -7566,7 +7573,7 @@
|
|
|
7566
7573
|
case 3:
|
|
7567
7574
|
_b.sent();
|
|
7568
7575
|
return [2 /*return*/, true];
|
|
7569
|
-
case 4: return [4 /*yield*/, this._showWarehouseCcDialog(operationStatus.uuid, transactionLine, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
7576
|
+
case 4: return [4 /*yield*/, this._showWarehouseCcDialog(transaction.transactionInfo.transactionKind, operationStatus.uuid, transactionLine, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
7570
7577
|
case 5:
|
|
7571
7578
|
_b.sent();
|
|
7572
7579
|
return [2 /*return*/, true];
|
|
@@ -7676,14 +7683,14 @@
|
|
|
7676
7683
|
});
|
|
7677
7684
|
});
|
|
7678
7685
|
};
|
|
7679
|
-
PendingReasonService.prototype._showWarehouseCcDialog = function (uuid, transactionLine, reason, type) {
|
|
7686
|
+
PendingReasonService.prototype._showWarehouseCcDialog = function (transactionKind, uuid, transactionLine, reason, type) {
|
|
7680
7687
|
return __awaiter(this, void 0, void 0, function () {
|
|
7681
7688
|
var reasonRequest, response;
|
|
7682
7689
|
return __generator(this, function (_a) {
|
|
7683
7690
|
switch (_a.label) {
|
|
7684
7691
|
case 0:
|
|
7685
7692
|
reasonRequest = new resolvePendingReasonRequest_bo.ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
7686
|
-
return [4 /*yield*/, this.dialogService.showWarehouseCC(transactionLine)];
|
|
7693
|
+
return [4 /*yield*/, this.dialogService.showWarehouseCC(transactionKind, transactionLine)];
|
|
7687
7694
|
case 1:
|
|
7688
7695
|
response = _a.sent();
|
|
7689
7696
|
if (!(response.button === AppPopupButtonType.Ok)) return [3 /*break*/, 3];
|
|
@@ -7760,7 +7767,9 @@
|
|
|
7760
7767
|
[TransactionTypeCategory.SalesOrderPurchase, 0],
|
|
7761
7768
|
[TransactionTypeCategory.SalesOrderAllocation, 1],
|
|
7762
7769
|
[TransactionTypeCategory.SalesOrderDeliveryNote, 7],
|
|
7763
|
-
[TransactionTypeCategory.SalesOrderInvoice, 8]
|
|
7770
|
+
[TransactionTypeCategory.SalesOrderInvoice, 8],
|
|
7771
|
+
[TransactionTypeCategory.PurchaseOrderOrderConfirmation, 0],
|
|
7772
|
+
[TransactionTypeCategory.PurchaseOrderReceivedGoods, 2]
|
|
7764
7773
|
]);
|
|
7765
7774
|
_this._answerRecalculationDeposit = false;
|
|
7766
7775
|
_this._dontAskForRecalculationDeposit = false;
|
|
@@ -8839,23 +8848,26 @@
|
|
|
8839
8848
|
case 0: return [4 /*yield*/, this.tryToLockTransaction(transactionId, version)];
|
|
8840
8849
|
case 1:
|
|
8841
8850
|
lockSuccess = _a.sent();
|
|
8842
|
-
if (!lockSuccess) return [3 /*break*/,
|
|
8851
|
+
if (!lockSuccess) return [3 /*break*/, 6];
|
|
8843
8852
|
this.transactionEventService.updatingPurchaseOrderConfirmation.next(true);
|
|
8844
8853
|
return [4 /*yield*/, this.connector.purchaseOrderConfirmation(purchaseOrderConfirmation)];
|
|
8845
8854
|
case 2:
|
|
8846
8855
|
success = _a.sent();
|
|
8847
|
-
if (!success) return [3 /*break*/,
|
|
8856
|
+
if (!success) return [3 /*break*/, 5];
|
|
8848
8857
|
return [4 /*yield*/, this.commit()];
|
|
8849
8858
|
case 3:
|
|
8850
8859
|
success = _a.sent();
|
|
8860
|
+
return [4 /*yield*/, this.getTransactionById(transactionId)];
|
|
8861
|
+
case 4:
|
|
8862
|
+
_a.sent();
|
|
8851
8863
|
if (success) {
|
|
8852
8864
|
this._checkPurchaseOrderConfirmation();
|
|
8853
8865
|
}
|
|
8854
|
-
_a.label =
|
|
8855
|
-
case
|
|
8866
|
+
_a.label = 5;
|
|
8867
|
+
case 5:
|
|
8856
8868
|
this.transactionEventService.updatingPurchaseOrderConfirmation.next(false);
|
|
8857
8869
|
return [2 /*return*/, success];
|
|
8858
|
-
case
|
|
8870
|
+
case 6: return [2 /*return*/];
|
|
8859
8871
|
}
|
|
8860
8872
|
});
|
|
8861
8873
|
});
|
|
@@ -8868,23 +8880,26 @@
|
|
|
8868
8880
|
case 0: return [4 /*yield*/, this.tryToLockTransaction(transactionId, version)];
|
|
8869
8881
|
case 1:
|
|
8870
8882
|
lockSuccess = _a.sent();
|
|
8871
|
-
if (!lockSuccess) return [3 /*break*/,
|
|
8883
|
+
if (!lockSuccess) return [3 /*break*/, 6];
|
|
8872
8884
|
this.transactionEventService.updatingPurchaseOrderConfirmation.next(true);
|
|
8873
8885
|
return [4 /*yield*/, this.connector.updatePurchasePortalLines(purchasePortalLine)];
|
|
8874
8886
|
case 2:
|
|
8875
8887
|
success = _a.sent();
|
|
8876
|
-
if (!success) return [3 /*break*/,
|
|
8888
|
+
if (!success) return [3 /*break*/, 5];
|
|
8877
8889
|
return [4 /*yield*/, this.commit()];
|
|
8878
8890
|
case 3:
|
|
8879
8891
|
success = _a.sent();
|
|
8892
|
+
return [4 /*yield*/, this.getTransactionById(transactionId)];
|
|
8893
|
+
case 4:
|
|
8894
|
+
_a.sent();
|
|
8880
8895
|
if (success) {
|
|
8881
8896
|
this._checkPurchaseOrderConfirmation();
|
|
8882
8897
|
}
|
|
8883
|
-
_a.label =
|
|
8884
|
-
case
|
|
8898
|
+
_a.label = 5;
|
|
8899
|
+
case 5:
|
|
8885
8900
|
this.transactionEventService.updatingPurchaseOrderConfirmation.next(false);
|
|
8886
8901
|
return [2 /*return*/, success];
|
|
8887
|
-
case
|
|
8902
|
+
case 6: return [2 /*return*/];
|
|
8888
8903
|
}
|
|
8889
8904
|
});
|
|
8890
8905
|
});
|
|
@@ -9619,6 +9634,7 @@
|
|
|
9619
9634
|
this.service = service;
|
|
9620
9635
|
this._dictionary = _dictionary;
|
|
9621
9636
|
this._dialogService = _dialogService;
|
|
9637
|
+
this.newTransaction = false;
|
|
9622
9638
|
this.transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
9623
9639
|
this.showCreateTransactionButton = false;
|
|
9624
9640
|
this.transactionFinished = new i0.EventEmitter();
|
|
@@ -9637,6 +9653,9 @@
|
|
|
9637
9653
|
configurable: true
|
|
9638
9654
|
});
|
|
9639
9655
|
CheckoutComponent.prototype.ngOnInit = function () {
|
|
9656
|
+
if (this.newTransaction) {
|
|
9657
|
+
this.service.resetCurrentTransaction();
|
|
9658
|
+
}
|
|
9640
9659
|
this.service.transactionKind = this.transactionType;
|
|
9641
9660
|
this.relationType = this.service.getRelationKindFromTransactionKind();
|
|
9642
9661
|
this.service.createNewRelation();
|
|
@@ -9741,7 +9760,7 @@
|
|
|
9741
9760
|
case 1:
|
|
9742
9761
|
success = _a.sent();
|
|
9743
9762
|
if (!success) return [3 /*break*/, 5];
|
|
9744
|
-
if (this.deliveryAddressNawNr === 0 && this.service.relation.addresses && this.service.relation.addresses.length === 1) {
|
|
9763
|
+
if (this.deliveryAddressNawNr === null || this.deliveryAddressNawNr === undefined || this.deliveryAddressNawNr === 0 && this.service.relation.addresses && this.service.relation.addresses.length === 1) {
|
|
9745
9764
|
this.deliveryAddressNawNr = this.service.relation.addresses[0].nawNr;
|
|
9746
9765
|
}
|
|
9747
9766
|
if (!(this.service.currentTransaction.transactionInfo.transactionAddress !== this.deliveryAddressNawNr)) return [3 /*break*/, 3];
|
|
@@ -9803,6 +9822,7 @@
|
|
|
9803
9822
|
checkoutRelation: [{ type: i0.ViewChild, args: ["checkoutRelation",] }],
|
|
9804
9823
|
checkoutDelivery: [{ type: i0.ViewChild, args: ["checkoutDelivery",] }],
|
|
9805
9824
|
checkoutPayment: [{ type: i0.ViewChild, args: ["checkoutPayment",] }],
|
|
9825
|
+
newTransaction: [{ type: i0.Input }],
|
|
9806
9826
|
sellerId: [{ type: i0.Input }],
|
|
9807
9827
|
transactionType: [{ type: i0.Input }],
|
|
9808
9828
|
showCreateTransactionButton: [{ type: i0.Input }],
|
|
@@ -10065,20 +10085,29 @@
|
|
|
10065
10085
|
return __awaiter(this, void 0, void 0, function () {
|
|
10066
10086
|
var _this = this;
|
|
10067
10087
|
return __generator(this, function (_a) {
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10088
|
+
switch (_a.label) {
|
|
10089
|
+
case 0:
|
|
10090
|
+
if (!this.service.currentTransaction.transactionInfo.id) return [3 /*break*/, 2];
|
|
10091
|
+
return [4 /*yield*/, this.service.tryToLockTransaction(this.service.currentTransaction.transactionInfo.id, this.service.currentTransaction.transactionInfo.version)];
|
|
10092
|
+
case 1:
|
|
10093
|
+
_a.sent();
|
|
10094
|
+
_a.label = 2;
|
|
10095
|
+
case 2:
|
|
10096
|
+
this.service.updateHeaderTransactionDefinitive(this.service.currentTransaction.transactionInfo.uuid, true);
|
|
10097
|
+
this.deliveryCosts = this.calculateDeliveryCosts();
|
|
10098
|
+
this.assemblyCosts = this.calculateAssemblyCosts();
|
|
10099
|
+
this.service.getDeliveryMethods().then(function (methods) {
|
|
10100
|
+
_this.deliveryMethods = methods.filter(function (m) { return m.webshop; });
|
|
10101
|
+
_this.currentDeliveryMethod = _this.deliveryMethods.find(function (d) { return d.code === _this.transaction.transactionInfo.deliveryMethod; });
|
|
10102
|
+
});
|
|
10103
|
+
this.service.getDeliveryOptions().then(function (options) {
|
|
10104
|
+
_this.deliveryOptionList = options;
|
|
10105
|
+
});
|
|
10106
|
+
this.service.getMarketingCodes().then(function (marketingCodes) {
|
|
10107
|
+
_this.marketing = marketingCodes;
|
|
10108
|
+
});
|
|
10109
|
+
return [2 /*return*/];
|
|
10110
|
+
}
|
|
10082
10111
|
});
|
|
10083
10112
|
});
|
|
10084
10113
|
};
|
|
@@ -11285,6 +11314,7 @@
|
|
|
11285
11314
|
function RelationAddressTileComponent() {
|
|
11286
11315
|
this.icons = Icon;
|
|
11287
11316
|
this.actAsAddTile = false;
|
|
11317
|
+
this.readonly = false;
|
|
11288
11318
|
this.selected = false;
|
|
11289
11319
|
this.selectedChange = new i0.EventEmitter();
|
|
11290
11320
|
this.addAddressClicked = new i0.EventEmitter();
|
|
@@ -11300,15 +11330,17 @@
|
|
|
11300
11330
|
this.editAddressClicked.next(this.address);
|
|
11301
11331
|
};
|
|
11302
11332
|
RelationAddressTileComponent.prototype.handleSelectedChange = function (address) {
|
|
11303
|
-
this.
|
|
11304
|
-
|
|
11333
|
+
if (!this.readonly) {
|
|
11334
|
+
this.selected = true;
|
|
11335
|
+
this.selectedChange.emit(address);
|
|
11336
|
+
}
|
|
11305
11337
|
};
|
|
11306
11338
|
return RelationAddressTileComponent;
|
|
11307
11339
|
}());
|
|
11308
11340
|
RelationAddressTileComponent.decorators = [
|
|
11309
11341
|
{ type: i0.Component, args: [{
|
|
11310
11342
|
selector: "co-relation-address-tile",
|
|
11311
|
-
template: "\n <ng-container *ngIf=\"!actAsAddTile\">\n <co-tile [selected]=\"selected\" (selectedChange)=\"handleSelectedChange(address)\">\n <div class=\"relation-content-wrapper\">\n <span class=\"relation-address-type\" [textContent]=\"address.displayType | localize\"></span>\n <span class=\"relation-address-name\" [textContent]=\"address.addressName\"></span>\n <span class=\"relation-address-address\" [textContent]=\"address.displayAddress\"></span>\n <span class=\"relation-address-postal\" [textContent]=\"address.displayPostal\"></span>\n <span class=\"relation-address-country\" [textContent]=\"address.displayCountry\"></span>\n </div>\n <div class=\"relation-address-edit\" (click)=\"handleEditAddressClick($event)\">\n <icon class=\"relation-address-edit-icon\" [icon]=\"icons.EditPencil\"></icon>\n </div>\n </co-tile>\n </ng-container>\n <ng-container *ngIf=\"actAsAddTile\">\n <co-tile (click)=\"addAddressClicked.emit()\">\n <div class=\"relation-content-wrapper\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.PlusRound\"></icon>\n <span [textContent]=\"'ADDRESS_ADD' | localize\"></span>\n </div>\n </co-tile>\n </ng-container>\n ",
|
|
11343
|
+
template: "\n <ng-container *ngIf=\"!actAsAddTile\">\n <co-tile [selected]=\"selected\" [readonly]=\"readonly\" (selectedChange)=\"handleSelectedChange(address)\">\n <div class=\"relation-content-wrapper\">\n <span class=\"relation-address-type\" [textContent]=\"address.displayType | localize\"></span>\n <span class=\"relation-address-name\" [textContent]=\"address.addressName\"></span>\n <span class=\"relation-address-address\" [textContent]=\"address.displayAddress\"></span>\n <span class=\"relation-address-postal\" [textContent]=\"address.displayPostal\"></span>\n <span class=\"relation-address-country\" [textContent]=\"address.displayCountry\"></span>\n </div>\n <div class=\"relation-address-edit\" (click)=\"handleEditAddressClick($event)\">\n <icon class=\"relation-address-edit-icon\" [icon]=\"icons.EditPencil\"></icon>\n </div>\n </co-tile>\n </ng-container>\n <ng-container *ngIf=\"actAsAddTile && !readonly\">\n <co-tile (click)=\"addAddressClicked.emit()\">\n <div class=\"relation-content-wrapper\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.PlusRound\"></icon>\n <span [textContent]=\"'ADDRESS_ADD' | localize\"></span>\n </div>\n </co-tile>\n </ng-container>\n ",
|
|
11312
11344
|
encapsulation: i0.ViewEncapsulation.None
|
|
11313
11345
|
},] }
|
|
11314
11346
|
];
|
|
@@ -11316,6 +11348,7 @@
|
|
|
11316
11348
|
showClass: [{ type: i0.HostBinding, args: ["class.co-relation-address-tile",] }],
|
|
11317
11349
|
address: [{ type: i0.Input }],
|
|
11318
11350
|
actAsAddTile: [{ type: i0.Input }],
|
|
11351
|
+
readonly: [{ type: i0.Input }],
|
|
11319
11352
|
selected: [{ type: i0.Input }],
|
|
11320
11353
|
selectedChange: [{ type: i0.Output }],
|
|
11321
11354
|
addAddressClicked: [{ type: i0.Output }],
|
|
@@ -11325,6 +11358,7 @@
|
|
|
11325
11358
|
var TileComponent = /** @class */ (function () {
|
|
11326
11359
|
function TileComponent() {
|
|
11327
11360
|
this.selected = false;
|
|
11361
|
+
this.readonly = false;
|
|
11328
11362
|
this.selectedChange = new i0.EventEmitter();
|
|
11329
11363
|
}
|
|
11330
11364
|
TileComponent.prototype.showClass = function () {
|
|
@@ -11335,12 +11369,13 @@
|
|
|
11335
11369
|
TileComponent.decorators = [
|
|
11336
11370
|
{ type: i0.Component, args: [{
|
|
11337
11371
|
selector: "co-tile",
|
|
11338
|
-
template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\">\n <co-input-radio-button [model]=\"selected\" [readonly]=\"selected\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
11372
|
+
template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\">\n <co-input-radio-button [model]=\"selected\" [readonly]=\"selected || readonly\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
11339
11373
|
encapsulation: i0.ViewEncapsulation.None
|
|
11340
11374
|
},] }
|
|
11341
11375
|
];
|
|
11342
11376
|
TileComponent.propDecorators = {
|
|
11343
11377
|
selected: [{ type: i0.HostBinding, args: ['class.selected',] }, { type: i0.Input }],
|
|
11378
|
+
readonly: [{ type: i0.Input }],
|
|
11344
11379
|
selectedChange: [{ type: i0.Output }],
|
|
11345
11380
|
showClass: [{ type: i0.HostBinding, args: ["class.co-tile",] }]
|
|
11346
11381
|
};
|
|
@@ -13170,12 +13205,8 @@
|
|
|
13170
13205
|
return __awaiter(this, void 0, void 0, function () {
|
|
13171
13206
|
return __generator(this, function (_a) {
|
|
13172
13207
|
switch (_a.label) {
|
|
13173
|
-
case 0: return [4 /*yield*/, this.
|
|
13174
|
-
case 1:
|
|
13175
|
-
if (!_a.sent()) return [3 /*break*/, 3];
|
|
13176
|
-
return [4 /*yield*/, this.service.addArticle(sku, quantity)];
|
|
13177
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
13178
|
-
case 3: return [2 /*return*/];
|
|
13208
|
+
case 0: return [4 /*yield*/, this.service.addArticle(sku, quantity)];
|
|
13209
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
13179
13210
|
}
|
|
13180
13211
|
});
|
|
13181
13212
|
});
|
|
@@ -14275,10 +14306,16 @@
|
|
|
14275
14306
|
TransactionQuickAccessPurchaseOrderOverviewComponent.prototype.handleSearch = function (text) {
|
|
14276
14307
|
this.showCatalogDialog();
|
|
14277
14308
|
};
|
|
14278
|
-
TransactionQuickAccessPurchaseOrderOverviewComponent.prototype.handleAddArticle = function (
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14309
|
+
TransactionQuickAccessPurchaseOrderOverviewComponent.prototype.handleAddArticle = function (sku, quantity) {
|
|
14310
|
+
if (quantity === void 0) { quantity = 1; }
|
|
14311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14312
|
+
return __generator(this, function (_a) {
|
|
14313
|
+
switch (_a.label) {
|
|
14314
|
+
case 0: return [4 /*yield*/, this.service.addArticle(sku, quantity)];
|
|
14315
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
14316
|
+
}
|
|
14317
|
+
});
|
|
14318
|
+
});
|
|
14282
14319
|
};
|
|
14283
14320
|
TransactionQuickAccessPurchaseOrderOverviewComponent.prototype.handleSearchCatalog = function (event) {
|
|
14284
14321
|
this.showCatalogDialog();
|
|
@@ -14349,7 +14386,7 @@
|
|
|
14349
14386
|
TransactionQuickAccessPurchaseOrderOverviewComponent.decorators = [
|
|
14350
14387
|
{ type: i0.Component, args: [{
|
|
14351
14388
|
selector: "co-transaction-quick-access-purchase-order-overview",
|
|
14352
|
-
template: "\n <co-
|
|
14389
|
+
template: "\n <co-add-product\n (addArticle)=\"handleAddArticle($event)\"\n (returnArticle)=\"handleAddArticle($event, -1)\"\n ></co-add-product>\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [transactionInfo]=\"transactionInfo\"\n [transactionTypeCategory]=\"transactionTypeCategory.PurchaseOrderOverview\"\n ></co-transaction-send-documents>\n <co-dialog-catalog *ngIf=\"showCatalog\"\n [options]=\"catalogOptions\"\n [parameters]=\"catalogParameters\"\n [showNavigation]=\"true\"\n (closeClick)=\"showCatalog = false\"\n (articleClicked)=\"handleCatalogArticleClick($event)\"\n >\n </co-dialog-catalog>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [headerTitle]=\"'Verzendmethode'\"\n [printerList]=\"printerList\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Email]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n ",
|
|
14353
14390
|
encapsulation: i0.ViewEncapsulation.None
|
|
14354
14391
|
},] }
|
|
14355
14392
|
];
|
|
@@ -14454,9 +14491,9 @@
|
|
|
14454
14491
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-card-purchase-overview",] }]
|
|
14455
14492
|
};
|
|
14456
14493
|
|
|
14457
|
-
var
|
|
14458
|
-
__extends(
|
|
14459
|
-
function
|
|
14494
|
+
var TransactionPurchaseOrderLineBaseComponent = /** @class */ (function (_super) {
|
|
14495
|
+
__extends(TransactionPurchaseOrderLineBaseComponent, _super);
|
|
14496
|
+
function TransactionPurchaseOrderLineBaseComponent(dictionaryService, iconCacheService, transactionService, _transactionEventService) {
|
|
14460
14497
|
var _this = _super.call(this, dictionaryService, transactionService) || this;
|
|
14461
14498
|
_this.dictionaryService = dictionaryService;
|
|
14462
14499
|
_this.iconCacheService = iconCacheService;
|
|
@@ -14468,43 +14505,53 @@
|
|
|
14468
14505
|
_this._subs = [];
|
|
14469
14506
|
return _this;
|
|
14470
14507
|
}
|
|
14471
|
-
|
|
14472
|
-
return true;
|
|
14473
|
-
};
|
|
14474
|
-
TransactionPurchaseOrderLineComponent.prototype.ngOnInit = function () {
|
|
14508
|
+
TransactionPurchaseOrderLineBaseComponent.prototype.ngOnInit = function () {
|
|
14475
14509
|
var _this = this;
|
|
14476
14510
|
this._subs.push(this._transactionEventService.selectAllSalesOrderLinesForPurchase.subscribe(function (value) {
|
|
14477
14511
|
_this.selected = value && _this.showCheckboxForLine;
|
|
14478
14512
|
}));
|
|
14479
14513
|
};
|
|
14480
|
-
|
|
14514
|
+
TransactionPurchaseOrderLineBaseComponent.prototype.ngOnDestroy = function () {
|
|
14481
14515
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
14482
14516
|
};
|
|
14483
|
-
|
|
14517
|
+
TransactionPurchaseOrderLineBaseComponent.prototype.transactionLineSet = function () {
|
|
14484
14518
|
this.showCheckboxForLine = this.transactionLine.commissionCode === "0";
|
|
14485
14519
|
};
|
|
14486
|
-
|
|
14520
|
+
TransactionPurchaseOrderLineBaseComponent.prototype.handleOpenSidePanel = function (mouseClick) {
|
|
14487
14521
|
var target = mouseClick.target;
|
|
14488
|
-
console.log(target);
|
|
14489
14522
|
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
14490
14523
|
this._transactionEventService.openSidePanel.next(this.transactionLine);
|
|
14491
14524
|
}
|
|
14492
14525
|
};
|
|
14493
|
-
return
|
|
14526
|
+
return TransactionPurchaseOrderLineBaseComponent;
|
|
14494
14527
|
}(TransactionBaseComponent));
|
|
14528
|
+
TransactionPurchaseOrderLineBaseComponent.decorators = [
|
|
14529
|
+
{ type: i0.Directive }
|
|
14530
|
+
];
|
|
14531
|
+
TransactionPurchaseOrderLineBaseComponent.ctorParameters = function () { return [
|
|
14532
|
+
{ type: DictionaryService },
|
|
14533
|
+
{ type: IconCacheService },
|
|
14534
|
+
{ type: TransactionService },
|
|
14535
|
+
{ type: TransactionEventService }
|
|
14536
|
+
]; };
|
|
14537
|
+
|
|
14538
|
+
var TransactionPurchaseOrderLineComponent = /** @class */ (function (_super) {
|
|
14539
|
+
__extends(TransactionPurchaseOrderLineComponent, _super);
|
|
14540
|
+
function TransactionPurchaseOrderLineComponent() {
|
|
14541
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14542
|
+
}
|
|
14543
|
+
TransactionPurchaseOrderLineComponent.prototype.showClass = function () {
|
|
14544
|
+
return true;
|
|
14545
|
+
};
|
|
14546
|
+
return TransactionPurchaseOrderLineComponent;
|
|
14547
|
+
}(TransactionPurchaseOrderLineBaseComponent));
|
|
14495
14548
|
TransactionPurchaseOrderLineComponent.decorators = [
|
|
14496
14549
|
{ type: i0.Component, args: [{
|
|
14497
14550
|
selector: "co-transaction-purchase-order-line",
|
|
14498
|
-
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"selected\"\n (click)=\"handleOpenSidePanel($event)\"\n (checkboxValueChanged)=\"selected = $event\">\n <div class=\"transaction-line-wrapper\" data-action=\"openSidePanel\">\n <div class=\"transaction-line-wrapper\">\n <co-transaction-line-statusbar [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\" [activeCategory]=\"transactionTypeCategory.
|
|
14551
|
+
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"selected\"\n (click)=\"handleOpenSidePanel($event)\"\n (checkboxValueChanged)=\"selected = $event\">\n <div class=\"transaction-line-wrapper\" data-action=\"openSidePanel\">\n <div class=\"transaction-line-wrapper\">\n <co-transaction-line-statusbar [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\" [activeCategory]=\"transactionTypeCategory.PurchaseOrderOrderConfirmation\"></co-transaction-line-statusbar>\n <co-transaction-line-delivery-date-button [transactionLine]=\"transactionLine\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n <div class=\"transaction-line-totals-grid\">\n <co-transaction-purchase-portal-line-gross-order-price class=\"transaction-line-totals-grid price\"\n [purchasePortalLine]=\"transactionLine.purchasePortalLine\"\n [showLabel]=\"false\"\n [readonly]=\"true\"\n ></co-transaction-purchase-portal-line-gross-order-price>\n <div class=\"transaction-line-totals-grid discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"transactionLine.lineTotalDiscountAmount < 0\"\n [textContent]=\"(transactionLine.purchasePortalLine?.discountOrderPrice | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <co-transaction-purchase-portal-line-net-order-price class=\"transaction-line-totals-grid price\"\n [purchasePortalLine]=\"transactionLine.purchasePortalLine\"\n [showLabel]=\"false\"\n [readonly]=\"true\"\n ></co-transaction-purchase-portal-line-net-order-price>\n </div>\n </div>\n <div class=\"vertical-border\"></div>\n <div class=\"transaction-line-totals-grid\" data-action=\"openSidePanel\">\n <co-icon class=\"transaction-line-supplier-icon\" [iconData]=\"iconCacheService.getIcon(icons.IndustrySolid)\"></co-icon>\n <span class=\"transaction-line-supplier-id\" [textContent]=\"transactionLine.supplierArticleNumber\"></span>\n <div class=\"transaction-line-totals-grid\">\n <co-transaction-purchase-portal-line-confirmed-price class=\"transaction-line-totals-grid price\"\n [purchasePortalLine]=\"transactionLine.purchasePortalLine\"\n [showLabel]=\"false\"\n ></co-transaction-purchase-portal-line-confirmed-price>\n </div>\n <co-input-number-picker class=\"amount-number-picker\"\n [model]=\"transactionLine.purchasePortalLine?.amountAccepted\"\n (modelChange)=\"transactionLine.purchasePortalLine.amountAccepted = $event\"\n ></co-input-number-picker>\n <co-transaction-purchase-portal-line-confirmed-delivery-date [purchasePortalLine]=\"transactionLine.purchasePortalLine\"\n class=\"two-column\"\n ></co-transaction-purchase-portal-line-confirmed-delivery-date>\n </div>\n </div>\n </co-transaction-base-line>\n ",
|
|
14499
14552
|
encapsulation: i0.ViewEncapsulation.None
|
|
14500
14553
|
},] }
|
|
14501
14554
|
];
|
|
14502
|
-
TransactionPurchaseOrderLineComponent.ctorParameters = function () { return [
|
|
14503
|
-
{ type: DictionaryService },
|
|
14504
|
-
{ type: IconCacheService },
|
|
14505
|
-
{ type: TransactionService },
|
|
14506
|
-
{ type: TransactionEventService }
|
|
14507
|
-
]; };
|
|
14508
14555
|
TransactionPurchaseOrderLineComponent.propDecorators = {
|
|
14509
14556
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-purchase-order-line",] }]
|
|
14510
14557
|
};
|
|
@@ -14550,7 +14597,7 @@
|
|
|
14550
14597
|
TransactionPurchaseOverviewLineComponent.decorators = [
|
|
14551
14598
|
{ type: i0.Component, args: [{
|
|
14552
14599
|
selector: "co-transaction-purchase-overview-line",
|
|
14553
|
-
template: "\n <co-transaction-base-line [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n (checkboxValueChanged)=\"selected = $event\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-navigation-button-list\n [refTransactions]=\"transactionLine.refTransactions\"\n (relationClick)=\"handleRelationNavigation($event)\"\n (transactionClick)=\"handleTransactionNavigation($event)\"></co-transaction-navigation-button-list>\n <co-transaction-navigation-button *ngIf=\"transactionLine.supplierArticleNumber\"\n [label]=\"transactionLine.supplierArticleNumber\"\n (buttonClicked)=\"handleArticleNavigation($event)\"></co-transaction-navigation-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"transactionLine\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-warehouse-button [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [activeCategory]=\"category.
|
|
14600
|
+
template: "\n <co-transaction-base-line [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n (checkboxValueChanged)=\"selected = $event\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-navigation-button-list\n [refTransactions]=\"transactionLine.refTransactions\"\n (relationClick)=\"handleRelationNavigation($event)\"\n (transactionClick)=\"handleTransactionNavigation($event)\"></co-transaction-navigation-button-list>\n <co-transaction-navigation-button *ngIf=\"transactionLine.supplierArticleNumber\"\n [label]=\"transactionLine.supplierArticleNumber\"\n (buttonClicked)=\"handleArticleNavigation($event)\"></co-transaction-navigation-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"transactionLine\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-warehouse-button [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [activeCategory]=\"category.PurchaseOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <co-transaction-line-delivery-button [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-delivery-button>\n </div>\n </div>\n <co-transaction-line-vat-button [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\" [transactionLine]=\"transactionLine\" [transactionInfo]=\"transactionInfo\"></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [readonly]=\"readonly\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
|
|
14554
14601
|
encapsulation: i0.ViewEncapsulation.None
|
|
14555
14602
|
},] }
|
|
14556
14603
|
];
|
|
@@ -15865,26 +15912,6 @@
|
|
|
15865
15912
|
this._transactionService = _transactionService;
|
|
15866
15913
|
this._sharedService = _sharedService;
|
|
15867
15914
|
}
|
|
15868
|
-
PaymentService.prototype.updateHeaderTransactionDepositAmount = function (uuid, amount) {
|
|
15869
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
15870
|
-
var response;
|
|
15871
|
-
return __generator(this, function (_a) {
|
|
15872
|
-
switch (_a.label) {
|
|
15873
|
-
case 0: return [4 /*yield*/, this._adapterService.changeHeaderTransactionDepositAmount(uuid, amount)
|
|
15874
|
-
.catch(function (error) {
|
|
15875
|
-
// todo: do something with the error
|
|
15876
|
-
return false;
|
|
15877
|
-
})];
|
|
15878
|
-
case 1:
|
|
15879
|
-
response = _a.sent();
|
|
15880
|
-
if (!response) return [3 /*break*/, 3];
|
|
15881
|
-
return [4 /*yield*/, this._transactionService.handleHeaderOperationStatuses(response, true, true)];
|
|
15882
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
15883
|
-
case 3: return [2 /*return*/, false];
|
|
15884
|
-
}
|
|
15885
|
-
});
|
|
15886
|
-
});
|
|
15887
|
-
};
|
|
15888
15915
|
PaymentService.prototype.registerSalesOrderPayment = function (uuid, amount, currencyId, paymentMethod, cashRegisterGroupId) {
|
|
15889
15916
|
return __awaiter(this, void 0, void 0, function () {
|
|
15890
15917
|
var response;
|
|
@@ -16036,7 +16063,7 @@
|
|
|
16036
16063
|
};
|
|
16037
16064
|
PaymentComponent.prototype.ngOnInit = function () {
|
|
16038
16065
|
var _this = this;
|
|
16039
|
-
this.
|
|
16066
|
+
this._transactionService.updateHeaderTransactionDepositAmount(this.transactionUuid, this.amountToPay).then(function () {
|
|
16040
16067
|
_this._getPaymentMethods().then(function () {
|
|
16041
16068
|
_this.showLoader = false;
|
|
16042
16069
|
_this._getDepositPaymentInfo();
|
|
@@ -16857,7 +16884,7 @@
|
|
|
16857
16884
|
RelationAddressesComponent.decorators = [
|
|
16858
16885
|
{ type: i0.Component, args: [{
|
|
16859
16886
|
selector: "co-relation-addresses",
|
|
16860
|
-
template: "\n <div class=\"default-data-row\">\n <co-carousel *ngIf=\"addresses && addresses.length > 1\">\n <co-relation-address-tile #carouselItem *ngFor=\"let address of addresses | filter:'isActive':true; let index = index\"\n [address]=\"address\"\n [selected]=\"selectedNawNr === address.nawNr\"\n (editAddressClicked)=\"editAddress($event)\"\n (selectedChange)=\"changeAddress($event)\"\n ></co-relation-address-tile>\n </co-carousel>\n </div>\n <div class=\"default-data-row\" *ngIf=\"!readonly\">\n <div class=\"relation-address-new\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'ADDRESS_ADD' | localize\" (click)=\"showNewAddressDialog()\"></div>\n </div>\n </div>\n <co-dialog class=\"dialog-relation-addresses-create-address\" *ngIf=\"showEditAddressDialog\"\n [footerTemplate]=\"templateFooter\"\n [headerTemplate]=\"templateHeader\"\n (closeClick)=\"showEditAddressDialog = false\"\n >\n <co-form>\n <co-relation-address\n [relation]=\"relation\"\n [(address)]=\"addressToEdit\"\n ></co-relation-address>\n </co-form>\n <ng-template #templateHeader>\n <div class=\"co-dialog-header-title\" [textContent]=\"'NEW_ADDRESS' | localize\"></div>\n </ng-template>\n <ng-template #templateFooter>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"submitForm()\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
16887
|
+
template: "\n <div class=\"default-data-row\">\n <co-carousel *ngIf=\"addresses && addresses.length > 1\">\n <co-relation-address-tile #carouselItem *ngFor=\"let address of addresses | filter:'isActive':true; let index = index\"\n [address]=\"address\"\n [readonly]=\"readonly\"\n [selected]=\"selectedNawNr === address.nawNr\"\n (editAddressClicked)=\"editAddress($event)\"\n (selectedChange)=\"changeAddress($event)\"\n ></co-relation-address-tile>\n </co-carousel>\n </div>\n <div class=\"default-data-row\" *ngIf=\"!readonly\">\n <div class=\"relation-address-new\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'ADDRESS_ADD' | localize\" (click)=\"showNewAddressDialog()\"></div>\n </div>\n </div>\n <co-dialog class=\"dialog-relation-addresses-create-address\" *ngIf=\"showEditAddressDialog\"\n [footerTemplate]=\"templateFooter\"\n [headerTemplate]=\"templateHeader\"\n (closeClick)=\"showEditAddressDialog = false\"\n >\n <co-form>\n <co-relation-address\n [relation]=\"relation\"\n [(address)]=\"addressToEdit\"\n ></co-relation-address>\n </co-form>\n <ng-template #templateHeader>\n <div class=\"co-dialog-header-title\" [textContent]=\"'NEW_ADDRESS' | localize\"></div>\n </ng-template>\n <ng-template #templateFooter>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"submitForm()\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
16861
16888
|
providers: [
|
|
16862
16889
|
corecomponents_v12.FormMasterService
|
|
16863
16890
|
],
|
|
@@ -18334,7 +18361,7 @@
|
|
|
18334
18361
|
TransactionHeaderDepositPercentageComponent.decorators = [
|
|
18335
18362
|
{ type: i0.Component, args: [{
|
|
18336
18363
|
selector: "co-transaction-header-deposit-percentage",
|
|
18337
|
-
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.depositPercentage | append: '%') || '...'\" [tooltip]=\"tooltipMessage\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"
|
|
18364
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.depositPercentage | append: '%') || '...'\" [tooltip]=\"tooltipMessage\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DOWNPAYMENT_PERCENTAGE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.depositPercentage\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
|
|
18338
18365
|
encapsulation: i0.ViewEncapsulation.None
|
|
18339
18366
|
},] }
|
|
18340
18367
|
];
|
|
@@ -18416,7 +18443,7 @@
|
|
|
18416
18443
|
TransactionHeaderDepositAmountComponent.decorators = [
|
|
18417
18444
|
{ type: i0.Component, args: [{
|
|
18418
18445
|
selector: "co-transaction-header-deposit-amount",
|
|
18419
|
-
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.depositAmount | coCurrency) || '...'\" [tooltip]=\"tooltipMessage\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"
|
|
18446
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.depositAmount | coCurrency) || '...'\" [tooltip]=\"tooltipMessage\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DOWNPAYMENT' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.depositAmount\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
|
|
18420
18447
|
encapsulation: i0.ViewEncapsulation.None
|
|
18421
18448
|
},] }
|
|
18422
18449
|
];
|
|
@@ -19114,11 +19141,6 @@
|
|
|
19114
19141
|
set: function (value) {
|
|
19115
19142
|
if (value) {
|
|
19116
19143
|
this._transaction = value;
|
|
19117
|
-
if (this._transaction) {
|
|
19118
|
-
this.activeCategory = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.PurchaseOrder ?
|
|
19119
|
-
TransactionTypeCategory.PurchaseOrderOverview :
|
|
19120
|
-
TransactionTypeCategory.SalesOrderOverview;
|
|
19121
|
-
}
|
|
19122
19144
|
}
|
|
19123
19145
|
},
|
|
19124
19146
|
enumerable: false,
|
|
@@ -19326,6 +19348,10 @@
|
|
|
19326
19348
|
if (this.relationKind === relationKind_enum$1.RelationKind.Customer) {
|
|
19327
19349
|
this.customerGroup = this.relation.customerGroup;
|
|
19328
19350
|
}
|
|
19351
|
+
if (this.relation.addresses && this.relation.addresses.length > 0) {
|
|
19352
|
+
var firstAddress = this.relation.addresses[0];
|
|
19353
|
+
this.setIndexDeliveryAddress(firstAddress.nawNr);
|
|
19354
|
+
}
|
|
19329
19355
|
};
|
|
19330
19356
|
TransactionHeaderRelationComponent.prototype.setIndexDeliveryAddress = function (nawNr) {
|
|
19331
19357
|
var address = this.relation.addresses.find(function (a) { return a.nawNr === nawNr; });
|
|
@@ -19378,22 +19404,24 @@
|
|
|
19378
19404
|
this.readonly = true;
|
|
19379
19405
|
this.showDialog = true;
|
|
19380
19406
|
}
|
|
19381
|
-
|
|
19382
|
-
case 3:
|
|
19383
|
-
this.readonly = false;
|
|
19384
|
-
this.showDialog = true;
|
|
19385
|
-
_a.label = 4;
|
|
19386
|
-
case 4: return [2 /*return*/];
|
|
19407
|
+
_a.label = 3;
|
|
19408
|
+
case 3: return [2 /*return*/];
|
|
19387
19409
|
}
|
|
19388
19410
|
});
|
|
19389
19411
|
});
|
|
19390
19412
|
};
|
|
19391
19413
|
TransactionHeaderRelationComponent.prototype.handleCloseDialog = function (event) {
|
|
19392
|
-
this.
|
|
19414
|
+
if (!this.readonly) {
|
|
19415
|
+
this.service.rollback();
|
|
19416
|
+
}
|
|
19393
19417
|
this.showDialog = false;
|
|
19394
19418
|
};
|
|
19395
19419
|
TransactionHeaderRelationComponent.prototype.handleOkClick = function () {
|
|
19396
19420
|
var _this = this;
|
|
19421
|
+
if (this.readonly) {
|
|
19422
|
+
this.showDialog = false;
|
|
19423
|
+
return;
|
|
19424
|
+
}
|
|
19397
19425
|
if (this._formMasterService.submitSlaves()) {
|
|
19398
19426
|
this._relationService.updateRelation(this.relation.relationType, this.relation).then(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
19399
19427
|
return __generator(this, function (_a) {
|
|
@@ -20223,7 +20251,7 @@
|
|
|
20223
20251
|
return Math.floor((amount / totalAmount) * 100);
|
|
20224
20252
|
};
|
|
20225
20253
|
TransactionLineStatusbarComponent.prototype.setFocusedStatusBlock = function () {
|
|
20226
|
-
this.focusedStatusIndex = this.activeCategory ? this.transactionService.getFocusStatusIndex(this.activeCategory) :
|
|
20254
|
+
this.focusedStatusIndex = this.activeCategory ? this.transactionService.getFocusStatusIndex(this.activeCategory) : null;
|
|
20227
20255
|
};
|
|
20228
20256
|
return TransactionLineStatusbarComponent;
|
|
20229
20257
|
}(TransactionBaseComponent));
|
|
@@ -21751,15 +21779,27 @@
|
|
|
21751
21779
|
this.buttons = [];
|
|
21752
21780
|
this._transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
21753
21781
|
}
|
|
21782
|
+
Object.defineProperty(TransactionButtonBarComponent.prototype, "selectedCategory", {
|
|
21783
|
+
get: function () {
|
|
21784
|
+
return this._selectedCategory;
|
|
21785
|
+
},
|
|
21786
|
+
set: function (value) {
|
|
21787
|
+
this._selectedCategory = value;
|
|
21788
|
+
},
|
|
21789
|
+
enumerable: false,
|
|
21790
|
+
configurable: true
|
|
21791
|
+
});
|
|
21754
21792
|
Object.defineProperty(TransactionButtonBarComponent.prototype, "transactionType", {
|
|
21755
21793
|
get: function () {
|
|
21756
21794
|
return this._transactionType;
|
|
21757
21795
|
},
|
|
21758
21796
|
set: function (value) {
|
|
21759
|
-
this._transactionType
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
this.
|
|
21797
|
+
if (this._transactionType !== value) {
|
|
21798
|
+
this._transactionType = value;
|
|
21799
|
+
this.buttons = this._mappingService.getButtonBar(this._transactionType);
|
|
21800
|
+
if (this.buttons && this.buttons.length > 0 && !this._selectedCategory) {
|
|
21801
|
+
this.selectCategory(-1);
|
|
21802
|
+
}
|
|
21763
21803
|
}
|
|
21764
21804
|
},
|
|
21765
21805
|
enumerable: false,
|
|
@@ -21777,7 +21817,7 @@
|
|
|
21777
21817
|
else {
|
|
21778
21818
|
idx = this.buttons.findIndex(function (b) { return b.category === _this._transactionService.activeRubric; });
|
|
21779
21819
|
}
|
|
21780
|
-
this.
|
|
21820
|
+
this._selectedCategory = this.buttons[Math.max(idx, 0)].category;
|
|
21781
21821
|
this.buttonClicked.next(this.buttons[Math.max(idx, 0)]);
|
|
21782
21822
|
};
|
|
21783
21823
|
return TransactionButtonBarComponent;
|
|
@@ -21794,9 +21834,9 @@
|
|
|
21794
21834
|
{ type: TransactionMappingService }
|
|
21795
21835
|
]; };
|
|
21796
21836
|
TransactionButtonBarComponent.propDecorators = {
|
|
21837
|
+
selectedCategory: [{ type: i0.Input }],
|
|
21797
21838
|
transactionType: [{ type: i0.Input }],
|
|
21798
21839
|
transactionInfoResponse: [{ type: i0.Input }],
|
|
21799
|
-
selectedCategory: [{ type: i0.Input }],
|
|
21800
21840
|
buttonClicked: [{ type: i0.Output }],
|
|
21801
21841
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-button-bar",] }]
|
|
21802
21842
|
};
|
|
@@ -22376,6 +22416,9 @@
|
|
|
22376
22416
|
-this.receiptDetails.quantityToReceive : this.receiptDetails.quantityToReceive;
|
|
22377
22417
|
request.transId = this.transactionInfo.id;
|
|
22378
22418
|
request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
22419
|
+
request.printerName = this.transactionLine.printerName ? this.transactionLine.printerName : this.transactionInfo.printerName;
|
|
22420
|
+
request.reportId = this.transactionLine.reportId ? this.transactionLine.reportId : this.transactionInfo.reportId;
|
|
22421
|
+
request.copies = this.transactionLine.stickerAmount;
|
|
22379
22422
|
this.transactionService.receiveGoodsForPurchaseOrder(this.transactionInfo.id, this.transactionInfo.version, request).then(function () {
|
|
22380
22423
|
if (_this.returnStockMode) {
|
|
22381
22424
|
_this._getAvailableStock();
|
|
@@ -23050,7 +23093,7 @@
|
|
|
23050
23093
|
TransactionLineSalesAllocationComponent.decorators = [
|
|
23051
23094
|
{ type: i0.Component, args: [{
|
|
23052
23095
|
selector: "co-transaction-line-sales-allocation",
|
|
23053
|
-
template: "\n <co-form>\n <div class=\"details-header\" [textContent]=\"'ALLOCATE_DETAILS' | localize | uppercase\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"allocationDetails.quantityToAllocate\"\n [(model)]=\"allocationDetails.serialNr ? 1 : allocationDetails.quantityToAllocate\"\n [disabled]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0\"\n [readonly]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"allocationDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper clickable\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!allocationDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"allocationDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"allocationDetails.locationNr ? allocationDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button\" *ngIf=\"!readonly\"\n [class.clickable]=\"allocationDetails.quantityToAllocate > 0\"\n [class.disabled]=\"allocationDetails.quantityToAllocate === 0\"\n (click)=\"handleSaveDetailsEdit()\">\n <span class=\"commit-text\" [textContent]=\"'ALLOCATE' | localize\"></span>\n </div>\n </div>\n <co-transaction-allocate-goods-history\n [goodsAllocationHistory]=\"goodsAllocationHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-allocate-goods-history>\n ",
|
|
23096
|
+
template: "\n <co-form>\n <div class=\"details-header\" [textContent]=\"'ALLOCATE_DETAILS' | localize | uppercase\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"allocationDetails.quantityToAllocate\"\n [(model)]=\"allocationDetails.serialNr ? 1 : allocationDetails.quantityToAllocate\"\n [disabled]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0\"\n [readonly]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"allocationDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper\" [class.clickable]=\"transactionLine.articleLineStatus.quantityToAllocate > 0\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!allocationDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"allocationDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"allocationDetails.locationNr ? allocationDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button\" *ngIf=\"!readonly\"\n [class.clickable]=\"allocationDetails.quantityToAllocate > 0\"\n [class.disabled]=\"allocationDetails.quantityToAllocate === 0\"\n (click)=\"handleSaveDetailsEdit()\">\n <span class=\"commit-text\" [textContent]=\"'ALLOCATE' | localize\"></span>\n </div>\n </div>\n <co-transaction-allocate-goods-history\n [goodsAllocationHistory]=\"goodsAllocationHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-allocate-goods-history>\n ",
|
|
23054
23097
|
providers: [
|
|
23055
23098
|
corecomponents_v12.FormMasterService
|
|
23056
23099
|
],
|
|
@@ -24323,7 +24366,8 @@
|
|
|
24323
24366
|
corecomponents_v12.InputSearchModule,
|
|
24324
24367
|
DialogCatalogModule,
|
|
24325
24368
|
PipeModule,
|
|
24326
|
-
TransactionSendDocumentsModule
|
|
24369
|
+
TransactionSendDocumentsModule,
|
|
24370
|
+
AddProductModule
|
|
24327
24371
|
],
|
|
24328
24372
|
declarations: [
|
|
24329
24373
|
TransactionQuickAccessPurchaseOrderOverviewComponent
|
|
@@ -29556,75 +29600,76 @@
|
|
|
29556
29600
|
exports["ɵnf"] = TransactionPurchasePortalLineConfirmedDeliveryDateModule;
|
|
29557
29601
|
exports["ɵng"] = TransactionPurchasePortalLineConfirmedDeliveryDateComponent;
|
|
29558
29602
|
exports["ɵnh"] = TransactionPurchaseOrderLineComponent;
|
|
29559
|
-
exports["ɵni"] =
|
|
29560
|
-
exports["ɵnj"] =
|
|
29561
|
-
exports["ɵnk"] =
|
|
29562
|
-
exports["ɵnl"] =
|
|
29563
|
-
exports["ɵnm"] =
|
|
29564
|
-
exports["ɵnn"] =
|
|
29565
|
-
exports["ɵno"] =
|
|
29566
|
-
exports["ɵnp"] =
|
|
29567
|
-
exports["ɵnq"] =
|
|
29568
|
-
exports["ɵnr"] =
|
|
29569
|
-
exports["ɵns"] =
|
|
29570
|
-
exports["ɵnt"] =
|
|
29571
|
-
exports["ɵnu"] =
|
|
29572
|
-
exports["ɵnv"] =
|
|
29573
|
-
exports["ɵnw"] =
|
|
29574
|
-
exports["ɵnx"] =
|
|
29575
|
-
exports["ɵny"] =
|
|
29576
|
-
exports["ɵnz"] =
|
|
29603
|
+
exports["ɵni"] = TransactionPurchaseOrderLineBaseComponent;
|
|
29604
|
+
exports["ɵnj"] = TransactionPurchaseOverviewLineModule;
|
|
29605
|
+
exports["ɵnk"] = TransactionNavigationButtonListModule;
|
|
29606
|
+
exports["ɵnl"] = TransactionNavigationButtonListComponent;
|
|
29607
|
+
exports["ɵnm"] = TransactionPurchaseOverviewLineComponent;
|
|
29608
|
+
exports["ɵnn"] = TransactionCardModule;
|
|
29609
|
+
exports["ɵno"] = TransactionCardPurchaseOverviewModule;
|
|
29610
|
+
exports["ɵnp"] = TransactionCardHeaderModule;
|
|
29611
|
+
exports["ɵnq"] = TransactionCardHeaderComponent;
|
|
29612
|
+
exports["ɵnr"] = TransactionCardFooterModule;
|
|
29613
|
+
exports["ɵns"] = TransactionCardFooterComponent;
|
|
29614
|
+
exports["ɵnt"] = TransactionCardPurchaseOverviewComponent;
|
|
29615
|
+
exports["ɵnu"] = TransactionCardSalesOverviewModule;
|
|
29616
|
+
exports["ɵnv"] = TransactionCardSalesOverviewComponent;
|
|
29617
|
+
exports["ɵnw"] = TransactionCardReceiveGoodsModule;
|
|
29618
|
+
exports["ɵnx"] = TransactionCardReceiveGoodsComponent;
|
|
29619
|
+
exports["ɵny"] = TransactionCardInvoiceModule;
|
|
29620
|
+
exports["ɵnz"] = TransactionCardInvoiceComponent;
|
|
29577
29621
|
exports["ɵo"] = ArticleConnectorService;
|
|
29578
|
-
exports["ɵoa"] =
|
|
29579
|
-
exports["ɵob"] =
|
|
29580
|
-
exports["ɵoc"] =
|
|
29581
|
-
exports["ɵod"] =
|
|
29582
|
-
exports["ɵoe"] =
|
|
29583
|
-
exports["ɵof"] =
|
|
29584
|
-
exports["ɵog"] =
|
|
29585
|
-
exports["ɵoh"] =
|
|
29586
|
-
exports["ɵoi"] =
|
|
29587
|
-
exports["ɵoj"] =
|
|
29588
|
-
exports["ɵok"] =
|
|
29589
|
-
exports["ɵol"] =
|
|
29590
|
-
exports["ɵom"] =
|
|
29591
|
-
exports["ɵon"] =
|
|
29592
|
-
exports["ɵoo"] =
|
|
29593
|
-
exports["ɵop"] =
|
|
29594
|
-
exports["ɵoq"] =
|
|
29595
|
-
exports["ɵor"] =
|
|
29596
|
-
exports["ɵos"] =
|
|
29597
|
-
exports["ɵot"] =
|
|
29598
|
-
exports["ɵou"] =
|
|
29599
|
-
exports["ɵov"] =
|
|
29600
|
-
exports["ɵow"] =
|
|
29601
|
-
exports["ɵox"] =
|
|
29602
|
-
exports["ɵoy"] =
|
|
29603
|
-
exports["ɵoz"] =
|
|
29622
|
+
exports["ɵoa"] = TransactionCardOrderDeliveryModule;
|
|
29623
|
+
exports["ɵob"] = TransactionCardOrderDeliveryComponent;
|
|
29624
|
+
exports["ɵoc"] = TransactionCardComponent;
|
|
29625
|
+
exports["ɵod"] = TransactionTextLineModule;
|
|
29626
|
+
exports["ɵoe"] = TransactionTextLineComponent;
|
|
29627
|
+
exports["ɵof"] = SearchViewModeService;
|
|
29628
|
+
exports["ɵog"] = TransactionSearchSalesOrderTileModule;
|
|
29629
|
+
exports["ɵoh"] = TransactionSearchSalesOrderTileComponent;
|
|
29630
|
+
exports["ɵoi"] = TransactionSearchTileBaseComponent;
|
|
29631
|
+
exports["ɵoj"] = TransactionSearchPurchaseOrderTileModule;
|
|
29632
|
+
exports["ɵok"] = TransactionSearchPurchaseOrderTileComponent;
|
|
29633
|
+
exports["ɵol"] = TransactionSearchSalesOrderGridModule;
|
|
29634
|
+
exports["ɵom"] = TransactionSearchSalesOrderGridComponent;
|
|
29635
|
+
exports["ɵon"] = TransactionSearchGridBaseComponent;
|
|
29636
|
+
exports["ɵoo"] = TransactionSearchPurchaseOrderGridModule;
|
|
29637
|
+
exports["ɵop"] = TransactionSearchPurchaseOrderGridComponent;
|
|
29638
|
+
exports["ɵoq"] = TransactionSearchGridModule;
|
|
29639
|
+
exports["ɵor"] = TransactionSearchGridComponent;
|
|
29640
|
+
exports["ɵos"] = TransactionSearchTileModule;
|
|
29641
|
+
exports["ɵot"] = TransactionSearchTileComponent;
|
|
29642
|
+
exports["ɵou"] = TransactionSalesOrderFilterModule;
|
|
29643
|
+
exports["ɵov"] = TransactionSalesOrderFilterContentOrderModule;
|
|
29644
|
+
exports["ɵow"] = TransactionFilterItemModule;
|
|
29645
|
+
exports["ɵox"] = TransactionFilterItemComponent;
|
|
29646
|
+
exports["ɵoy"] = TransactionSalesOrderFilterContentOrderComponent;
|
|
29647
|
+
exports["ɵoz"] = TransactionFilterContentBaseComponent;
|
|
29604
29648
|
exports["ɵp"] = RelationConnectorService;
|
|
29605
|
-
exports["ɵpa"] =
|
|
29606
|
-
exports["ɵpb"] =
|
|
29607
|
-
exports["ɵpc"] =
|
|
29608
|
-
exports["ɵpd"] =
|
|
29609
|
-
exports["ɵpe"] =
|
|
29610
|
-
exports["ɵpf"] =
|
|
29611
|
-
exports["ɵpg"] =
|
|
29612
|
-
exports["ɵph"] =
|
|
29613
|
-
exports["ɵpi"] =
|
|
29614
|
-
exports["ɵpj"] =
|
|
29615
|
-
exports["ɵpk"] =
|
|
29616
|
-
exports["ɵpl"] =
|
|
29617
|
-
exports["ɵpm"] =
|
|
29618
|
-
exports["ɵpn"] =
|
|
29619
|
-
exports["ɵpo"] =
|
|
29620
|
-
exports["ɵpp"] =
|
|
29621
|
-
exports["ɵpq"] =
|
|
29622
|
-
exports["ɵpr"] =
|
|
29623
|
-
exports["ɵps"] =
|
|
29624
|
-
exports["ɵpt"] =
|
|
29625
|
-
exports["ɵpu"] =
|
|
29626
|
-
exports["ɵpv"] =
|
|
29627
|
-
exports["ɵpw"] =
|
|
29649
|
+
exports["ɵpa"] = FilterRequestService;
|
|
29650
|
+
exports["ɵpb"] = TransactionSalesOrderFilterContentLogisticsModule;
|
|
29651
|
+
exports["ɵpc"] = TransactionFilterHistoricStateModule;
|
|
29652
|
+
exports["ɵpd"] = TransactionFilterHistoricStateComponent;
|
|
29653
|
+
exports["ɵpe"] = TransactionSalesOrderFilterContentLogisticsComponent;
|
|
29654
|
+
exports["ɵpf"] = TransactionSalesOrderFilterContentArticleModule;
|
|
29655
|
+
exports["ɵpg"] = TransactionSalesOrderFilterContentArticleComponent;
|
|
29656
|
+
exports["ɵph"] = TransactionSalesOrderFilterComponent;
|
|
29657
|
+
exports["ɵpi"] = TransactionFilterBaseComponent;
|
|
29658
|
+
exports["ɵpj"] = TransactionPurchaseOrderFilterModule;
|
|
29659
|
+
exports["ɵpk"] = TransactionPurchaseOrderFilterContentOrderModule;
|
|
29660
|
+
exports["ɵpl"] = TransactionPurchaseOrderFilterContentOrderComponent;
|
|
29661
|
+
exports["ɵpm"] = TransactionPurchaseOrderFilterContentLogisticsModule;
|
|
29662
|
+
exports["ɵpn"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
|
|
29663
|
+
exports["ɵpo"] = TransactionPurchaseOrderFilterContentArticleModule;
|
|
29664
|
+
exports["ɵpp"] = TransactionPurchaseOrderFilterContentArticleComponent;
|
|
29665
|
+
exports["ɵpq"] = TransactionPurchaseOrderFilterComponent;
|
|
29666
|
+
exports["ɵpr"] = SearchFeatureModule;
|
|
29667
|
+
exports["ɵps"] = SearchHeaderButtonsModule;
|
|
29668
|
+
exports["ɵpt"] = SearchHeaderButtonsComponent;
|
|
29669
|
+
exports["ɵpu"] = SearchFilterPanelModule;
|
|
29670
|
+
exports["ɵpv"] = SearchFilterPanelComponent;
|
|
29671
|
+
exports["ɵpw"] = SearchComponent;
|
|
29672
|
+
exports["ɵpx"] = TransactionTagComponent;
|
|
29628
29673
|
exports["ɵq"] = CoreModule;
|
|
29629
29674
|
exports["ɵr"] = ConfirmationDialogModule;
|
|
29630
29675
|
exports["ɵs"] = PipeModule;
|