@colijnit/transaction 258.1.29 → 258.1.30
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 +62 -12
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +15 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.js +11 -6
- package/esm2015/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.js +11 -3
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-purchase-reservation-order-tile/transaction-purchase-reservation-order-tile.component.js +12 -3
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +8 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +65 -10
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/relation/relation-address/relation-address.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.d.ts +2 -1
- package/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-purchase-reservation-order-tile/transaction-purchase-reservation-order-tile.component.d.ts +3 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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 = "258.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "258.1.30";
|
|
7
|
+
this.publishDate = "11-6-2025 17:21:10";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU4LjEuMzBcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxMS02LTIwMjUgMTc6MjE6MTBcIjtcbn0iXX0=
|
|
@@ -294,8 +294,8 @@ class Version {
|
|
|
294
294
|
constructor() {
|
|
295
295
|
this.name = "@colijnit/transaction";
|
|
296
296
|
this.description = "Colijn IT transaction package";
|
|
297
|
-
this.symVer = "258.1.
|
|
298
|
-
this.publishDate = "
|
|
297
|
+
this.symVer = "258.1.30";
|
|
298
|
+
this.publishDate = "11-6-2025 17:21:10";
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -2793,6 +2793,18 @@ class TransactionConnectorAdapterService {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
|
+
getAddressTypes(languageCode) {
|
|
2797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2798
|
+
const result = yield this.connector.getAddressTypes(languageCode);
|
|
2799
|
+
if (result.validationResult && result.validationResult.success) {
|
|
2800
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
|
|
2801
|
+
}
|
|
2802
|
+
else {
|
|
2803
|
+
this._handleExceptionFromResponse(result);
|
|
2804
|
+
return [];
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2796
2808
|
getInOutCollection(languageCode) {
|
|
2797
2809
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2798
2810
|
const result = yield this.connector.getInOutCollection(languageCode);
|
|
@@ -7447,6 +7459,13 @@ class TransactionConnectorService {
|
|
|
7447
7459
|
}).getValue(languageCode, DomainName.CommissionCode);
|
|
7448
7460
|
});
|
|
7449
7461
|
}
|
|
7462
|
+
getAddressTypes(languageCode) {
|
|
7463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7464
|
+
return this._selectMultipleParameterizedCacheService.requestCache(DomainName.AddressType, (languageCode, domainName) => {
|
|
7465
|
+
return this._adapterService.functionCall(this._adapterService.getAddressTypes, [languageCode]);
|
|
7466
|
+
}).getValue(languageCode, DomainName.AddressType);
|
|
7467
|
+
});
|
|
7468
|
+
}
|
|
7450
7469
|
getInOutCollection(languageCode) {
|
|
7451
7470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7452
7471
|
return this._selectMultipleParameterizedCacheService.requestCache(DomainName.InOutCollection, (languageCode, domainName) => {
|
|
@@ -16849,6 +16868,7 @@ class RelationAddressComponent extends RelationBaseComponent {
|
|
|
16849
16868
|
this.transactionService = transactionService;
|
|
16850
16869
|
this.addressChange = new EventEmitter();
|
|
16851
16870
|
this.countries = [];
|
|
16871
|
+
this.addressTypes = [];
|
|
16852
16872
|
this.fields = { text: "description", value: "code" };
|
|
16853
16873
|
this.postalCodeCheckErrorMessage = "";
|
|
16854
16874
|
this._prevPostalCodeForCheck = "";
|
|
@@ -16871,6 +16891,9 @@ class RelationAddressComponent extends RelationBaseComponent {
|
|
|
16871
16891
|
this.countries = countries;
|
|
16872
16892
|
this._setSelectedAddress();
|
|
16873
16893
|
});
|
|
16894
|
+
this._connector.getAddressTypes('NL').then((codes) => {
|
|
16895
|
+
this.addressTypes = codes;
|
|
16896
|
+
});
|
|
16874
16897
|
});
|
|
16875
16898
|
}
|
|
16876
16899
|
checkForPostalCodeCheckError() {
|
|
@@ -16993,6 +17016,16 @@ RelationAddressComponent.decorators = [
|
|
|
16993
17016
|
(modelChange)="handleCountryChange($event)"
|
|
16994
17017
|
></co-list-of-values>
|
|
16995
17018
|
</div>
|
|
17019
|
+
<div class="relation-address-data-row default single">
|
|
17020
|
+
<co-list-of-values
|
|
17021
|
+
[(model)]="address.addressType"
|
|
17022
|
+
[collection]="addressTypes"
|
|
17023
|
+
[displayField]="'description'"
|
|
17024
|
+
[label]="'ADDRESS_TYPE' | localize"
|
|
17025
|
+
[required]="true"
|
|
17026
|
+
></co-list-of-values>
|
|
17027
|
+
</div>
|
|
17028
|
+
|
|
16996
17029
|
`,
|
|
16997
17030
|
encapsulation: ViewEncapsulation.None
|
|
16998
17031
|
},] }
|
|
@@ -26207,6 +26240,7 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
26207
26240
|
this.dialogService = dialogService;
|
|
26208
26241
|
this._transactionCreationService = _transactionCreationService;
|
|
26209
26242
|
this.creatingSalesOrder = false;
|
|
26243
|
+
this.refTransactions = [];
|
|
26210
26244
|
this._subscriptions = [];
|
|
26211
26245
|
this.reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
|
|
26212
26246
|
this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
|
|
@@ -26217,7 +26251,10 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
26217
26251
|
}
|
|
26218
26252
|
ngOnInit() {
|
|
26219
26253
|
super.ngOnInit();
|
|
26220
|
-
this._subscriptions.push(this.transactionEventService.
|
|
26254
|
+
this._subscriptions.push(this.transactionEventService.transactionLineRefTransactionsChanged.subscribe(() => {
|
|
26255
|
+
this.updateRefTransactions();
|
|
26256
|
+
this.changeDetector.detectChanges();
|
|
26257
|
+
}));
|
|
26221
26258
|
}
|
|
26222
26259
|
ngOnDestroy() {
|
|
26223
26260
|
super.ngOnDestroy();
|
|
@@ -26310,11 +26347,12 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
26310
26347
|
request.transactionRelationId = this.transactionInfo.relation.relationId;
|
|
26311
26348
|
request.handledByRelationId = this.transactionInfo.handledBy;
|
|
26312
26349
|
this.creatingSalesOrder = true;
|
|
26313
|
-
//Copy over the branch attached to the current quotation.
|
|
26314
26350
|
this._transactionCreationService.currentBranch = this.transactionHeaderService.transactionInfo.branch.relationNr;
|
|
26315
26351
|
const salesOrderCreated = yield this._transactionCreationService.createSalesOrderThroughQuotation(request);
|
|
26316
26352
|
this.creatingSalesOrder = false;
|
|
26317
26353
|
if (!isNaN(salesOrderCreated)) {
|
|
26354
|
+
this.updateRefTransactions();
|
|
26355
|
+
this.changeDetector.detectChanges(); // Force view update
|
|
26318
26356
|
this.transactionEventService.transactionNavigation.next(salesOrderCreated.toString());
|
|
26319
26357
|
}
|
|
26320
26358
|
});
|
|
@@ -26322,7 +26360,7 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
26322
26360
|
handleSalesOrderNavigation(transNr) {
|
|
26323
26361
|
this.transactionEventService.transactionNavigation.next(transNr);
|
|
26324
26362
|
}
|
|
26325
|
-
|
|
26363
|
+
updateRefTransactions() {
|
|
26326
26364
|
const refTransactionNrs = new Set();
|
|
26327
26365
|
const refTransactionsList = [];
|
|
26328
26366
|
this.transactionService.currentTransaction.transactionLines.forEach((line) => {
|
|
@@ -26334,7 +26372,7 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
26334
26372
|
}
|
|
26335
26373
|
});
|
|
26336
26374
|
});
|
|
26337
|
-
|
|
26375
|
+
this.refTransactions = refTransactionsList;
|
|
26338
26376
|
}
|
|
26339
26377
|
handleMarginOverviewClick(selected) {
|
|
26340
26378
|
this.transactionHeaderService.showingMargins = selected;
|
|
@@ -26362,7 +26400,7 @@ TransactionQuickAccessSalesQuotationComponent.decorators = [
|
|
|
26362
26400
|
(click)="createSalesOrder()"
|
|
26363
26401
|
></co-transaction-button>
|
|
26364
26402
|
<co-transaction-navigation-button-list
|
|
26365
|
-
[refTransactions]="
|
|
26403
|
+
[refTransactions]="refTransactions"
|
|
26366
26404
|
[showRelationButton]="false"
|
|
26367
26405
|
[emptyLabel]="'NO_SALES_QUOTE_ORDER' | localize"
|
|
26368
26406
|
(transactionClick)="handleSalesOrderNavigation($event)"
|
|
@@ -48124,9 +48162,16 @@ TransactionLineSidePanelPlanningModule.decorators = [
|
|
|
48124
48162
|
];
|
|
48125
48163
|
|
|
48126
48164
|
class TransactionPurchaseReservationOrderTileComponent extends TransactionSearchTileBaseComponent {
|
|
48165
|
+
constructor() {
|
|
48166
|
+
super(...arguments);
|
|
48167
|
+
this.selectedLine = new EventEmitter();
|
|
48168
|
+
}
|
|
48127
48169
|
showClass() {
|
|
48128
48170
|
return true;
|
|
48129
48171
|
}
|
|
48172
|
+
handleSelection() {
|
|
48173
|
+
this.selectedLine.emit(this.purchaseReservationPurchaseLine);
|
|
48174
|
+
}
|
|
48130
48175
|
boolForString(string) {
|
|
48131
48176
|
return string === "T";
|
|
48132
48177
|
}
|
|
@@ -48142,6 +48187,7 @@ TransactionPurchaseReservationOrderTileComponent.decorators = [
|
|
|
48142
48187
|
<div class="header">
|
|
48143
48188
|
<co-input-checkbox
|
|
48144
48189
|
[(model)]="purchaseReservationPurchaseLine.selected"
|
|
48190
|
+
(modelChange)="handleSelection()"
|
|
48145
48191
|
></co-input-checkbox>
|
|
48146
48192
|
<span class="bold" [textContent]="purchaseReservationPurchaseLine.transNo"></span>
|
|
48147
48193
|
</div>
|
|
@@ -48192,7 +48238,8 @@ TransactionPurchaseReservationOrderTileComponent.decorators = [
|
|
|
48192
48238
|
];
|
|
48193
48239
|
TransactionPurchaseReservationOrderTileComponent.propDecorators = {
|
|
48194
48240
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-purchase-reservation-order-tile",] }],
|
|
48195
|
-
purchaseReservationPurchaseLine: [{ type: Input }]
|
|
48241
|
+
purchaseReservationPurchaseLine: [{ type: Input }],
|
|
48242
|
+
selectedLine: [{ type: Output }]
|
|
48196
48243
|
};
|
|
48197
48244
|
|
|
48198
48245
|
class TransactionPurchaseReservationOrderTileModule {
|
|
@@ -63024,6 +63071,11 @@ class TransactionSalesReservationPopupComponent {
|
|
|
63024
63071
|
this.salesReservationService.resetLineData();
|
|
63025
63072
|
this._transactionHeaderService.reservationPopupToggle.next(false);
|
|
63026
63073
|
}
|
|
63074
|
+
onTileSelected(selected) {
|
|
63075
|
+
this.reservationOrderLines.forEach(line => {
|
|
63076
|
+
line.selected = (line === selected);
|
|
63077
|
+
});
|
|
63078
|
+
}
|
|
63027
63079
|
processReservation() {
|
|
63028
63080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63029
63081
|
let reservation = this.salesReservationService.purchaseReservations.find((reservation) => reservation.salesOrderId === this._transactionHeaderService.transaction.transactionInfo.id);
|
|
@@ -63054,8 +63106,11 @@ TransactionSalesReservationPopupComponent.decorators = [
|
|
|
63054
63106
|
</ng-template>
|
|
63055
63107
|
|
|
63056
63108
|
<div class="wrapper">
|
|
63057
|
-
<co-transaction-purchase-reservation-order-tile
|
|
63058
|
-
|
|
63109
|
+
<co-transaction-purchase-reservation-order-tile
|
|
63110
|
+
*ngFor="let line of reservationOrderLines"
|
|
63111
|
+
[purchaseReservationPurchaseLine]="line"
|
|
63112
|
+
(selectedLine)="onTileSelected(line)">
|
|
63113
|
+
</co-transaction-purchase-reservation-order-tile>
|
|
63059
63114
|
</div>
|
|
63060
63115
|
|
|
63061
63116
|
<ng-template #footerTemplate>
|