@colijnit/transaction 255.1.43 → 255.1.45
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 +127 -54
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-base.component.js +24 -11
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +3 -1
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-picking-button-bar-button.component.js +32 -10
- package/esm2015/lib/component/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +6 -6
- package/esm2015/lib/component/transaction-line-fields/transaction-line-amount.component.js +7 -8
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +2 -2
- package/esm2015/lib/component/transaction-line-side-panel-sales/transaction-line-side-panel-sales-reservation/transaction-line-side-panel-sales-reservation/transaction-line-side-panel-sales-reservation.component.js +4 -2
- package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.js +2 -2
- package/esm2015/lib/enum/transaction-picking-button-category.enum.js +7 -0
- package/esm2015/lib/service/transaction-mapping.service.js +9 -1
- package/esm2015/lib/service/transaction-payment.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +21 -6
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +109 -43
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +4 -1
- package/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-picking-button-bar-button.component.d.ts +6 -2
- package/lib/component/transaction-line/transaction-base-line/style/_layout.scss +1 -0
- package/lib/component/transaction-line-fields/transaction-line-amount.component.d.ts +1 -1
- package/lib/enum/transaction-picking-button-category.enum.d.ts +5 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ export class Version {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.name = "@colijnit/transaction";
|
|
5
5
|
this.description = "Colijn IT transaction package";
|
|
6
|
-
this.symVer = "255.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "255.1.45";
|
|
7
|
+
this.publishDate = "2-10-2024 17:30:09";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU1LjEuNDVcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyLTEwLTIwMjQgMTc6MzA6MDlcIjtcbn0iXX0=
|
|
@@ -268,8 +268,8 @@ class Version {
|
|
|
268
268
|
constructor() {
|
|
269
269
|
this.name = "@colijnit/transaction";
|
|
270
270
|
this.description = "Colijn IT transaction package";
|
|
271
|
-
this.symVer = "255.1.
|
|
272
|
-
this.publishDate = "
|
|
271
|
+
this.symVer = "255.1.45";
|
|
272
|
+
this.publishDate = "2-10-2024 17:30:09";
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -8058,6 +8058,14 @@ class TransactionBaseComponent {
|
|
|
8058
8058
|
this._orderLineSets = [];
|
|
8059
8059
|
this._transactionTotal = new TransactionTotal();
|
|
8060
8060
|
this._baseSubs = [];
|
|
8061
|
+
this.handleCommit = (value) => __awaiter(this, void 0, void 0, function* () {
|
|
8062
|
+
if (yield this.lockTransaction()) {
|
|
8063
|
+
this.committing = true;
|
|
8064
|
+
const response = yield this.commit(value);
|
|
8065
|
+
this.committing = false;
|
|
8066
|
+
return response;
|
|
8067
|
+
}
|
|
8068
|
+
});
|
|
8061
8069
|
}
|
|
8062
8070
|
set cfgName(value) {
|
|
8063
8071
|
this._cfgName = value;
|
|
@@ -8066,6 +8074,17 @@ class TransactionBaseComponent {
|
|
|
8066
8074
|
get cfgName() {
|
|
8067
8075
|
return this._cfgName;
|
|
8068
8076
|
}
|
|
8077
|
+
set forceWritable(value) {
|
|
8078
|
+
this._forceWritable = value;
|
|
8079
|
+
if (this._forceWritable) {
|
|
8080
|
+
this.readonly = false;
|
|
8081
|
+
this.headerReadonly = false;
|
|
8082
|
+
this.tooltipMessage = undefined;
|
|
8083
|
+
}
|
|
8084
|
+
}
|
|
8085
|
+
get forceWritable() {
|
|
8086
|
+
return this._forceWritable;
|
|
8087
|
+
}
|
|
8069
8088
|
set transaction(value) {
|
|
8070
8089
|
this._transaction = value;
|
|
8071
8090
|
if (this._transaction) {
|
|
@@ -8243,16 +8262,6 @@ class TransactionBaseComponent {
|
|
|
8243
8262
|
ngOnDestroy() {
|
|
8244
8263
|
this._baseSubs.forEach(s => s.unsubscribe());
|
|
8245
8264
|
}
|
|
8246
|
-
handleCommit(value) {
|
|
8247
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8248
|
-
if (yield this.lockTransaction()) {
|
|
8249
|
-
this.committing = true;
|
|
8250
|
-
const response = yield this.commit(value);
|
|
8251
|
-
this.committing = false;
|
|
8252
|
-
return response;
|
|
8253
|
-
}
|
|
8254
|
-
});
|
|
8255
|
-
}
|
|
8256
8265
|
deleteTransactionLineClick(event) {
|
|
8257
8266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8258
8267
|
event.preventDefault();
|
|
@@ -8299,6 +8308,9 @@ class TransactionBaseComponent {
|
|
|
8299
8308
|
}
|
|
8300
8309
|
}
|
|
8301
8310
|
prepareTooltipMessage() {
|
|
8311
|
+
if (this.forceWritable) { // should not check readonly-ness
|
|
8312
|
+
return;
|
|
8313
|
+
}
|
|
8302
8314
|
this.tooltipMessage = '';
|
|
8303
8315
|
let tooltips = [];
|
|
8304
8316
|
if (this.headerTooltipMessages.length > 0 || this.lineTooltipMessages.length > 0) {
|
|
@@ -8354,6 +8366,7 @@ TransactionBaseComponent.ctorParameters = () => [
|
|
|
8354
8366
|
];
|
|
8355
8367
|
TransactionBaseComponent.propDecorators = {
|
|
8356
8368
|
cfgName: [{ type: Input }],
|
|
8369
|
+
forceWritable: [{ type: Input }],
|
|
8357
8370
|
transaction: [{ type: Input }],
|
|
8358
8371
|
transactionLine: [{ type: Input }],
|
|
8359
8372
|
transactionMarginInfo: [{ type: Input }],
|
|
@@ -8538,6 +8551,7 @@ DialogTransactionLineWarehouseCcComponent.decorators = [
|
|
|
8538
8551
|
[transactionLine]="transactionLine"
|
|
8539
8552
|
[value]="commissionCode"
|
|
8540
8553
|
[useModel]="false"
|
|
8554
|
+
[forceWritable]="true"
|
|
8541
8555
|
(valueChange)="handleCommissionCodeChange($event)"></co-transaction-line-commission-code>
|
|
8542
8556
|
</div>
|
|
8543
8557
|
<div class="transaction-line-warehouse-cc-section">
|
|
@@ -8546,6 +8560,7 @@ DialogTransactionLineWarehouseCcComponent.decorators = [
|
|
|
8546
8560
|
[transactionLine]="transactionLine"
|
|
8547
8561
|
[value]="warehouse"
|
|
8548
8562
|
[useModel]="false"
|
|
8563
|
+
[forceWritable]="true"
|
|
8549
8564
|
[transactionInfo]="transactionInfo"
|
|
8550
8565
|
(valueChange)="handleWarehouseChange($event)"></co-transaction-line-warehouse>
|
|
8551
8566
|
</div>
|
|
@@ -11159,15 +11174,30 @@ class TransactionService extends PendingReasonService {
|
|
|
11159
11174
|
deleteTransactionLine(transactionUuid, TransactionLineUuid) {
|
|
11160
11175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11161
11176
|
const response = yield this.connector.deleteTransactionLine(transactionUuid, TransactionLineUuid);
|
|
11162
|
-
|
|
11163
|
-
|
|
11177
|
+
if (response) {
|
|
11178
|
+
this.transactionDirty = true;
|
|
11179
|
+
return this.handleLineOperationStatuses(response);
|
|
11180
|
+
}
|
|
11181
|
+
if (!this.manualSaveParam) {
|
|
11182
|
+
yield this.rollback();
|
|
11183
|
+
}
|
|
11184
|
+
return false;
|
|
11164
11185
|
});
|
|
11165
11186
|
}
|
|
11166
11187
|
changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity) {
|
|
11167
11188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11168
|
-
const response = yield this.connector.changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity)
|
|
11169
|
-
|
|
11170
|
-
|
|
11189
|
+
const response = yield this.connector.changeTransactionLineQuantity(transactionUuid, lineUuid, newQuantity)
|
|
11190
|
+
.catch(() => {
|
|
11191
|
+
return null;
|
|
11192
|
+
});
|
|
11193
|
+
if (response) {
|
|
11194
|
+
this.transactionDirty = true;
|
|
11195
|
+
return this.handleLineOperationStatuses(response);
|
|
11196
|
+
}
|
|
11197
|
+
if (!this.manualSaveParam) {
|
|
11198
|
+
yield this.rollback();
|
|
11199
|
+
}
|
|
11200
|
+
return false;
|
|
11171
11201
|
});
|
|
11172
11202
|
}
|
|
11173
11203
|
getGoodsReceiptHistory(transId, lineNr) {
|
|
@@ -21490,14 +21520,23 @@ TransactionCardOrderDeliveryComponent.propDecorators = {
|
|
|
21490
21520
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-card-order-delivery",] }]
|
|
21491
21521
|
};
|
|
21492
21522
|
|
|
21523
|
+
var TransactionPickingButtonCategory;
|
|
21524
|
+
(function (TransactionPickingButtonCategory) {
|
|
21525
|
+
TransactionPickingButtonCategory["OrderPicking"] = "serviceOrderPicking";
|
|
21526
|
+
TransactionPickingButtonCategory["OrderToBePicked"] = "serviceOrderToBePicked";
|
|
21527
|
+
TransactionPickingButtonCategory["OrderPicked"] = "serviceOrderPicked";
|
|
21528
|
+
})(TransactionPickingButtonCategory || (TransactionPickingButtonCategory = {}));
|
|
21529
|
+
|
|
21493
21530
|
class TransactionSalesPickingButtonBarButtonComponent extends TransactionButtonBarButtonBaseComponent {
|
|
21494
|
-
constructor(iconCacheService, _mappingService, _transactionEventService) {
|
|
21531
|
+
constructor(iconCacheService, _mappingService, _transactionEventService, _transactionService) {
|
|
21495
21532
|
super();
|
|
21496
21533
|
this.iconCacheService = iconCacheService;
|
|
21497
21534
|
this._mappingService = _mappingService;
|
|
21498
21535
|
this._transactionEventService = _transactionEventService;
|
|
21536
|
+
this._transactionService = _transactionService;
|
|
21499
21537
|
this.icons = Icon;
|
|
21500
21538
|
this.category = TransactionTypeCategory;
|
|
21539
|
+
this.buttonCategory = TransactionPickingButtonCategory;
|
|
21501
21540
|
this.buttonClicked = new EventEmitter();
|
|
21502
21541
|
this.showClass = true;
|
|
21503
21542
|
this.showCategories = false;
|
|
@@ -21532,18 +21571,35 @@ class TransactionSalesPickingButtonBarButtonComponent extends TransactionButtonB
|
|
|
21532
21571
|
this.showCategories = !this.showCategories;
|
|
21533
21572
|
}
|
|
21534
21573
|
handlePickingCategoryClicked(event, category) {
|
|
21535
|
-
|
|
21536
|
-
|
|
21574
|
+
let pickingButton;
|
|
21575
|
+
if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
|
|
21576
|
+
pickingButton = this._mappingService.getButtonBar(TransactionKind.SalesOrder)
|
|
21577
|
+
.find((button) => button.title === 'LOGISTICS');
|
|
21578
|
+
}
|
|
21579
|
+
else {
|
|
21580
|
+
pickingButton = this._mappingService.getButtonBar(TransactionKind.ServiceOrder)
|
|
21581
|
+
.find((button) => button.title === 'LOGISTICS');
|
|
21582
|
+
}
|
|
21537
21583
|
this.showCategories = false;
|
|
21538
21584
|
event.preventDefault();
|
|
21539
21585
|
event.stopPropagation();
|
|
21540
|
-
if (category ===
|
|
21586
|
+
if (category === TransactionPickingButtonCategory.OrderToBePicked) {
|
|
21541
21587
|
pickingButton.icon = this.icons.BoxesPackingRegular;
|
|
21542
|
-
|
|
21588
|
+
if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
|
|
21589
|
+
pickingButton.category = TransactionTypeCategory.SalesOrderToBePicked;
|
|
21590
|
+
}
|
|
21591
|
+
else {
|
|
21592
|
+
pickingButton.category = TransactionTypeCategory.ServiceOrderToBePicked;
|
|
21593
|
+
}
|
|
21543
21594
|
}
|
|
21544
21595
|
else {
|
|
21545
21596
|
pickingButton.icon = this.icons.RegularBoxesPackingCircleCheck;
|
|
21546
|
-
|
|
21597
|
+
if (this._transactionService.transactionKind === TransactionKind.SalesOrder) {
|
|
21598
|
+
pickingButton.category = TransactionTypeCategory.SalesOrderPicked;
|
|
21599
|
+
}
|
|
21600
|
+
else {
|
|
21601
|
+
pickingButton.category = TransactionTypeCategory.ServiceOrderPicked;
|
|
21602
|
+
}
|
|
21547
21603
|
}
|
|
21548
21604
|
this.buttonClicked.next(pickingButton);
|
|
21549
21605
|
}
|
|
@@ -21560,12 +21616,12 @@ TransactionSalesPickingButtonBarButtonComponent.decorators = [
|
|
|
21560
21616
|
<co-icon class="co-transaction-button-bar-icon" [iconData]="iconCacheService.getIcon(iconName)"></co-icon>
|
|
21561
21617
|
<span class="button-title" [textContent]="title | localize"></span>
|
|
21562
21618
|
<div class="picking-type-wrapper" *ngIf="showCategories">
|
|
21563
|
-
<div class="button-wrapper" (click)="handlePickingCategoryClicked($event,
|
|
21619
|
+
<div class="button-wrapper" (click)="handlePickingCategoryClicked($event, buttonCategory.OrderToBePicked)">
|
|
21564
21620
|
<co-animated-checkbox [checked]="toBePickedChecked"></co-animated-checkbox>
|
|
21565
21621
|
<co-icon class="co-transaction-button-bar-icon" [iconData]="iconCacheService.getIcon(icons.BoxesPackingRegular)"></co-icon>
|
|
21566
21622
|
<span class="button-title" [textContent]="'TO_PICK' | localize"></span>
|
|
21567
21623
|
</div>
|
|
21568
|
-
<div class="button-wrapper" (click)="handlePickingCategoryClicked($event,
|
|
21624
|
+
<div class="button-wrapper" (click)="handlePickingCategoryClicked($event, buttonCategory.OrderPicked)">
|
|
21569
21625
|
<co-animated-checkbox [checked]="pickedChecked"></co-animated-checkbox>
|
|
21570
21626
|
<co-icon class="co-transaction-button-bar-icon"
|
|
21571
21627
|
[iconData]="iconCacheService.getIcon(icons.RegularBoxesPackingCircleCheck)"></co-icon>
|
|
@@ -21580,7 +21636,8 @@ TransactionSalesPickingButtonBarButtonComponent.decorators = [
|
|
|
21580
21636
|
TransactionSalesPickingButtonBarButtonComponent.ctorParameters = () => [
|
|
21581
21637
|
{ type: IconCacheService },
|
|
21582
21638
|
{ type: TransactionMappingService },
|
|
21583
|
-
{ type: TransactionEventService }
|
|
21639
|
+
{ type: TransactionEventService },
|
|
21640
|
+
{ type: TransactionService }
|
|
21584
21641
|
];
|
|
21585
21642
|
TransactionSalesPickingButtonBarButtonComponent.propDecorators = {
|
|
21586
21643
|
buttonClicked: [{ type: Output }],
|
|
@@ -23488,8 +23545,8 @@ TransactionLinesSidePanelCashDeskComponent.decorators = [
|
|
|
23488
23545
|
[paymentViewModel]="selectedPaymentMethod"
|
|
23489
23546
|
[cashRegisterNr]="cashRegisterNr"
|
|
23490
23547
|
[cashRegisterGroupId]="cashRegisterGroupId"
|
|
23491
|
-
[cashRegisterDrawerId]="cashRegisterDrawerId"
|
|
23492
23548
|
[cashRegisterDrawerNr]="cashRegisterDrawerNr"
|
|
23549
|
+
[cashRegisterDrawerId]="cashRegisterDrawerId"
|
|
23493
23550
|
[printerName]="printerName"
|
|
23494
23551
|
[emailLayout]="emailLayout"
|
|
23495
23552
|
[printerLayout]="printerLayout"
|
|
@@ -24880,6 +24937,14 @@ class TransactionMappingService {
|
|
|
24880
24937
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderToBePicked }, TransactionQuickAccessToBePickedComponent],
|
|
24881
24938
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPicked }, TransactionQuickAccessPickedComponent],
|
|
24882
24939
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPlanning }, TransactionQuickAccessPlanningComponent],
|
|
24940
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionQuickAccessOverviewComponent],
|
|
24941
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionQuickAccessOrderPurchaseComponent],
|
|
24942
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderAllocation }, TransactionQuickAccessGoodsAllocationComponent],
|
|
24943
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderDeliveryNote }, TransactionQuickAccessOrderDeliveryComponent],
|
|
24944
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderInvoice }, TransactionQuickAccessInvoiceComponent],
|
|
24945
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderToBePicked }, TransactionQuickAccessToBePickedComponent],
|
|
24946
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPicked }, TransactionQuickAccessPickedComponent],
|
|
24947
|
+
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPlanning }, TransactionQuickAccessPlanningComponent],
|
|
24883
24948
|
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionQuickAccessSalesQuotationComponent]
|
|
24884
24949
|
]);
|
|
24885
24950
|
this._transactionGridComponent = new Map([
|
|
@@ -25962,7 +26027,7 @@ TransactionLineCommissionCodeComponent.decorators = [
|
|
|
25962
26027
|
<co-transaction-line-checkbox-list
|
|
25963
26028
|
[committing]="committing"
|
|
25964
26029
|
[collection]="viewModelsFiltered"
|
|
25965
|
-
[readonly]="readonly"
|
|
26030
|
+
[readonly]="readonly && !forceWritable"
|
|
25966
26031
|
[tooltip]="tooltipMessage"
|
|
25967
26032
|
(checked)="handleChecked($event)"
|
|
25968
26033
|
></co-transaction-line-checkbox-list>
|
|
@@ -26392,7 +26457,7 @@ TransactionLineWarehouseComponent.decorators = [
|
|
|
26392
26457
|
<co-transaction-line-checkbox-list
|
|
26393
26458
|
[committing]="committing"
|
|
26394
26459
|
[collection]="viewModelsFiltered"
|
|
26395
|
-
[readonly]="readonly"
|
|
26460
|
+
[readonly]="readonly && !forceWritable"
|
|
26396
26461
|
[tooltip]="tooltipMessage"
|
|
26397
26462
|
(checked)="handleChecked($event)"
|
|
26398
26463
|
></co-transaction-line-checkbox-list>
|
|
@@ -27698,23 +27763,22 @@ class TransactionLineAmountComponent extends TransactionBaseComponent {
|
|
|
27698
27763
|
constructor() {
|
|
27699
27764
|
super(...arguments);
|
|
27700
27765
|
this.isReturn = false;
|
|
27701
|
-
|
|
27702
|
-
showClass() {
|
|
27703
|
-
return true;
|
|
27704
|
-
}
|
|
27705
|
-
commit(amount) {
|
|
27706
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
27766
|
+
this.commit = (amount) => __awaiter(this, void 0, void 0, function* () {
|
|
27707
27767
|
if (this.transactionInfo && this.transactionLine && this.transactionLine.amount !== amount) {
|
|
27768
|
+
this.localAmount = amount;
|
|
27708
27769
|
const oldAmount = this.transactionLine.amount;
|
|
27709
27770
|
const success = yield this.transactionService.changeTransactionLineQuantity(this.transactionInfo.uuid, this.transactionLine.uuid, amount);
|
|
27710
27771
|
if (!success) {
|
|
27711
|
-
this.localAmount =
|
|
27772
|
+
this.localAmount = oldAmount;
|
|
27712
27773
|
}
|
|
27713
27774
|
return success;
|
|
27714
27775
|
}
|
|
27715
27776
|
return true;
|
|
27716
27777
|
});
|
|
27717
27778
|
}
|
|
27779
|
+
showClass() {
|
|
27780
|
+
return true;
|
|
27781
|
+
}
|
|
27718
27782
|
transactionLineSet() {
|
|
27719
27783
|
const _super = Object.create(null, {
|
|
27720
27784
|
transactionLineSet: { get: () => super.transactionLineSet }
|
|
@@ -30876,10 +30940,10 @@ class TransactionPaymentService {
|
|
|
30876
30940
|
}
|
|
30877
30941
|
setCashDrawerIdIfValidDrawer(drawerNr) {
|
|
30878
30942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30879
|
-
this._cashRegisterDrawerId = NaN;
|
|
30880
30943
|
if (!drawerNr) {
|
|
30881
30944
|
return;
|
|
30882
30945
|
}
|
|
30946
|
+
this._cashRegisterDrawerId = NaN;
|
|
30883
30947
|
let request = new CashDrawersRequest();
|
|
30884
30948
|
request.group = this.cashRegisterGroupId;
|
|
30885
30949
|
request.date = "?='" + this._datePipe.transform(new Date(), "dd-MM-yyyy") + "'";
|
|
@@ -51372,8 +51436,10 @@ class TransactionLineSidePanelSalesReservationComponent {
|
|
|
51372
51436
|
request.reservationLines = [...this.reservationOrderLines.filter(line => line.selected)];
|
|
51373
51437
|
let response = yield this._transactionService.processReservation(request);
|
|
51374
51438
|
if (response) {
|
|
51439
|
+
this._transactionService.currentTransaction = response;
|
|
51440
|
+
yield this._transactionService.saveTransaction();
|
|
51375
51441
|
yield this._transactionService.checkRefTransaction();
|
|
51376
|
-
|
|
51442
|
+
// await this._transactionService.rememberCurrentTransaction(this._transactionService.currentTransaction);
|
|
51377
51443
|
this.handleCloseSidePanel();
|
|
51378
51444
|
}
|
|
51379
51445
|
});
|
|
@@ -55238,9 +55304,9 @@ class TransactionCashRegisterDialogComponent extends TransactionBaseComponent {
|
|
|
55238
55304
|
this.selectedPrinterLayout = defaultPrintLayout ? defaultPrintLayout : null;
|
|
55239
55305
|
const defaultEmailLayout = this.emailLayouts.find((layout) => layout.isDefault);
|
|
55240
55306
|
this.selectedEmailLayout = defaultEmailLayout ? defaultEmailLayout : null;
|
|
55241
|
-
if (this.activeCashDrawer && this.activePrinter && defaultPrintLayout && defaultEmailLayout) {
|
|
55242
|
-
|
|
55243
|
-
}
|
|
55307
|
+
/*if (this.activeCashDrawer && this.activePrinter && defaultPrintLayout && defaultEmailLayout) {
|
|
55308
|
+
this.saveButtonClick();
|
|
55309
|
+
}*/
|
|
55244
55310
|
}
|
|
55245
55311
|
_prepareDialogData() {
|
|
55246
55312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -55273,7 +55339,7 @@ TransactionCashRegisterDialogComponent.decorators = [
|
|
|
55273
55339
|
></co-payment-tile>
|
|
55274
55340
|
</div>
|
|
55275
55341
|
|
|
55276
|
-
<co-list-of-values [label]="'CASH_DRAWER' | localize"
|
|
55342
|
+
<co-list-of-values [label]="'CASH_DRAWER' | localize" *ngIf="!activeCashRegister?.defaultDrawerNumber"
|
|
55277
55343
|
[(model)]="activeCashDrawer"
|
|
55278
55344
|
[displayField]="'nr'"
|
|
55279
55345
|
[collection]="cashDrawers"
|
|
@@ -55284,7 +55350,7 @@ TransactionCashRegisterDialogComponent.decorators = [
|
|
|
55284
55350
|
(modelChange)="handleDrawerChanged($event)"
|
|
55285
55351
|
></co-list-of-values>
|
|
55286
55352
|
|
|
55287
|
-
<co-list-of-values [label]="'PRINTER' | localize"
|
|
55353
|
+
<co-list-of-values [label]="'PRINTER' | localize" *ngIf="!activeCashRegister?.defaultPrinter"
|
|
55288
55354
|
[(model)]="activePrinter"
|
|
55289
55355
|
[displayField]="'name'"
|
|
55290
55356
|
[collection]="printerList"
|