@colijnit/transaction 255.1.39 → 255.1.40
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 +95 -23
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-255.1.39.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-payment-base.component.js +12 -4
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +2 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +2 -2
- package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.js +22 -7
- package/esm2015/lib/component/transaction-service-overview/components/transaction-service-message.component.js +3 -3
- package/esm2015/lib/component/transaction-service-overview/components/transaction-service-message.module.js +4 -3
- package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +5 -3
- package/esm2015/lib/enum/transaction-cfg-name.enum.js +3 -1
- package/esm2015/lib/service/transaction-create.service.js +12 -1
- package/esm2015/lib/service/transaction-payment.service.js +9 -3
- package/esm2015/lib/service/transaction.service.js +11 -4
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +74 -23
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-payment-base.component.d.ts +5 -2
- package/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.d.ts +2 -1
- package/lib/component/transaction-service-overview/transaction-service-overview.component.d.ts +2 -0
- package/lib/enum/transaction-cfg-name.enum.d.ts +2 -1
- package/lib/service/transaction-create.service.d.ts +2 -0
- package/lib/service/transaction-payment.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +2 -1
- 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.40";
|
|
7
|
+
this.publishDate = "23-9-2024 18:21:43";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU1LjEuNDBcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMy05LTIwMjQgMTg6MjE6NDNcIjtcbn0iXX0=
|
|
@@ -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.40";
|
|
272
|
+
this.publishDate = "23-9-2024 18:21:43";
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -7921,6 +7921,8 @@ var TransactionCfgName;
|
|
|
7921
7921
|
TransactionCfgName["StickerAmount"] = "stickerAmount";
|
|
7922
7922
|
TransactionCfgName["LineWarehouseLocationReceived"] = "lineWarehouseLocationReceived";
|
|
7923
7923
|
/* Invoice_check rubric */
|
|
7924
|
+
/* Service Overview Tab*/
|
|
7925
|
+
TransactionCfgName["ServiceMessage"] = "serviceMessage";
|
|
7924
7926
|
})(TransactionCfgName || (TransactionCfgName = {}));
|
|
7925
7927
|
|
|
7926
7928
|
class TransactionScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
@@ -8527,6 +8529,7 @@ DialogTransactionLineWarehouseCcComponent.decorators = [
|
|
|
8527
8529
|
[transactionLine]="transactionLine"
|
|
8528
8530
|
[value]="warehouse"
|
|
8529
8531
|
[useModel]="false"
|
|
8532
|
+
[transactionInfo]="transactionInfo"
|
|
8530
8533
|
(valueChange)="handleWarehouseChange($event)"></co-transaction-line-warehouse>
|
|
8531
8534
|
</div>
|
|
8532
8535
|
</co-dialog>
|
|
@@ -11360,9 +11363,16 @@ class TransactionService extends PendingReasonService {
|
|
|
11360
11363
|
getWarehouses() {
|
|
11361
11364
|
return this.connector.getWarehouses(this.currentBranch);
|
|
11362
11365
|
}
|
|
11363
|
-
getWarehouseStockInfoByGoodAndBranch(goodId) {
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
+
getWarehouseStockInfoByGoodAndBranch(goodId, transactionInfo) {
|
|
11367
|
+
let transactionBranch;
|
|
11368
|
+
if (transactionInfo && transactionInfo.branch) {
|
|
11369
|
+
transactionBranch = transactionInfo.branch.relationNr;
|
|
11370
|
+
}
|
|
11371
|
+
else if (this.currentTransaction && this.currentTransaction.transactionInfo && this.currentTransaction.transactionInfo.branch)
|
|
11372
|
+
transactionBranch = this.currentTransaction.transactionInfo.branch.relationNr;
|
|
11373
|
+
else {
|
|
11374
|
+
transactionBranch = this.currentBranch;
|
|
11375
|
+
}
|
|
11366
11376
|
return this.connector.getWarehouseStockInfoByGoodAndBranch(goodId, transactionBranch);
|
|
11367
11377
|
}
|
|
11368
11378
|
getMaxConfirmedDeliveryDateForPurchaseOrder(transId) {
|
|
@@ -23411,12 +23421,26 @@ class TransactionLinesSidePanelCashDeskComponent extends TransactionBaseComponen
|
|
|
23411
23421
|
});
|
|
23412
23422
|
}
|
|
23413
23423
|
paymentMethodSelected(method, index) {
|
|
23414
|
-
this
|
|
23415
|
-
|
|
23416
|
-
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
|
|
23424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23425
|
+
this.cashRegisterNr = this.posOrderData ? this.posOrderData.cashRegisterNr : this.transaction.transactionInfo.cashRegisterNr;
|
|
23426
|
+
this.cashRegisterGroupId = this.posOrderData ? this.posOrderData.cashRegisterGroupId : this.transaction.transactionInfo.cashRegisterGroupId;
|
|
23427
|
+
this.cashRegisterDrawerId = this.posOrderData ? this.posOrderData.cashDrawerId : undefined;
|
|
23428
|
+
this.printerName = this.posOrderData ? this.posOrderData.printerName : undefined;
|
|
23429
|
+
//if we don't have a cashregister id or printer like we should.
|
|
23430
|
+
if ((this.cashRegisterDrawerId === undefined || this.cashRegisterDrawerId === null) ||
|
|
23431
|
+
(this.printerName === undefined || this.printerName === null)) {
|
|
23432
|
+
let registers = yield this.transactionService.getCashRegisters(this.transactionInfo.branch.relationNr, this.cashRegisterGroupId);
|
|
23433
|
+
let register = registers.find(c => c.nr === this.cashRegisterNr);
|
|
23434
|
+
if (register !== undefined && register !== null) {
|
|
23435
|
+
if (this.cashRegisterDrawerId === undefined || this.cashRegisterDrawerId === null) {
|
|
23436
|
+
this.cashRegisterDrawerNr = register.defaultDrawerNumber;
|
|
23437
|
+
}
|
|
23438
|
+
this.printerName = this.printerName ? this.printerName : register.defaultPrinter;
|
|
23439
|
+
}
|
|
23440
|
+
}
|
|
23441
|
+
this.selectedPaymentMethod = method;
|
|
23442
|
+
this.showCashRegisterPaymentDialog = true;
|
|
23443
|
+
});
|
|
23420
23444
|
}
|
|
23421
23445
|
_getPaymentMethods() {
|
|
23422
23446
|
this.paymentMethods.length = 0;
|
|
@@ -23454,6 +23478,7 @@ TransactionLinesSidePanelCashDeskComponent.decorators = [
|
|
|
23454
23478
|
[cashRegisterNr]="cashRegisterNr"
|
|
23455
23479
|
[cashRegisterGroupId]="cashRegisterGroupId"
|
|
23456
23480
|
[cashRegisterDrawerId]="cashRegisterDrawerId"
|
|
23481
|
+
[cashRegisterDrawerNr]="cashRegisterDrawerNr"
|
|
23457
23482
|
[printerName]="printerName"
|
|
23458
23483
|
[emailLayout]="emailLayout"
|
|
23459
23484
|
[printerLayout]="printerLayout"
|
|
@@ -26323,7 +26348,7 @@ class TransactionLineWarehouseComponent extends TransactionFilterPopupBaseCompon
|
|
|
26323
26348
|
}
|
|
26324
26349
|
ngOnInit() {
|
|
26325
26350
|
this.viewModels.length = 0;
|
|
26326
|
-
this.transactionService.getWarehouseStockInfoByGoodAndBranch(this.transactionLine.goodId).then((warehouses) => {
|
|
26351
|
+
this.transactionService.getWarehouseStockInfoByGoodAndBranch(this.transactionLine.goodId, this.transactionInfo).then((warehouses) => {
|
|
26327
26352
|
this.collection = !this.transactionLine.dropShipment ? warehouses.slice() : warehouses.slice().filter((warehouse) => warehouse.dropShipment);
|
|
26328
26353
|
this.detectChanges();
|
|
26329
26354
|
});
|
|
@@ -30644,11 +30669,17 @@ class TransactionPaymentService {
|
|
|
30644
30669
|
}
|
|
30645
30670
|
set cashRegisterDrawerNr(value) {
|
|
30646
30671
|
this._cashRegisterDrawerNr = value;
|
|
30647
|
-
this.
|
|
30672
|
+
this.setCashDrawerIdIfValidDrawer(this._cashRegisterDrawerNr);
|
|
30648
30673
|
}
|
|
30649
30674
|
get cashRegisterDrawerNr() {
|
|
30650
30675
|
return this._cashRegisterDrawerNr;
|
|
30651
30676
|
}
|
|
30677
|
+
set cashRegisterDrawerId(value) {
|
|
30678
|
+
this._cashRegisterDrawerId = value;
|
|
30679
|
+
}
|
|
30680
|
+
get cashRegisterDrawerId() {
|
|
30681
|
+
return this._cashRegisterDrawerId;
|
|
30682
|
+
}
|
|
30652
30683
|
ngOnDestroy() {
|
|
30653
30684
|
this._clearInterval();
|
|
30654
30685
|
}
|
|
@@ -30832,7 +30863,7 @@ class TransactionPaymentService {
|
|
|
30832
30863
|
_dataUriToBase64(uri, mimeType) {
|
|
30833
30864
|
return uri ? "data:" + mimeType + ";base64," + uri : "";
|
|
30834
30865
|
}
|
|
30835
|
-
|
|
30866
|
+
setCashDrawerIdIfValidDrawer(drawerNr) {
|
|
30836
30867
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30837
30868
|
this._cashRegisterDrawerId = NaN;
|
|
30838
30869
|
if (!drawerNr) {
|
|
@@ -30942,11 +30973,18 @@ class TransactionPaymentBaseComponent {
|
|
|
30942
30973
|
}
|
|
30943
30974
|
set cashRegisterDrawerId(value) {
|
|
30944
30975
|
this._cashRegisterDrawerId = value;
|
|
30945
|
-
this.paymentService.
|
|
30976
|
+
this.paymentService.cashRegisterDrawerId = this._cashRegisterDrawerId;
|
|
30946
30977
|
}
|
|
30947
30978
|
get cashRegisterDrawerId() {
|
|
30948
30979
|
return this._cashRegisterDrawerId;
|
|
30949
30980
|
}
|
|
30981
|
+
set cashRegisterDrawerNr(value) {
|
|
30982
|
+
this._cashRegisterDrawerNr = value;
|
|
30983
|
+
this.paymentService.cashRegisterDrawerNr = this._cashRegisterDrawerNr;
|
|
30984
|
+
}
|
|
30985
|
+
get cashRegisterDrawerNr() {
|
|
30986
|
+
return this._cashRegisterDrawerNr;
|
|
30987
|
+
}
|
|
30950
30988
|
set printerName(value) {
|
|
30951
30989
|
this._printerName = value;
|
|
30952
30990
|
this.paymentService.printerName = this._printerName;
|
|
@@ -31013,7 +31051,7 @@ class TransactionPaymentBaseComponent {
|
|
|
31013
31051
|
this.cashRegisterIdx = index;
|
|
31014
31052
|
this.cashRegisterNr = cashRegister.nr;
|
|
31015
31053
|
this.cashRegisterGroupId = cashRegister.group;
|
|
31016
|
-
this.
|
|
31054
|
+
this.cashRegisterDrawerNr = cashRegister.defaultDrawerNumber;
|
|
31017
31055
|
this.paymentService.printerName = cashRegister.defaultPrinter;
|
|
31018
31056
|
}
|
|
31019
31057
|
handlePayment() {
|
|
@@ -31053,7 +31091,7 @@ class TransactionPaymentBaseComponent {
|
|
|
31053
31091
|
if (currentCashRegister) {
|
|
31054
31092
|
this.cashRegisterNr = currentCashRegister.nr;
|
|
31055
31093
|
this.cashRegisterGroupId = currentCashRegister.group;
|
|
31056
|
-
this.
|
|
31094
|
+
this.cashRegisterDrawerNr = currentCashRegister.defaultDrawerNumber;
|
|
31057
31095
|
this.prepareCashDrawers(currentCashRegister.group);
|
|
31058
31096
|
this.paymentService.printerName = currentCashRegister.defaultPrinter;
|
|
31059
31097
|
}
|
|
@@ -31092,6 +31130,7 @@ TransactionPaymentBaseComponent.propDecorators = {
|
|
|
31092
31130
|
cashRegisterNr: [{ type: Input }],
|
|
31093
31131
|
cashRegisterGroupId: [{ type: Input }],
|
|
31094
31132
|
cashRegisterDrawerId: [{ type: Input }],
|
|
31133
|
+
cashRegisterDrawerNr: [{ type: Input }],
|
|
31095
31134
|
printerName: [{ type: Input }],
|
|
31096
31135
|
emailLayout: [{ type: Input }],
|
|
31097
31136
|
printerLayout: [{ type: Input }],
|
|
@@ -36663,7 +36702,17 @@ class TransactionCreateService extends TransactionService {
|
|
|
36663
36702
|
}));
|
|
36664
36703
|
});
|
|
36665
36704
|
}
|
|
36666
|
-
|
|
36705
|
+
//In this case we need information about a separate transaction to add info from it to the transaction we actually wish to create.
|
|
36706
|
+
//As such we need to fetch a transaction but just return it. Not set it on the service.
|
|
36707
|
+
getSeparateTransactionById(transactionId) {
|
|
36708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36709
|
+
return yield this.connector.getTransactionById(transactionId);
|
|
36710
|
+
});
|
|
36711
|
+
}
|
|
36712
|
+
}
|
|
36713
|
+
TransactionCreateService.decorators = [
|
|
36714
|
+
{ type: Injectable }
|
|
36715
|
+
];
|
|
36667
36716
|
|
|
36668
36717
|
class TransactionHeaderPopupServiceFieldsComponent {
|
|
36669
36718
|
constructor(transactionService) {
|
|
@@ -51995,6 +52044,7 @@ class TransactionServiceOverviewComponent extends TransactionBaseComponent {
|
|
|
51995
52044
|
this._dialogService = _dialogService;
|
|
51996
52045
|
this.TableName = TableName;
|
|
51997
52046
|
this.WorkflowCategoryType = WorkflowCategoryType;
|
|
52047
|
+
this.cfgNames = TransactionCfgName;
|
|
51998
52048
|
this.Icon = Icon;
|
|
51999
52049
|
this._editMode = false;
|
|
52000
52050
|
this.priorityDomainColl = [];
|
|
@@ -52131,8 +52181,8 @@ TransactionServiceOverviewComponent.decorators = [
|
|
|
52131
52181
|
<div class="service-message-and-image-wrapper">
|
|
52132
52182
|
<div class="service-message-wrapper">
|
|
52133
52183
|
<label class="label service-label" [textContent]="'SERVICE_REPORT'| localize"></label>
|
|
52134
|
-
<span
|
|
52135
|
-
[textContent]="transactionServiceInfo.wizardQuestionsAndAnswers"></span>
|
|
52184
|
+
<span *ngIf="transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers"
|
|
52185
|
+
[textContent]="transactionServiceInfo.wizardQuestionsAndAnswers"></span> <!--[screenConfigurationObject]="" screenConfigNativeElement-->
|
|
52136
52186
|
<co-transaction-service-message class="transaction-service-message" [transaction]="transaction">
|
|
52137
52187
|
</co-transaction-service-message>
|
|
52138
52188
|
</div>
|
|
@@ -52231,9 +52281,9 @@ TransactionServiceMessageComponent.decorators = [
|
|
|
52231
52281
|
template: `
|
|
52232
52282
|
<co-input-textarea #input
|
|
52233
52283
|
[model]="transactionServiceInfo.reportMessage"
|
|
52234
|
-
[
|
|
52284
|
+
[forceReadonly]="readonly"
|
|
52235
52285
|
[showSaveCancel]="true"
|
|
52236
|
-
></co-input-textarea>
|
|
52286
|
+
></co-input-textarea> <!--[screenConfigurationObject]="cfgNames.ServiceMessage"-->
|
|
52237
52287
|
`,
|
|
52238
52288
|
encapsulation: ViewEncapsulation.None
|
|
52239
52289
|
},] }
|
|
@@ -52250,7 +52300,8 @@ TransactionServiceMessageModule.decorators = [
|
|
|
52250
52300
|
CommonModule,
|
|
52251
52301
|
InputTextModule,
|
|
52252
52302
|
PipeModule,
|
|
52253
|
-
InputTextareaModule
|
|
52303
|
+
InputTextareaModule,
|
|
52304
|
+
ScreenConfigurationModule
|
|
52254
52305
|
],
|
|
52255
52306
|
declarations: [
|
|
52256
52307
|
TransactionServiceMessageComponent
|