@colijnit/transaction 257.1.40 → 257.1.41
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 +10 -25
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +3 -6
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +2 -9
- package/esm2015/lib/service/transaction-base.service.js +8 -9
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +12 -23
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/shopping-cart/shopping-cart.component.d.ts +0 -1
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -5
- package/lib/service/transaction-base.service.d.ts +4 -4
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "257.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.41";
|
|
37
|
+
this.publishDate = "2-4-2025 09:59:14";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -14590,8 +14590,7 @@
|
|
|
14590
14590
|
_this.internalParameterJsPickingList = false;
|
|
14591
14591
|
_this.internalParameterSellDirectlyFromSupp = false;
|
|
14592
14592
|
_this.internalParameterStockMutBeforeDelivery = false;
|
|
14593
|
-
_this.
|
|
14594
|
-
_this.articleAmountChange = new rxjs.BehaviorSubject(_this._articleAmount);
|
|
14593
|
+
_this.articleAmountChange = new rxjs.BehaviorSubject(0);
|
|
14595
14594
|
_this.transactionLineAdded = false;
|
|
14596
14595
|
// not being used at the moment, so it should be false
|
|
14597
14596
|
_this._readonly = false;
|
|
@@ -14610,6 +14609,7 @@
|
|
|
14610
14609
|
_this._transactionDirty = false;
|
|
14611
14610
|
_this._cashRegistersDirty = false;
|
|
14612
14611
|
_this._salesOrderConfirmationSent = false;
|
|
14612
|
+
_this._articleAmount = 0;
|
|
14613
14613
|
_this.logisticsButtonVisible = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
14614
14614
|
return __generator(this, function (_a) {
|
|
14615
14615
|
switch (_a.label) {
|
|
@@ -14810,14 +14810,10 @@
|
|
|
14810
14810
|
enumerable: false,
|
|
14811
14811
|
configurable: true
|
|
14812
14812
|
});
|
|
14813
|
-
Object.defineProperty(TransactionBaseService.prototype, "
|
|
14813
|
+
Object.defineProperty(TransactionBaseService.prototype, "articleAmount", {
|
|
14814
14814
|
get: function () {
|
|
14815
|
-
return this.
|
|
14815
|
+
return this._articleAmount;
|
|
14816
14816
|
},
|
|
14817
|
-
enumerable: false,
|
|
14818
|
-
configurable: true
|
|
14819
|
-
});
|
|
14820
|
-
Object.defineProperty(TransactionBaseService.prototype, "setArticleAmount", {
|
|
14821
14817
|
set: function (value) {
|
|
14822
14818
|
this._articleAmount = value;
|
|
14823
14819
|
this.articleAmountChange.next(this._articleAmount);
|
|
@@ -14959,7 +14955,7 @@
|
|
|
14959
14955
|
TransactionBaseService.prototype.resetCurrentTransaction = function () {
|
|
14960
14956
|
this.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
14961
14957
|
this._relation = new customerFullObject_bo.CustomerFullObject();
|
|
14962
|
-
this.
|
|
14958
|
+
this.articleAmount = 0;
|
|
14963
14959
|
this.transactionUpdated.next(undefined);
|
|
14964
14960
|
this.transactionEventService.orderConfirmationDropped.next(undefined);
|
|
14965
14961
|
this.transactionEventService.orderConfirmationReset.next();
|
|
@@ -15458,8 +15454,7 @@
|
|
|
15458
15454
|
};
|
|
15459
15455
|
TransactionBaseService.prototype._setAmount = function () {
|
|
15460
15456
|
if (this.currentTransaction && this.currentTransaction.transactionLines) {
|
|
15461
|
-
this.
|
|
15462
|
-
this.setArticleAmount = this._articleAmount;
|
|
15457
|
+
this.articleAmount = this.currentTransaction.transactionLines.filter(function (t) { return t.lineType === transactionLineType_enum.TransactionLineType.ArticleLine; }).length;
|
|
15463
15458
|
}
|
|
15464
15459
|
};
|
|
15465
15460
|
TransactionBaseService.prototype._shouldCheckRefTransactions = function () {
|
|
@@ -47685,7 +47680,6 @@
|
|
|
47685
47680
|
this.checkout = new i0.EventEmitter();
|
|
47686
47681
|
this.editCartClick = new i0.EventEmitter();
|
|
47687
47682
|
this.screenConfigLoaded = false;
|
|
47688
|
-
this._subs = [];
|
|
47689
47683
|
}
|
|
47690
47684
|
ShoppingCartPreviewComponent.prototype.showClass = function () {
|
|
47691
47685
|
return true;
|
|
@@ -47701,19 +47695,13 @@
|
|
|
47701
47695
|
_this._transactionHeaderService.transaction = transaction;
|
|
47702
47696
|
}
|
|
47703
47697
|
});
|
|
47704
|
-
this.service.getArticleAmount.subscribe(function (amount) {
|
|
47705
|
-
_this.cartPreviewArticleAmount = amount;
|
|
47706
|
-
});
|
|
47707
|
-
};
|
|
47708
|
-
ShoppingCartPreviewComponent.prototype.ngOnDestroy = function () {
|
|
47709
|
-
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
47710
47698
|
};
|
|
47711
47699
|
return ShoppingCartPreviewComponent;
|
|
47712
47700
|
}());
|
|
47713
47701
|
ShoppingCartPreviewComponent.decorators = [
|
|
47714
47702
|
{ type: i0.Component, args: [{
|
|
47715
47703
|
selector: "co-shopping-cart-preview",
|
|
47716
|
-
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines narrow-scrollbar\">\n <co-transaction-lines [preview]=\"true\"></co-transaction-lines>\n </div>\n <div class=\"cart-bottom-wrapper\">\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!
|
|
47704
|
+
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines narrow-scrollbar\">\n <co-transaction-lines [preview]=\"true\"></co-transaction-lines>\n </div>\n <div class=\"cart-bottom-wrapper\">\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n </div>\n </ng-container>\n ",
|
|
47717
47705
|
providers: [
|
|
47718
47706
|
TransactionHeaderService,
|
|
47719
47707
|
{ provide: corecomponents_v12.BaseModuleService, useExisting: TransactionService },
|
|
@@ -55134,9 +55122,6 @@
|
|
|
55134
55122
|
this._screenConfigurationService.loadConfig([this.transactionKind.SalesOrder]).then(function (configObjects) {
|
|
55135
55123
|
_this.screenConfigLoaded = true;
|
|
55136
55124
|
});
|
|
55137
|
-
this._subs.push(this.service.getArticleAmount.subscribe(function (amount) {
|
|
55138
|
-
_this.cartArticleAmount = amount;
|
|
55139
|
-
}));
|
|
55140
55125
|
};
|
|
55141
55126
|
ShoppingCartComponent.prototype.ngOnDestroy = function () {
|
|
55142
55127
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -55146,7 +55131,7 @@
|
|
|
55146
55131
|
ShoppingCartComponent.decorators = [
|
|
55147
55132
|
{ type: i0.Component, args: [{
|
|
55148
55133
|
selector: 'co-shopping-cart',
|
|
55149
|
-
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\"\n [textContent]=\"'SHOPPING_CART_OVERVIEW' | localize:true:
|
|
55134
|
+
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\"\n [textContent]=\"'SHOPPING_CART_OVERVIEW' | localize:true:service.articleAmount.toString()\"></span>\n </div>\n <div class=\"shopping-cart-transaction-wrapper\">\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [showHeader]=\"false\"\n [showQuickAccess]=\"false\"\n [showButtonBar]=\"false\"\n [transaction]=\"transaction\"\n ></co-transaction-internal>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-resume\" [textContent]=\"'SHOPPING_CART_RESUME' | localize\"\n (click)=\"closeCart.emit()\"\n ></a>\n <co-button class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"service.articleAmount === 0\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
55150
55135
|
providers: [
|
|
55151
55136
|
{ provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
|
|
55152
55137
|
],
|