@colijnit/transaction 256.1.7 → 256.1.8
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 +44 -8
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +6 -2
- package/esm2015/lib/component/transaction-create-wizard/transaction-create-wizard.component.js +14 -3
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +6 -1
- package/esm2015/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.js +4 -4
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +8 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +34 -7
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction/transaction.component.d.ts +5 -1
- package/lib/component/transaction-create-wizard/transaction-create-wizard.component.d.ts +4 -1
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +4 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +2 -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 = "256.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "256.1.8";
|
|
37
|
+
this.publishDate = "1-11-2024 08:49:24";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -28038,7 +28038,7 @@
|
|
|
28038
28038
|
TransactionPlanningLineComponent.decorators = [
|
|
28039
28039
|
{ type: i0.Component, args: [{
|
|
28040
28040
|
selector: "co-planning-overview-line",
|
|
28041
|
-
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"
|
|
28041
|
+
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected || !allowPartialDelivery()\"\n [checkboxReadonly]=\"!allowPartialDelivery()\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve\n (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 <span class=\"transaction-field-label\" [textContent]=\"'COMMISSION_CODE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\"\n *ngIf=\"isFirst\"></span>\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.SalesOrderPlanning\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"\n *ngIf=\"isFirst\"></span>\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 <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\"\n *ngIf=\"isFirst\"></span>\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: true\"\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 ",
|
|
28042
28042
|
encapsulation: i0.ViewEncapsulation.None
|
|
28043
28043
|
},] }
|
|
28044
28044
|
];
|
|
@@ -42612,6 +42612,8 @@
|
|
|
42612
42612
|
this.transactionPlanning = false;
|
|
42613
42613
|
this.cashRegistersDirty = false;
|
|
42614
42614
|
this.relationChange = new i0.EventEmitter();
|
|
42615
|
+
//This output exists for bundle purposes.
|
|
42616
|
+
this.serviceRequested = new i0.EventEmitter();
|
|
42615
42617
|
this.showQuickAccess = true;
|
|
42616
42618
|
this.showButtonBar = true;
|
|
42617
42619
|
this.activeViewMode = corecomponents_v12.ContentViewMode.List;
|
|
@@ -42856,6 +42858,8 @@
|
|
|
42856
42858
|
/*this._transactionConnectorService.createServiceOrderWithSourceTransactionLine(request).then((result: TransactionInfoResponse) => {
|
|
42857
42859
|
if(result) {*/
|
|
42858
42860
|
this._transactionEventService.requestCreateServiceOrderFromTransactionLine.next({ transaction: this.transaction, lineNr: lineNr });
|
|
42861
|
+
//added for bundle purposes so we can pass the value along without the event service. Use the event service in all other cases.
|
|
42862
|
+
this.serviceRequested.emit({ transaction: this.transaction.transactionInfo.transactionNr, lineNr: lineNr });
|
|
42859
42863
|
/* }
|
|
42860
42864
|
});*/
|
|
42861
42865
|
}
|
|
@@ -43028,6 +43032,7 @@
|
|
|
43028
43032
|
transactionPlanning: [{ type: i0.Input }],
|
|
43029
43033
|
cashRegistersDirty: [{ type: i0.Input }],
|
|
43030
43034
|
relationChange: [{ type: i0.Output }],
|
|
43035
|
+
serviceRequested: [{ type: i0.Output }],
|
|
43031
43036
|
showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
|
|
43032
43037
|
showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
|
|
43033
43038
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-internal',] }],
|
|
@@ -49793,6 +49798,16 @@
|
|
|
49793
49798
|
this._subs = [];
|
|
49794
49799
|
this._subs.push(this._transactionEventService.createTransaction.subscribe(function () { return _this.addTransactionClick.emit(); }));
|
|
49795
49800
|
}
|
|
49801
|
+
Object.defineProperty(TransactionSearchComponent.prototype, "overrideSearchType", {
|
|
49802
|
+
//Only use this for bundle purposes please!
|
|
49803
|
+
set: function (kind) {
|
|
49804
|
+
if (!(kind === null || kind === undefined)) {
|
|
49805
|
+
this.transactionSearchService.transactionType = kind;
|
|
49806
|
+
}
|
|
49807
|
+
},
|
|
49808
|
+
enumerable: false,
|
|
49809
|
+
configurable: true
|
|
49810
|
+
});
|
|
49796
49811
|
TransactionSearchComponent.prototype.showClass = function () {
|
|
49797
49812
|
return true;
|
|
49798
49813
|
};
|
|
@@ -49831,6 +49846,7 @@
|
|
|
49831
49846
|
]; };
|
|
49832
49847
|
TransactionSearchComponent.propDecorators = {
|
|
49833
49848
|
draggableTransactions: [{ type: i0.Input }],
|
|
49849
|
+
overrideSearchType: [{ type: i0.Input }],
|
|
49834
49850
|
transactionClick: [{ type: i0.Output }],
|
|
49835
49851
|
addTransactionClick: [{ type: i0.Output }],
|
|
49836
49852
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
@@ -55424,6 +55440,8 @@
|
|
|
55424
55440
|
this.saveCancelMovable = false;
|
|
55425
55441
|
this.transactionPlanning = false;
|
|
55426
55442
|
this.cashRegistersDirty = false;
|
|
55443
|
+
//This output exists for bundle purposes.
|
|
55444
|
+
this.serviceRequested = new i0.EventEmitter();
|
|
55427
55445
|
this.screenConfigLoaded = false;
|
|
55428
55446
|
this._fetching = false;
|
|
55429
55447
|
}
|
|
@@ -55540,7 +55558,7 @@
|
|
|
55540
55558
|
TransactionComponent.decorators = [
|
|
55541
55559
|
{ type: i0.Component, args: [{
|
|
55542
55560
|
selector: 'co-transaction',
|
|
55543
|
-
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n ></co-transaction-internal>\n ",
|
|
55561
|
+
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n (serviceRequested)=\"this.serviceRequested.emit($event)\"\n ></co-transaction-internal>\n ",
|
|
55544
55562
|
providers: [
|
|
55545
55563
|
{ provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
|
|
55546
55564
|
],
|
|
@@ -55572,6 +55590,7 @@
|
|
|
55572
55590
|
saveCancelMovable: [{ type: i0.Input }],
|
|
55573
55591
|
transactionPlanning: [{ type: i0.Input }],
|
|
55574
55592
|
cashRegistersDirty: [{ type: i0.Input }],
|
|
55593
|
+
serviceRequested: [{ type: i0.Output }],
|
|
55575
55594
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
|
|
55576
55595
|
checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
|
|
55577
55596
|
checkRollBack: [{ type: i0.HostListener, args: ['window:unload',] }]
|
|
@@ -56805,6 +56824,8 @@
|
|
|
56805
56824
|
this.transactionType = transactionKind_enum.TransactionKind.ServiceOrder;
|
|
56806
56825
|
this.noLockOnCustomerSet = false;
|
|
56807
56826
|
this._externallyProvidedTransaction = null;
|
|
56827
|
+
//for bundle puroses where an new, non transaction based, service should always start with the customer already set
|
|
56828
|
+
this._externallyProvidedCustomer = null;
|
|
56808
56829
|
}
|
|
56809
56830
|
Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedTransaction", {
|
|
56810
56831
|
set: function (transaction) {
|
|
@@ -56820,6 +56841,13 @@
|
|
|
56820
56841
|
enumerable: false,
|
|
56821
56842
|
configurable: true
|
|
56822
56843
|
});
|
|
56844
|
+
Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedCustomer", {
|
|
56845
|
+
set: function (customer) {
|
|
56846
|
+
this._externallyProvidedCustomer = customer;
|
|
56847
|
+
},
|
|
56848
|
+
enumerable: false,
|
|
56849
|
+
configurable: true
|
|
56850
|
+
});
|
|
56823
56851
|
TransactionCreateWizardComponent.prototype.showClass = function () {
|
|
56824
56852
|
return true;
|
|
56825
56853
|
};
|
|
@@ -56832,7 +56860,7 @@
|
|
|
56832
56860
|
_a.sent();
|
|
56833
56861
|
this.createService.transactionKind = this.transactionType;
|
|
56834
56862
|
this.createService.createNewRelation();
|
|
56835
|
-
this.
|
|
56863
|
+
this._processExternalSettings();
|
|
56836
56864
|
return [2 /*return*/];
|
|
56837
56865
|
}
|
|
56838
56866
|
});
|
|
@@ -57006,7 +57034,7 @@
|
|
|
57006
57034
|
});
|
|
57007
57035
|
});
|
|
57008
57036
|
};
|
|
57009
|
-
TransactionCreateWizardComponent.prototype.
|
|
57037
|
+
TransactionCreateWizardComponent.prototype._processExternalSettings = function () {
|
|
57010
57038
|
return __awaiter(this, void 0, void 0, function () {
|
|
57011
57039
|
var _a, _b;
|
|
57012
57040
|
var _this = this;
|
|
@@ -57037,8 +57065,15 @@
|
|
|
57037
57065
|
else {
|
|
57038
57066
|
this.stepper.openToIndex(3);
|
|
57039
57067
|
}
|
|
57040
|
-
|
|
57041
|
-
case 4:
|
|
57068
|
+
return [3 /*break*/, 5];
|
|
57069
|
+
case 4:
|
|
57070
|
+
if (this._externallyProvidedCustomer) {
|
|
57071
|
+
this.noLockOnCustomerSet = true;
|
|
57072
|
+
this.createService.relation = this._externallyProvidedCustomer;
|
|
57073
|
+
this.stepper.openToIndex(2);
|
|
57074
|
+
}
|
|
57075
|
+
_c.label = 5;
|
|
57076
|
+
case 5: return [2 /*return*/];
|
|
57042
57077
|
}
|
|
57043
57078
|
});
|
|
57044
57079
|
});
|
|
@@ -57070,6 +57105,7 @@
|
|
|
57070
57105
|
serviceFieldsSection: [{ type: i0.ViewChild, args: ["serviceFieldsSection",] }],
|
|
57071
57106
|
externallyProvidedTransaction: [{ type: i0.Input }],
|
|
57072
57107
|
externallyProvidedLineNr: [{ type: i0.Input }],
|
|
57108
|
+
externallyProvidedCustomer: [{ type: i0.Input }],
|
|
57073
57109
|
transactionFinished: [{ type: i0.Output }],
|
|
57074
57110
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-create-wizard",] }]
|
|
57075
57111
|
};
|