@colijnit/transaction 256.1.81 → 256.1.82
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 +237 -42
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-remaining-amount.component.js +1 -1
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +9 -1
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +20 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +91 -37
- package/esm2015/lib/service/transaction-connector-adapter.service.js +27 -1
- package/esm2015/lib/service/transaction-connector.service.js +11 -1
- package/esm2015/lib/service/transaction.service.js +43 -6
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +196 -47
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.d.ts +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +46 -39
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +8 -2
- package/lib/service/transaction-connector-adapter.service.d.ts +4 -0
- package/lib/service/transaction-connector.service.d.ts +4 -0
- package/lib/service/transaction.service.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 = "256.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "256.1.82";
|
|
7
|
+
this.publishDate = "22-4-2025 19:38:31";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuODJcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMi00LTIwMjUgMTk6Mzg6MzFcIjtcbn0iXX0=
|
|
@@ -184,6 +184,8 @@ import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.en
|
|
|
184
184
|
import { LayoutCode } from '@colijnit/transactionapi/build/enum/layout-code.enum';
|
|
185
185
|
import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request';
|
|
186
186
|
import { ReportingDocumentPrintSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request';
|
|
187
|
+
import { PrintPackageStickerRequest } from '@colijnit/transactionapi/build/model/print-package-sticker-request.bo';
|
|
188
|
+
import { PdfPackageStickerRequest } from '@colijnit/transactionapi/build/model/pdf-package-sticker-request.bo';
|
|
187
189
|
import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-pdf-base-request';
|
|
188
190
|
import { EmailHistoricOrderConfirmationRequest } from '@colijnit/transactionapi/build/model/email-historic-order-confirmation-request';
|
|
189
191
|
import { PrintHistoricOrderConfirmationRequest } from '@colijnit/transactionapi/build/model/print-historic-order-confirmation-request';
|
|
@@ -283,8 +285,8 @@ class Version {
|
|
|
283
285
|
constructor() {
|
|
284
286
|
this.name = "@colijnit/transaction";
|
|
285
287
|
this.description = "Colijn IT transaction package";
|
|
286
|
-
this.symVer = "256.1.
|
|
287
|
-
this.publishDate = "
|
|
288
|
+
this.symVer = "256.1.82";
|
|
289
|
+
this.publishDate = "22-4-2025 19:38:31";
|
|
288
290
|
}
|
|
289
291
|
}
|
|
290
292
|
|
|
@@ -4532,6 +4534,32 @@ class TransactionConnectorAdapterService {
|
|
|
4532
4534
|
}
|
|
4533
4535
|
});
|
|
4534
4536
|
}
|
|
4537
|
+
printPackageSticker(printRequest) {
|
|
4538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4539
|
+
const response = yield this.connector.printPackageSticker(printRequest);
|
|
4540
|
+
if (response.validationResult && response.validationResult.success) {
|
|
4541
|
+
return;
|
|
4542
|
+
}
|
|
4543
|
+
else {
|
|
4544
|
+
this._handleExceptionFromResponse(response);
|
|
4545
|
+
return null;
|
|
4546
|
+
}
|
|
4547
|
+
});
|
|
4548
|
+
}
|
|
4549
|
+
pdfPackageSticker(pdfRequest) {
|
|
4550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4551
|
+
const response = yield this.connector.pdfPackageSticker(pdfRequest);
|
|
4552
|
+
if (response.validationResult && response.validationResult.success) {
|
|
4553
|
+
if (response.resultObject && response.resultObject.pdfContent) {
|
|
4554
|
+
this._openPdfContent(response.resultObject.pdfContent);
|
|
4555
|
+
}
|
|
4556
|
+
}
|
|
4557
|
+
else {
|
|
4558
|
+
this._handleExceptionFromResponse(response);
|
|
4559
|
+
return null;
|
|
4560
|
+
}
|
|
4561
|
+
});
|
|
4562
|
+
}
|
|
4535
4563
|
receiveGoodsForPurchaseOrderCorrection(request) {
|
|
4536
4564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4537
4565
|
const response = yield this.connector.receiveGoodsForPurchaseOrderCorrection(request);
|
|
@@ -7636,6 +7664,16 @@ class TransactionConnectorService {
|
|
|
7636
7664
|
return this._adapterService.functionCall(this._adapterService.receiveGoodsForPurchaseOrderCorrection, [request]);
|
|
7637
7665
|
});
|
|
7638
7666
|
}
|
|
7667
|
+
printPackageSticker(printRequest) {
|
|
7668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7669
|
+
return this._adapterService.functionCall(this._adapterService.printPackageSticker, [printRequest]);
|
|
7670
|
+
});
|
|
7671
|
+
}
|
|
7672
|
+
pdfPackageSticker(pdfRequest) {
|
|
7673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7674
|
+
return this._adapterService.functionCall(this._adapterService.pdfPackageSticker, [pdfRequest]);
|
|
7675
|
+
});
|
|
7676
|
+
}
|
|
7639
7677
|
getPurchasePortalLines(request) {
|
|
7640
7678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7641
7679
|
return this._adapterService.functionCall(this._adapterService.getPurchasePortalLines, [request]);
|
|
@@ -12589,7 +12627,7 @@ class TransactionService extends PendingReasonService {
|
|
|
12589
12627
|
this.transactionEventService.updatingPurchaseOrderReceiveGoods.next(true);
|
|
12590
12628
|
const response = yield this.connector.receiveGoodsForPurchaseOrder(request);
|
|
12591
12629
|
this.transactionEventService.updatingPurchaseOrderReceiveGoods.next(false);
|
|
12592
|
-
let success =
|
|
12630
|
+
let success = false;
|
|
12593
12631
|
if (response) {
|
|
12594
12632
|
this.transactionDirty = true;
|
|
12595
12633
|
success = yield this.handleHeaderOperationStatuses(response);
|
|
@@ -12614,6 +12652,16 @@ class TransactionService extends PendingReasonService {
|
|
|
12614
12652
|
}
|
|
12615
12653
|
});
|
|
12616
12654
|
}
|
|
12655
|
+
printPackageSticker(printRequest) {
|
|
12656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12657
|
+
return yield this.connector.printPackageSticker(printRequest);
|
|
12658
|
+
});
|
|
12659
|
+
}
|
|
12660
|
+
pdfPackageSticker(pdfRequest) {
|
|
12661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12662
|
+
return yield this.connector.pdfPackageSticker(pdfRequest);
|
|
12663
|
+
});
|
|
12664
|
+
}
|
|
12617
12665
|
allocateGoodsForSalesOrder(transactionId, version, request) {
|
|
12618
12666
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12619
12667
|
const lockSuccess = yield this.tryToLockTransaction(transactionId, version);
|
|
@@ -13445,6 +13493,33 @@ class TransactionService extends PendingReasonService {
|
|
|
13445
13493
|
return yield this.connector.getDefaultEmailAddressListForPurchaseOrder(uuid);
|
|
13446
13494
|
});
|
|
13447
13495
|
}
|
|
13496
|
+
createReceivePurchaseOrderRequest(date, packingSlipNr) {
|
|
13497
|
+
const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected);
|
|
13498
|
+
if (selectedLines.length > 0) {
|
|
13499
|
+
const receivedGoodsRequest = new ReceiveGoodsForPurchaseOrderRequest();
|
|
13500
|
+
receivedGoodsRequest.transId = this.currentTransaction.transactionInfo.id;
|
|
13501
|
+
receivedGoodsRequest.receivedDate = date;
|
|
13502
|
+
receivedGoodsRequest.packingSlipNr = packingSlipNr;
|
|
13503
|
+
receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS = [];
|
|
13504
|
+
selectedLines.forEach((line) => {
|
|
13505
|
+
const detail = new PurchaseOrderLineReceiptDetails();
|
|
13506
|
+
detail.lineNr = line.lineNr;
|
|
13507
|
+
detail.quantityToReceive = line.articleLineStatus.quantityToReceive;
|
|
13508
|
+
detail.warehouseNr = line.warehouseNumber;
|
|
13509
|
+
detail.locationNr = line.locationNr;
|
|
13510
|
+
detail.batchNr = line.batchNr;
|
|
13511
|
+
detail.numberOfStickers = line.stickerAmount;
|
|
13512
|
+
detail.printerName = line.printerName;
|
|
13513
|
+
detail.reportId = line.reportId;
|
|
13514
|
+
receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS.push(detail);
|
|
13515
|
+
});
|
|
13516
|
+
return receivedGoodsRequest;
|
|
13517
|
+
}
|
|
13518
|
+
else {
|
|
13519
|
+
this.dialogService.showError('SELECTED_LINES_NOT_FOUND', true);
|
|
13520
|
+
return null;
|
|
13521
|
+
}
|
|
13522
|
+
}
|
|
13448
13523
|
handleReceiveSelectedPurchaseOrders(date, packingSlipNr) {
|
|
13449
13524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13450
13525
|
const selectedLines = this.currentTransaction.transactionLines.filter((line) => line.selected);
|
|
@@ -13453,10 +13528,10 @@ class TransactionService extends PendingReasonService {
|
|
|
13453
13528
|
receivedGoodsRequest.transId = this.currentTransaction.transactionInfo.id;
|
|
13454
13529
|
receivedGoodsRequest.receivedDate = date;
|
|
13455
13530
|
receivedGoodsRequest.packingSlipNr = packingSlipNr;
|
|
13456
|
-
receivedGoodsRequest.printerName = this.currentTransaction.transactionInfo.printerName;
|
|
13457
|
-
receivedGoodsRequest.reportId = this.currentTransaction.transactionInfo.reportId;
|
|
13458
|
-
receivedGoodsRequest.saveDefaultPrinterForAllUsers = this.currentTransaction.transactionInfo.saveDefaultPrinterForAllUsers;
|
|
13459
|
-
receivedGoodsRequest.saveDefaultPrinterForUser = this.currentTransaction.transactionInfo.saveDefaultPrinterForUser;
|
|
13531
|
+
//receivedGoodsRequest.printerName = this.currentTransaction.transactionInfo.printerName;
|
|
13532
|
+
//receivedGoodsRequest.reportId = this.currentTransaction.transactionInfo.reportId;
|
|
13533
|
+
//receivedGoodsRequest.saveDefaultPrinterForAllUsers = this.currentTransaction.transactionInfo.saveDefaultPrinterForAllUsers;
|
|
13534
|
+
//receivedGoodsRequest.saveDefaultPrinterForUser = this.currentTransaction.transactionInfo.saveDefaultPrinterForUser;
|
|
13460
13535
|
receivedGoodsRequest.purchaseOrderLineReceiptDetailsDTOS = [];
|
|
13461
13536
|
selectedLines.forEach((line) => {
|
|
13462
13537
|
const detail = new PurchaseOrderLineReceiptDetails();
|
|
@@ -19254,6 +19329,7 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
|
|
|
19254
19329
|
this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
|
|
19255
19330
|
this.reportDocumentPdfRequest = new PdfInvoiceRequest();
|
|
19256
19331
|
this.localCheckboxState = false;
|
|
19332
|
+
this.colliCheckboxState = false;
|
|
19257
19333
|
this.commitDate = new Date();
|
|
19258
19334
|
this.globalWarehouseLocation = '-';
|
|
19259
19335
|
this.internalParamMLocat = false;
|
|
@@ -19279,8 +19355,10 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
|
|
|
19279
19355
|
handleCommitEvent() {
|
|
19280
19356
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19281
19357
|
this.showProcessingLoader = true;
|
|
19282
|
-
yield this.
|
|
19283
|
-
|
|
19358
|
+
const received = yield this._receiveGoods();
|
|
19359
|
+
if (received && !this.colliCheckboxState) {
|
|
19360
|
+
yield this.handleSend(this.defaultSendMethod);
|
|
19361
|
+
}
|
|
19284
19362
|
this.showProcessingLoader = false;
|
|
19285
19363
|
});
|
|
19286
19364
|
}
|
|
@@ -19305,6 +19383,19 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
|
|
|
19305
19383
|
this.showWarehouseLocationButton = trLines.every(obj => obj['warehouseNumber'] === firstWarehouseNumber);
|
|
19306
19384
|
this.warehouseNumber = this.showWarehouseLocationButton ? firstWarehouseNumber : 0;
|
|
19307
19385
|
}
|
|
19386
|
+
handleSendMethodOkClick(method) {
|
|
19387
|
+
const _super = Object.create(null, {
|
|
19388
|
+
handleSendMethodOkClick: { get: () => super.handleSendMethodOkClick }
|
|
19389
|
+
});
|
|
19390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19391
|
+
this.showProcessingLoader = true;
|
|
19392
|
+
const received = yield this._receiveGoods();
|
|
19393
|
+
if (received) {
|
|
19394
|
+
yield _super.handleSendMethodOkClick.call(this, method);
|
|
19395
|
+
}
|
|
19396
|
+
this.showProcessingLoader = false;
|
|
19397
|
+
});
|
|
19398
|
+
}
|
|
19308
19399
|
getDefaultEmailAddressList() {
|
|
19309
19400
|
return Promise.resolve([]);
|
|
19310
19401
|
}
|
|
@@ -19317,12 +19408,37 @@ class TransactionQuickAccessReceivedGoodsComponent extends TransactionQuickAcces
|
|
|
19317
19408
|
getPrintLayouts() {
|
|
19318
19409
|
return this.transactionService.getPackageStickerPrintLayouts();
|
|
19319
19410
|
}
|
|
19320
|
-
pdfDocument() {
|
|
19321
|
-
return;
|
|
19322
|
-
}
|
|
19323
19411
|
printDocument(printRequest) {
|
|
19324
|
-
this
|
|
19325
|
-
|
|
19412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19413
|
+
const printPackageStickerRequest = Object.assign(new PrintPackageStickerRequest(), printRequest);
|
|
19414
|
+
yield this.transactionService.printPackageSticker(this._preparePrintRequest(printPackageStickerRequest));
|
|
19415
|
+
});
|
|
19416
|
+
}
|
|
19417
|
+
pdfDocument(pdfRequest) {
|
|
19418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19419
|
+
const pdfPackageStickerRequest = Object.assign(new PdfPackageStickerRequest(), pdfRequest);
|
|
19420
|
+
yield this.transactionService.pdfPackageSticker(this._preparePdfRequest(pdfPackageStickerRequest));
|
|
19421
|
+
});
|
|
19422
|
+
}
|
|
19423
|
+
_receiveGoods() {
|
|
19424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19425
|
+
this._receiveRequest = this.transactionService.createReceivePurchaseOrderRequest(this.commitDate, this.packingSlipNr);
|
|
19426
|
+
if (this._receiveRequest) {
|
|
19427
|
+
const received = yield this.transactionService.receiveGoodsForPurchaseOrder(this.transactionService.currentTransaction.transactionInfo.id, this.transactionService.currentTransaction.transactionInfo.version, this._receiveRequest);
|
|
19428
|
+
return received;
|
|
19429
|
+
}
|
|
19430
|
+
else {
|
|
19431
|
+
return false;
|
|
19432
|
+
}
|
|
19433
|
+
});
|
|
19434
|
+
}
|
|
19435
|
+
_preparePrintRequest(printRequest) {
|
|
19436
|
+
printRequest.receiveGoodsRequest = this._receiveRequest;
|
|
19437
|
+
return printRequest;
|
|
19438
|
+
}
|
|
19439
|
+
_preparePdfRequest(pdfRequest) {
|
|
19440
|
+
pdfRequest.receiveGoodsRequest = this._receiveRequest;
|
|
19441
|
+
return pdfRequest;
|
|
19326
19442
|
}
|
|
19327
19443
|
emailDocument(emailInvoiceRequest) {
|
|
19328
19444
|
return;
|
|
@@ -19337,34 +19453,45 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
|
19337
19453
|
selector: "co-transaction-quick-access-received-goods",
|
|
19338
19454
|
template: `
|
|
19339
19455
|
<div class="quick-access-wrapper" *ngIf="!hideQuickAccessContent">
|
|
19340
|
-
<
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19456
|
+
<div class="sub-section">
|
|
19457
|
+
<co-input-date
|
|
19458
|
+
[placeholder]="'RECEIVED_DATE' | localize"
|
|
19459
|
+
[(model)]="commitDate"
|
|
19460
|
+
></co-input-date>
|
|
19461
|
+
<co-input-text
|
|
19462
|
+
[placeholder]="'PACKING_SLIP' | localize"
|
|
19463
|
+
[(model)]="packingSlipNr"
|
|
19464
|
+
></co-input-text>
|
|
19465
|
+
<!--
|
|
19466
|
+
<co-transaction-labeled-warehouse-location-button *ngIf="internalParamMLocat && showWarehouseLocationButton"
|
|
19467
|
+
[locationNr]="globalWarehouseLocation"
|
|
19468
|
+
[warehouseNumber]="warehouseNumber"
|
|
19469
|
+
(locationNrChange)="handleGlobalLocationChange($event)"
|
|
19470
|
+
></co-transaction-labeled-warehouse-location-button>
|
|
19471
|
+
-->
|
|
19472
|
+
<co-quick-send-button
|
|
19473
|
+
[showSendMethodIcon]="false"
|
|
19474
|
+
[icon]="icons.CheckDuotone"
|
|
19475
|
+
[showLoader]="showProcessingLoader"
|
|
19476
|
+
[title]="'PROCESS'"
|
|
19477
|
+
(sendIconClicked)="handleCommitEvent()"
|
|
19478
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
19479
|
+
></co-quick-send-button>
|
|
19480
|
+
</div>
|
|
19481
|
+
<div class="sub-section"w>
|
|
19482
|
+
<co-input-checkbox
|
|
19483
|
+
class="checkbox-wrapper"
|
|
19484
|
+
[label]="'SELECT_ALL' | localize"
|
|
19485
|
+
[(model)]="localCheckboxState"
|
|
19486
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
19487
|
+
></co-input-checkbox>
|
|
19488
|
+
<co-input-checkbox
|
|
19489
|
+
class="checkbox-wrapper"
|
|
19490
|
+
[label]="'NO_PACKAGE_STICKERS' | localize"
|
|
19491
|
+
[(model)]="colliCheckboxState"
|
|
19492
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
19493
|
+
></co-input-checkbox>
|
|
19494
|
+
</div>
|
|
19368
19495
|
</div>
|
|
19369
19496
|
<co-send-method-dialog *ngIf="showSendMethodDialog"
|
|
19370
19497
|
[printerList]="printerList"
|
|
@@ -19374,7 +19501,7 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
|
19374
19501
|
[emailAddresses]="emailAddresses"
|
|
19375
19502
|
[emailLayouts]="emailLayouts"
|
|
19376
19503
|
[printLayouts]="printLayouts"
|
|
19377
|
-
[
|
|
19504
|
+
[docSign]="false"
|
|
19378
19505
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
19379
19506
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
19380
19507
|
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
@@ -20784,6 +20911,14 @@ TransactionReceiveGoodsLineComponent.decorators = [
|
|
|
20784
20911
|
</co-input-number-picker>
|
|
20785
20912
|
</div>
|
|
20786
20913
|
</div>
|
|
20914
|
+
<div class="transaction-field-wrapper">
|
|
20915
|
+
<div class="inside-field">
|
|
20916
|
+
<co-transaction-print-package-sticker
|
|
20917
|
+
[screenConfigurationObject]="cfgNames.StickerAmount"
|
|
20918
|
+
[inputLabel]="true"
|
|
20919
|
+
></co-transaction-print-package-sticker>
|
|
20920
|
+
</div>
|
|
20921
|
+
</div>
|
|
20787
20922
|
<div class="transaction-field-wrapper">
|
|
20788
20923
|
<div class="inside-field">
|
|
20789
20924
|
<co-editable-label class="transaction-line-totals-total price"
|
|
@@ -35983,6 +36118,14 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
|
|
|
35983
36118
|
this._handleTransactionLineSet(transLine);
|
|
35984
36119
|
}
|
|
35985
36120
|
}));
|
|
36121
|
+
this.transactionService.getPackageStickerPrintLayouts().then((layouts) => {
|
|
36122
|
+
if (layouts && layouts.length > 0) {
|
|
36123
|
+
const defaultLayout = layouts.find(p => p.isDefault);
|
|
36124
|
+
if (defaultLayout) {
|
|
36125
|
+
this._defaultReportId = defaultLayout.reportId;
|
|
36126
|
+
}
|
|
36127
|
+
}
|
|
36128
|
+
});
|
|
35986
36129
|
}
|
|
35987
36130
|
ngOnDestroy() {
|
|
35988
36131
|
this._subs.forEach(s => s.unsubscribe());
|
|
@@ -36010,10 +36153,16 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
|
|
|
36010
36153
|
-this.receiptDetails.quantityToReceive : this.receiptDetails.quantityToReceive;
|
|
36011
36154
|
request.transId = this.transactionInfo.id;
|
|
36012
36155
|
request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36156
|
+
this.transactionService.receiveGoodsForPurchaseOrder(this.transactionInfo.id, this.transactionInfo.version, request).then((received) => {
|
|
36157
|
+
if (received) {
|
|
36158
|
+
let printRequest = new PrintPackageStickerRequest();
|
|
36159
|
+
printRequest.receiveGoodsRequest = request;
|
|
36160
|
+
printRequest.transId = this.transactionInfo.id;
|
|
36161
|
+
printRequest.reportId = this.transactionLine.reportId ? this.transactionLine.reportId : (this.transactionInfo.reportId ? this.transactionInfo.reportId : this._defaultReportId);
|
|
36162
|
+
printRequest.printerName = this.transactionLine.printerName ? this.transactionLine.printerName : this.transactionInfo.printerName;
|
|
36163
|
+
printRequest.copies = Math.ceil(this.transactionLine.stickerAmount);
|
|
36164
|
+
this.transactionService.printPackageSticker(printRequest);
|
|
36165
|
+
}
|
|
36017
36166
|
if (this.returnStockMode) {
|
|
36018
36167
|
this._getAvailableStock();
|
|
36019
36168
|
this.receiptDetails.locationNr = undefined;
|