@colijnit/transaction 12.1.199 → 12.1.200
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 +121 -121
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +5 -6
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-planning/component/transaction-quick-access-planning-popup/transaction-quick-access-planning-popup.component.js +10 -10
- package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
- package/esm2015/lib/service/transaction-connector.service.js +1 -1
- package/esm2015/lib/service/transaction-mapping.service.js +3 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +190 -190
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -1
- package/lib/service/transaction-connector.service.d.ts +1 -1
- 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.200";
|
|
36
|
+
this.publishDate = "29-3-2024 12:09:59";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -7410,7 +7410,7 @@
|
|
|
7410
7410
|
case 1:
|
|
7411
7411
|
response = _a.sent();
|
|
7412
7412
|
if (response && response.validationResult && response.validationResult.success) {
|
|
7413
|
-
return [2 /*return*/, this._boFactory.
|
|
7413
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
7414
7414
|
}
|
|
7415
7415
|
else {
|
|
7416
7416
|
this._handleExceptionFromResponse(response);
|
|
@@ -23687,6 +23687,98 @@
|
|
|
23687
23687
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-lines-side-panel-cash-desk',] }]
|
|
23688
23688
|
};
|
|
23689
23689
|
|
|
23690
|
+
var TransactionPlanningLineComponent = /** @class */ (function (_super) {
|
|
23691
|
+
__extends(TransactionPlanningLineComponent, _super);
|
|
23692
|
+
function TransactionPlanningLineComponent(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
23693
|
+
var _this = _super.call(this, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector) || this;
|
|
23694
|
+
_this.transactionEventService = transactionEventService;
|
|
23695
|
+
_this.iconCacheService = iconCacheService;
|
|
23696
|
+
_this.screenConfigService = screenConfigService;
|
|
23697
|
+
_this.orderLineSetService = orderLineSetService;
|
|
23698
|
+
_this.imageService = imageService;
|
|
23699
|
+
_this.dictionaryService = dictionaryService;
|
|
23700
|
+
_this.transactionService = transactionService;
|
|
23701
|
+
_this.changeDetector = changeDetector;
|
|
23702
|
+
_this.category = TransactionTypeCategory;
|
|
23703
|
+
_this.selectedLines = [];
|
|
23704
|
+
_this.descriptionDblClick = new i0.EventEmitter();
|
|
23705
|
+
_this.stock = stockStatus_enum.StockStatus.Low;
|
|
23706
|
+
_this.mouseOver = false;
|
|
23707
|
+
_this.readonly = false;
|
|
23708
|
+
_this.statusBarConfigNames = {
|
|
23709
|
+
statusBarBT: _this.cfgNames.StatusBarBT,
|
|
23710
|
+
statusBarTG: _this.cfgNames.StatusBarTG,
|
|
23711
|
+
statusBarPA: _this.cfgNames.StatusBarPA,
|
|
23712
|
+
statusBarPV: _this.cfgNames.StatusBarPV,
|
|
23713
|
+
statusBarTP: _this.cfgNames.StatusBarTP,
|
|
23714
|
+
statusBarGT: _this.cfgNames.StatusBarGT,
|
|
23715
|
+
statusBarGP: _this.cfgNames.StatusBarGP,
|
|
23716
|
+
statusBarGL: _this.cfgNames.StatusBarGL,
|
|
23717
|
+
statusBarGF: _this.cfgNames.StatusBarGF
|
|
23718
|
+
};
|
|
23719
|
+
_this.discountConfigNames = {
|
|
23720
|
+
linePriceList: _this.cfgNames.LinePriceList,
|
|
23721
|
+
lineDiscountAmount: _this.cfgNames.LineDiscountAmount,
|
|
23722
|
+
lineDiscountPercentage: _this.cfgNames.LineDiscountPercentage,
|
|
23723
|
+
lineDiscountSpecial: _this.cfgNames.LineDiscountSpecial,
|
|
23724
|
+
lineDiscountQuantum: _this.cfgNames.LineDiscountQuantum
|
|
23725
|
+
};
|
|
23726
|
+
return _this;
|
|
23727
|
+
}
|
|
23728
|
+
TransactionPlanningLineComponent.prototype.showClass = function () {
|
|
23729
|
+
return true;
|
|
23730
|
+
};
|
|
23731
|
+
TransactionPlanningLineComponent.prototype.handleMouseOver = function (event) {
|
|
23732
|
+
this.mouseOver = true;
|
|
23733
|
+
};
|
|
23734
|
+
TransactionPlanningLineComponent.prototype.handleMouseLeave = function (event) {
|
|
23735
|
+
this.mouseOver = false;
|
|
23736
|
+
};
|
|
23737
|
+
TransactionPlanningLineComponent.prototype.handleCheckBoxValueChanged = function (value, line) {
|
|
23738
|
+
this.transactionLine.selected = value;
|
|
23739
|
+
};
|
|
23740
|
+
TransactionPlanningLineComponent.prototype.handleLineClicked = function (mouseClick) {
|
|
23741
|
+
if (this.transactionLine && this.transactionLine.commissionCode !== "1") {
|
|
23742
|
+
return;
|
|
23743
|
+
}
|
|
23744
|
+
var target = mouseClick.target;
|
|
23745
|
+
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
23746
|
+
this.transactionEventService.openSidePanel.next(this.transactionLine);
|
|
23747
|
+
}
|
|
23748
|
+
};
|
|
23749
|
+
TransactionPlanningLineComponent.prototype.onDescriptionDblClick = function () {
|
|
23750
|
+
this.descriptionDblClick.emit();
|
|
23751
|
+
};
|
|
23752
|
+
TransactionPlanningLineComponent.prototype.dragStarted = function (ev, line) {
|
|
23753
|
+
ev.dataTransfer.setData("text", "line");
|
|
23754
|
+
};
|
|
23755
|
+
return TransactionPlanningLineComponent;
|
|
23756
|
+
}(TransactionBaseComponent));
|
|
23757
|
+
TransactionPlanningLineComponent.decorators = [
|
|
23758
|
+
{ type: i0.Component, args: [{
|
|
23759
|
+
selector: "co-planning-overview-line",
|
|
23760
|
+
template: "\n <co-transaction-base-line\n [draggable]=\"true\"\n (dragstart)=\"dragStarted($event, transactionLine)\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
|
|
23761
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
23762
|
+
},] }
|
|
23763
|
+
];
|
|
23764
|
+
TransactionPlanningLineComponent.ctorParameters = function () { return [
|
|
23765
|
+
{ type: TransactionEventService },
|
|
23766
|
+
{ type: IconCacheService },
|
|
23767
|
+
{ type: TransactionScreenConfigurationService },
|
|
23768
|
+
{ type: OrderLineSetService },
|
|
23769
|
+
{ type: TransactionImageService },
|
|
23770
|
+
{ type: DictionaryService },
|
|
23771
|
+
{ type: TransactionService },
|
|
23772
|
+
{ type: i0.ChangeDetectorRef }
|
|
23773
|
+
]; };
|
|
23774
|
+
TransactionPlanningLineComponent.propDecorators = {
|
|
23775
|
+
transactionLineActionButtons: [{ type: i0.ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
23776
|
+
descriptionDblClick: [{ type: i0.Output }],
|
|
23777
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-overview-line",] }],
|
|
23778
|
+
handleMouseOver: [{ type: i0.HostListener, args: ["mouseover", ["$event"],] }],
|
|
23779
|
+
handleMouseLeave: [{ type: i0.HostListener, args: ["mouseleave", ["$event"],] }]
|
|
23780
|
+
};
|
|
23781
|
+
|
|
23690
23782
|
var TransactionQuickAccessPlanningComponent = /** @class */ (function (_super) {
|
|
23691
23783
|
__extends(TransactionQuickAccessPlanningComponent, _super);
|
|
23692
23784
|
function TransactionQuickAccessPlanningComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _purchaseConfirmationService, _connector, _transactionService) {
|
|
@@ -23908,6 +24000,7 @@
|
|
|
23908
24000
|
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionInvoiceLineComponent],
|
|
23909
24001
|
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPicked }, TransactionPickedLineComponent],
|
|
23910
24002
|
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderToBePicked }, TransactionToBePickedLineComponent],
|
|
24003
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPlanning }, TransactionPlanningLineComponent],
|
|
23911
24004
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionPurchaseOverviewLineComponent],
|
|
23912
24005
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
|
|
23913
24006
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
|
|
@@ -27129,98 +27222,6 @@
|
|
|
27129
27222
|
},] }
|
|
27130
27223
|
];
|
|
27131
27224
|
|
|
27132
|
-
var TransactionPlanningLineComponent = /** @class */ (function (_super) {
|
|
27133
|
-
__extends(TransactionPlanningLineComponent, _super);
|
|
27134
|
-
function TransactionPlanningLineComponent(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
27135
|
-
var _this = _super.call(this, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector) || this;
|
|
27136
|
-
_this.transactionEventService = transactionEventService;
|
|
27137
|
-
_this.iconCacheService = iconCacheService;
|
|
27138
|
-
_this.screenConfigService = screenConfigService;
|
|
27139
|
-
_this.orderLineSetService = orderLineSetService;
|
|
27140
|
-
_this.imageService = imageService;
|
|
27141
|
-
_this.dictionaryService = dictionaryService;
|
|
27142
|
-
_this.transactionService = transactionService;
|
|
27143
|
-
_this.changeDetector = changeDetector;
|
|
27144
|
-
_this.category = TransactionTypeCategory;
|
|
27145
|
-
_this.selectedLines = [];
|
|
27146
|
-
_this.descriptionDblClick = new i0.EventEmitter();
|
|
27147
|
-
_this.stock = stockStatus_enum.StockStatus.Low;
|
|
27148
|
-
_this.mouseOver = false;
|
|
27149
|
-
_this.readonly = false;
|
|
27150
|
-
_this.statusBarConfigNames = {
|
|
27151
|
-
statusBarBT: _this.cfgNames.StatusBarBT,
|
|
27152
|
-
statusBarTG: _this.cfgNames.StatusBarTG,
|
|
27153
|
-
statusBarPA: _this.cfgNames.StatusBarPA,
|
|
27154
|
-
statusBarPV: _this.cfgNames.StatusBarPV,
|
|
27155
|
-
statusBarTP: _this.cfgNames.StatusBarTP,
|
|
27156
|
-
statusBarGT: _this.cfgNames.StatusBarGT,
|
|
27157
|
-
statusBarGP: _this.cfgNames.StatusBarGP,
|
|
27158
|
-
statusBarGL: _this.cfgNames.StatusBarGL,
|
|
27159
|
-
statusBarGF: _this.cfgNames.StatusBarGF
|
|
27160
|
-
};
|
|
27161
|
-
_this.discountConfigNames = {
|
|
27162
|
-
linePriceList: _this.cfgNames.LinePriceList,
|
|
27163
|
-
lineDiscountAmount: _this.cfgNames.LineDiscountAmount,
|
|
27164
|
-
lineDiscountPercentage: _this.cfgNames.LineDiscountPercentage,
|
|
27165
|
-
lineDiscountSpecial: _this.cfgNames.LineDiscountSpecial,
|
|
27166
|
-
lineDiscountQuantum: _this.cfgNames.LineDiscountQuantum
|
|
27167
|
-
};
|
|
27168
|
-
return _this;
|
|
27169
|
-
}
|
|
27170
|
-
TransactionPlanningLineComponent.prototype.showClass = function () {
|
|
27171
|
-
return true;
|
|
27172
|
-
};
|
|
27173
|
-
TransactionPlanningLineComponent.prototype.handleMouseOver = function (event) {
|
|
27174
|
-
this.mouseOver = true;
|
|
27175
|
-
};
|
|
27176
|
-
TransactionPlanningLineComponent.prototype.handleMouseLeave = function (event) {
|
|
27177
|
-
this.mouseOver = false;
|
|
27178
|
-
};
|
|
27179
|
-
TransactionPlanningLineComponent.prototype.handleCheckBoxValueChanged = function (value, line) {
|
|
27180
|
-
this.transactionLine.selected = value;
|
|
27181
|
-
};
|
|
27182
|
-
TransactionPlanningLineComponent.prototype.handleLineClicked = function (mouseClick) {
|
|
27183
|
-
if (this.transactionLine && this.transactionLine.commissionCode !== "1") {
|
|
27184
|
-
return;
|
|
27185
|
-
}
|
|
27186
|
-
var target = mouseClick.target;
|
|
27187
|
-
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
27188
|
-
this.transactionEventService.openSidePanel.next(this.transactionLine);
|
|
27189
|
-
}
|
|
27190
|
-
};
|
|
27191
|
-
TransactionPlanningLineComponent.prototype.onDescriptionDblClick = function () {
|
|
27192
|
-
this.descriptionDblClick.emit();
|
|
27193
|
-
};
|
|
27194
|
-
TransactionPlanningLineComponent.prototype.dragStarted = function (ev, line) {
|
|
27195
|
-
ev.dataTransfer.setData("text", "line");
|
|
27196
|
-
};
|
|
27197
|
-
return TransactionPlanningLineComponent;
|
|
27198
|
-
}(TransactionBaseComponent));
|
|
27199
|
-
TransactionPlanningLineComponent.decorators = [
|
|
27200
|
-
{ type: i0.Component, args: [{
|
|
27201
|
-
selector: "co-planning-overview-line",
|
|
27202
|
-
template: "\n <co-transaction-base-line\n [draggable]=\"true\"\n (dragstart)=\"dragStarted($event, transactionLine)\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderOverview\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
|
|
27203
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
27204
|
-
},] }
|
|
27205
|
-
];
|
|
27206
|
-
TransactionPlanningLineComponent.ctorParameters = function () { return [
|
|
27207
|
-
{ type: TransactionEventService },
|
|
27208
|
-
{ type: IconCacheService },
|
|
27209
|
-
{ type: TransactionScreenConfigurationService },
|
|
27210
|
-
{ type: OrderLineSetService },
|
|
27211
|
-
{ type: TransactionImageService },
|
|
27212
|
-
{ type: DictionaryService },
|
|
27213
|
-
{ type: TransactionService },
|
|
27214
|
-
{ type: i0.ChangeDetectorRef }
|
|
27215
|
-
]; };
|
|
27216
|
-
TransactionPlanningLineComponent.propDecorators = {
|
|
27217
|
-
transactionLineActionButtons: [{ type: i0.ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
27218
|
-
descriptionDblClick: [{ type: i0.Output }],
|
|
27219
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-overview-line",] }],
|
|
27220
|
-
handleMouseOver: [{ type: i0.HostListener, args: ["mouseover", ["$event"],] }],
|
|
27221
|
-
handleMouseLeave: [{ type: i0.HostListener, args: ["mouseleave", ["$event"],] }]
|
|
27222
|
-
};
|
|
27223
|
-
|
|
27224
27225
|
var TransactionPlanningLineModule = /** @class */ (function () {
|
|
27225
27226
|
function TransactionPlanningLineModule() {
|
|
27226
27227
|
}
|
|
@@ -35216,13 +35217,12 @@
|
|
|
35216
35217
|
this._subs = [];
|
|
35217
35218
|
this._transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
35218
35219
|
this._subs.push(this.service.transactionUpdated.subscribe(function (transaction) {
|
|
35219
|
-
var _a;
|
|
35220
35220
|
if (transaction) {
|
|
35221
35221
|
_this.shouldShowSidePanel = false;
|
|
35222
35222
|
_this._transaction = transaction;
|
|
35223
|
-
if
|
|
35224
|
-
|
|
35225
|
-
}
|
|
35223
|
+
// if(transaction.transactionInfo?.id) {
|
|
35224
|
+
// this.getTransactionMarginInfo(transaction?.transactionInfo.id);
|
|
35225
|
+
// }
|
|
35226
35226
|
_this.updateTransactionLine();
|
|
35227
35227
|
}
|
|
35228
35228
|
}), this.service.relationUpdated.subscribe(function (relation) {
|
|
@@ -35321,18 +35321,18 @@
|
|
|
35321
35321
|
};
|
|
35322
35322
|
TransactionInternalComponent.prototype.saveTransactionLineText = function (data) {
|
|
35323
35323
|
return __awaiter(this, void 0, void 0, function () {
|
|
35324
|
-
return __generator(this, function (
|
|
35325
|
-
switch (
|
|
35324
|
+
return __generator(this, function (_a) {
|
|
35325
|
+
switch (_a.label) {
|
|
35326
35326
|
case 0:
|
|
35327
35327
|
if (!!data.new) return [3 /*break*/, 2];
|
|
35328
35328
|
return [4 /*yield*/, this.service.updateTextLine(data.request.transactionUuid, this.transactionLine.uuid, data.request.showOnDocuments, data.request.text)];
|
|
35329
35329
|
case 1:
|
|
35330
|
-
|
|
35330
|
+
_a.sent();
|
|
35331
35331
|
return [3 /*break*/, 4];
|
|
35332
35332
|
case 2: return [4 /*yield*/, this.service.addTextLine(data.request.showOnDocuments, data.request.text, 0, data.request.articleBound, 0, 0, 0)];
|
|
35333
35333
|
case 3:
|
|
35334
|
-
|
|
35335
|
-
|
|
35334
|
+
_a.sent();
|
|
35335
|
+
_a.label = 4;
|
|
35336
35336
|
case 4:
|
|
35337
35337
|
this._hideTransactionTextDialog();
|
|
35338
35338
|
return [2 /*return*/];
|
|
@@ -35343,16 +35343,16 @@
|
|
|
35343
35343
|
TransactionInternalComponent.prototype.saveOrderLineSet = function (data) {
|
|
35344
35344
|
return __awaiter(this, void 0, void 0, function () {
|
|
35345
35345
|
var newRequest;
|
|
35346
|
-
return __generator(this, function (
|
|
35347
|
-
switch (
|
|
35346
|
+
return __generator(this, function (_a) {
|
|
35347
|
+
switch (_a.label) {
|
|
35348
35348
|
case 0:
|
|
35349
35349
|
if (!!data.new) return [3 /*break*/, 3];
|
|
35350
35350
|
return [4 /*yield*/, this.service.updateOrderLineSet(data.request)];
|
|
35351
35351
|
case 1:
|
|
35352
|
-
|
|
35352
|
+
_a.sent();
|
|
35353
35353
|
return [4 /*yield*/, this.service.updateTextLine(data.request.transactionUuid, this.transactionLine.uuid, data.request.showOnDocuments, data.request.text)];
|
|
35354
35354
|
case 2:
|
|
35355
|
-
|
|
35355
|
+
_a.sent();
|
|
35356
35356
|
return [3 /*break*/, 5];
|
|
35357
35357
|
case 3:
|
|
35358
35358
|
newRequest = new transactionAddOrderLineSetTextLineRequest.TransactionAddOrderLineSetTextLineRequest();
|
|
@@ -35365,8 +35365,8 @@
|
|
|
35365
35365
|
newRequest.text = data.request.title;
|
|
35366
35366
|
return [4 /*yield*/, this.service.addOrderLineSet(newRequest)];
|
|
35367
35367
|
case 4:
|
|
35368
|
-
|
|
35369
|
-
|
|
35368
|
+
_a.sent();
|
|
35369
|
+
_a.label = 5;
|
|
35370
35370
|
case 5:
|
|
35371
35371
|
this._hideTransactionTextDialog();
|
|
35372
35372
|
return [2 /*return*/];
|
|
@@ -35376,18 +35376,18 @@
|
|
|
35376
35376
|
};
|
|
35377
35377
|
TransactionInternalComponent.prototype.saveArticleLineText = function (data) {
|
|
35378
35378
|
return __awaiter(this, void 0, void 0, function () {
|
|
35379
|
-
return __generator(this, function (
|
|
35380
|
-
switch (
|
|
35379
|
+
return __generator(this, function (_a) {
|
|
35380
|
+
switch (_a.label) {
|
|
35381
35381
|
case 0:
|
|
35382
35382
|
if (!!data.new) return [3 /*break*/, 2];
|
|
35383
35383
|
return [4 /*yield*/, this.service.updateTextLine(data.request.transactionUuid, this.transactionLine.uuid, data.request.showOnDocuments, data.request.text)];
|
|
35384
35384
|
case 1:
|
|
35385
|
-
|
|
35385
|
+
_a.sent();
|
|
35386
35386
|
return [3 /*break*/, 4];
|
|
35387
35387
|
case 2: return [4 /*yield*/, this.service.addTextLine(data.request.showOnDocuments, data.request.text, 0, true, data.request.refArticleLineNr)];
|
|
35388
35388
|
case 3:
|
|
35389
|
-
|
|
35390
|
-
|
|
35389
|
+
_a.sent();
|
|
35390
|
+
_a.label = 4;
|
|
35391
35391
|
case 4:
|
|
35392
35392
|
this._hideArticleTextDialog();
|
|
35393
35393
|
return [2 /*return*/];
|
|
@@ -35510,7 +35510,7 @@
|
|
|
35510
35510
|
TransactionInternalComponent.decorators = [
|
|
35511
35511
|
{ type: i0.Component, args: [{
|
|
35512
35512
|
selector: 'co-transaction-internal',
|
|
35513
|
-
template: "\n <ng-container *ngIf=\"loaded\">\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"\n (relationChange)=\"handleRelationChange($event)\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n <div class=\"transaction-lines-header-item right\">\n <co-avatar class=\"transaction-sales-avatar\" [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\" screenConfigNativeElement></co-avatar>\n <co-avatar class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\" screenConfigNativeElement></co-avatar>\n <co-view-mode-buttons *ngIf=\"!shouldShowTiles()
|
|
35513
|
+
template: "\n <ng-container *ngIf=\"loaded\">\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"\n (relationChange)=\"handleRelationChange($event)\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [relation]=\"relation\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n <div class=\"transaction-lines-header-item right\">\n <co-avatar class=\"transaction-sales-avatar\" [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\" screenConfigNativeElement></co-avatar>\n <co-avatar class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\" screenConfigNativeElement></co-avatar>\n <co-view-mode-buttons *ngIf=\"!shouldShowTiles() && showViewModeButtons\" [showViewModes]=\"[viewModes.List, viewModes.Tiles]\"\n (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n </div>\n\n <div class=\"transaction-lines-content-wrapper\">\n <!--<co-transaction-document-button-bar [transaction]=\"transaction\"></co-transaction-document-button-bar>-->\n <div class=\"transaction-lines-content\">\n <div *ngIf=\"activeCategory === category.ServiceOrderService\">\n <co-transaction-service-overview\n [transaction]=\"transaction\"\n ></co-transaction-service-overview>\n </div>\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles || shouldShowTiles()\">\n <co-transaction-cards\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-cards>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"(activeViewMode === viewModes.List && !shouldShowTiles()) && activeCategory !== category.ServiceOrderService\">\n <co-transaction-lines\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <div class=\"transaction-footer-left\">\n <co-add-product\n *ngIf=\"activeCategory === categories.SalesOrderCashRegister || activeCategory === categories.SalesOrderOverview || activeCategory === categories.PurchaseOrderOverview || activeCategory === categories.SalesOrderQuotation\">\n </co-add-product>\n <co-transaction-button class=\"custom-width text-rule\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionText()\">\n </co-transaction-button>\n </div>\n <div class=\"transaction-footer-center\">\n <co-transaction-margin *ngIf=\"activeCategory === categories.SalesOrderDeliveryNote\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionMarginInfo]=\"transactionMarginInfo\"\n ></co-transaction-margin>\n </div>\n <co-transaction-totals *ngIf=\"activeCategory !== category.ServiceOrderService\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\"\n ></co-transaction-totals>\n </div>\n </div>\n <co-transaction-lines-side-panel\n *ngIf=\"transaction && ((transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced()) ||\n transaction.transactionInfo.transactionKind === transactionKind.ServiceOrder)\"\n [class.higher-max-width]=\"transaction.transactionInfo.transactionKind === transactionKind.ServiceOrder\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\"\n ></co-transaction-lines-side-panel>\n\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\"\n [transaction]=\"transaction\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"sidePanelTransactionLine\"\n [activeCategory]=\"activeCategory\"\n (cancelClick)=\"showSidePanel = false\"\n ></co-transaction-line-side-panel>\n\n <!--Popup voor wijzigen volgorde van tekstregels-->\n <co-transaction-article-text-overview *ngIf=\"showArticleTextOverview\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeClick)=\"closeArticleTextOverview()\"\n (cancelClick)=\"closeArticleTextOverview()\"\n ></co-transaction-article-text-overview>\n\n <!--Popup voor aanmaken en updaten transactietekstregels-->\n <co-transaction-article-text *ngIf=\"showTransactionText\"\n [header]=\"'ORDER_TEXT_LINE' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [editText]=\"textToEdit\"\n [orderLineSetDTO]=\"selectedOrderLineSetDTO\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionLineText($event)\"\n (closeClick)=\"closeTransactionText()\"\n (cancelClick)=\"closeTransactionText()\"\n (saveOrderLineSetClick)=\"saveOrderLineSet($event)\"\n\n ></co-transaction-article-text>\n\n <!--Popup voor aanmaken en updaten artikeltekstregels-->\n <co-transaction-article-text *ngIf=\"showArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [showArticleImageDescription]=\"transactionLine.articleBound\"\n [showImage]=\"false\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveArticleLineText($event)\"\n (closeClick)=\"closeArticleText()\"\n (cancelClick)=\"closeArticleText()\"\n ></co-transaction-article-text>\n\n <co-transaction-copy-order *ngIf=\"showCopyOrderDialog\"\n [transaction]=\"transaction\"\n (closeDialog)=\"showCopyOrderDialog = false\"\n ></co-transaction-copy-order>\n </div>\n </ng-container>\n ",
|
|
35514
35514
|
providers: [{
|
|
35515
35515
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
35516
35516
|
useExisting: i0.forwardRef(function () { return TransactionInternalComponent; })
|
|
@@ -42138,7 +42138,7 @@
|
|
|
42138
42138
|
};
|
|
42139
42139
|
TransactionQuickAccessPlanningPopupComponent.prototype.ngOnInit = function () {
|
|
42140
42140
|
if (this.deliveryMethods.length) {
|
|
42141
|
-
this.selectedDeliveryMethod = this.deliveryMethods[
|
|
42141
|
+
this.selectedDeliveryMethod = this.deliveryMethods[0];
|
|
42142
42142
|
}
|
|
42143
42143
|
};
|
|
42144
42144
|
Object.defineProperty(TransactionQuickAccessPlanningPopupComponent.prototype, "transactionInfo", {
|
|
@@ -42174,11 +42174,11 @@
|
|
|
42174
42174
|
request.lines.push(lspLine);
|
|
42175
42175
|
});
|
|
42176
42176
|
this._transaction.sendPackageInformationToLSP(request).then(function (result) {
|
|
42177
|
-
|
|
42177
|
+
_this._transactionService.rememberCurrentTransaction(result).then(function (result) {
|
|
42178
42178
|
_this._transaction.getPackageInformation(_this.transactionInfo.transactionInfo.uuid, _this.selectedLines[0].uuid).then(function (result) {
|
|
42179
|
-
_this.packageLSP = result;
|
|
42179
|
+
_this.packageLSP = result ? result : undefined;
|
|
42180
42180
|
});
|
|
42181
|
-
}
|
|
42181
|
+
});
|
|
42182
42182
|
});
|
|
42183
42183
|
};
|
|
42184
42184
|
TransactionQuickAccessPlanningPopupComponent.prototype.openTrackAndTraceURL = function (packageLsp) {
|
|
@@ -42192,7 +42192,7 @@
|
|
|
42192
42192
|
TransactionQuickAccessPlanningPopupComponent.decorators = [
|
|
42193
42193
|
{ type: i0.Component, args: [{
|
|
42194
42194
|
selector: "co-transaction-quick-access-planning-popup",
|
|
42195
|
-
template: "\n <div class=\"wrapper\">\n <div class=\"delivery-method-wrapper\" *ngIf=\"!packageLSP\">\n <span [textContent]=\"'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize\"></span>\n <div class=\"methods-wrapper narrow-scrollbar\">\n <div class=\"method\" [class.selected]=\"selectedDeliveryMethod === method\"\n (click)=\"deliveryMethodChange(method)\"\n *ngFor=\"let method of deliveryMethods\">\n <div class=\"radio-wrapper\">\n <co-input-radio-button (click)=\"deliveryMethodChange(method)\" [model]=\"selectedDeliveryMethod === method\"\n ></co-input-radio-button>\n </div>\n <div class=\"body-wrapper\">\n <co-image\n [source]=\"method.image?.documentBody\"></co-image>\n <span class=\"body-text\" [textContent]=\"method.description\"></span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"header-info-wrapper\">\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'LINES_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"
|
|
42195
|
+
template: "\n <div class=\"wrapper\">\n <div class=\"delivery-method-wrapper\" *ngIf=\"!packageLSP\">\n <span [textContent]=\"'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize\"></span>\n <div class=\"methods-wrapper narrow-scrollbar\">\n <div class=\"method\" [class.selected]=\"selectedDeliveryMethod === method\"\n (click)=\"deliveryMethodChange(method)\"\n *ngFor=\"let method of deliveryMethods\">\n <div class=\"radio-wrapper\">\n <co-input-radio-button (click)=\"deliveryMethodChange(method)\" [model]=\"selectedDeliveryMethod === method\"\n ></co-input-radio-button>\n </div>\n <div class=\"body-wrapper\">\n <co-image\n [source]=\"method.image?.documentBody\"></co-image>\n <span class=\"body-text\" [textContent]=\"method.description\"></span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"header-info-wrapper\" *ngFor=\"let lsp of packageLSP\">\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'LINES_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"lsp.lineCount\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'ARTICLE_AMOUNT' | localize\"></span>\n <span class=\"text\" [textContent]=\"lsp.productCount\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'TOTAL_WEIGHT' | localize\"></span>\n <span class=\"text\" [textContent]=\"lsp.totalWeight + ' kg'\"></span>\n </div>\n\n <div class=\"block\">\n <span class=\"header\" [textContent]=\"'PACKAGE_CODE2' | localize\"></span>\n <span class=\"text\" [textContent]=\"'?'\"></span>\n </div>\n </div>\n\n <div class=\"send-button-wrapper\" *ngIf=\"!packageLSP\">\n <co-button (click)=\"createTrackAndTrace()\" [label]=\"'SEND' | localize\"></co-button>\n </div>\n\n <div class=\"track-and-trace-wrapper\" *ngIf=\"packageLSP\">\n <span class=\"track-and-trace-header\" [textContent]=\"'INFORMATION_LOGISTIC_SERVICE_PROVIDER' | localize\"></span>\n <div class=\"track-and-trace-body-wrapper\" *ngFor=\"let packageLsp of packageLSP\">\n <div class=\"code-wrapper\">\n <span [textContent]=\"'TRACK_AND_TRACE' | localize\"></span>\n <span [textContent]=\"packageLsp ? packageLsp.trackAndTraceCode : '--'\"></span>\n </div>\n <a (click)=\"openTrackAndTraceURL(packageLsp)\"\n [textContent]=\"packageLsp ? packageLsp.trackAndTraceUrl : '--'\"></a>\n </div>\n </div>\n </div>\n\n ",
|
|
42196
42196
|
encapsulation: i0.ViewEncapsulation.None
|
|
42197
42197
|
},] }
|
|
42198
42198
|
];
|