@colijnit/transaction 257.1.23 → 257.1.25
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 +34 -28
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/delivery-planning/delivery-planning.component.js +7 -1
- package/esm2015/lib/component/delivery-planning/service/delivery-planning.service.js +13 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +12 -7
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +3 -5
- package/esm2015/lib/service/transaction.service.js +2 -13
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +33 -27
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/delivery-planning/delivery-planning.component.d.ts +3 -2
- package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +0 -6
- 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 = "257.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "257.1.25";
|
|
7
|
+
this.publishDate = "11-3-2025 14:52:03";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU3LjEuMjVcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxMS0zLTIwMjUgMTQ6NTI6MDNcIjtcbn0iXX0=
|
|
@@ -284,8 +284,8 @@ class Version {
|
|
|
284
284
|
constructor() {
|
|
285
285
|
this.name = "@colijnit/transaction";
|
|
286
286
|
this.description = "Colijn IT transaction package";
|
|
287
|
-
this.symVer = "257.1.
|
|
288
|
-
this.publishDate = "
|
|
287
|
+
this.symVer = "257.1.25";
|
|
288
|
+
this.publishDate = "11-3-2025 14:52:03";
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -11354,8 +11354,6 @@ class TransactionService extends PendingReasonService {
|
|
|
11354
11354
|
[TransactionTypeCategory.PurchaseOrderReceivedGoods, 2]
|
|
11355
11355
|
]);
|
|
11356
11356
|
this._boFactory = new BusinessObjectFactory();
|
|
11357
|
-
this.isBatchModalOpen = new BehaviorSubject(false);
|
|
11358
|
-
this.batchModalState = this.isBatchModalOpen.asObservable();
|
|
11359
11357
|
}
|
|
11360
11358
|
set transForServiceFromSalesTransactionLine(value) {
|
|
11361
11359
|
this._transForServiceFromSalesTransactionLine = value;
|
|
@@ -11393,15 +11391,6 @@ class TransactionService extends PendingReasonService {
|
|
|
11393
11391
|
return RelationKind$1.Customer;
|
|
11394
11392
|
}
|
|
11395
11393
|
}
|
|
11396
|
-
openBatchModal() {
|
|
11397
|
-
this.isBatchModalOpen.next(true);
|
|
11398
|
-
}
|
|
11399
|
-
closeBatchModal() {
|
|
11400
|
-
this.isBatchModalOpen.next(false);
|
|
11401
|
-
}
|
|
11402
|
-
toggleBatchModal() {
|
|
11403
|
-
this.isBatchModalOpen.next(!this.isBatchModalOpen.value);
|
|
11404
|
-
}
|
|
11405
11394
|
showWarehouseLocationPopup() {
|
|
11406
11395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11407
11396
|
if (this.currentTransaction.transactionLines) {
|
|
@@ -19051,17 +19040,13 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19051
19040
|
}
|
|
19052
19041
|
ngOnInit() {
|
|
19053
19042
|
super.ngOnInit();
|
|
19054
|
-
this.
|
|
19055
|
-
this._getDefaultSendMethod();
|
|
19056
|
-
this._getEmailLayouts();
|
|
19057
|
-
this._getPrintLayouts();
|
|
19058
|
-
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
19059
|
-
this.isAdditionalDocEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
19043
|
+
this._prepareData();
|
|
19060
19044
|
}
|
|
19061
19045
|
transactionSet() {
|
|
19062
19046
|
this.reportDocumentEmailRequest.transId = this.transactionInfo.id;
|
|
19063
19047
|
this.reportDocumentPrintRequest.transId = this.transactionInfo.id;
|
|
19064
19048
|
this.reportDocumentPdfRequest.transId = this.transactionInfo.id;
|
|
19049
|
+
this._prepareData();
|
|
19065
19050
|
}
|
|
19066
19051
|
relationSet() {
|
|
19067
19052
|
this.emailAddresses.length = 0;
|
|
@@ -19177,6 +19162,15 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19177
19162
|
});
|
|
19178
19163
|
}
|
|
19179
19164
|
}
|
|
19165
|
+
_prepareData() {
|
|
19166
|
+
this._getPrinters();
|
|
19167
|
+
this._getDefaultSendMethod();
|
|
19168
|
+
this._getEmailLayouts();
|
|
19169
|
+
this._getPrintLayouts();
|
|
19170
|
+
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
19171
|
+
this.isAdditionalDocEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
19172
|
+
this.getHistoricDocuments();
|
|
19173
|
+
}
|
|
19180
19174
|
_getPrinters() {
|
|
19181
19175
|
this.transactionService.getPrinters().then((printerList) => {
|
|
19182
19176
|
this.printerList = printerList;
|
|
@@ -26535,11 +26529,19 @@ class DeliveryPlanningService {
|
|
|
26535
26529
|
if (newIndex < 0 || newIndex >= array.length) {
|
|
26536
26530
|
return; // Do nothing if already at the first or last position
|
|
26537
26531
|
}
|
|
26538
|
-
|
|
26532
|
+
const originalDuration = item.endTime.getTime() - item.startTime.getTime();
|
|
26533
|
+
const swapItem = array[newIndex];
|
|
26534
|
+
// Assign new start time based on the swapped item's original start time
|
|
26535
|
+
item.startTime = new Date(swapItem.startTime.getTime());
|
|
26536
|
+
item.endTime = new Date(item.startTime.getTime() + originalDuration);
|
|
26537
|
+
// Ensure the swapped item doesn't overlap
|
|
26538
|
+
const swapDuration = swapItem.endTime.getTime() - swapItem.startTime.getTime();
|
|
26539
|
+
if (item.endTime.getTime() > swapItem.startTime.getTime()) {
|
|
26540
|
+
swapItem.startTime = new Date(item.endTime.getTime()); // Adjust start time to avoid overlap
|
|
26541
|
+
swapItem.endTime = new Date(swapItem.startTime.getTime() + swapDuration);
|
|
26542
|
+
}
|
|
26543
|
+
// Swap positions in the array
|
|
26539
26544
|
[array[index], array[newIndex]] = [array[newIndex], array[index]];
|
|
26540
|
-
// Swap startTime and endTime properties
|
|
26541
|
-
[array[index].startTime, array[newIndex].startTime] = [array[newIndex].startTime, array[index].startTime];
|
|
26542
|
-
[array[index].endTime, array[newIndex].endTime] = [array[newIndex].endTime, array[index].endTime];
|
|
26543
26545
|
}
|
|
26544
26546
|
}
|
|
26545
26547
|
DeliveryPlanningService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DeliveryPlanningService_Factory() { return new DeliveryPlanningService(i0.ɵɵinject(TransactionConnectorService)); }, token: DeliveryPlanningService, providedIn: "root" });
|
|
@@ -37675,6 +37677,12 @@ class DeliveryPlanningComponent {
|
|
|
37675
37677
|
showClass() {
|
|
37676
37678
|
return true;
|
|
37677
37679
|
}
|
|
37680
|
+
ngOnDestroy() {
|
|
37681
|
+
if (this._deliveryPlanningService.employeeView) {
|
|
37682
|
+
this._deliveryPlanningService.employeeView = false;
|
|
37683
|
+
this._deliveryPlanningService.relationId = undefined;
|
|
37684
|
+
}
|
|
37685
|
+
}
|
|
37678
37686
|
fullscreenToggle() {
|
|
37679
37687
|
this.fullscreenEvent.emit();
|
|
37680
37688
|
}
|
|
@@ -42822,8 +42830,6 @@ class TransactionSearchResultComponent {
|
|
|
42822
42830
|
if (this.salesOrdersPageActive && this.showBatchOptions) {
|
|
42823
42831
|
this.markSelectedTransactions();
|
|
42824
42832
|
}
|
|
42825
|
-
}), this.transactionService.batchModalState.subscribe((state) => {
|
|
42826
|
-
this.showBatchProcessDialog = state;
|
|
42827
42833
|
}));
|
|
42828
42834
|
}
|
|
42829
42835
|
ngOnChanges(changes) {
|
|
@@ -42938,7 +42944,7 @@ class TransactionSearchResultComponent {
|
|
|
42938
42944
|
this.showProcessOrdersLoader = false;
|
|
42939
42945
|
this.transactionService.getBatchJobProgressesForTheUser().then((batchJobProgresses) => {
|
|
42940
42946
|
this.batchJobProgress = batchJobProgresses;
|
|
42941
|
-
this.
|
|
42947
|
+
this.showBatchProcessDialog = true;
|
|
42942
42948
|
});
|
|
42943
42949
|
}
|
|
42944
42950
|
_clearSelected() {
|
|
@@ -43034,7 +43040,7 @@ TransactionSearchResultComponent.decorators = [
|
|
|
43034
43040
|
*ngIf="showBatchProcessDialog"
|
|
43035
43041
|
@fadeInOut
|
|
43036
43042
|
[batchJobProgress]="batchJobProgress"
|
|
43037
|
-
(close)="
|
|
43043
|
+
(close)="showBatchProcessDialog = false">
|
|
43038
43044
|
</co-batch-process-dialog>
|
|
43039
43045
|
`,
|
|
43040
43046
|
animations: [
|