@colijnit/transaction 255.1.36 → 255.1.38
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 +255 -36
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +10 -8
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +11 -9
- package/esm2015/lib/component/save-cancel-buttons/save-cancel-buttons.component.js +102 -0
- package/esm2015/lib/component/save-cancel-buttons/save-cancel-buttons.module.js +24 -0
- package/esm2015/lib/component/transaction/transaction.component.js +35 -7
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +2 -2
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +2 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-base.component.js +2 -2
- package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/transaction-lines-side-panel-service-order.component.js +59 -46
- package/esm2015/lib/component/transaction-service-overview/components/transaction-service-message.component.js +1 -2
- package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/service/pending-reason.service.js +5 -3
- package/esm2015/lib/service/transaction-base.service.js +19 -3
- package/esm2015/lib/service/transaction-connector-adapter.service.js +4 -1
- package/esm2015/lib/service/transaction-connector.service.js +4 -1
- package/esm2015/lib/service/transaction-event.service.js +4 -2
- package/esm2015/lib/service/transaction.service.js +54 -12
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +294 -67
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/save-cancel-buttons/save-cancel-buttons.component.d.ts +28 -0
- package/lib/component/save-cancel-buttons/save-cancel-buttons.module.d.ts +2 -0
- package/lib/component/save-cancel-buttons/style/_layout.scss +41 -0
- package/lib/component/save-cancel-buttons/style/_material-definition.scss +15 -0
- package/lib/component/save-cancel-buttons/style/_theme.scss +42 -0
- package/lib/component/save-cancel-buttons/style/material.scss +4 -0
- package/lib/component/transaction/transaction.component.d.ts +13 -3
- package/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/style/_layout.scss +16 -0
- package/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-service-order/transaction-lines-side-panel-service-order.component.d.ts +2 -0
- package/lib/component/transaction-service-overview/style/_layout.scss +4 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/service/transaction-base.service.d.ts +4 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction-event.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +20 -19
- package/package.json +5 -5
|
@@ -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 = "255.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "255.1.38";
|
|
37
|
+
this.publishDate = "12-9-2024 14:26:15";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -747,6 +747,8 @@
|
|
|
747
747
|
Icon["IndustrySolid"] = "industry_solid";
|
|
748
748
|
Icon["Invoice"] = "invoice";
|
|
749
749
|
Icon["LessThanSolid"] = "less_than_solid";
|
|
750
|
+
Icon["LightCreditCardCheck"] = "light_credit_card_check";
|
|
751
|
+
Icon["LightEuroSignMinus"] = "light_euro_sign_minus";
|
|
750
752
|
Icon["LinkRegular"] = "link_regular";
|
|
751
753
|
Icon["LinkSimpleSolid"] = "link_simple_solid";
|
|
752
754
|
Icon["ListRegular"] = "list_regular";
|
|
@@ -894,6 +896,8 @@
|
|
|
894
896
|
"industry_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M32 32C14.3 32 0 46.3 0 64V304v48 80c0 26.5 21.5 48 48 48H464c26.5 0 48-21.5 48-48V304 152.2c0-18.2-19.4-29.7-35.4-21.1L320 215.4V152.2c0-18.2-19.4-29.7-35.4-21.1L128 215.4V64c0-17.7-14.3-32-32-32H32z\"/></svg>",
|
|
895
897
|
"invoice": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm80 48c0-8.8 7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16H96c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16H96c-8.8 0-16-7.2-16-16zM192 400c0-8.8 7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16H208c-8.8 0-16-7.2-16-16zM112 224H272c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H112c-17.7 0-32-14.3-32-32V256c0-17.7 14.3-32 32-32z\"/></svg>",
|
|
896
898
|
"less_than_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M380.6 81.7c7.9 15.8 1.5 35-14.3 42.9L103.6 256 366.3 387.4c15.8 7.9 22.2 27.1 14.3 42.9s-27.1 22.2-42.9 14.3l-320-160C6.8 279.2 0 268.1 0 256s6.8-23.2 17.7-28.6l320-160c15.8-7.9 35-1.5 42.9 14.3z\"/></svg>",
|
|
899
|
+
"light_credit_card_check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 96C0 60.7 28.7 32 64 32l448 0c35.3 0 64 28.7 64 64l0 115.2c-10.1-5.2-20.8-9.4-32-12.6l0-38.6L32 160l0 64 362.8 0c-12.9 9.1-24.5 19.9-34.6 32L32 256l0 160c0 17.7 14.3 32 32 32l275.2 0c5.9 11.4 12.9 22.2 21.1 32L64 480c-35.3 0-64-28.7-64-64L0 96zm32 0l0 32 512 0 0-32c0-17.7-14.3-32-32-32L64 64C46.3 64 32 78.3 32 96zM96 368c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16zm128 0c0-8.8 7.2-16 16-16l80.7 0c-.5 5.3-.7 10.6-.7 16s.2 10.7 .7 16L240 384c-8.8 0-16-7.2-16-16zm128 0c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zm32 0c0 61.9 50.1 112 112 112s112-50.1 112-112s-50.1-112-112-112s-112 50.1-112 112zm44.7-11.3c6.2-6.2 16.4-6.2 22.6 0L480 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6z\"/></svg>",
|
|
900
|
+
"light_euro_sign_minus": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M0 208c0-8.8 7.2-16 16-16l25.3 0C68.8 99.5 154.5 32 256 32l49 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-49 0c-83.6 0-154.7 53.4-181.1 128L272 192c8.8 0 16 7.2 16 16s-7.2 16-16 16L66.7 224c-1.8 10.4-2.7 21.1-2.7 32s1 21.6 2.7 32L272 288c1 0 2.1 .1 3 .3c-5.1 10.1-9.3 20.7-12.4 31.7L74.9 320c26.4 74.6 97.5 128 181.1 128l19.2 0c5.9 11.4 12.9 22.2 21.1 32L256 480C154.5 480 68.8 412.5 41.3 320L16 320c-8.8 0-16-7.2-16-16s7.2-16 16-16l18.3 0c-1.5-10.5-2.3-21.1-2.3-32s.8-21.5 2.3-32L16 224c-8.8 0-16-7.2-16-16zM288 368c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zm32 0c0 61.9 50.1 112 112 112s112-50.1 112-112s-50.1-112-112-112s-112 50.1-112 112zm32 0c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z\"/></svg>",
|
|
897
901
|
"link_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4-31.6-36.1-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1L377.7 334l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8zm520.6 22.4c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4 31.6 36.1 6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4-36.1-31.6-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2z\"/></svg>",
|
|
898
902
|
"link_simple_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M0 256C0 167.6 71.6 96 160 96h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-53 0-96 43-96 96s43 96 96 96h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H352c-17.7 0-32-14.3-32-32s14.3-32 32-32h64c53 0 96-43 96-96s-43-96-96-96H352c-17.7 0-32-14.3-32-32s14.3-32 32-32h64c88.4 0 160 71.6 160 160zM192 224H384c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32z\"/></svg>",
|
|
899
903
|
"list_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M88 48C101.3 48 112 58.75 112 72V120C112 133.3 101.3 144 88 144H40C26.75 144 16 133.3 16 120V72C16 58.75 26.75 48 40 48H88zM488 72C501.3 72 512 82.75 512 96C512 109.3 501.3 120 488 120H184C170.7 120 160 109.3 160 96C160 82.75 170.7 72 184 72H488zM488 232C501.3 232 512 242.7 512 256C512 269.3 501.3 280 488 280H184C170.7 280 160 269.3 160 256C160 242.7 170.7 232 184 232H488zM488 392C501.3 392 512 402.7 512 416C512 429.3 501.3 440 488 440H184C170.7 440 160 429.3 160 416C160 402.7 170.7 392 184 392H488zM16 232C16 218.7 26.75 208 40 208H88C101.3 208 112 218.7 112 232V280C112 293.3 101.3 304 88 304H40C26.75 304 16 293.3 16 280V232zM88 368C101.3 368 112 378.7 112 392V440C112 453.3 101.3 464 88 464H40C26.75 464 16 453.3 16 440V392C16 378.7 26.75 368 40 368H88z\"/></svg>",
|
|
@@ -1289,7 +1293,7 @@
|
|
|
1289
1293
|
this.scrollContent = new rxjs.Subject();
|
|
1290
1294
|
// public readonly commitReceivePurchaseOrders: Subject<{date: Date, id: string}> = new Subject<{date: Date, id: string}>();
|
|
1291
1295
|
this.selectAllLines = new rxjs.Subject();
|
|
1292
|
-
this.
|
|
1296
|
+
this.transactionDirty = new rxjs.Subject();
|
|
1293
1297
|
this.transactionLineChanged = new rxjs.Subject();
|
|
1294
1298
|
this.transactionLineCheckboxChanged = new rxjs.Subject();
|
|
1295
1299
|
this.transactionLineRefTransactionsChanged = new rxjs.BehaviorSubject(undefined);
|
|
@@ -1369,6 +1373,8 @@
|
|
|
1369
1373
|
this.reservationSalesOrderLineClicked = new rxjs.Subject();
|
|
1370
1374
|
this.requestCreateServiceOrderFromTransactionLine = new rxjs.Subject();
|
|
1371
1375
|
this.blockScreen = new rxjs.BehaviorSubject(false);
|
|
1376
|
+
this.saveTransactionClick = new rxjs.Subject();
|
|
1377
|
+
this.cancelTransactionClick = new rxjs.Subject();
|
|
1372
1378
|
}
|
|
1373
1379
|
return TransactionEventService;
|
|
1374
1380
|
}());
|
|
@@ -3521,6 +3527,9 @@
|
|
|
3521
3527
|
});
|
|
3522
3528
|
});
|
|
3523
3529
|
};
|
|
3530
|
+
TransactionConnectorAdapterService.prototype.rollbackBeacon = function () {
|
|
3531
|
+
return this.connector.rollbackBeacon();
|
|
3532
|
+
};
|
|
3524
3533
|
TransactionConnectorAdapterService.prototype.createTransaction = function (kind, branchNr) {
|
|
3525
3534
|
var _this = this;
|
|
3526
3535
|
return new Promise(function (resolve, reject) {
|
|
@@ -9135,6 +9144,9 @@
|
|
|
9135
9144
|
TransactionConnectorService.prototype.rollback = function () {
|
|
9136
9145
|
return this._adapterService.rollback();
|
|
9137
9146
|
};
|
|
9147
|
+
TransactionConnectorService.prototype.rollbackBeacon = function () {
|
|
9148
|
+
return this._adapterService.rollbackBeacon();
|
|
9149
|
+
};
|
|
9138
9150
|
TransactionConnectorService.prototype.saveTransaction = function (uuid, showLoader) {
|
|
9139
9151
|
if (showLoader === void 0) { showLoader = false; }
|
|
9140
9152
|
return this._adapterService.saveTransaction(uuid, showLoader);
|
|
@@ -12934,6 +12946,7 @@
|
|
|
12934
12946
|
_this.transactionKindSet = new rxjs.BehaviorSubject(false);
|
|
12935
12947
|
_this.currentBranch = "1"; // current user branch, needs to be set before we can do anything with transactions
|
|
12936
12948
|
_this.autoSave = false;
|
|
12949
|
+
_this.manualSaveParam = false;
|
|
12937
12950
|
_this.applicationUser = false;
|
|
12938
12951
|
_this.invoiceAddressSameAsDelivery = true;
|
|
12939
12952
|
_this.getRelationOnRememberCurrentTransaction = true;
|
|
@@ -12964,6 +12977,7 @@
|
|
|
12964
12977
|
_this._alreadyLocked = false;
|
|
12965
12978
|
_this._transactionDirty = false;
|
|
12966
12979
|
_this._salesOrderConfirmationSent = false;
|
|
12980
|
+
_this._subs = [];
|
|
12967
12981
|
return _this;
|
|
12968
12982
|
}
|
|
12969
12983
|
Object.defineProperty(TransactionBaseService.prototype, "activeRubric", {
|
|
@@ -13132,7 +13146,7 @@
|
|
|
13132
13146
|
},
|
|
13133
13147
|
set: function (value) {
|
|
13134
13148
|
this._transactionDirty = value;
|
|
13135
|
-
this.transactionEventService.
|
|
13149
|
+
this.transactionEventService.transactionDirty.next(this._transactionDirty);
|
|
13136
13150
|
},
|
|
13137
13151
|
enumerable: false,
|
|
13138
13152
|
configurable: true
|
|
@@ -13147,6 +13161,7 @@
|
|
|
13147
13161
|
TransactionBaseService.prototype.init = function (options, resetCurrentTransaction) {
|
|
13148
13162
|
if (resetCurrentTransaction === void 0) { resetCurrentTransaction = true; }
|
|
13149
13163
|
return __awaiter(this, void 0, void 0, function () {
|
|
13164
|
+
var _this = this;
|
|
13150
13165
|
return __generator(this, function (_a) {
|
|
13151
13166
|
switch (_a.label) {
|
|
13152
13167
|
case 0:
|
|
@@ -13165,6 +13180,12 @@
|
|
|
13165
13180
|
return [4 /*yield*/, this.connector.connect()];
|
|
13166
13181
|
case 4:
|
|
13167
13182
|
_a.sent();
|
|
13183
|
+
this._subs.push(this.transactionEventService.saveTransactionClick.subscribe(function () {
|
|
13184
|
+
_this.transactionEventService.blockScreen.next(true);
|
|
13185
|
+
_this.saveTransactionAndCommit();
|
|
13186
|
+
}), this.transactionEventService.cancelTransactionClick.subscribe(function () {
|
|
13187
|
+
_this.rollback(true, true);
|
|
13188
|
+
}));
|
|
13168
13189
|
return [2 /*return*/];
|
|
13169
13190
|
}
|
|
13170
13191
|
});
|
|
@@ -13231,14 +13252,18 @@
|
|
|
13231
13252
|
this.resetLockTransaction();
|
|
13232
13253
|
return this.connector.commit();
|
|
13233
13254
|
};
|
|
13234
|
-
TransactionBaseService.prototype.rollback = function (refresh) {
|
|
13255
|
+
TransactionBaseService.prototype.rollback = function (refresh, force) {
|
|
13235
13256
|
if (refresh === void 0) { refresh = false; }
|
|
13257
|
+
if (force === void 0) { force = false; }
|
|
13236
13258
|
return __awaiter(this, void 0, void 0, function () {
|
|
13237
13259
|
var rollbackSuccess;
|
|
13238
13260
|
return __generator(this, function (_a) {
|
|
13239
13261
|
switch (_a.label) {
|
|
13240
13262
|
case 0:
|
|
13241
13263
|
this.transactionEventService.blockScreen.next(false);
|
|
13264
|
+
if (this.manualSaveParam && !force) {
|
|
13265
|
+
return [2 /*return*/, true];
|
|
13266
|
+
}
|
|
13242
13267
|
return [4 /*yield*/, this.connector.rollback()];
|
|
13243
13268
|
case 1:
|
|
13244
13269
|
rollbackSuccess = _a.sent();
|
|
@@ -13253,6 +13278,18 @@
|
|
|
13253
13278
|
});
|
|
13254
13279
|
});
|
|
13255
13280
|
};
|
|
13281
|
+
TransactionBaseService.prototype.rollbackBeacon = function () {
|
|
13282
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13283
|
+
return __generator(this, function (_a) {
|
|
13284
|
+
switch (_a.label) {
|
|
13285
|
+
case 0: return [4 /*yield*/, this.connector.rollbackBeacon()];
|
|
13286
|
+
case 1:
|
|
13287
|
+
_a.sent();
|
|
13288
|
+
return [2 /*return*/];
|
|
13289
|
+
}
|
|
13290
|
+
});
|
|
13291
|
+
});
|
|
13292
|
+
};
|
|
13256
13293
|
TransactionBaseService.prototype.searchTransactions = function (request) {
|
|
13257
13294
|
return this.connector.searchTransactions(request);
|
|
13258
13295
|
};
|
|
@@ -13685,10 +13722,11 @@
|
|
|
13685
13722
|
case 5:
|
|
13686
13723
|
hasPendingReasons = response.headerOperationStatuses.filter(function (los) { return los.pendingReason !== "REASON_NONE"; }).length > 0;
|
|
13687
13724
|
if (!!hasPendingReasons) return [3 /*break*/, 8];
|
|
13688
|
-
if (!((this.autoSave && saveTransaction) || overrideSave)) return [3 /*break*/, 6];
|
|
13725
|
+
if (!((this.autoSave && saveTransaction && !this.manualSaveParam) || overrideSave)) return [3 /*break*/, 6];
|
|
13689
13726
|
return [2 /*return*/, this.saveTransactionAndCommit(response)];
|
|
13690
|
-
case 6:
|
|
13691
|
-
|
|
13727
|
+
case 6:
|
|
13728
|
+
this.transactionEventService.blockScreen.next(false);
|
|
13729
|
+
return [4 /*yield*/, this.rememberCurrentTransaction(response)];
|
|
13692
13730
|
case 7:
|
|
13693
13731
|
_b.sent();
|
|
13694
13732
|
_b.label = 8;
|
|
@@ -13748,9 +13786,10 @@
|
|
|
13748
13786
|
}
|
|
13749
13787
|
this.transactionLineAdded = false;
|
|
13750
13788
|
}
|
|
13751
|
-
if (!(this.autoSave && saveTransaction)) return [3 /*break*/, 5];
|
|
13789
|
+
if (!(this.autoSave && saveTransaction && !this.manualSaveParam)) return [3 /*break*/, 5];
|
|
13752
13790
|
return [2 /*return*/, this.saveTransactionAndCommit(response)];
|
|
13753
13791
|
case 5:
|
|
13792
|
+
this.transactionEventService.blockScreen.next(false);
|
|
13754
13793
|
if (!rememberTransaction) return [3 /*break*/, 7];
|
|
13755
13794
|
return [4 /*yield*/, this.rememberCurrentTransaction(response)];
|
|
13756
13795
|
case 6:
|
|
@@ -14074,17 +14113,30 @@
|
|
|
14074
14113
|
return __generator(this, function (_b) {
|
|
14075
14114
|
switch (_b.label) {
|
|
14076
14115
|
case 0:
|
|
14077
|
-
// @ts-ignore
|
|
14078
14116
|
_a = this;
|
|
14079
|
-
return [4 /*yield*/, this.getInternalParameter(
|
|
14117
|
+
return [4 /*yield*/, this.getInternalParameter(internalParam_enum.InternalParam.PickingList)];
|
|
14080
14118
|
case 1:
|
|
14081
|
-
// @ts-ignore
|
|
14082
14119
|
_a.internalParameterJsPickingList = _b.sent();
|
|
14083
14120
|
return [2 /*return*/];
|
|
14084
14121
|
}
|
|
14085
14122
|
});
|
|
14086
14123
|
});
|
|
14087
14124
|
};
|
|
14125
|
+
TransactionService.prototype.prepareManualSaveInternalParam = function () {
|
|
14126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14127
|
+
var _a;
|
|
14128
|
+
return __generator(this, function (_b) {
|
|
14129
|
+
switch (_b.label) {
|
|
14130
|
+
case 0:
|
|
14131
|
+
_a = this;
|
|
14132
|
+
return [4 /*yield*/, this.getInternalParameter(internalParam_enum.InternalParam.TransManualSave)];
|
|
14133
|
+
case 1:
|
|
14134
|
+
_a.manualSaveParam = _b.sent();
|
|
14135
|
+
return [2 /*return*/];
|
|
14136
|
+
}
|
|
14137
|
+
});
|
|
14138
|
+
});
|
|
14139
|
+
};
|
|
14088
14140
|
TransactionService.prototype.prepareDropShipmentInternalParam = function () {
|
|
14089
14141
|
var _this = this;
|
|
14090
14142
|
this.getInternalParameter(internalParam_enum.InternalParam.DropShipment).then(function (value) { return _this.internalParameterAllowsDropShipment = value; });
|
|
@@ -14245,6 +14297,7 @@
|
|
|
14245
14297
|
case 1:
|
|
14246
14298
|
response = _a.sent();
|
|
14247
14299
|
if (response) {
|
|
14300
|
+
this.transactionDirty = true;
|
|
14248
14301
|
return [2 /*return*/, this.handleHeaderOperationStatuses(response, saveTransaction)];
|
|
14249
14302
|
}
|
|
14250
14303
|
return [2 /*return*/, false];
|
|
@@ -14262,6 +14315,7 @@
|
|
|
14262
14315
|
case 1:
|
|
14263
14316
|
response = _a.sent();
|
|
14264
14317
|
if (response) {
|
|
14318
|
+
this.transactionDirty = true;
|
|
14265
14319
|
return [2 /*return*/, this.handleHeaderOperationStatuses(response, saveTransaction)];
|
|
14266
14320
|
}
|
|
14267
14321
|
return [2 /*return*/, false];
|
|
@@ -14972,6 +15026,7 @@
|
|
|
14972
15026
|
case 1:
|
|
14973
15027
|
response = _a.sent();
|
|
14974
15028
|
if (response) {
|
|
15029
|
+
this.transactionDirty = true;
|
|
14975
15030
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
14976
15031
|
}
|
|
14977
15032
|
return [2 /*return*/, false];
|
|
@@ -14988,6 +15043,7 @@
|
|
|
14988
15043
|
case 1:
|
|
14989
15044
|
response = _a.sent();
|
|
14990
15045
|
if (response) {
|
|
15046
|
+
this.transactionDirty = true;
|
|
14991
15047
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
14992
15048
|
}
|
|
14993
15049
|
return [2 /*return*/, false];
|
|
@@ -15004,6 +15060,7 @@
|
|
|
15004
15060
|
case 1:
|
|
15005
15061
|
response = _a.sent();
|
|
15006
15062
|
if (response) {
|
|
15063
|
+
this.transactionDirty = true;
|
|
15007
15064
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15008
15065
|
}
|
|
15009
15066
|
return [2 /*return*/, false];
|
|
@@ -15020,6 +15077,7 @@
|
|
|
15020
15077
|
case 1:
|
|
15021
15078
|
response = _a.sent();
|
|
15022
15079
|
if (response) {
|
|
15080
|
+
this.transactionDirty = true;
|
|
15023
15081
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15024
15082
|
}
|
|
15025
15083
|
return [2 /*return*/, false];
|
|
@@ -15036,6 +15094,7 @@
|
|
|
15036
15094
|
case 1:
|
|
15037
15095
|
response = _a.sent();
|
|
15038
15096
|
if (response) {
|
|
15097
|
+
this.transactionDirty = true;
|
|
15039
15098
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15040
15099
|
}
|
|
15041
15100
|
return [2 /*return*/, false];
|
|
@@ -15052,6 +15111,7 @@
|
|
|
15052
15111
|
case 1:
|
|
15053
15112
|
response = _a.sent();
|
|
15054
15113
|
if (response) {
|
|
15114
|
+
this.transactionDirty = true;
|
|
15055
15115
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15056
15116
|
}
|
|
15057
15117
|
return [2 /*return*/, false];
|
|
@@ -15082,6 +15142,7 @@
|
|
|
15082
15142
|
case 1:
|
|
15083
15143
|
response = _a.sent();
|
|
15084
15144
|
if (!response) return [3 /*break*/, 3];
|
|
15145
|
+
this.transactionDirty = true;
|
|
15085
15146
|
return [4 /*yield*/, this.handleLineOperationStatuses(response, false, false)];
|
|
15086
15147
|
case 2:
|
|
15087
15148
|
_a.sent();
|
|
@@ -15103,6 +15164,7 @@
|
|
|
15103
15164
|
case 1:
|
|
15104
15165
|
response = _a.sent();
|
|
15105
15166
|
if (!response) return [3 /*break*/, 3];
|
|
15167
|
+
this.transactionDirty = true;
|
|
15106
15168
|
return [4 /*yield*/, this.handleLineOperationStatuses(response, saveTransaction, rememberTransaction)];
|
|
15107
15169
|
case 2:
|
|
15108
15170
|
_a.sent();
|
|
@@ -15122,6 +15184,7 @@
|
|
|
15122
15184
|
case 1:
|
|
15123
15185
|
response = _a.sent();
|
|
15124
15186
|
if (response) {
|
|
15187
|
+
this.transactionDirty = true;
|
|
15125
15188
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15126
15189
|
}
|
|
15127
15190
|
return [2 /*return*/, false];
|
|
@@ -15138,6 +15201,7 @@
|
|
|
15138
15201
|
case 1:
|
|
15139
15202
|
response = _a.sent();
|
|
15140
15203
|
if (response) {
|
|
15204
|
+
this.transactionDirty = true;
|
|
15141
15205
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15142
15206
|
}
|
|
15143
15207
|
return [2 /*return*/, false];
|
|
@@ -15154,6 +15218,7 @@
|
|
|
15154
15218
|
case 1:
|
|
15155
15219
|
response = _a.sent();
|
|
15156
15220
|
if (response) {
|
|
15221
|
+
this.transactionDirty = true;
|
|
15157
15222
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15158
15223
|
}
|
|
15159
15224
|
return [2 /*return*/, false];
|
|
@@ -15170,6 +15235,7 @@
|
|
|
15170
15235
|
case 1:
|
|
15171
15236
|
response = _a.sent();
|
|
15172
15237
|
if (response) {
|
|
15238
|
+
this.transactionDirty = true;
|
|
15173
15239
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15174
15240
|
}
|
|
15175
15241
|
return [2 /*return*/, false];
|
|
@@ -15186,6 +15252,7 @@
|
|
|
15186
15252
|
case 1:
|
|
15187
15253
|
response = _a.sent();
|
|
15188
15254
|
if (response) {
|
|
15255
|
+
this.transactionDirty = true;
|
|
15189
15256
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15190
15257
|
}
|
|
15191
15258
|
return [2 /*return*/, false];
|
|
@@ -15202,6 +15269,7 @@
|
|
|
15202
15269
|
case 1:
|
|
15203
15270
|
response = _a.sent();
|
|
15204
15271
|
if (response) {
|
|
15272
|
+
this.transactionDirty = true;
|
|
15205
15273
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15206
15274
|
}
|
|
15207
15275
|
return [2 /*return*/, false];
|
|
@@ -15218,6 +15286,7 @@
|
|
|
15218
15286
|
case 1:
|
|
15219
15287
|
response = _a.sent();
|
|
15220
15288
|
if (response) {
|
|
15289
|
+
this.transactionDirty = true;
|
|
15221
15290
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15222
15291
|
}
|
|
15223
15292
|
return [2 /*return*/, false];
|
|
@@ -15236,6 +15305,7 @@
|
|
|
15236
15305
|
case 1:
|
|
15237
15306
|
response = _a.sent();
|
|
15238
15307
|
if (response) {
|
|
15308
|
+
this.transactionDirty = true;
|
|
15239
15309
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15240
15310
|
}
|
|
15241
15311
|
return [2 /*return*/, false];
|
|
@@ -15252,6 +15322,7 @@
|
|
|
15252
15322
|
case 1:
|
|
15253
15323
|
response = _a.sent();
|
|
15254
15324
|
if (response) {
|
|
15325
|
+
this.transactionDirty = true;
|
|
15255
15326
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15256
15327
|
}
|
|
15257
15328
|
return [2 /*return*/, false];
|
|
@@ -15516,6 +15587,7 @@
|
|
|
15516
15587
|
case 2:
|
|
15517
15588
|
response = _a.sent();
|
|
15518
15589
|
if (response) {
|
|
15590
|
+
this.transactionDirty = true;
|
|
15519
15591
|
return [2 /*return*/, this.handleHeaderOperationStatuses(response)];
|
|
15520
15592
|
}
|
|
15521
15593
|
return [2 /*return*/, false];
|
|
@@ -15614,6 +15686,7 @@
|
|
|
15614
15686
|
case 1:
|
|
15615
15687
|
response = _a.sent();
|
|
15616
15688
|
if (response !== null) {
|
|
15689
|
+
this.transactionDirty = true;
|
|
15617
15690
|
return [2 /*return*/, this.handleLineOperationStatuses(response, saveTransaction)];
|
|
15618
15691
|
}
|
|
15619
15692
|
else {
|
|
@@ -15780,6 +15853,7 @@
|
|
|
15780
15853
|
return [4 /*yield*/, this.connector.addTextLineToTransaction(this.currentTransaction.transactionInfo.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)];
|
|
15781
15854
|
case 3:
|
|
15782
15855
|
response = _a.sent();
|
|
15856
|
+
this.transactionDirty = true;
|
|
15783
15857
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15784
15858
|
case 4: return [2 /*return*/, false];
|
|
15785
15859
|
}
|
|
@@ -15798,6 +15872,7 @@
|
|
|
15798
15872
|
return [4 /*yield*/, this.connector.updateTextLine(uuid, lineUuid, showOnDocuments, text)];
|
|
15799
15873
|
case 2:
|
|
15800
15874
|
response = _a.sent();
|
|
15875
|
+
this.transactionDirty = true;
|
|
15801
15876
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15802
15877
|
case 3: return [2 /*return*/, false];
|
|
15803
15878
|
}
|
|
@@ -15816,6 +15891,7 @@
|
|
|
15816
15891
|
return [4 /*yield*/, this.connector.changeLineSequence(this.currentTransaction.transactionInfo.uuid, lineUuid, aboveLineNr, belowLineNr)];
|
|
15817
15892
|
case 2:
|
|
15818
15893
|
response = _a.sent();
|
|
15894
|
+
this.transactionDirty = true;
|
|
15819
15895
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15820
15896
|
case 3: return [2 /*return*/, false];
|
|
15821
15897
|
}
|
|
@@ -15830,6 +15906,7 @@
|
|
|
15830
15906
|
case 0: return [4 /*yield*/, this.connector.deleteTransactionLine(transactionUuid, TransactionLineUuid)];
|
|
15831
15907
|
case 1:
|
|
15832
15908
|
response = _a.sent();
|
|
15909
|
+
this.transactionDirty = true;
|
|
15833
15910
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15834
15911
|
}
|
|
15835
15912
|
});
|
|
@@ -15843,6 +15920,7 @@
|
|
|
15843
15920
|
case 0: return [4 /*yield*/, this.connector.changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity)];
|
|
15844
15921
|
case 1:
|
|
15845
15922
|
response = _a.sent();
|
|
15923
|
+
this.transactionDirty = true;
|
|
15846
15924
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
15847
15925
|
}
|
|
15848
15926
|
});
|
|
@@ -15874,6 +15952,7 @@
|
|
|
15874
15952
|
this.transactionEventService.updatingPurchaseOrderReceiveGoods.next(false);
|
|
15875
15953
|
success = true;
|
|
15876
15954
|
if (!response) return [3 /*break*/, 4];
|
|
15955
|
+
this.transactionDirty = true;
|
|
15877
15956
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
15878
15957
|
case 3:
|
|
15879
15958
|
success = _a.sent();
|
|
@@ -15900,6 +15979,7 @@
|
|
|
15900
15979
|
this.transactionEventService.updatingPurchaseOrderReceiveGoods.next(false);
|
|
15901
15980
|
success = true;
|
|
15902
15981
|
if (!response) return [3 /*break*/, 4];
|
|
15982
|
+
this.transactionDirty = true;
|
|
15903
15983
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
15904
15984
|
case 3:
|
|
15905
15985
|
success = _a.sent();
|
|
@@ -15926,6 +16006,7 @@
|
|
|
15926
16006
|
this.transactionEventService.updatingPurchaseOrderAllocateGoods.next(false);
|
|
15927
16007
|
success = true;
|
|
15928
16008
|
if (!response) return [3 /*break*/, 4];
|
|
16009
|
+
this.transactionDirty = true;
|
|
15929
16010
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
15930
16011
|
case 3:
|
|
15931
16012
|
success = _a.sent();
|
|
@@ -15952,6 +16033,7 @@
|
|
|
15952
16033
|
this.transactionEventService.updatingPurchaseOrderAllocateGoods.next(false);
|
|
15953
16034
|
success = true;
|
|
15954
16035
|
if (!response) return [3 /*break*/, 4];
|
|
16036
|
+
this.transactionDirty = true;
|
|
15955
16037
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
15956
16038
|
case 3:
|
|
15957
16039
|
success = _a.sent();
|
|
@@ -15978,6 +16060,7 @@
|
|
|
15978
16060
|
this.transactionEventService.updatingSalesOrderGoodsToBePicked.next(false);
|
|
15979
16061
|
success = true;
|
|
15980
16062
|
if (!response) return [3 /*break*/, 4];
|
|
16063
|
+
this.transactionDirty = true;
|
|
15981
16064
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
15982
16065
|
case 3:
|
|
15983
16066
|
success = _a.sent();
|
|
@@ -16004,6 +16087,7 @@
|
|
|
16004
16087
|
this.transactionEventService.updatingSalesOrderGoodsPicked.next(false);
|
|
16005
16088
|
success = true;
|
|
16006
16089
|
if (!response) return [3 /*break*/, 4];
|
|
16090
|
+
this.transactionDirty = true;
|
|
16007
16091
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
16008
16092
|
case 3:
|
|
16009
16093
|
success = _a.sent();
|
|
@@ -16028,6 +16112,7 @@
|
|
|
16028
16112
|
response = _a.sent();
|
|
16029
16113
|
success = true;
|
|
16030
16114
|
if (!response) return [3 /*break*/, 4];
|
|
16115
|
+
this.transactionDirty = true;
|
|
16031
16116
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
16032
16117
|
case 3:
|
|
16033
16118
|
success = _a.sent();
|
|
@@ -16052,6 +16137,7 @@
|
|
|
16052
16137
|
response = _a.sent();
|
|
16053
16138
|
success = true;
|
|
16054
16139
|
if (!response) return [3 /*break*/, 4];
|
|
16140
|
+
this.transactionDirty = true;
|
|
16055
16141
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
|
|
16056
16142
|
case 3:
|
|
16057
16143
|
success = _a.sent();
|
|
@@ -17221,6 +17307,7 @@
|
|
|
17221
17307
|
case 2: return [4 /*yield*/, _a.sent()];
|
|
17222
17308
|
case 3:
|
|
17223
17309
|
response = _a.sent();
|
|
17310
|
+
this.transactionDirty = true;
|
|
17224
17311
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
17225
17312
|
case 4: return [2 /*return*/, false];
|
|
17226
17313
|
}
|
|
@@ -17240,6 +17327,7 @@
|
|
|
17240
17327
|
case 2: return [4 /*yield*/, _a.sent()];
|
|
17241
17328
|
case 3:
|
|
17242
17329
|
response = _a.sent();
|
|
17330
|
+
this.transactionDirty = true;
|
|
17243
17331
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
17244
17332
|
case 4: return [2 /*return*/, false];
|
|
17245
17333
|
}
|
|
@@ -17259,6 +17347,7 @@
|
|
|
17259
17347
|
case 2:
|
|
17260
17348
|
response = _a.sent();
|
|
17261
17349
|
if (response) {
|
|
17350
|
+
this.transactionDirty = true;
|
|
17262
17351
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
17263
17352
|
}
|
|
17264
17353
|
return [2 /*return*/, false];
|
|
@@ -17748,11 +17837,14 @@
|
|
|
17748
17837
|
return __awaiter(this, void 0, void 0, function () {
|
|
17749
17838
|
return __generator(this, function (_a) {
|
|
17750
17839
|
switch (_a.label) {
|
|
17751
|
-
case 0: return [4 /*yield*/, this.
|
|
17840
|
+
case 0: return [4 /*yield*/, this.prepareManualSaveInternalParam()];
|
|
17752
17841
|
case 1:
|
|
17753
17842
|
_a.sent();
|
|
17754
|
-
return [4 /*yield*/, this.
|
|
17843
|
+
return [4 /*yield*/, this.prepareMLocatInternalParam()];
|
|
17755
17844
|
case 2:
|
|
17845
|
+
_a.sent();
|
|
17846
|
+
return [4 /*yield*/, this.preparePakBinnenInternalParam()];
|
|
17847
|
+
case 3:
|
|
17756
17848
|
_a.sent();
|
|
17757
17849
|
return [2 /*return*/];
|
|
17758
17850
|
}
|
|
@@ -27422,11 +27514,15 @@
|
|
|
27422
27514
|
_this.transactionService = transactionService;
|
|
27423
27515
|
_this.changeDetector = changeDetector;
|
|
27424
27516
|
_this.Icon = Icon;
|
|
27517
|
+
_this.showDetails = false;
|
|
27425
27518
|
return _this;
|
|
27426
27519
|
}
|
|
27427
27520
|
TransactionLinesSidePanelServiceOrderComponent.prototype.showClass = function () {
|
|
27428
27521
|
return true;
|
|
27429
27522
|
};
|
|
27523
|
+
TransactionLinesSidePanelServiceOrderComponent.prototype.showDetailsClick = function () {
|
|
27524
|
+
this.showDetails = !this.showDetails;
|
|
27525
|
+
};
|
|
27430
27526
|
TransactionLinesSidePanelServiceOrderComponent.prototype.ngOnInit = function () {
|
|
27431
27527
|
var _super = Object.create(null, {
|
|
27432
27528
|
ngOnInit: { get: function () { return _super_1.prototype.ngOnInit; } }
|
|
@@ -27451,8 +27547,15 @@
|
|
|
27451
27547
|
TransactionLinesSidePanelServiceOrderComponent.decorators = [
|
|
27452
27548
|
{ type: i0.Component, args: [{
|
|
27453
27549
|
selector: 'co-transaction-lines-side-panel-service-order',
|
|
27454
|
-
template: "\n <div class=\"full-details-wrapper\">\n <div class=\"details-wrapper\">\n <div class=\"details-label-wrapper\">\n <label class=\"detail-label\" [textContent]=\"'ARTICLE_DETAILS' | localize\"\n ></label>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ChevronDownRegular)\"></co-icon>\n </div>\n <div class=\"details-display articles\">\n <div class=\"article-description\">\n <!--co-input-text [(model)]=\"transactionServiceInfo.productName\"\n class=\"detail-text-field\" [readonly]=\"true\"></co-input-text-->\n <div class=\"art-details\">\n <label class=\"label\" [textContent]=\"'DESCRIPTION'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceArticleDescription\"></span>\n </div>\n </div>\n <div class=\"art-amount-batch\">\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'AMOUNT'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceQuantity\"></span>\n </div>\n <!--div class=\"detail\">\n <label class=\"label\" [textContent]=\"'BATCH_NUMBER'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceBatchNr\"></span>\n </div-->\n </div>\n <co-image-display class=\"image-display\" [model]=\"image\"></co-image-display>\n </div>\n </div>\n
|
|
27455
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
27550
|
+
template: "\n <div class=\"full-details-wrapper\">\n <div class=\"details-wrapper\">\n <div class=\"details-label-wrapper clickable\" (click)=\"showDetailsClick()\">\n <label class=\"detail-label\" [textContent]=\"'ARTICLE_DETAILS' | localize\"\n ></label>\n <co-icon [class.active]=\"showDetails\" [iconData]=\"iconCacheService.getIcon(icons.ChevronDownRegular)\"></co-icon>\n </div>\n <div class=\"details-display articles\">\n <div class=\"article-description\">\n <!--co-input-text [(model)]=\"transactionServiceInfo.productName\"\n class=\"detail-text-field\" [readonly]=\"true\"></co-input-text-->\n <div class=\"art-details\">\n <label class=\"label\" [textContent]=\"'DESCRIPTION'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceArticleDescription\"></span>\n </div>\n </div>\n <div class=\"art-amount-batch\">\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'AMOUNT'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceQuantity\"></span>\n </div>\n <!--div class=\"detail\">\n <label class=\"label\" [textContent]=\"'BATCH_NUMBER'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceBatchNr\"></span>\n </div-->\n </div>\n <co-image-display class=\"image-display\" [model]=\"image\"></co-image-display>\n </div>\n </div>\n <div class=\"show-details-wrapper\"\n *ngIf=\"showDetails\"\n [@slideToggle]=\"showDetails ? 'open' : 'closed'\">\n <div class=\"details-wrapper\">\n <div class=\"details-label-wrapper\">\n <label class=\"detail-label\" [textContent]=\"'SALESORDER_DETAIL' | localize\"\n ></label>\n </div>\n <div class=\"details-display\">\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'ORDERNUMBER'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceTransactionNr\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'ORDER_DATE'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceTransactionDate | date : 'd-MM-yyyy'\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'DELIVERY_DATE'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceDeliveryDate | date : 'd-MM-yyyy'\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'REFERENCE'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.priority\"></span>\n </div>\n </div>\n </div>\n <div class=\"details-wrapper\">\n <div class=\"details-label-wrapper\">\n <label class=\"detail-label\" [textContent]=\"'PURCHASEORDER_DETAIL' | localize\"\n ></label>\n </div>\n <div class=\"details-display supplier\">\n <div class=\"top-details\">\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'ORDERNUMBER'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourcePurchaseTransactionNr\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'ORDER_DATE'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourcePurchaseTransactionDate | date : 'd-MM-yyyy'\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'RECEIVED'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourcePurchaseTransactionReceiptDate | date : 'd-MM-yyyy'\"></span>\n </div>\n <div class=\"vertical-line\"></div>\n <div class=\"detail\">\n <label class=\"label\" [textContent]=\"'REFERENCE'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceRefSupplier\"></span>\n </div>\n </div>\n <div class=\"bottom-details\">\n <div class=\"detail supplier\">\n <label class=\"label\" [textContent]=\"'SUPPLIER'| localize\"></label>\n <span class=\"value\" [textContent]=\"transactionServiceInfo.sourceSupplierName\"></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
27551
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
27552
|
+
animations: [
|
|
27553
|
+
animations.trigger('slideToggle', [
|
|
27554
|
+
animations.state('void', animations.style({ height: '0px', overflow: 'hidden' })),
|
|
27555
|
+
animations.state('*', animations.style({ height: '*', overflow: 'hidden' })),
|
|
27556
|
+
animations.transition('void <=> *', animations.animate('300ms ease-in-out')),
|
|
27557
|
+
])
|
|
27558
|
+
]
|
|
27456
27559
|
},] }
|
|
27457
27560
|
];
|
|
27458
27561
|
TransactionLinesSidePanelServiceOrderComponent.ctorParameters = function () { return [
|
|
@@ -36104,7 +36207,7 @@
|
|
|
36104
36207
|
if (_this.form.formGroup.dirty) {
|
|
36105
36208
|
_this.setFormDirty();
|
|
36106
36209
|
}
|
|
36107
|
-
}), this.transactionEventService.
|
|
36210
|
+
}), this.transactionEventService.transactionDirty.subscribe(function (dirty) {
|
|
36108
36211
|
if (dirty) {
|
|
36109
36212
|
_this.setFormDirty();
|
|
36110
36213
|
}
|
|
@@ -41660,7 +41763,7 @@
|
|
|
41660
41763
|
TransactionHeaderOrderComponent.decorators = [
|
|
41661
41764
|
{ type: i0.Component, args: [{
|
|
41662
41765
|
selector: "co-transaction-header-order",
|
|
41663
|
-
template: "\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-order-total-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderOrderOrderTotalHeader\" screenConfigNativeElement>\n <span class=\"header-order-total-label co-transaction-label\" [textContent]=\"'ORDER_TOTAL' | localize\"></span>\n <div class=\"header-order-total\" [textContent]=\"transactionTotal.netAmount | coCurrency\"></div>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\" [screenConfigurationObject]=\"cfgNames.HeaderOrderDiscountHeader\" screenConfigNativeElement>\n <div class=\"transaction-header-discount-button\">\n <div class=\"header-discount\" (click)=\"openDiscount($event)\">\n <co-icon class=\"header-discount-icon\" [iconData]=\"iconCacheService.getIcon(icons.
|
|
41766
|
+
template: "\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-order-total-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderOrderOrderTotalHeader\" screenConfigNativeElement>\n <span class=\"header-order-total-label co-transaction-label\" [textContent]=\"'ORDER_TOTAL' | localize\"></span>\n <div class=\"header-order-total\" [textContent]=\"transactionTotal.netAmount | coCurrency\"></div>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\" [screenConfigurationObject]=\"cfgNames.HeaderOrderDiscountHeader\" screenConfigNativeElement>\n <div class=\"transaction-header-discount-button\">\n <div class=\"header-discount\" (click)=\"openDiscount($event)\">\n <co-icon class=\"header-discount-icon\" [iconData]=\"iconCacheService.getIcon(icons.LightEuroSignMinus)\"></co-icon>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #hiddenBlock>\n <div class=\"transaction-header-block-row\" [screenConfigurationObject]=\"cfgNames.HeaderOrderDefinitiveHeader\" screenConfigNativeElement>\n <div class=\"header-order-definitive\">\n <co-transaction-header-definitive class=\"transaction-header-order-definitive\"\n [screenConfigurationObject]=\"cfgNames.HeaderOrderDefinitiveHeader\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-header-definitive>\n </div>\n <!--span class=\"header-order-line-amount-label co-transaction-label\" [textContent]=\"'ORDER_LINES' | localize\"></span>\n <div class=\"header-order-line-amount\" [textContent]=\"transactionLines.length\"></div-->\n </div>\n </ng-template>\n <co-transaction-header-popup *ngIf=\"showDialog\"\n [activeCategoryDescription]=\"'ORDER_INFORMATION1'\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (closeClick)=\"showDialog = false\"></co-transaction-header-popup>\n<!--\n\n <co-dialog class=\"transaction-header-order-dialog\" [customCssClass]=\"'co-small-scrollbar'\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\"\n (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"'ORDER_INFORMATION1' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"order-dialog-section\">\n <div class=\"section-wrapper\">\n <div class=\"section-header\" [textContent]=\"'BASE_INFO1' | localize | prepend:'01 '\"></div>\n <div class=\"two-column-grid\">\n <co-transaction-header-branch [simple]=\"true\" [transaction]=\"transaction\" [transactionInfo]=\"transactionInfo\"></co-transaction-header-branch>\n <co-transaction-header-sales-person [transactionInfo]=\"transactionInfo\"></co-transaction-header-sales-person>\n <co-transaction-header-administrative-relation\n [transactionInfo]=\"transactionInfo\"></co-transaction-header-administrative-relation>\n <co-transaction-header-price-kind [transaction]=\"transaction\" [transactionInfo]=\"transactionInfo\"></co-transaction-header-price-kind>\n <co-transaction-header-currency [transaction]=\"transaction\" [transactionInfo]=\"transactionInfo\"></co-transaction-header-currency>\n <co-transaction-header-payment-condition\n [transactionInfo]=\"transactionInfo\"></co-transaction-header-payment-condition>\n </div>\n </div>\n <div class=\"section-wrapper\">\n <div class=\"section-header\" [textContent]=\"'ORDER_PARAMETERS' | localize | prepend:'02 '\"></div>\n <div class=\"section-sub-title\" [textContent]=\"'ON_HOLD_CODES' | localize\"></div>\n <co-transaction-header-hold-codes [transactionInfo]=\"transaction.transactionInfo\"></co-transaction-header-hold-codes>\n <div class=\"section-sub-title\" [textContent]=\"'MARKETING_CODE' | localize\"></div>\n <co-transaction-header-marketing [transactionInfo]=\"transaction.transactionInfo\"></co-transaction-header-marketing>\n </div>\n </div>\n </co-dialog>\n-->\n <co-dialog-transaction-header-discount class=\"discount-dialog\" *ngIf=\"showDialogDiscount\"\n [screenConfigurationObject]=\"cfgNames.DiscountPriceInformationHeader\"\n [transactionInfo]=\"transactionInfo\"\n [transactionTotal]=\"transactionTotal\"\n (close)=\"showDialogDiscount = false\">\n </co-dialog-transaction-header-discount>\n ",
|
|
41664
41767
|
providers: [{
|
|
41665
41768
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
41666
41769
|
useExisting: i0.forwardRef(function () { return TransactionHeaderOrderComponent; })
|
|
@@ -41791,7 +41894,7 @@
|
|
|
41791
41894
|
TransactionHeaderPaymentComponent.decorators = [
|
|
41792
41895
|
{ type: i0.Component, args: [{
|
|
41793
41896
|
selector: "co-transaction-header-payment",
|
|
41794
|
-
template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transaction]=\"transaction\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showPaymentDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></div>\n <co-transaction-header-remaining-amount class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n (remainingAmountChange)=\"remainingToPay = $event\"\n ></co-transaction-header-remaining-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-downpayment-percentage-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'%' | localize\"></div>\n <co-transaction-header-deposit-percentage class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-percentage>\n </div>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"payment-payed-wrapper\">\n <div class=\"header-payed-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_DONE' | localize\"></div>\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | coCurrency) || 0\"></span>\n </div>\n <div class=\"header-payment-button-wrapper\" (click)=\"openPayment($event)\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPaymentHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\" [iconData]=\"iconCacheService.getIcon(icons.
|
|
41897
|
+
template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transaction]=\"transaction\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\" (click)=\"showDialog = true\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showPaymentDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></div>\n <co-transaction-header-remaining-amount class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n (remainingAmountChange)=\"remainingToPay = $event\"\n ></co-transaction-header-remaining-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-downpayment-percentage-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'%' | localize\"></div>\n <co-transaction-header-deposit-percentage class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-percentage>\n </div>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"payment-payed-wrapper\">\n <div class=\"header-payed-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_DONE' | localize\"></div>\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | coCurrency) || 0\"></span>\n </div>\n <div class=\"header-payment-button-wrapper\" (click)=\"openPayment($event)\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPaymentHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\" [iconData]=\"iconCacheService.getIcon(icons.LightCreditCardCheck)\">\n </co-icon>\n\n <!--co-transaction-header-payment-button *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-header-payment-button-->\n </div>\n </div>\n </ng-template>\n <ng-template #hiddenBlock>\n <!--div class=\"transaction-header-block-row\">\n <div class=\"header-branch-label co-transaction-label\" [textContent]=\"'BRANCH' | localize\"></div>\n <div class=\"branch-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </div-->\n </ng-template>\n <co-transaction-header-popup *ngIf=\"showDialog\"\n [activeCategoryDescription]=\"'PAYMENT_INFORMATION'\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (closeClick)=\"showDialog = false\"></co-transaction-header-popup>\n<!--\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <co-deposit-payment [branch]=\"transactionInfo.branch?.relationNr\" [transactionUuid]=\"transactionInfo.uuid\"></co-deposit-payment>\n </div>\n </co-dialog>\n-->\n <co-dialog class=\"payment-dialog\" [modal]=\"true\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showPaymentDialog\" (closeClick)=\"showPaymentDialog = false\">\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]=\"transactionInfo.id\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"showRemainingPayment ? remainingToPay : toPay\"\n [remainingPayment]=\"showRemainingPayment\"\n [currencyId]=\"transactionInfo.currencyId\"\n [doNotFetchAmountToPayForRemaining]=\"true\"\n ></co-payment>\n </co-dialog>\n ",
|
|
41795
41898
|
providers: [
|
|
41796
41899
|
{ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return TransactionHeaderPaymentComponent; }) }
|
|
41797
41900
|
],
|
|
@@ -51819,7 +51922,7 @@
|
|
|
51819
51922
|
TransactionServiceOverviewComponent.decorators = [
|
|
51820
51923
|
{ type: i0.Component, args: [{
|
|
51821
51924
|
selector: "co-transaction-service-overview",
|
|
51822
|
-
template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <co-transaction-service-message class=\"transaction-service-message\" [transaction]=\"transaction\">\n </co-transaction-service-message>\n
|
|
51925
|
+
template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <span *ngIf=\"transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers\"\n [textContent]=\"transactionServiceInfo.wizardQuestionsAndAnswers\"></span>\n <co-transaction-service-message class=\"transaction-service-message\" [transaction]=\"transaction\">\n </co-transaction-service-message>\n </div>\n <co-files-upload (documentChangeEvent)=\"upsertDocument($event)\"\n (documentDeleted)=\"deleteDocument($event)\"\n [label]=\"'ADD_IMAGES' | localize\"\n [documents]=\"documents\"\n [isEditable]=\"false\">\n </co-files-upload>\n <div class=\"service-order-lines-wrapper\">\n <div class=\"service-message-extra-wrapper\">\n <co-list-of-values [label]=\"'PRIORITY'| localize\" displayField=\"description\" [model]=\"priorityModel\"\n [collection]=\"priorityDomainColl\"\n (modelChange)=\"setPriority($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'CAUSE_CODE' | localize\" displayField=\"description\" [model]=\"causeCodeModel\"\n [collection]=\"causeCodeColl\"\n (modelChange)=\"setCauseCode($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'ENTRY_TYPE' | localize\" displayField=\"description\" [model]=\"entryTypeModel\"\n [collection]=\"entryTypeColl\"\n (modelChange)=\"setEntryType($event)\"></co-list-of-values>\n </div>\n <co-transaction-lines-side-panel\n class=\"higher-max-width\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n </div>\n\n </div>\n <div class=\"activity-list-component-wrapper\">\n <div class=\"activity-task-creator-wrapper\">\n <co-component-activity-list #openActivities [showActivityHeader]=\"showActivityHeader\" [table]=\"TableName.Transactions\" [key]=\"transactionInfo.id.toString()\" (refreshRequested)=\"finishedActivitiesRefreshRequested()\">\n </co-component-activity-list>\n <co-task-creator [table]=\"TableName.Transactions\" [remarkAndWorkKey]=\"transactionInfo.id.toString()\" [taskKey]=\"transactionInfo.transactionNr.toString()\"\n [author]=\"transactionService.loggedInUser\" [branchNo]=\"transactionInfo.branch.relationNr.toString()\"\n [workflowCategoryType]=\"WorkflowCategoryType.ServiceOrder\"\n (activityCreated)=\"fullActivitiesRefreshRequested()\"></co-task-creator>\n </div>\n <div class=\"activity-list-conv-wrapper\">\n <label class=\"label history-label\" [textContent]=\"'HISTORIC_ACTIVITY_CHAT'| localize\"></label>\n <co-activity-list [activities]=\"activities\"></co-activity-list>\n </div>\n </div>\n </div>\n </div>\n\n ",
|
|
51823
51926
|
encapsulation: i0.ViewEncapsulation.None
|
|
51824
51927
|
},] }
|
|
51825
51928
|
];
|
|
@@ -51885,7 +51988,7 @@
|
|
|
51885
51988
|
TransactionServiceMessageComponent.decorators = [
|
|
51886
51989
|
{ type: i0.Component, args: [{
|
|
51887
51990
|
selector: "co-transaction-service-message",
|
|
51888
|
-
template: "\n <co-input-textarea #input\n [model]=\"transactionServiceInfo.reportMessage\"\n
|
|
51991
|
+
template: "\n <co-input-textarea #input\n [model]=\"transactionServiceInfo.reportMessage\"\n [readonly]=\"readonly\"\n [showSaveCancel]=\"true\"\n ></co-input-textarea>\n ",
|
|
51889
51992
|
encapsulation: i0.ViewEncapsulation.None
|
|
51890
51993
|
},] }
|
|
51891
51994
|
];
|
|
@@ -53216,18 +53319,22 @@
|
|
|
53216
53319
|
];
|
|
53217
53320
|
|
|
53218
53321
|
var TransactionComponent = /** @class */ (function () {
|
|
53219
|
-
function TransactionComponent(service, _transactionConnectorService, _screenConfigurationService, _changeDetector, _purchaseConfirmationService) {
|
|
53322
|
+
function TransactionComponent(service, _transactionConnectorService, _screenConfigurationService, _changeDetector, _purchaseConfirmationService, _dictionaryService, _dialogService) {
|
|
53220
53323
|
this.service = service;
|
|
53221
53324
|
this._transactionConnectorService = _transactionConnectorService;
|
|
53222
53325
|
this._screenConfigurationService = _screenConfigurationService;
|
|
53223
53326
|
this._changeDetector = _changeDetector;
|
|
53224
53327
|
this._purchaseConfirmationService = _purchaseConfirmationService;
|
|
53328
|
+
this._dictionaryService = _dictionaryService;
|
|
53329
|
+
this._dialogService = _dialogService;
|
|
53225
53330
|
this.cfgNames = exports.TransactionCfgName;
|
|
53226
53331
|
this.relation = new customerFullObject_bo.CustomerFullObject();
|
|
53227
53332
|
this.showHeader = true;
|
|
53228
53333
|
this.showViewModeButtons = true;
|
|
53229
53334
|
this.showQuickAccess = true;
|
|
53230
53335
|
this.showButtonBar = true;
|
|
53336
|
+
this.showSaveCancelLabels = false;
|
|
53337
|
+
this.saveCancelMovable = false;
|
|
53231
53338
|
this.screenConfigLoaded = false;
|
|
53232
53339
|
}
|
|
53233
53340
|
Object.defineProperty(TransactionComponent.prototype, "confirmationAnalysisId", {
|
|
@@ -53270,13 +53377,21 @@
|
|
|
53270
53377
|
TransactionComponent.prototype.showClass = function () {
|
|
53271
53378
|
return true;
|
|
53272
53379
|
};
|
|
53380
|
+
TransactionComponent.prototype.checkTransaction = function () {
|
|
53381
|
+
return this._checkTransactionDirty();
|
|
53382
|
+
};
|
|
53383
|
+
TransactionComponent.prototype.checkRollBack = function () {
|
|
53384
|
+
if (this.service.transactionDirty && this.service.manualSaveParam) {
|
|
53385
|
+
this.service.rollbackBeacon();
|
|
53386
|
+
}
|
|
53387
|
+
};
|
|
53273
53388
|
TransactionComponent.prototype.ngOnChanges = function (changes) {
|
|
53274
53389
|
if (changes && changes.hasOwnProperty('confirmationAnalysisId')) {
|
|
53275
53390
|
this._changeDetector.markForCheck();
|
|
53276
53391
|
}
|
|
53277
53392
|
};
|
|
53278
|
-
TransactionComponent.prototype.
|
|
53279
|
-
this.service.
|
|
53393
|
+
TransactionComponent.prototype._checkTransactionDirty = function () {
|
|
53394
|
+
return !(this.service.transactionDirty && this.service.manualSaveParam);
|
|
53280
53395
|
};
|
|
53281
53396
|
TransactionComponent.prototype._getTransaction = function () {
|
|
53282
53397
|
var _this = this;
|
|
@@ -53317,7 +53432,7 @@
|
|
|
53317
53432
|
TransactionComponent.decorators = [
|
|
53318
53433
|
{ type: i0.Component, args: [{
|
|
53319
53434
|
selector: 'co-transaction',
|
|
53320
|
-
template: "\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 ></co-transaction-internal>\n ",
|
|
53435
|
+
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 ></co-transaction-internal>\n ",
|
|
53321
53436
|
providers: [
|
|
53322
53437
|
{ provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
|
|
53323
53438
|
],
|
|
@@ -53329,7 +53444,9 @@
|
|
|
53329
53444
|
{ type: TransactionConnectorService },
|
|
53330
53445
|
{ type: TransactionScreenConfigurationService },
|
|
53331
53446
|
{ type: i0.ChangeDetectorRef },
|
|
53332
|
-
{ type: PurchaseConfirmationService }
|
|
53447
|
+
{ type: PurchaseConfirmationService },
|
|
53448
|
+
{ type: DictionaryService },
|
|
53449
|
+
{ type: DialogService }
|
|
53333
53450
|
]; };
|
|
53334
53451
|
TransactionComponent.propDecorators = {
|
|
53335
53452
|
relation: [{ type: i0.Input }],
|
|
@@ -53341,7 +53458,13 @@
|
|
|
53341
53458
|
showViewModeButtons: [{ type: i0.Input }],
|
|
53342
53459
|
showQuickAccess: [{ type: i0.Input }],
|
|
53343
53460
|
showButtonBar: [{ type: i0.Input }],
|
|
53344
|
-
|
|
53461
|
+
saveIconData: [{ type: i0.Input }],
|
|
53462
|
+
cancelIconData: [{ type: i0.Input }],
|
|
53463
|
+
showSaveCancelLabels: [{ type: i0.Input }],
|
|
53464
|
+
saveCancelMovable: [{ type: i0.Input }],
|
|
53465
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
|
|
53466
|
+
checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
|
|
53467
|
+
checkRollBack: [{ type: i0.HostListener, args: ['window:unload',] }]
|
|
53345
53468
|
};
|
|
53346
53469
|
|
|
53347
53470
|
/**
|
|
@@ -53774,6 +53897,99 @@
|
|
|
53774
53897
|
},] }
|
|
53775
53898
|
];
|
|
53776
53899
|
|
|
53900
|
+
var SaveCancelButtonsComponent = /** @class */ (function () {
|
|
53901
|
+
function SaveCancelButtonsComponent(iconCacheService, _transactionEventService) {
|
|
53902
|
+
var _this = this;
|
|
53903
|
+
this.iconCacheService = iconCacheService;
|
|
53904
|
+
this._transactionEventService = _transactionEventService;
|
|
53905
|
+
this.icons = Icon;
|
|
53906
|
+
this.showLabels = true;
|
|
53907
|
+
this.movable = false;
|
|
53908
|
+
this.show = false;
|
|
53909
|
+
this._mouseDown = false;
|
|
53910
|
+
// @HostBinding('style.top.px')
|
|
53911
|
+
this._top = 0;
|
|
53912
|
+
// @HostBinding('style.left.px')
|
|
53913
|
+
this._left = 0;
|
|
53914
|
+
this._subs = [];
|
|
53915
|
+
this._subs.push(this._transactionEventService.transactionDirty.subscribe(function (dirty) { return _this.show = dirty; }));
|
|
53916
|
+
}
|
|
53917
|
+
SaveCancelButtonsComponent.prototype.showClass = function () {
|
|
53918
|
+
return true;
|
|
53919
|
+
};
|
|
53920
|
+
SaveCancelButtonsComponent.prototype.ngOnDestroy = function () {
|
|
53921
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
53922
|
+
this.saveCancelButtonsWrapper = undefined;
|
|
53923
|
+
};
|
|
53924
|
+
SaveCancelButtonsComponent.prototype.handleMouseDown = function (event) {
|
|
53925
|
+
this._mouseDown = this.movable;
|
|
53926
|
+
// if (this.saveCancelButtonsWrapper && this.saveCancelButtonsWrapper.nativeElement && this._mouseDown) {
|
|
53927
|
+
// const rect = this.saveCancelButtonsWrapper.nativeElement.getBoundingClientRect();
|
|
53928
|
+
// this._top = rect.top;
|
|
53929
|
+
// this._left = rect.left;
|
|
53930
|
+
// }
|
|
53931
|
+
};
|
|
53932
|
+
SaveCancelButtonsComponent.prototype.handleMouseUp = function (event) {
|
|
53933
|
+
this._mouseDown = false;
|
|
53934
|
+
};
|
|
53935
|
+
SaveCancelButtonsComponent.prototype.handleMouseMove = function (event) {
|
|
53936
|
+
if (this._mouseDown) {
|
|
53937
|
+
// this._top = this._top + event.movementY;
|
|
53938
|
+
// this._left = this._left + event.movementX;
|
|
53939
|
+
}
|
|
53940
|
+
};
|
|
53941
|
+
SaveCancelButtonsComponent.prototype.handleSaveClick = function (event) {
|
|
53942
|
+
event.preventDefault();
|
|
53943
|
+
this._transactionEventService.saveTransactionClick.next();
|
|
53944
|
+
};
|
|
53945
|
+
SaveCancelButtonsComponent.prototype.handleCancelClick = function (event) {
|
|
53946
|
+
event.preventDefault();
|
|
53947
|
+
this._transactionEventService.cancelTransactionClick.next();
|
|
53948
|
+
};
|
|
53949
|
+
return SaveCancelButtonsComponent;
|
|
53950
|
+
}());
|
|
53951
|
+
SaveCancelButtonsComponent.decorators = [
|
|
53952
|
+
{ type: i0.Component, args: [{
|
|
53953
|
+
selector: 'co-save-cancel-buttons',
|
|
53954
|
+
template: "\n <ng-container *ngIf=\"show\">\n <div class=\"save-cancel-buttons-wrapper\" #saveCancelButtonsWrapper\n [class.movable]=\"movable\"\n (mousedown)=\"handleMouseDown($event)\"\n (mouseup)=\"handleMouseUp($event)\"\n (mousemove)=\"handleMouseMove($event)\">\n <ng-container *ngIf=\"showLabels\">\n <co-button class=\"save-button\" [label]=\"'SAVE' | localize\" [title]=\"'SAVE' | localize\"\n [iconData]=\"saveIconData || iconCacheService.getIcon(icons.CheckThin)\"\n (onClick)=\"handleSaveClick($event)\"></co-button>\n <co-button class=\"cancel-button\" [label]=\"'CANCEL' | localize\" [title]=\"'CANCEL' | localize\"\n [iconData]=\"cancelIconData || iconCacheService.getIcon(icons.Crossskinny)\"\n (onClick)=\"handleCancelClick($event)\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"!showLabels\">\n <div class=\"icon-wrapper save-icon\">\n <co-icon [title]=\"'SAVE' | localize\"\n [iconData]=\"saveIconData || iconCacheService.getIcon(icons.CheckThin)\"\n (click)=\"handleSaveClick($event)\"></co-icon>\n </div>\n <div class=\"icon-wrapper cancel-icon\">\n <co-icon [title]=\"'CANCEL' | localize\"\n [iconData]=\"cancelIconData || iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCancelClick($event)\"></co-icon>\n </div>\n </ng-container>\n </div>\n </ng-container>\n ",
|
|
53955
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
53956
|
+
},] }
|
|
53957
|
+
];
|
|
53958
|
+
SaveCancelButtonsComponent.ctorParameters = function () { return [
|
|
53959
|
+
{ type: IconCacheService },
|
|
53960
|
+
{ type: TransactionEventService }
|
|
53961
|
+
]; };
|
|
53962
|
+
SaveCancelButtonsComponent.propDecorators = {
|
|
53963
|
+
saveCancelButtonsWrapper: [{ type: i0.ViewChild, args: ['saveCancelButtonsWrapper', { read: i0.ElementRef },] }],
|
|
53964
|
+
saveIconData: [{ type: i0.Input }],
|
|
53965
|
+
cancelIconData: [{ type: i0.Input }],
|
|
53966
|
+
showLabels: [{ type: i0.Input }],
|
|
53967
|
+
movable: [{ type: i0.Input }],
|
|
53968
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-save-cancel-buttons',] }]
|
|
53969
|
+
};
|
|
53970
|
+
|
|
53971
|
+
var SaveCancelButtonsModule = /** @class */ (function () {
|
|
53972
|
+
function SaveCancelButtonsModule() {
|
|
53973
|
+
}
|
|
53974
|
+
return SaveCancelButtonsModule;
|
|
53975
|
+
}());
|
|
53976
|
+
SaveCancelButtonsModule.decorators = [
|
|
53977
|
+
{ type: i0.NgModule, args: [{
|
|
53978
|
+
imports: [
|
|
53979
|
+
common.CommonModule,
|
|
53980
|
+
corecomponents_v12.ButtonModule,
|
|
53981
|
+
PipeModule,
|
|
53982
|
+
corecomponents_v12.IconModule
|
|
53983
|
+
],
|
|
53984
|
+
declarations: [
|
|
53985
|
+
SaveCancelButtonsComponent
|
|
53986
|
+
],
|
|
53987
|
+
exports: [
|
|
53988
|
+
SaveCancelButtonsComponent
|
|
53989
|
+
]
|
|
53990
|
+
},] }
|
|
53991
|
+
];
|
|
53992
|
+
|
|
53777
53993
|
var TransactionModule = /** @class */ (function () {
|
|
53778
53994
|
function TransactionModule() {
|
|
53779
53995
|
}
|
|
@@ -53786,7 +54002,8 @@
|
|
|
53786
54002
|
CoreModule,
|
|
53787
54003
|
TransactionInternalModule,
|
|
53788
54004
|
TransactionGridModule,
|
|
53789
|
-
TransactionCashRegisterOrderReceiptDialogModule
|
|
54005
|
+
TransactionCashRegisterOrderReceiptDialogModule,
|
|
54006
|
+
SaveCancelButtonsModule
|
|
53790
54007
|
],
|
|
53791
54008
|
declarations: [
|
|
53792
54009
|
TransactionComponent
|
|
@@ -56282,14 +56499,16 @@
|
|
|
56282
56499
|
exports["ɵyf"] = TransactionGridComponent;
|
|
56283
56500
|
exports["ɵyg"] = TransactionCashRegisterOrderReceiptDialogModule;
|
|
56284
56501
|
exports["ɵyh"] = TransactionCashRegisterOrderReceiptDialogComponent;
|
|
56285
|
-
exports["ɵyi"] =
|
|
56286
|
-
exports["ɵyj"] =
|
|
56287
|
-
exports["ɵyk"] =
|
|
56288
|
-
exports["ɵyl"] =
|
|
56289
|
-
exports["ɵym"] =
|
|
56290
|
-
exports["ɵyn"] =
|
|
56291
|
-
exports["ɵyo"] =
|
|
56292
|
-
exports["ɵyp"] =
|
|
56502
|
+
exports["ɵyi"] = SaveCancelButtonsModule;
|
|
56503
|
+
exports["ɵyj"] = SaveCancelButtonsComponent;
|
|
56504
|
+
exports["ɵyk"] = TransactionTagComponent;
|
|
56505
|
+
exports["ɵyl"] = CheckoutSimpleModule;
|
|
56506
|
+
exports["ɵym"] = CheckoutSimpleComponent;
|
|
56507
|
+
exports["ɵyn"] = CheckoutSimpleOverviewRelationEditComponent;
|
|
56508
|
+
exports["ɵyo"] = CheckoutSimpleOverviewDeliveryEditComponent;
|
|
56509
|
+
exports["ɵyp"] = CheckoutSimpleOverviewPaymentComponent;
|
|
56510
|
+
exports["ɵyq"] = SimpleVerticalStepperModule;
|
|
56511
|
+
exports["ɵyr"] = SimpleVerticalStepperComponent;
|
|
56293
56512
|
exports["ɵz"] = CharacteristicAnswerComponent;
|
|
56294
56513
|
|
|
56295
56514
|
Object.defineProperty(exports, '__esModule', { value: true });
|