@colijnit/transaction 261.20.66 → 261.20.67
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.
|
@@ -354,8 +354,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
354
354
|
class Version {
|
|
355
355
|
name = "@colijnit/transaction";
|
|
356
356
|
description = "Colijn IT transaction package";
|
|
357
|
-
symVer = "261.20.
|
|
358
|
-
publishDate = "
|
|
357
|
+
symVer = "261.20.67";
|
|
358
|
+
publishDate = "19-8-2026, 17:32:23";
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -2024,6 +2024,7 @@ class TransactionEventService {
|
|
|
2024
2024
|
removeFromContainerRequested = new Subject;
|
|
2025
2025
|
removeFromContainerSuccess = new Subject;
|
|
2026
2026
|
requestFocusOnArticleField = new Subject;
|
|
2027
|
+
transportNotificationsSet = new Subject;
|
|
2027
2028
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2028
2029
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionEventService, providedIn: "root" });
|
|
2029
2030
|
}
|
|
@@ -13049,7 +13050,9 @@ class TransactionService extends PendingReasonService {
|
|
|
13049
13050
|
request = this.addSelectedLineDetailsToTransportNotificationRequest(request);
|
|
13050
13051
|
const response = await this.connector.setTransportNotificationOnSelectedLines(request);
|
|
13051
13052
|
this.transactionDirty = true;
|
|
13052
|
-
|
|
13053
|
+
const result = await this.handleLineOperationStatuses(response, true);
|
|
13054
|
+
this.transactionEventService.transportNotificationsSet.next();
|
|
13055
|
+
return result;
|
|
13053
13056
|
}
|
|
13054
13057
|
else {
|
|
13055
13058
|
return false;
|
|
@@ -13215,14 +13218,17 @@ class TransactionService extends PendingReasonService {
|
|
|
13215
13218
|
if (transactionId && analysisId && lines && lines.length > 0) {
|
|
13216
13219
|
const selectedLinesForAI = lines.filter(l => l.linkedAnalysisResultId !== null && l.linkedAnalysisResultId !== undefined);
|
|
13217
13220
|
const orderConfirmationTransactionLinks = [];
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13221
|
+
//You can have an analysis available and still decide to not actually confirm any lines via AI.
|
|
13222
|
+
if (selectedLinesForAI.length > 0) {
|
|
13223
|
+
selectedLinesForAI.forEach(l => {
|
|
13224
|
+
const orderConfirmationTransactionLink = new OrderConfirmationTransactionLink();
|
|
13225
|
+
orderConfirmationTransactionLink.transactionId = transactionId;
|
|
13226
|
+
orderConfirmationTransactionLink.transactionLineNumber = l.lineNr;
|
|
13227
|
+
orderConfirmationTransactionLink.orderConfirmationAnalysisResultId = l.linkedAnalysisResultId;
|
|
13228
|
+
orderConfirmationTransactionLinks.push(orderConfirmationTransactionLink);
|
|
13229
|
+
});
|
|
13230
|
+
return this.connector.linkTransactionToOrderConfirmation(analysisId, orderConfirmationTransactionLinks);
|
|
13231
|
+
}
|
|
13226
13232
|
}
|
|
13227
13233
|
return Promise.resolve(true);
|
|
13228
13234
|
}
|
|
@@ -80731,17 +80737,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
80731
80737
|
}] } });
|
|
80732
80738
|
|
|
80733
80739
|
class TransactionPurchaseTransportLineComponent extends TransactionPurchaseTransportLineBaseComponent {
|
|
80734
|
-
lineIndex;
|
|
80735
80740
|
showClass() {
|
|
80736
80741
|
return true;
|
|
80737
80742
|
}
|
|
80743
|
+
lineIndex;
|
|
80738
80744
|
totals = new TransportNotificationTotals();
|
|
80745
|
+
_sub;
|
|
80739
80746
|
async handleVisibilityChange(visible) {
|
|
80740
80747
|
if (visible) {
|
|
80741
|
-
this.
|
|
80742
|
-
this.
|
|
80748
|
+
this.addTranportNotificationSub();
|
|
80749
|
+
await this.getTotals();
|
|
80750
|
+
}
|
|
80751
|
+
else {
|
|
80752
|
+
this.removeTranportNotificationSub();
|
|
80753
|
+
}
|
|
80754
|
+
}
|
|
80755
|
+
addTranportNotificationSub() {
|
|
80756
|
+
this._sub = this.transactionEventService.transportNotificationsSet.subscribe(() => {
|
|
80757
|
+
this.getTotals();
|
|
80758
|
+
});
|
|
80759
|
+
this.subs.push(this._sub);
|
|
80760
|
+
}
|
|
80761
|
+
removeTranportNotificationSub() {
|
|
80762
|
+
if (this._sub) {
|
|
80763
|
+
this._sub.unsubscribe();
|
|
80764
|
+
const index = this.subs.indexOf(this._sub);
|
|
80765
|
+
if (index !== -1) {
|
|
80766
|
+
this.subs.splice(index, 1);
|
|
80767
|
+
}
|
|
80743
80768
|
}
|
|
80744
80769
|
}
|
|
80770
|
+
async getTotals() {
|
|
80771
|
+
this.totals = await this.transactionService.getTransportNotificationTotalsByTransactionLine(this.transactionLine.uuid);
|
|
80772
|
+
this.changeDetector.detectChanges();
|
|
80773
|
+
}
|
|
80745
80774
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionPurchaseTransportLineComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
80746
80775
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionPurchaseTransportLineComponent, isStandalone: false, selector: "co-transaction-purchase-transport-line", inputs: { lineIndex: "lineIndex" }, host: { properties: { "class.co-transaction-purchase-order-line": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
80747
80776
|
<co-transaction-base-line
|
|
@@ -80964,11 +80993,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
80964
80993
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
80965
80994
|
standalone: false
|
|
80966
80995
|
}]
|
|
80967
|
-
}], propDecorators: {
|
|
80968
|
-
type: Input
|
|
80969
|
-
}], showClass: [{
|
|
80996
|
+
}], propDecorators: { showClass: [{
|
|
80970
80997
|
type: HostBinding,
|
|
80971
80998
|
args: ["class.co-transaction-purchase-order-line"]
|
|
80999
|
+
}], lineIndex: [{
|
|
81000
|
+
type: Input
|
|
80972
81001
|
}] } });
|
|
80973
81002
|
|
|
80974
81003
|
class TransactionLineDateButtonModule {
|