@colijnit/transaction 12.1.209 → 12.1.211
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 +35 -43
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +15 -20
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +5 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +5 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +24 -22
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +0 -2
- package/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.d.ts +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +1 -0
- 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.211";
|
|
36
|
+
this.publishDate = "15-4-2024 22:56:13";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -19906,6 +19906,7 @@
|
|
|
19906
19906
|
_this.commitDate = new Date();
|
|
19907
19907
|
_this.globalWarehouseLocation = '-';
|
|
19908
19908
|
_this.internalParamMLocat = false;
|
|
19909
|
+
_this.showProcessingLoader = false;
|
|
19909
19910
|
_this._subs = [];
|
|
19910
19911
|
return _this;
|
|
19911
19912
|
}
|
|
@@ -19927,12 +19928,15 @@
|
|
|
19927
19928
|
return __awaiter(this, void 0, void 0, function () {
|
|
19928
19929
|
return __generator(this, function (_a) {
|
|
19929
19930
|
switch (_a.label) {
|
|
19930
|
-
case 0:
|
|
19931
|
+
case 0:
|
|
19932
|
+
this.showProcessingLoader = true;
|
|
19933
|
+
return [4 /*yield*/, this.handleSend(this.defaultSendMethod)];
|
|
19931
19934
|
case 1:
|
|
19932
19935
|
_a.sent();
|
|
19933
19936
|
return [4 /*yield*/, this.transactionService.handleReceiveSelectedPurchaseOrders(this.commitDate, this.packingSlipNr)];
|
|
19934
19937
|
case 2:
|
|
19935
19938
|
_a.sent();
|
|
19939
|
+
this.showProcessingLoader = false;
|
|
19936
19940
|
return [2 /*return*/];
|
|
19937
19941
|
}
|
|
19938
19942
|
});
|
|
@@ -19982,7 +19986,7 @@
|
|
|
19982
19986
|
TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
19983
19987
|
{ type: i0.Component, args: [{
|
|
19984
19988
|
selector: "co-transaction-quick-access-received-goods",
|
|
19985
|
-
template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\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 <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat\"\n [locationNr]=\"globalWarehouseLocation\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"
|
|
19989
|
+
template: "\n <div class=\"quick-access-wrapper\" *ngIf=\"!hideQuickAccessContent\">\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\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 <co-transaction-labeled-warehouse-location-button *ngIf=\"internalParamMLocat\"\n [locationNr]=\"globalWarehouseLocation\"\n (locationNrChange)=\"handleGlobalLocationChange($event)\"\n ></co-transaction-labeled-warehouse-location-button>\n <co-quick-send-button\n [showSendMethodIcon]=\"false\"\n [icon]=\"icons.CheckDuotone\"\n [showLoader]=\"this.showProcessingLoader\"\n [title]=\"'PROCESS'\"\n (sendIconClicked)=\"handleCommitEvent()\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\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 ",
|
|
19986
19990
|
encapsulation: i0.ViewEncapsulation.None
|
|
19987
19991
|
},] }
|
|
19988
19992
|
];
|
|
@@ -25185,7 +25189,6 @@
|
|
|
25185
25189
|
__extends(TransactionLineCommissionCodeComponent, _super);
|
|
25186
25190
|
function TransactionLineCommissionCodeComponent() {
|
|
25187
25191
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
25188
|
-
_this.showCommissionCodePopup = true;
|
|
25189
25192
|
_this.codeField = 'code';
|
|
25190
25193
|
_this.checkField = 'commissionCode';
|
|
25191
25194
|
_this.propsForLabel = [{ label: 'code' }, { label: 'description' }];
|
|
@@ -25193,53 +25196,39 @@
|
|
|
25193
25196
|
}
|
|
25194
25197
|
TransactionLineCommissionCodeComponent.prototype.ngOnInit = function () {
|
|
25195
25198
|
this.viewModels.length = 0;
|
|
25196
|
-
this.checkInternalParam();
|
|
25197
25199
|
this.loadCollection();
|
|
25198
25200
|
this.detectChanges();
|
|
25199
25201
|
};
|
|
25200
|
-
TransactionLineCommissionCodeComponent.prototype.checkInternalParam = function () {
|
|
25201
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
25202
|
-
var _a;
|
|
25203
|
-
return __generator(this, function (_b) {
|
|
25204
|
-
switch (_b.label) {
|
|
25205
|
-
case 0:
|
|
25206
|
-
_a = this;
|
|
25207
|
-
return [4 /*yield*/, this.transactionService.getInternalParameter(internalParam_enum.InternalParam.KAS_MAG_CC_POP)];
|
|
25208
|
-
case 1:
|
|
25209
|
-
_a.showCommissionCodePopup = _b.sent();
|
|
25210
|
-
return [2 /*return*/];
|
|
25211
|
-
}
|
|
25212
|
-
});
|
|
25213
|
-
});
|
|
25214
|
-
};
|
|
25215
25202
|
TransactionLineCommissionCodeComponent.prototype.loadCollection = function () {
|
|
25216
25203
|
var _this = this;
|
|
25217
25204
|
this.transactionService.getCommissionCodes("NL").then(function (codes) {
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
else {
|
|
25223
|
-
// only show code 2.
|
|
25224
|
-
var codesList = codes.slice();
|
|
25225
|
-
var availableCodes = [];
|
|
25226
|
-
try {
|
|
25227
|
-
for (var codesList_1 = __values(codesList), codesList_1_1 = codesList_1.next(); !codesList_1_1.done; codesList_1_1 = codesList_1.next()) {
|
|
25228
|
-
var code = codesList_1_1.value;
|
|
25229
|
-
if (code.code === '2') {
|
|
25230
|
-
availableCodes.push(code);
|
|
25231
|
-
}
|
|
25232
|
-
}
|
|
25205
|
+
_this.transactionService.getInternalParameter(internalParam_enum.InternalParam.KAS_MAG_CC_POP).then(function (result) {
|
|
25206
|
+
var e_1, _a;
|
|
25207
|
+
if (!result) {
|
|
25208
|
+
_this.collection = codes.slice();
|
|
25233
25209
|
}
|
|
25234
|
-
|
|
25235
|
-
|
|
25210
|
+
else {
|
|
25211
|
+
// only show code 2.
|
|
25212
|
+
var codesList = codes.slice();
|
|
25213
|
+
var availableCodes = [];
|
|
25236
25214
|
try {
|
|
25237
|
-
|
|
25215
|
+
for (var codesList_1 = __values(codesList), codesList_1_1 = codesList_1.next(); !codesList_1_1.done; codesList_1_1 = codesList_1.next()) {
|
|
25216
|
+
var code = codesList_1_1.value;
|
|
25217
|
+
if (code.code === '2') {
|
|
25218
|
+
availableCodes.push(code);
|
|
25219
|
+
}
|
|
25220
|
+
}
|
|
25221
|
+
}
|
|
25222
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
25223
|
+
finally {
|
|
25224
|
+
try {
|
|
25225
|
+
if (codesList_1_1 && !codesList_1_1.done && (_a = codesList_1.return)) _a.call(codesList_1);
|
|
25226
|
+
}
|
|
25227
|
+
finally { if (e_1) throw e_1.error; }
|
|
25238
25228
|
}
|
|
25239
|
-
|
|
25229
|
+
_this.collection = availableCodes.slice();
|
|
25240
25230
|
}
|
|
25241
|
-
|
|
25242
|
-
}
|
|
25231
|
+
});
|
|
25243
25232
|
});
|
|
25244
25233
|
};
|
|
25245
25234
|
TransactionLineCommissionCodeComponent.prototype.commit = function (code) {
|
|
@@ -38362,6 +38351,7 @@
|
|
|
38362
38351
|
_this.filteredDocBatchArray = [];
|
|
38363
38352
|
_this.maxDocAmount = 0;
|
|
38364
38353
|
_this.showPurchaseConfirmationAI = false;
|
|
38354
|
+
_this.confirmingOrder = false;
|
|
38365
38355
|
_this._subs = [];
|
|
38366
38356
|
return _this;
|
|
38367
38357
|
}
|
|
@@ -38394,6 +38384,7 @@
|
|
|
38394
38384
|
switch (_a.label) {
|
|
38395
38385
|
case 0:
|
|
38396
38386
|
if (!(this.docDeliveryBatch.docAmount && this.docDeliveryBatch.confirmedPrice)) return [3 /*break*/, 2];
|
|
38387
|
+
this.confirmingOrder = true;
|
|
38397
38388
|
existingBatch = this.transactionLine.purchasePortalLine.docBatchArray.find(function (ba) { return ba.deliveryBatch === _this.docDeliveryBatch.deliveryBatch && ba.historical === "G"; });
|
|
38398
38389
|
if (existingBatch) { // change that one
|
|
38399
38390
|
existingBatch.confirmedPrice = this.docDeliveryBatch.confirmedPrice;
|
|
@@ -38412,6 +38403,7 @@
|
|
|
38412
38403
|
success = _a.sent();
|
|
38413
38404
|
if (success) {
|
|
38414
38405
|
this._initNewDocDeliveryBatch();
|
|
38406
|
+
this.confirmingOrder = false;
|
|
38415
38407
|
}
|
|
38416
38408
|
return [3 /*break*/, 3];
|
|
38417
38409
|
case 2: return [2 /*return*/];
|
|
@@ -38496,7 +38488,7 @@
|
|
|
38496
38488
|
TransactionLinePurchaseConfirmationComponent.decorators = [
|
|
38497
38489
|
{ type: i0.Component, args: [{
|
|
38498
38490
|
selector: 'co-transaction-line-purchase-confirmation',
|
|
38499
|
-
template: "\n <div class=\"confirmation-details-wrapper form-and-buttons\">\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\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.PurchaseOrderOrderConfirmation\"\n ></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 [(model)]=\"docDeliveryBatch.docAmount\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"maxDocAmount\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"docDeliveryBatch.docDate\"\n required\n ></co-input-date>\n <co-transaction-labeled-price-input class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.confirmedPrice\"\n [defaultEditMode]=\"false\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n [required]=\"true\"\n ></co-transaction-labeled-price-input>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.reference\"\n [placeholder]=\"'REFERENCE' | localize\"\n ></co-input-text>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.deliveryBatch\"\n (modelChange)=\"handleDeliveryBatchChange()\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\"\n ></co-input-text>\n </div>\n </co-form>\n </ng-container>\n <ng-container *ngIf=\"showPurchaseConfirmationAI\">\n <co-purchase-confirmation-lines\n [transaction]=\"transaction\"\n ></co-purchase-confirmation-lines>\n </ng-container>\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <div class=\"save-cancel-wrapper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCancelClick()\"\n ></co-button>\n </div>\n </ng-container>\n </div>\n <co-transaction-confirmation-history *ngIf=\"!showPurchaseConfirmationAI\"\n [collection]=\"filteredDocBatchArray\"\n (deleteRow)=\"handleDeleteHistoryRow($event)\"\n (selectRow)=\"handleSelectHistoryRow($event)\"\n ></co-transaction-confirmation-history>\n ",
|
|
38491
|
+
template: "\n <div class=\"confirmation-details-wrapper form-and-buttons\">\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\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.PurchaseOrderOrderConfirmation\"\n ></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 [(model)]=\"docDeliveryBatch.docAmount\"\n [decimals]=\"decimals\"\n [min]=\"1\"\n [max]=\"maxDocAmount\"\n ></co-input-number-picker>\n <co-input-date class=\"side-panel-input\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"docDeliveryBatch.docDate\"\n required\n ></co-input-date>\n <co-transaction-labeled-price-input class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.confirmedPrice\"\n [defaultEditMode]=\"false\"\n [placeholder]=\"'CONFIRMED_PRICE' | localize\"\n [required]=\"true\"\n ></co-transaction-labeled-price-input>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.reference\"\n [placeholder]=\"'REFERENCE' | localize\"\n ></co-input-text>\n <co-input-text class=\"side-panel-input\"\n [(model)]=\"docDeliveryBatch.deliveryBatch\"\n (modelChange)=\"handleDeliveryBatchChange()\"\n [placeholder]=\"'DELIVERY_BATCH' | localize\"\n ></co-input-text>\n </div>\n </co-form>\n </ng-container>\n <ng-container *ngIf=\"showPurchaseConfirmationAI\">\n <co-purchase-confirmation-lines\n [transaction]=\"transaction\"\n ></co-purchase-confirmation-lines>\n </ng-container>\n <ng-container *ngIf=\"!showPurchaseConfirmationAI\">\n <div class=\"save-cancel-wrapper\">\n <co-button [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"this.confirmingOrder\"\n (click)=\"handleSaveDetailsEdit()\"\n ></co-button>\n <co-button class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCancelClick()\"\n ></co-button>\n </div>\n </ng-container>\n </div>\n <co-transaction-confirmation-history *ngIf=\"!showPurchaseConfirmationAI\"\n [collection]=\"filteredDocBatchArray\"\n (deleteRow)=\"handleDeleteHistoryRow($event)\"\n (selectRow)=\"handleSelectHistoryRow($event)\"\n ></co-transaction-confirmation-history>\n ",
|
|
38500
38492
|
providers: [
|
|
38501
38493
|
corecomponents_v12.FormMasterService
|
|
38502
38494
|
],
|