@colijnit/transaction 258.1.37 → 258.1.39
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 +96 -18
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +3 -3
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.js +27 -3
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +30 -7
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +67 -3
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.module.js +10 -3
- package/esm2015/lib/component/transaction-print-package-sticker/transaction-print-package-sticker.component.js +11 -9
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +28 -26
- package/esm2015/lib/enum/transaction-cfg-name.enum.js +2 -1
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction.service.js +5 -3
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +172 -50
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.d.ts +1 -0
- package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.d.ts +3 -0
- package/lib/component/transaction-line-purchase-receive-goods/style/_layout.scss +11 -0
- package/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.d.ts +4 -1
- package/lib/component/transaction-print-package-sticker/transaction-print-package-sticker.component.d.ts +2 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +7 -6
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +1 -0
- package/lib/enum/transaction-cfg-name.enum.d.ts +1 -0
- package/lib/service/transaction-event.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "258.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "258.1.39";
|
|
37
|
+
this.publishDate = "24-6-2025 18:25:54";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -1565,6 +1565,7 @@
|
|
|
1565
1565
|
this.selectedTransportDay = new rxjs.Subject();
|
|
1566
1566
|
this.resetTransportDayFilteredOrders = new rxjs.Subject();
|
|
1567
1567
|
this.selectAllPurchaseOrderLinesForReceiveGoods = new rxjs.Subject();
|
|
1568
|
+
this.setColliStickerAmount = new rxjs.Subject();
|
|
1568
1569
|
this.updatingSalesOrderGeneratePurchaseOrders = new rxjs.Subject();
|
|
1569
1570
|
this.updatingSalesOrderConfirmation = new rxjs.Subject();
|
|
1570
1571
|
this.updatingSalesOrderGoodsToBePicked = new rxjs.Subject();
|
|
@@ -12976,6 +12977,7 @@
|
|
|
12976
12977
|
/* Received rubric */
|
|
12977
12978
|
TransactionCfgName["LineQuantityToReceive"] = "lineQuantityToReceive";
|
|
12978
12979
|
TransactionCfgName["StickerAmount"] = "stickerAmount";
|
|
12980
|
+
TransactionCfgName["CollieAmount"] = "collieAmount";
|
|
12979
12981
|
TransactionCfgName["LineWarehouseLocationReceived"] = "lineWarehouseLocationReceived";
|
|
12980
12982
|
/* Invoice_check rubric */
|
|
12981
12983
|
/* Service Overview Tab*/
|
|
@@ -20163,7 +20165,8 @@
|
|
|
20163
20165
|
detail.warehouseNr = line.warehouseNumber;
|
|
20164
20166
|
detail.locationNr = line.locationNr;
|
|
20165
20167
|
detail.batchNr = line.batchNr;
|
|
20166
|
-
detail.
|
|
20168
|
+
detail.numberOfColli = line.chosenPackageAmount;
|
|
20169
|
+
//detail.numberOfStickers = line.stickerAmount;
|
|
20167
20170
|
detail.printerName = line.printerName;
|
|
20168
20171
|
detail.reportId = line.reportId;
|
|
20169
20172
|
receivedGoodsRequest_1.purchaseOrderLineReceiptDetailsDTOS.push(detail);
|
|
@@ -20197,7 +20200,8 @@
|
|
|
20197
20200
|
detail.warehouseNr = line.warehouseNumber;
|
|
20198
20201
|
detail.locationNr = line.locationNr;
|
|
20199
20202
|
detail.batchNr = line.batchNr;
|
|
20200
|
-
detail.
|
|
20203
|
+
detail.numberOfColli = line.chosenPackageAmount;
|
|
20204
|
+
//detail.numberOfStickers = line.stickerAmount;
|
|
20201
20205
|
detail.printerName = line.printerName;
|
|
20202
20206
|
detail.reportId = line.reportId;
|
|
20203
20207
|
receivedGoodsRequest_2.purchaseOrderLineReceiptDetailsDTOS.push(detail);
|
|
@@ -26701,6 +26705,9 @@
|
|
|
26701
26705
|
TransactionQuickAccessReceivedGoodsComponent.prototype.handleSelectAllLines = function (value) {
|
|
26702
26706
|
this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.next(value);
|
|
26703
26707
|
};
|
|
26708
|
+
TransactionQuickAccessReceivedGoodsComponent.prototype.handleNoColliStickers = function (value) {
|
|
26709
|
+
this.transactionEventService.setColliStickerAmount.next(value);
|
|
26710
|
+
};
|
|
26704
26711
|
TransactionQuickAccessReceivedGoodsComponent.prototype.handleGlobalLocationChange = function (location) {
|
|
26705
26712
|
var _this = this;
|
|
26706
26713
|
this.globalWarehouseLocation = location;
|
|
@@ -26824,7 +26831,7 @@
|
|
|
26824
26831
|
TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
26825
26832
|
{ type: i0.Component, args: [{
|
|
26826
26833
|
selector: "co-transaction-quick-access-received-goods",
|
|
26827
|
-
template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <div class=\"sub-section\">\n <div class=\"sub-section
|
|
26834
|
+
template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <div class=\"sub-section-input\">\n <div class=\"sub-section\">\n <co-input-date\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"commitDate\"\n ></co-input-date>\n <co-input-text\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"packingSlipNr\"\n ></co-input-text>\n <!--\n <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat && showWarehouseLocationButton\"\n [locationNr]=\"globalWarehouseLocation\"\n [warehouseNumber]=\"warehouseNumber\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n -->\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"showProcessingLoader\"\n [title]=\"'PROCESS'\"\n (sendIconClicked)=\"handleCommitEvent()\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n </div>\n <div class=\"sub-section\">\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [label]=\"'SELECT_ALL' | localize\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [label]=\"'NO_PACKAGE_STICKERS' | localize\"\n [(model)]=\"colliCheckboxState\"\n (modelChange)=\"handleNoColliStickers($event)\"\n ></co-input-checkbox>\n </div>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [printerList]=\"printerList\"\n [headerTitle]=\"'Printer en lay-out selectie'\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [docSign]=\"false\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n ",
|
|
26828
26835
|
encapsulation: i0.ViewEncapsulation.None
|
|
26829
26836
|
},] }
|
|
26830
26837
|
];
|
|
@@ -27948,6 +27955,14 @@
|
|
|
27948
27955
|
this._subscriptions.push(this.transactionEventService.selectAllPurchaseOrderLinesForReceiveGoods.subscribe(function (value) {
|
|
27949
27956
|
_this.selected = value && _this.showCheckboxForLine;
|
|
27950
27957
|
_this.detectChanges();
|
|
27958
|
+
}), this.transactionEventService.setColliStickerAmount.subscribe(function (value) {
|
|
27959
|
+
if (value) {
|
|
27960
|
+
_this.transactionLine.stickerAmount = 0;
|
|
27961
|
+
}
|
|
27962
|
+
else {
|
|
27963
|
+
_this.calcStickerAmount();
|
|
27964
|
+
}
|
|
27965
|
+
_this.detectChanges();
|
|
27951
27966
|
}), this.transactionEventService.transactionLineChanged.subscribe(function (transLine) {
|
|
27952
27967
|
if (transLine.lineNr === _this.transactionLine.lineNr) {
|
|
27953
27968
|
_this._handleTransactionLineSet(transLine);
|
|
@@ -27962,7 +27977,22 @@
|
|
|
27962
27977
|
if (this.transactionLine.articleLineStatus) {
|
|
27963
27978
|
this.transactionLine.articleLineStatus.quantityToReceive = amount;
|
|
27964
27979
|
}
|
|
27965
|
-
this.
|
|
27980
|
+
this.calcStickerAmount();
|
|
27981
|
+
};
|
|
27982
|
+
TransactionReceiveGoodsLineBaseComponent.prototype.calcStickerAmount = function () {
|
|
27983
|
+
if (this.transactionLine) {
|
|
27984
|
+
var collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
|
|
27985
|
+
var receive = (this.transactionLine.articleLineStatus && this.transactionLine.articleLineStatus.quantityToReceive) ? this.transactionLine.articleLineStatus.quantityToReceive : 1;
|
|
27986
|
+
if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
|
|
27987
|
+
this.transactionLine.stickerAmount = Math.ceil(collie * receive);
|
|
27988
|
+
}
|
|
27989
|
+
else if (this.transactionLine.purchasePackageCode === 'R') {
|
|
27990
|
+
this.transactionLine.stickerAmount = Math.ceil(collie);
|
|
27991
|
+
}
|
|
27992
|
+
else {
|
|
27993
|
+
this.transactionLine.stickerAmount = 0;
|
|
27994
|
+
}
|
|
27995
|
+
}
|
|
27966
27996
|
};
|
|
27967
27997
|
TransactionReceiveGoodsLineBaseComponent.prototype.transactionLineSet = function () {
|
|
27968
27998
|
_super.prototype.transactionLineSet.call(this);
|
|
@@ -27973,7 +28003,8 @@
|
|
|
27973
28003
|
this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
|
|
27974
28004
|
!transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
|
|
27975
28005
|
this.showCheckboxForLine = transLine.articleLineStatus.quantityReceived !== transLine.amount || transLine.articleLineStatus.quantityToReceive > 0;
|
|
27976
|
-
this.transactionLine.
|
|
28006
|
+
this.transactionLine.chosenPackageAmount = transLine.packagesAmountForTransport;
|
|
28007
|
+
this.calcStickerAmount();
|
|
27977
28008
|
this.detectChanges();
|
|
27978
28009
|
};
|
|
27979
28010
|
return TransactionReceiveGoodsLineBaseComponent;
|
|
@@ -27986,6 +28017,7 @@
|
|
|
27986
28017
|
__extends(TransactionReceiveGoodsLineComponent, _super);
|
|
27987
28018
|
function TransactionReceiveGoodsLineComponent() {
|
|
27988
28019
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
28020
|
+
_this.cfgNames = exports.TransactionCfgName;
|
|
27989
28021
|
_this.statusBarConfigNames = {
|
|
27990
28022
|
statusBarIB: _this.cfgNames.StatusBarIB,
|
|
27991
28023
|
statusBarNT: _this.cfgNames.StatusBarNT,
|
|
@@ -27998,12 +28030,23 @@
|
|
|
27998
28030
|
TransactionReceiveGoodsLineComponent.prototype.showClass = function () {
|
|
27999
28031
|
return true;
|
|
28000
28032
|
};
|
|
28033
|
+
TransactionReceiveGoodsLineComponent.prototype.changeNrPackagesNotAllowed = function () {
|
|
28034
|
+
if (!this.transactionLine) {
|
|
28035
|
+
return true;
|
|
28036
|
+
}
|
|
28037
|
+
else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
|
|
28038
|
+
return true;
|
|
28039
|
+
}
|
|
28040
|
+
else {
|
|
28041
|
+
return false;
|
|
28042
|
+
}
|
|
28043
|
+
};
|
|
28001
28044
|
return TransactionReceiveGoodsLineComponent;
|
|
28002
28045
|
}(TransactionReceiveGoodsLineBaseComponent));
|
|
28003
28046
|
TransactionReceiveGoodsLineComponent.decorators = [
|
|
28004
28047
|
{ type: i0.Component, args: [{
|
|
28005
28048
|
selector: "co-transaction-receive-goods-line",
|
|
28006
|
-
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\">\n </co-transaction-line-warehouse-location-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"transactionLine.batchNr\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"this.returnStockMode || readonly\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <
|
|
28049
|
+
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [checkbox]=\"showCheckboxForLine\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLine.selected = $event\"\n >\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-extended-wrapper\">\n <div class=\"column-full align-right\">\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\">\n </co-transaction-line-statusbar>\n <co-transaction-line-warehouse-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button\n class=\"transaction-field-wrapper medium\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\">\n </co-transaction-line-warehouse-location-button>\n <div class=\"transaction-field-wrapper small\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-text\n [model]=\"transactionLine.amount\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_ACCEPTED'\"></co-transaction-line-label>\n <co-input-text\n [leftIconData]=\"iconCacheService.getIcon(icons.RegularCartFlatbedBoxesCircleCheck)\"\n [readonly]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper medium\" *ngIf=\"transactionLine.isBatchNrRequired\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'BATCH_NR'\"></co-transaction-line-label>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"transactionLine.batchNr\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"this.returnStockMode || readonly\"\n [required]=\"true\"\n [customHeight]=\"true\"\n ></co-input-text>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'NUMBER_PACKAGES'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"transactionLine.chosenPackageAmount\"\n [screenConfigurationObject]=\"cfgNames.CollieAmount\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [forceReadonly] = \"readonly || changeNrPackagesNotAllowed() || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"calcStickerAmount()\">\n </co-input-number-picker>\n <!-- [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"-->\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-line-label [insideLabel]=\"'QUANTITY_TO_RECEIVE'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [model]=\"transactionLine.articleLineStatus?.quantityToReceive\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"transactionLine.amount - lineQuantityReceived\"\n [readonly]=\"readonly || lineQuantityReceived === transactionLine.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n </div>\n <div class=\"transaction-field-wrapper\">\n <div class=\"inside-field\">\n <co-transaction-print-package-sticker\n [forceReadonly]=\"true\"\n [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [inputLabel]=\"true\"\n [stickerAmount]=\"transactionLine.stickerAmount\"\n ></co-transaction-print-package-sticker>\n </div>\n </div>\n <co-editable-label\n class=\"transaction-field-wrapper small transaction-line-totals-total price\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n [readonly]=\"true\"\n [editMode]=\"false\"\n [inputLabel]=\"true\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
|
|
28007
28050
|
encapsulation: i0.ViewEncapsulation.None,
|
|
28008
28051
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
28009
28052
|
},] }
|
|
@@ -38869,8 +38912,8 @@
|
|
|
38869
38912
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
38870
38913
|
_this.icons = Icon;
|
|
38871
38914
|
_this.inputLabel = false;
|
|
38872
|
-
|
|
38873
|
-
_this.
|
|
38915
|
+
_this.forceReadonly = false;
|
|
38916
|
+
_this.stickerAmount = 0;
|
|
38874
38917
|
_this.reportDocumentEmailRequest = new reportingDocumentEmailSignDocBaseRequest.ReportingDocumentEmailSignDocBaseRequest();
|
|
38875
38918
|
_this.reportDocumentPrintRequest = new reportingDocumentPrintSignDocBaseRequest.ReportingDocumentPrintSignDocBaseRequest();
|
|
38876
38919
|
_this.reportDocumentPdfRequest = new reportingDocumentPdfBaseRequest.ReportingDocumentPdfBaseRequest();
|
|
@@ -38880,9 +38923,9 @@
|
|
|
38880
38923
|
return true;
|
|
38881
38924
|
};
|
|
38882
38925
|
TransactionPrintPackageStickerComponent.prototype.handleShowDialog = function () {
|
|
38883
|
-
|
|
38884
|
-
|
|
38885
|
-
|
|
38926
|
+
if (this.stickerAmount > 0) {
|
|
38927
|
+
this.showSendMethodDialog = true;
|
|
38928
|
+
}
|
|
38886
38929
|
};
|
|
38887
38930
|
TransactionPrintPackageStickerComponent.prototype.emailDocument = function (request) {
|
|
38888
38931
|
return;
|
|
@@ -38911,7 +38954,7 @@
|
|
|
38911
38954
|
TransactionPrintPackageStickerComponent.decorators = [
|
|
38912
38955
|
{ type: i0.Component, args: [{
|
|
38913
38956
|
selector: "co-transaction-print-package-sticker",
|
|
38914
|
-
template: "\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'STICKER_AMOUNT'\"></co-transaction-line-label>\n <co-input-number-picker\n [hidden]=\"hidden\"\n [
|
|
38957
|
+
template: "\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'STICKER_AMOUNT'\"></co-transaction-line-label>\n <co-input-number-picker\n [hidden]=\"hidden\"\n [model]=\"stickerAmount\"\n [disabled]=\"readonly || forceReadonly\"\n [readonly]=\"readonly || forceReadonly\"\n [min]=\"0\"\n [leftIconData]=\"iconCacheService.getIcon(icons.SharpRegularBarcodeReadTag)\"\n (iconClick)=\"handleShowDialog()\">\n </co-input-number-picker>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [printerList]=\"printerList\"\n [headerTitle]=\"'Printer en lay-out selectie'\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print]\"\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 ",
|
|
38915
38958
|
providers: [{
|
|
38916
38959
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
38917
38960
|
useExisting: i0.forwardRef(function () { return TransactionPrintPackageStickerComponent; })
|
|
@@ -38922,6 +38965,8 @@
|
|
|
38922
38965
|
];
|
|
38923
38966
|
TransactionPrintPackageStickerComponent.propDecorators = {
|
|
38924
38967
|
inputLabel: [{ type: i0.Input }],
|
|
38968
|
+
forceReadonly: [{ type: i0.Input }],
|
|
38969
|
+
stickerAmount: [{ type: i0.Input }],
|
|
38925
38970
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-print-package-sticker",] }]
|
|
38926
38971
|
};
|
|
38927
38972
|
|
|
@@ -40557,6 +40602,7 @@
|
|
|
40557
40602
|
_this.goodsReceiptHistory = [];
|
|
40558
40603
|
_this.returnStockMode = false;
|
|
40559
40604
|
_this.availableStockCollection = [];
|
|
40605
|
+
_this.warehouseLocationButtonDisabled = false;
|
|
40560
40606
|
_this._subs = [];
|
|
40561
40607
|
return _this;
|
|
40562
40608
|
}
|
|
@@ -40663,6 +40709,32 @@
|
|
|
40663
40709
|
this.receiptDetails.batchNr = availableStock.batchNumber;
|
|
40664
40710
|
this.receiptDetails.lineNr = this.transactionLine.lineNr;
|
|
40665
40711
|
};
|
|
40712
|
+
TransactionLinePurchaseReceiveGoodsComponent.prototype.calcStickerAmount = function () {
|
|
40713
|
+
if (this.transactionLine) {
|
|
40714
|
+
var collie = this.transactionLine.chosenPackageAmount ? this.transactionLine.chosenPackageAmount : 1;
|
|
40715
|
+
var receive = this.transactionLine.quantityToReceive ? this.transactionLine.quantityToReceive : 1;
|
|
40716
|
+
if (this.transactionLine.purchasePackageCode === 'B' || this.transactionLine.purchasePackageCode === 'E') {
|
|
40717
|
+
this.transactionLine.stickerAmount = Math.ceil(collie * receive);
|
|
40718
|
+
}
|
|
40719
|
+
else if (this.transactionLine.purchasePackageCode === 'R') {
|
|
40720
|
+
this.transactionLine.stickerAmount = Math.ceil(collie);
|
|
40721
|
+
}
|
|
40722
|
+
else {
|
|
40723
|
+
this.transactionLine.stickerAmount = 0;
|
|
40724
|
+
}
|
|
40725
|
+
}
|
|
40726
|
+
};
|
|
40727
|
+
TransactionLinePurchaseReceiveGoodsComponent.prototype.changeNrPackagesNotAllowed = function () {
|
|
40728
|
+
if (!this.transactionLine) {
|
|
40729
|
+
return true;
|
|
40730
|
+
}
|
|
40731
|
+
else if (this.transactionLine.purchasePackageCode === 'E' || this.transactionLine.purchasePackageCode === 'G') {
|
|
40732
|
+
return true;
|
|
40733
|
+
}
|
|
40734
|
+
else {
|
|
40735
|
+
return false;
|
|
40736
|
+
}
|
|
40737
|
+
};
|
|
40666
40738
|
TransactionLinePurchaseReceiveGoodsComponent.prototype.transactionLineSet = function () {
|
|
40667
40739
|
_super.prototype.transactionLineSet.call(this);
|
|
40668
40740
|
this._handleTransactionLineSet(this.transactionLine);
|
|
@@ -40675,6 +40747,8 @@
|
|
|
40675
40747
|
this.returnStockMode = this.transactionLine.amount < 0;
|
|
40676
40748
|
this.receiptDetails.batchNr = this.transactionLine.batchNr;
|
|
40677
40749
|
this.getGoodsReceiptHistory();
|
|
40750
|
+
this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
|
|
40751
|
+
!transLine.isLocationRequired || transLine.isBatchNrRequired || transLine.isSerialNrRequired || this.transactionService.internalParameterReceiveGoodsWithDataTerminal;
|
|
40678
40752
|
};
|
|
40679
40753
|
TransactionLinePurchaseReceiveGoodsComponent.prototype._getAvailableStock = function () {
|
|
40680
40754
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -40696,7 +40770,7 @@
|
|
|
40696
40770
|
TransactionLinePurchaseReceiveGoodsComponent.decorators = [
|
|
40697
40771
|
{ type: i0.Component, args: [{
|
|
40698
40772
|
selector: 'co-transaction-line-purchase-receive-goods',
|
|
40699
|
-
template: "\n <div class=\"receive-details-wrapper form-and-buttons\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [decimals]=\"2\"\n [min]=\"0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive\"\n [required]=\"true\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"!returnStockMode\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n<!-- dit ding werkt helemaal niet\n <co-transaction-labeled-warehouse-location-button class=\"side-panel-input\" *ngIf=\"transactionLine.isLocationRequired\"\n [readonly]=\"returnStockMode || receiptDetails.quantityToReceive === 0\"\n [warehouseNumber]=\"transactionLine.warehouseNumber\"\n [(locationNr)]=\"transactionLine.locationNr\"\n (locationNrChange)=\"receiptDetails.locationNr = $event\"\n ></co-transaction-labeled-warehouse-location-button>\n-->\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.batchNr\" *ngIf=\"transactionLine.isBatchNrRequired\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.serialNr\" *ngIf=\"transactionLine.isSerialNrRequired\"\n [type]=\"'text'\"\n [maxLength]=\"15\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </co-form>\n <div class=\"save-cancel-wrapper\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n ></co-button>\n <!-- <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\"-->\n <!-- [class.disabled]=\"receiptDetails.quantityToReceive === 0\">-->\n <!-- <span class=\"commit-text\" [textContent]=\"returnStockMode ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>-->\n <!-- </div>-->\n </div>\n </div>\n <co-transaction-receiving-goods-history *ngIf=\"transactionLine.amount >= 0\"\n [goodsReceiptHistory]=\"goodsReceiptHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid *ngIf=\"transactionLine.amount < 0\"\n [collection]=\"availableStockCollection\"\n (selectStock)=\"handleSelectStock($event)\"\n ></co-transaction-available-stock-grid>\n ",
|
|
40773
|
+
template: "\n <div class=\"receive-details-wrapper form-and-buttons\">\n <co-form>\n <!--div class=\"header-wrapper\">\n <div class=\"status-header\">\n <span [textContent]=\"'STATE' | localize\"></span>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"transactionTypeCategory.PurchaseOrderReceivedGoods\"></co-transaction-line-statusbar>\n </div>\n </div-->\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\"[label]=\"'QUANTITY_TO_RECEIVE' | localize\" [showPermanentLabel]=\"true\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\" [screenConfigurationObject]=\"cfgNames.LineQuantityToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [decimals]=\"2\"\n [min]=\"0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive\"\n [required]=\"true\"\n (modelChange)=\"calcStickerAmount()\"\n ></co-input-number-picker>\n <co-input-number-picker class=\"side-panel-input\" [label]=\"'NUMBER_PACKAGES' | localize\" [showPermanentLabel]=\"true\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\" [screenConfigurationObject]=\"cfgNames.CollieAmount\"\n [(model)]=\"transactionLine.chosenPackageAmount\"\n [decimals]=\"2\"\n [min]=\"0\"\n [forceReadonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly || changeNrPackagesNotAllowed()\"\n [required]=\"true\"\n (modelChange)=\"calcStickerAmount()\"\n ></co-input-number-picker>\n <co-input-number-picker class=\"side-panel-input\" [label]=\"'STICKER_AMOUNT' | localize\" [showPermanentLabel]=\"true\"\n [max]=\"returnStockMode ? returnMaxToReceive : lineQuantityToReceive\" [screenConfigurationObject]=\"cfgNames.StickerAmount\"\n [(model)]=\"transactionLine.stickerAmount\"\n [decimals]=\"2\"\n [min]=\"0\"\n [readonly]=\"true\"\n [disabled]=\"true\"\n [required]=\"true\"\n ></co-input-number-picker>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'RECEIVED_DATE' | localize\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text class=\"side-panel-input\"\n *ngIf=\"!returnStockMode\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-warehouse-button class=\"warehouse-buttons\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [inputLabel]=\"true\" [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button class=\"warehouse-buttons\"\n [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n [readonly]=\"warehouseLocationButtonDisabled\"\n [inputLabel]=\"true\" [screenConfigurationObject]=\"cfgNames.LineWarehouseLocationReceived\"\n ></co-transaction-line-warehouse-location-button>\n </div>\n<!-- dit ding werkt helemaal niet\n <co-transaction-labeled-warehouse-location-button class=\"side-panel-input\" *ngIf=\"transactionLine.isLocationRequired\"\n [readonly]=\"returnStockMode || receiptDetails.quantityToReceive === 0\"\n [warehouseNumber]=\"transactionLine.warehouseNumber\"\n [(locationNr)]=\"transactionLine.locationNr\"\n (locationNrChange)=\"receiptDetails.locationNr = $event\"\n ></co-transaction-labeled-warehouse-location-button>\n-->\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.batchNr\" *ngIf=\"transactionLine.isBatchNrRequired\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [(model)]=\"receiptDetails.serialNr\" *ngIf=\"transactionLine.isSerialNrRequired\"\n [type]=\"'text'\"\n [maxLength]=\"15\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode\"\n [disabled]=\"returnStockMode\"\n [required]=\"true\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </co-form>\n <div class=\"save-cancel-wrapper\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || !receiptDetails.quantityToReceive || readonly\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n ></co-button>\n <!-- <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\"-->\n <!-- [class.disabled]=\"receiptDetails.quantityToReceive === 0\">-->\n <!-- <span class=\"commit-text\" [textContent]=\"returnStockMode ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>-->\n <!-- </div>-->\n </div>\n </div>\n <co-transaction-receiving-goods-history *ngIf=\"transactionLine.amount >= 0\"\n [goodsReceiptHistory]=\"goodsReceiptHistory\"\n (deleteRow)=\"handleDeleteSelectedRow($event)\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid *ngIf=\"transactionLine.amount < 0\"\n [collection]=\"availableStockCollection\"\n (selectStock)=\"handleSelectStock($event)\"\n ></co-transaction-available-stock-grid>\n ",
|
|
40700
40774
|
providers: [
|
|
40701
40775
|
corecomponents_v12.FormMasterService
|
|
40702
40776
|
],
|
|
@@ -40825,7 +40899,11 @@
|
|
|
40825
40899
|
TransactionReceivingGoodsHistoryModule,
|
|
40826
40900
|
TransactionAvailableStockGridModule,
|
|
40827
40901
|
corecomponents_v12.ButtonModule,
|
|
40828
|
-
TransactionLabeledWarehouseLocationButtonModule
|
|
40902
|
+
TransactionLabeledWarehouseLocationButtonModule,
|
|
40903
|
+
TransactionLineLabelModule,
|
|
40904
|
+
corecomponents_v12.ScreenConfigurationModule,
|
|
40905
|
+
TransactionLineWarehouseButtonModule,
|
|
40906
|
+
TransactionPrintPackageStickerModule
|
|
40829
40907
|
],
|
|
40830
40908
|
declarations: [
|
|
40831
40909
|
TransactionLinePurchaseReceiveGoodsComponent
|
|
@@ -53808,7 +53886,7 @@
|
|
|
53808
53886
|
};
|
|
53809
53887
|
TransactionHeaderPopupPaymentComponent.prototype.showInvoiceSelection = function () {
|
|
53810
53888
|
var _this = this;
|
|
53811
|
-
return this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount
|
|
53889
|
+
return this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount !== 0; }).length > 1;
|
|
53812
53890
|
};
|
|
53813
53891
|
TransactionHeaderPopupPaymentComponent.prototype.handleSelectInvoiceLines = function (paymentInfo) {
|
|
53814
53892
|
this.orderPaymentAnalysis.forEach(function (invoice) { return invoice.isSelected = false; });
|
|
@@ -53904,7 +53982,7 @@
|
|
|
53904
53982
|
TransactionHeaderPopupPaymentComponent.decorators = [
|
|
53905
53983
|
{ type: i0.Component, args: [{
|
|
53906
53984
|
selector: 'co-transaction-header-popup-payment',
|
|
53907
|
-
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 ",
|
|
53985
|
+
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 ",
|
|
53908
53986
|
encapsulation: i0.ViewEncapsulation.None
|
|
53909
53987
|
},] }
|
|
53910
53988
|
];
|