@colijnit/transaction 257.1.23 → 257.1.24
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 +23 -22
- 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-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 +22 -21
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/delivery-planning/delivery-planning.component.d.ts +3 -2
- 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.24";
|
|
7
|
+
this.publishDate = "11-3-2025 13:48:02";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU3LjEuMjRcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxMS0zLTIwMjUgMTM6NDg6MDJcIjtcbn0iXX0=
|
|
@@ -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.24";
|
|
288
|
+
this.publishDate = "11-3-2025 13:48:02";
|
|
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) {
|
|
@@ -26535,11 +26524,19 @@ class DeliveryPlanningService {
|
|
|
26535
26524
|
if (newIndex < 0 || newIndex >= array.length) {
|
|
26536
26525
|
return; // Do nothing if already at the first or last position
|
|
26537
26526
|
}
|
|
26538
|
-
|
|
26527
|
+
const originalDuration = item.endTime.getTime() - item.startTime.getTime();
|
|
26528
|
+
const swapItem = array[newIndex];
|
|
26529
|
+
// Assign new start time based on the swapped item's original start time
|
|
26530
|
+
item.startTime = new Date(swapItem.startTime.getTime());
|
|
26531
|
+
item.endTime = new Date(item.startTime.getTime() + originalDuration);
|
|
26532
|
+
// Ensure the swapped item doesn't overlap
|
|
26533
|
+
const swapDuration = swapItem.endTime.getTime() - swapItem.startTime.getTime();
|
|
26534
|
+
if (item.endTime.getTime() > swapItem.startTime.getTime()) {
|
|
26535
|
+
swapItem.startTime = new Date(item.endTime.getTime()); // Adjust start time to avoid overlap
|
|
26536
|
+
swapItem.endTime = new Date(swapItem.startTime.getTime() + swapDuration);
|
|
26537
|
+
}
|
|
26538
|
+
// Swap positions in the array
|
|
26539
26539
|
[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
26540
|
}
|
|
26544
26541
|
}
|
|
26545
26542
|
DeliveryPlanningService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DeliveryPlanningService_Factory() { return new DeliveryPlanningService(i0.ɵɵinject(TransactionConnectorService)); }, token: DeliveryPlanningService, providedIn: "root" });
|
|
@@ -37675,6 +37672,12 @@ class DeliveryPlanningComponent {
|
|
|
37675
37672
|
showClass() {
|
|
37676
37673
|
return true;
|
|
37677
37674
|
}
|
|
37675
|
+
ngOnDestroy() {
|
|
37676
|
+
if (this._deliveryPlanningService.employeeView) {
|
|
37677
|
+
this._deliveryPlanningService.employeeView = false;
|
|
37678
|
+
this._deliveryPlanningService.relationId = undefined;
|
|
37679
|
+
}
|
|
37680
|
+
}
|
|
37678
37681
|
fullscreenToggle() {
|
|
37679
37682
|
this.fullscreenEvent.emit();
|
|
37680
37683
|
}
|
|
@@ -42822,8 +42825,6 @@ class TransactionSearchResultComponent {
|
|
|
42822
42825
|
if (this.salesOrdersPageActive && this.showBatchOptions) {
|
|
42823
42826
|
this.markSelectedTransactions();
|
|
42824
42827
|
}
|
|
42825
|
-
}), this.transactionService.batchModalState.subscribe((state) => {
|
|
42826
|
-
this.showBatchProcessDialog = state;
|
|
42827
42828
|
}));
|
|
42828
42829
|
}
|
|
42829
42830
|
ngOnChanges(changes) {
|
|
@@ -42938,7 +42939,7 @@ class TransactionSearchResultComponent {
|
|
|
42938
42939
|
this.showProcessOrdersLoader = false;
|
|
42939
42940
|
this.transactionService.getBatchJobProgressesForTheUser().then((batchJobProgresses) => {
|
|
42940
42941
|
this.batchJobProgress = batchJobProgresses;
|
|
42941
|
-
this.
|
|
42942
|
+
this.showBatchProcessDialog = true;
|
|
42942
42943
|
});
|
|
42943
42944
|
}
|
|
42944
42945
|
_clearSelected() {
|
|
@@ -43034,7 +43035,7 @@ TransactionSearchResultComponent.decorators = [
|
|
|
43034
43035
|
*ngIf="showBatchProcessDialog"
|
|
43035
43036
|
@fadeInOut
|
|
43036
43037
|
[batchJobProgress]="batchJobProgress"
|
|
43037
|
-
(close)="
|
|
43038
|
+
(close)="showBatchProcessDialog = false">
|
|
43038
43039
|
</co-batch-process-dialog>
|
|
43039
43040
|
`,
|
|
43040
43041
|
animations: [
|