@colijnit/transaction 256.1.2 → 256.1.3
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 +293 -100
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/avatar/avatar.component.js +15 -2
- package/esm2015/lib/component/core/base/transaction-base.component.js +9 -8
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-direct-sell.component.js +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +4 -5
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-overview-button-bar-button.component.js +6 -3
- package/esm2015/lib/component/transaction-card/transaction-card-margin/transaction-card-margin.component.js +10 -4
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +20 -13
- package/esm2015/lib/component/transaction-line/transaction-margin-info-line/transaction-margin-info-line.component.js +95 -92
- package/esm2015/lib/component/transaction-line-fields/transaction-line-drop-shipment-button.component.js +15 -11
- package/esm2015/lib/component/transaction-margin/transaction-margin.component.js +35 -3
- package/esm2015/lib/component/transaction-send-documents/transaction-send-documents.component.js +2 -2
- package/esm2015/lib/service/transaction-base.service.js +32 -3
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +30 -7
- package/esm2015/lib/service/transaction-mapping.service.js +2 -3
- package/esm2015/lib/service/transaction-relation-connector.service.js +14 -1
- package/esm2015/lib/service/transaction-relation.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +6 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +277 -144
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/avatar.component.d.ts +1 -0
- package/lib/component/core/base/transaction-base.component.d.ts +0 -3
- package/lib/component/transaction/transaction.component.d.ts +1 -0
- package/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-sales-overview-button-bar-button.component.d.ts +2 -1
- package/lib/component/transaction-card/transaction-card-margin/transaction-card-margin.component.d.ts +3 -1
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +4 -2
- package/lib/component/transaction-line/transaction-margin-info-line/transaction-margin-info-line.component.d.ts +6 -5
- package/lib/component/transaction-margin/transaction-margin.component.d.ts +20 -1
- package/lib/service/transaction-base.service.d.ts +6 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction-relation-connector.service.d.ts +2 -0
- package/lib/service/transaction-relation.service.d.ts +2 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -87,6 +87,7 @@ import { RelationListObject } from '@colijnit/relationapi/build/model/relation-l
|
|
|
87
87
|
import { BranchLov } from '@colijnit/relationapi/build/model/branch-lov.bo';
|
|
88
88
|
import { Address } from '@colijnit/relationapi/build/model/address.bo';
|
|
89
89
|
import { RelationSmallObject } from '@colijnit/mainapi/build/model/relation-small-object.bo';
|
|
90
|
+
import { SupplierLightObject } from '@colijnit/relationapi/build/model/supplier-light-object.bo';
|
|
90
91
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
91
92
|
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
92
93
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
@@ -277,8 +278,8 @@ class Version {
|
|
|
277
278
|
constructor() {
|
|
278
279
|
this.name = "@colijnit/transaction";
|
|
279
280
|
this.description = "Colijn IT transaction package";
|
|
280
|
-
this.symVer = "256.1.
|
|
281
|
-
this.publishDate = "
|
|
281
|
+
this.symVer = "256.1.3";
|
|
282
|
+
this.publishDate = "22-10-2024 14:22:51";
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
|
|
@@ -1691,6 +1692,18 @@ class TransactionRelationConnectorService {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
});
|
|
1693
1694
|
}
|
|
1695
|
+
getSupplierLightById(supplierId) {
|
|
1696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1697
|
+
const result = yield this.connector.getSupplierLightById(supplierId);
|
|
1698
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1699
|
+
return this._boFactory.makeWithRawBackendData(SupplierLightObject, result.resultObject);
|
|
1700
|
+
}
|
|
1701
|
+
else {
|
|
1702
|
+
this._handleExceptionFromResponse(result);
|
|
1703
|
+
return null;
|
|
1704
|
+
}
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1694
1707
|
getRelationListObjects(relationRequest) {
|
|
1695
1708
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1696
1709
|
const result = yield this.connector.getRelationListObjects(relationRequest);
|
|
@@ -5581,6 +5594,18 @@ class TransactionConnectorAdapterService {
|
|
|
5581
5594
|
}
|
|
5582
5595
|
});
|
|
5583
5596
|
}
|
|
5597
|
+
getReportHeadersByTransIdAndLayoutCode(transId, documentCode) {
|
|
5598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5599
|
+
const response = yield this.connector.getReportHeadersByTransIdAndLayoutCode(transId, documentCode);
|
|
5600
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5601
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(HistoricReport, response.resultObject);
|
|
5602
|
+
}
|
|
5603
|
+
else {
|
|
5604
|
+
this._handleExceptionFromResponse(response);
|
|
5605
|
+
return null;
|
|
5606
|
+
}
|
|
5607
|
+
});
|
|
5608
|
+
}
|
|
5584
5609
|
getPackageStickerPrintLayouts() {
|
|
5585
5610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5586
5611
|
const response = yield this.mainConnector.getPackageStickerPrintLayouts();
|
|
@@ -6655,29 +6680,47 @@ class TransactionConnectorService {
|
|
|
6655
6680
|
}
|
|
6656
6681
|
getInOutCollection(languageCode) {
|
|
6657
6682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6658
|
-
|
|
6683
|
+
const domainName = DomainName.InOutCollection;
|
|
6684
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6685
|
+
return this._adapterService.getInOutCollection(languageCode);
|
|
6686
|
+
}).getValue(languageCode, domainName);
|
|
6659
6687
|
});
|
|
6660
6688
|
}
|
|
6661
6689
|
getYesNoCollection(languageCode) {
|
|
6662
6690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6663
|
-
|
|
6691
|
+
const domainName = DomainName.YesNo;
|
|
6692
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6693
|
+
return this._adapterService.getYesNoCollection(languageCode);
|
|
6694
|
+
}).getValue(languageCode, domainName);
|
|
6664
6695
|
});
|
|
6665
6696
|
}
|
|
6666
6697
|
getPriceKindCollection(languageCode) {
|
|
6667
6698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6668
|
-
|
|
6699
|
+
const domainName = DomainName.PriceKind;
|
|
6700
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6701
|
+
return this._adapterService.getPriceKindCollection(languageCode);
|
|
6702
|
+
}).getValue(languageCode, domainName);
|
|
6669
6703
|
});
|
|
6670
6704
|
}
|
|
6671
6705
|
getPriorityCollection(languageCode) {
|
|
6672
6706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6673
|
-
|
|
6707
|
+
const domainName = DomainName.Priority;
|
|
6708
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6709
|
+
return this._adapterService.getPriorityCollection(languageCode);
|
|
6710
|
+
}).getValue(languageCode, domainName);
|
|
6674
6711
|
});
|
|
6675
6712
|
}
|
|
6676
6713
|
getEntryTypes(languageCode) {
|
|
6677
|
-
|
|
6714
|
+
const domainName = DomainName.ServiceCommunicationType;
|
|
6715
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6716
|
+
return this._adapterService.getEntryTypes(languageCode);
|
|
6717
|
+
}).getValue(languageCode, domainName);
|
|
6678
6718
|
}
|
|
6679
6719
|
getDomainTypes(languageCode) {
|
|
6680
|
-
|
|
6720
|
+
const domainName = DomainName.TransType;
|
|
6721
|
+
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6722
|
+
return this._adapterService.getDomainTypes(languageCode);
|
|
6723
|
+
}).getValue(languageCode, domainName);
|
|
6681
6724
|
}
|
|
6682
6725
|
getCauseCodes() {
|
|
6683
6726
|
return this._adapterService.getCauseCodes();
|
|
@@ -7582,6 +7625,11 @@ class TransactionConnectorService {
|
|
|
7582
7625
|
return yield this._adapterService.getHistoricDocuments(transId, documentCode);
|
|
7583
7626
|
});
|
|
7584
7627
|
}
|
|
7628
|
+
getReportHeadersByTransIdAndLayoutCode(transId, documentCode) {
|
|
7629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7630
|
+
return yield this._adapterService.getReportHeadersByTransIdAndLayoutCode(transId, documentCode);
|
|
7631
|
+
});
|
|
7632
|
+
}
|
|
7585
7633
|
getPackageStickerPrintLayouts() {
|
|
7586
7634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7587
7635
|
return yield this._adapterService.getPackageStickerPrintLayouts();
|
|
@@ -8308,12 +8356,14 @@ class TransactionBaseComponent {
|
|
|
8308
8356
|
get transactionLine() {
|
|
8309
8357
|
return this._transactionLine;
|
|
8310
8358
|
}
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8359
|
+
// @Input()
|
|
8360
|
+
// public set transactionMarginInfo(marginInfo: TransactionMarginInfo) {
|
|
8361
|
+
// this._transactionMarginInfo = marginInfo;
|
|
8362
|
+
// }
|
|
8363
|
+
//
|
|
8364
|
+
// public get transactionMarginInfo(): TransactionMarginInfo {
|
|
8365
|
+
// return this._transactionMarginInfo;
|
|
8366
|
+
// }
|
|
8317
8367
|
set transactionInfo(value) {
|
|
8318
8368
|
if (value) {
|
|
8319
8369
|
this.headerReadonly = false;
|
|
@@ -8509,7 +8559,6 @@ TransactionBaseComponent.propDecorators = {
|
|
|
8509
8559
|
forceWritable: [{ type: Input }],
|
|
8510
8560
|
transaction: [{ type: Input }],
|
|
8511
8561
|
transactionLine: [{ type: Input }],
|
|
8512
|
-
transactionMarginInfo: [{ type: Input }],
|
|
8513
8562
|
transactionInfo: [{ type: Input }],
|
|
8514
8563
|
orderLineSets: [{ type: Input }],
|
|
8515
8564
|
transactionTotal: [{ type: Input }],
|
|
@@ -9260,6 +9309,11 @@ class TransactionRelationService {
|
|
|
9260
9309
|
return this._adapterService.getSupplierFullObject(relationNo);
|
|
9261
9310
|
// }).getValue();
|
|
9262
9311
|
}
|
|
9312
|
+
getSupplierLightById(supplierId) {
|
|
9313
|
+
// return this._selectSingleCacheService.requestCache<SupplierFullObject>(SupplierFullObject, relationNo, () => {
|
|
9314
|
+
return this._adapterService.getSupplierLightById(supplierId);
|
|
9315
|
+
// }).getValue();
|
|
9316
|
+
}
|
|
9263
9317
|
insertAddress(address) {
|
|
9264
9318
|
return this._adapterService.insertAddress(address);
|
|
9265
9319
|
}
|
|
@@ -9457,6 +9511,7 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9457
9511
|
this.transactionUpdated = new BehaviorSubject(undefined);
|
|
9458
9512
|
this.relationUpdated = new BehaviorSubject(undefined);
|
|
9459
9513
|
this.transactionKindSet = new BehaviorSubject(false);
|
|
9514
|
+
this.transactionMargeViewClicked = new Subject();
|
|
9460
9515
|
this.currentBranch = "1"; // current user branch, needs to be set before we can do anything with transactions
|
|
9461
9516
|
this.autoSave = false;
|
|
9462
9517
|
this.manualSaveParam = false;
|
|
@@ -9518,6 +9573,12 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9518
9573
|
get transactionKind() {
|
|
9519
9574
|
return this._transactionKind;
|
|
9520
9575
|
}
|
|
9576
|
+
set transactionLocalMarginInfo(marginInfo) {
|
|
9577
|
+
this._transactionMarginInfo = marginInfo;
|
|
9578
|
+
}
|
|
9579
|
+
get transactionLocalMarginInfo() {
|
|
9580
|
+
return this._transactionMarginInfo;
|
|
9581
|
+
}
|
|
9521
9582
|
set purchaseOrdersCompleted(value) {
|
|
9522
9583
|
this._purchaseOrdersCompleted = value;
|
|
9523
9584
|
this.transactionEventService.salesOrderGeneratePurchaseOrdersCompletedChanged.next(this._purchaseOrdersCompleted);
|
|
@@ -9876,6 +9937,13 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9876
9937
|
this._alreadyLocked = false;
|
|
9877
9938
|
this.transactionDirty = false;
|
|
9878
9939
|
}
|
|
9940
|
+
loadTransactionMargeInfoList(uuid) {
|
|
9941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9942
|
+
if (uuid) {
|
|
9943
|
+
return yield this.connector.getTransactionMarginInfo(uuid);
|
|
9944
|
+
}
|
|
9945
|
+
});
|
|
9946
|
+
}
|
|
9879
9947
|
_handleBeforeRememberCurrentTransaction(transactionInfoResponse) {
|
|
9880
9948
|
return Promise.resolve();
|
|
9881
9949
|
}
|
|
@@ -9944,8 +10012,9 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9944
10012
|
this.currentTransaction.transactionInfo.transactionKind === TransactionKind.SalesQuotation);
|
|
9945
10013
|
}
|
|
9946
10014
|
}
|
|
10015
|
+
TransactionBaseService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionBaseService_Factory() { return new TransactionBaseService(i0.ɵɵinject(TransactionSettingsService), i0.ɵɵinject(DialogService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(DictionaryService), i0.ɵɵinject(TransactionEventService), i0.ɵɵinject(TransactionRelationService), i0.ɵɵinject(TransactionScreenConfigurationService), i0.ɵɵinject(i9.RelationService), i0.ɵɵinject(i10.SharedService)); }, token: TransactionBaseService, providedIn: "root" });
|
|
9947
10016
|
TransactionBaseService.decorators = [
|
|
9948
|
-
{ type: Injectable }
|
|
10017
|
+
{ type: Injectable, args: [{ providedIn: "root" },] }
|
|
9949
10018
|
];
|
|
9950
10019
|
TransactionBaseService.ctorParameters = () => [
|
|
9951
10020
|
{ type: TransactionSettingsService },
|
|
@@ -9958,7 +10027,10 @@ TransactionBaseService.ctorParameters = () => [
|
|
|
9958
10027
|
{ type: TransactionScreenConfigurationService },
|
|
9959
10028
|
{ type: RelationService },
|
|
9960
10029
|
{ type: SharedService }
|
|
9961
|
-
];
|
|
10030
|
+
];
|
|
10031
|
+
TransactionBaseService.propDecorators = {
|
|
10032
|
+
transactionLocalMarginInfo: [{ type: Input }]
|
|
10033
|
+
};
|
|
9962
10034
|
|
|
9963
10035
|
class PendingReasonService extends TransactionBaseService {
|
|
9964
10036
|
cancelAddTransactionLine(lineUuid) {
|
|
@@ -12154,6 +12226,11 @@ class TransactionService extends PendingReasonService {
|
|
|
12154
12226
|
return yield this.connector.getHistoricDocuments(transId, documentCode);
|
|
12155
12227
|
});
|
|
12156
12228
|
}
|
|
12229
|
+
getReportHeadersByTransIdAndLayoutCode(transId, documentCode) {
|
|
12230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12231
|
+
return yield this.connector.getReportHeadersByTransIdAndLayoutCode(transId, documentCode);
|
|
12232
|
+
});
|
|
12233
|
+
}
|
|
12157
12234
|
undoDeliveryByReportId(reportId) {
|
|
12158
12235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12159
12236
|
return yield this.connector.undoDeliveryByReportId(reportId);
|
|
@@ -17786,7 +17863,7 @@ class TransactionSendDocumentsComponent extends TransactionBaseComponent {
|
|
|
17786
17863
|
super.ngOnDestroy();
|
|
17787
17864
|
}
|
|
17788
17865
|
getHistoricDocuments() {
|
|
17789
|
-
this.transactionService.
|
|
17866
|
+
this.transactionService.getReportHeadersByTransIdAndLayoutCode(this.transactionInfo.id, this.getLayoutCode())
|
|
17790
17867
|
.then((result) => {
|
|
17791
17868
|
if (result) {
|
|
17792
17869
|
this.historicReports = result;
|
|
@@ -22138,7 +22215,7 @@ TransactionQuickAccessPickedComponent.propDecorators = {
|
|
|
22138
22215
|
};
|
|
22139
22216
|
|
|
22140
22217
|
class TransactionSalesOverviewButtonBarButtonComponent extends TransactionButtonBarButtonBaseComponent {
|
|
22141
|
-
constructor(iconCacheService, _transactionEventService, _mappingService, _dictionaryService, _screenConfigService, _transactionService, _elementRef, _renderer) {
|
|
22218
|
+
constructor(iconCacheService, _transactionEventService, _mappingService, _dictionaryService, _screenConfigService, _transactionService, _elementRef, _renderer, _transactionBaseService) {
|
|
22142
22219
|
super();
|
|
22143
22220
|
this.iconCacheService = iconCacheService;
|
|
22144
22221
|
this._transactionEventService = _transactionEventService;
|
|
@@ -22148,6 +22225,7 @@ class TransactionSalesOverviewButtonBarButtonComponent extends TransactionButton
|
|
|
22148
22225
|
this._transactionService = _transactionService;
|
|
22149
22226
|
this._elementRef = _elementRef;
|
|
22150
22227
|
this._renderer = _renderer;
|
|
22228
|
+
this._transactionBaseService = _transactionBaseService;
|
|
22151
22229
|
this.icons = Icon;
|
|
22152
22230
|
this.category = TransactionTypeCategory;
|
|
22153
22231
|
this.cfgNames = TransactionCfgName;
|
|
@@ -22203,6 +22281,7 @@ class TransactionSalesOverviewButtonBarButtonComponent extends TransactionButton
|
|
|
22203
22281
|
overviewButton.title = "MARGINS";
|
|
22204
22282
|
overviewButton.category = TransactionTypeCategory.SalesOrderMarginInfo;
|
|
22205
22283
|
this.buttonClicked.next(overviewButton);
|
|
22284
|
+
this._transactionBaseService.transactionMargeViewClicked.next(true);
|
|
22206
22285
|
}
|
|
22207
22286
|
else {
|
|
22208
22287
|
const marginButton = this._mappingService.getButtonBar(TransactionKind.SalesOrder)
|
|
@@ -22249,7 +22328,8 @@ TransactionSalesOverviewButtonBarButtonComponent.ctorParameters = () => [
|
|
|
22249
22328
|
{ type: TransactionScreenConfigurationService },
|
|
22250
22329
|
{ type: TransactionService },
|
|
22251
22330
|
{ type: ElementRef },
|
|
22252
|
-
{ type: Renderer2 }
|
|
22331
|
+
{ type: Renderer2 },
|
|
22332
|
+
{ type: TransactionService }
|
|
22253
22333
|
];
|
|
22254
22334
|
TransactionSalesOverviewButtonBarButtonComponent.propDecorators = {
|
|
22255
22335
|
showClass: [{ type: HostBinding, args: ['class.co-transaction-sales-overview-button-bar-button',] }]
|
|
@@ -24822,12 +24902,13 @@ TransactionSalesPlanningButtonBarButtonComponent.propDecorators = {
|
|
|
24822
24902
|
};
|
|
24823
24903
|
|
|
24824
24904
|
class TransactionMarginInfoLineComponent extends TransactionBaseComponent {
|
|
24825
|
-
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
24905
|
+
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, _transactionBaseService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
24826
24906
|
super(transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
24827
24907
|
this.transactionEventService = transactionEventService;
|
|
24828
24908
|
this.iconCacheService = iconCacheService;
|
|
24829
24909
|
this.screenConfigService = screenConfigService;
|
|
24830
24910
|
this.orderLineSetService = orderLineSetService;
|
|
24911
|
+
this._transactionBaseService = _transactionBaseService;
|
|
24831
24912
|
this.imageService = imageService;
|
|
24832
24913
|
this.dictionaryService = dictionaryService;
|
|
24833
24914
|
this.transactionService = transactionService;
|
|
@@ -24865,13 +24946,9 @@ class TransactionMarginInfoLineComponent extends TransactionBaseComponent {
|
|
|
24865
24946
|
handleMouseLeave(event) {
|
|
24866
24947
|
this.mouseOver = false;
|
|
24867
24948
|
}
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
|
|
24871
|
-
this.transactionMarginInfo = marginInfo;
|
|
24872
|
-
this.lineMarginInfo = marginInfo.lineMarginInfos.find(line => line.lineNr === this.transactionLine.lineNr);
|
|
24873
|
-
});
|
|
24874
|
-
}
|
|
24949
|
+
get lineMarginInfo() {
|
|
24950
|
+
return this._transactionBaseService.transactionLocalMarginInfo.lineMarginInfos.find(line => line.lineNr === this.transactionLine.lineNr);
|
|
24951
|
+
;
|
|
24875
24952
|
}
|
|
24876
24953
|
handleCheckBoxValueChanged(value) {
|
|
24877
24954
|
if (value) {
|
|
@@ -24890,97 +24967,101 @@ TransactionMarginInfoLineComponent.decorators = [
|
|
|
24890
24967
|
{ type: Component, args: [{
|
|
24891
24968
|
selector: "co-transaction-overview-line",
|
|
24892
24969
|
template: `
|
|
24893
|
-
|
|
24894
|
-
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
|
|
24906
|
-
|
|
24970
|
+
<co-transaction-base-line
|
|
24971
|
+
[transactionInfo]="transactionInfo"
|
|
24972
|
+
[transactionLine]="transactionLine"
|
|
24973
|
+
[preview]="false"
|
|
24974
|
+
[isFirst]="isFirst"
|
|
24975
|
+
[checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
|
|
24976
|
+
[checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
|
|
24977
|
+
(checkboxValueChanged)="handleCheckBoxValueChanged($event)"
|
|
24978
|
+
observeVisibility #observer=visibilityObserve
|
|
24979
|
+
(visibilityChange)="handleVisibilityChange(transactionLine, $event)">
|
|
24980
|
+
<ng-container *ngIf="transactionLine.isArticle">
|
|
24981
|
+
<div class="transaction-line-wrapper">
|
|
24982
|
+
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
24983
|
+
<div class="column1">
|
|
24907
24984
|
<span class="transaction-field-label" [textContent]="'COMMISSION_CODE' | localize"
|
|
24908
24985
|
*ngIf="isFirst"></span>
|
|
24909
|
-
|
|
24910
|
-
|
|
24911
|
-
|
|
24912
|
-
|
|
24913
|
-
|
|
24914
|
-
|
|
24915
|
-
|
|
24986
|
+
<co-transaction-line-commission-button
|
|
24987
|
+
[screenConfigurationObject]="cfgNames.LineCommission"
|
|
24988
|
+
[transactionLine]="transactionLine"
|
|
24989
|
+
[transactionInfo]="transactionInfo"
|
|
24990
|
+
></co-transaction-line-commission-button>
|
|
24991
|
+
</div>
|
|
24992
|
+
<div class="column2">
|
|
24916
24993
|
<span class="transaction-field-label" [textContent]="'WAREHOUSE_AND_STATUS' | localize"
|
|
24917
24994
|
*ngIf="isFirst"></span>
|
|
24918
|
-
|
|
24919
|
-
|
|
24920
|
-
|
|
24921
|
-
|
|
24922
|
-
|
|
24923
|
-
|
|
24924
|
-
|
|
24925
|
-
|
|
24926
|
-
|
|
24927
|
-
|
|
24928
|
-
|
|
24929
|
-
|
|
24930
|
-
|
|
24995
|
+
<co-transaction-line-warehouse-button
|
|
24996
|
+
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
24997
|
+
[transactionLine]="transactionLine"
|
|
24998
|
+
[transactionInfo]="transactionInfo"
|
|
24999
|
+
></co-transaction-line-warehouse-button>
|
|
25000
|
+
<co-transaction-line-statusbar
|
|
25001
|
+
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
25002
|
+
[configNames]="statusBarConfigNames"
|
|
25003
|
+
[transactionInfo]="transactionInfo"
|
|
25004
|
+
[transactionLine]="transactionLine"
|
|
25005
|
+
[activeCategory]="category.SalesOrderOverview"></co-transaction-line-statusbar>
|
|
25006
|
+
</div>
|
|
25007
|
+
<div class="column3">
|
|
24931
25008
|
<span class="transaction-field-label" [textContent]="'DELIVERY_INFORMATION' | localize"
|
|
24932
25009
|
*ngIf="isFirst"></span>
|
|
24933
|
-
|
|
24934
|
-
|
|
24935
|
-
|
|
24936
|
-
|
|
24937
|
-
|
|
24938
|
-
|
|
24939
|
-
|
|
24940
|
-
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
|
|
24944
|
-
|
|
24945
|
-
|
|
24946
|
-
|
|
24947
|
-
|
|
24948
|
-
|
|
24949
|
-
|
|
24950
|
-
|
|
24951
|
-
|
|
24952
|
-
|
|
24953
|
-
|
|
24954
|
-
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
|
|
24961
|
-
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
-
|
|
24965
|
-
|
|
24966
|
-
|
|
24967
|
-
|
|
24968
|
-
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24972
|
-
|
|
24973
|
-
|
|
24974
|
-
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
</
|
|
24980
|
-
|
|
24981
|
-
|
|
25010
|
+
<co-transaction-line-delivery-button
|
|
25011
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryMethod"
|
|
25012
|
+
[transactionLine]="transactionLine"
|
|
25013
|
+
[transactionInfo]="transactionInfo"
|
|
25014
|
+
></co-transaction-line-delivery-button>
|
|
25015
|
+
<co-transaction-line-delivery-date-button class="transaction-line-delivery-date two-column"
|
|
25016
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryDate"
|
|
25017
|
+
[transactionInfo]="transactionInfo"
|
|
25018
|
+
[transactionLine]="transactionLine"
|
|
25019
|
+
></co-transaction-line-delivery-date-button>
|
|
25020
|
+
</div>
|
|
25021
|
+
</div>
|
|
25022
|
+
<div class="transaction-margin-section">
|
|
25023
|
+
<div class="transaction-line-section">
|
|
25024
|
+
<span class="transaction-field-label" *ngIf="isFirst" [textContent]="'NET_PURCHASE' | localize"></span>
|
|
25025
|
+
<co-editable-label class="transaction-line-totals-total price"
|
|
25026
|
+
[model]="lineMarginInfo?.calculationFactor | coCurrency: true"
|
|
25027
|
+
[editModel]="transactionLine.displayNetLineTotal"
|
|
25028
|
+
[readonly]="true"
|
|
25029
|
+
></co-editable-label>
|
|
25030
|
+
</div>
|
|
25031
|
+
<div class="transaction-line-section">
|
|
25032
|
+
<span class="transaction-field-label" *ngIf="isFirst"
|
|
25033
|
+
[textContent]="'GROSS_PROFIT_PERCENT' | localize"></span>
|
|
25034
|
+
<co-transaction-button [statusColor]="true"
|
|
25035
|
+
class="no-gap"
|
|
25036
|
+
[iconData]="iconCacheService.getIcon(icons.ChartPieSimpleRegular)"
|
|
25037
|
+
[title]="lineMarginInfo?.grossProfitPercentage / 100 | percent : '1.2-2'">
|
|
25038
|
+
</co-transaction-button>
|
|
25039
|
+
</div>
|
|
25040
|
+
<div class="transaction-line-section">
|
|
25041
|
+
<span class="transaction-field-label" *ngIf="isFirst"
|
|
25042
|
+
[textContent]="'GROSS_PROFIT_TOTAL' | localize"></span>
|
|
25043
|
+
<co-transaction-button [statusColor]="true"
|
|
25044
|
+
class="no-gap"
|
|
25045
|
+
[iconData]="iconCacheService.getIcon(icons.ChartPieSimpleRegular)"
|
|
25046
|
+
[title]="lineMarginInfo?.grossProfit | coCurrency: true">
|
|
25047
|
+
</co-transaction-button>
|
|
25048
|
+
</div>
|
|
25049
|
+
<div class="transaction-line-section">
|
|
25050
|
+
<span class="transaction-field-label" *ngIf="isFirst"
|
|
25051
|
+
[textContent]="'CALCULATION_FACTOR' | localize"></span>
|
|
25052
|
+
<co-transaction-button [statusColor]="true"
|
|
25053
|
+
class="no-gap"
|
|
25054
|
+
[iconData]="iconCacheService.getIcon(icons.ChartPieSimpleRegular)"
|
|
25055
|
+
[title]="lineMarginInfo?.calculationFactor | number">
|
|
25056
|
+
</co-transaction-button>
|
|
25057
|
+
</div>
|
|
25058
|
+
</div>
|
|
25059
|
+
</div>
|
|
25060
|
+
</ng-container>
|
|
25061
|
+
</co-transaction-base-line>
|
|
24982
25062
|
`,
|
|
24983
25063
|
encapsulation: ViewEncapsulation.None
|
|
25064
|
+
//changeDetection: ChangeDetectionStrategy.OnPush
|
|
24984
25065
|
},] }
|
|
24985
25066
|
];
|
|
24986
25067
|
TransactionMarginInfoLineComponent.ctorParameters = () => [
|
|
@@ -24988,6 +25069,7 @@ TransactionMarginInfoLineComponent.ctorParameters = () => [
|
|
|
24988
25069
|
{ type: IconCacheService },
|
|
24989
25070
|
{ type: TransactionScreenConfigurationService },
|
|
24990
25071
|
{ type: OrderLineSetService },
|
|
25072
|
+
{ type: TransactionBaseService },
|
|
24991
25073
|
{ type: TransactionImageService },
|
|
24992
25074
|
{ type: DictionaryService },
|
|
24993
25075
|
{ type: TransactionService },
|
|
@@ -25002,12 +25084,13 @@ TransactionMarginInfoLineComponent.propDecorators = {
|
|
|
25002
25084
|
};
|
|
25003
25085
|
|
|
25004
25086
|
class TransactionCardMarginComponent extends TransactionBaseComponent {
|
|
25005
|
-
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
25087
|
+
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, _transactionBaseService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
25006
25088
|
super(transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
25007
25089
|
this.transactionEventService = transactionEventService;
|
|
25008
25090
|
this.iconCacheService = iconCacheService;
|
|
25009
25091
|
this.screenConfigService = screenConfigService;
|
|
25010
25092
|
this.orderLineSetService = orderLineSetService;
|
|
25093
|
+
this._transactionBaseService = _transactionBaseService;
|
|
25011
25094
|
this.imageService = imageService;
|
|
25012
25095
|
this.dictionaryService = dictionaryService;
|
|
25013
25096
|
this.transactionService = transactionService;
|
|
@@ -25039,12 +25122,15 @@ class TransactionCardMarginComponent extends TransactionBaseComponent {
|
|
|
25039
25122
|
this.transactionEventService.openSidePanel.next(line);
|
|
25040
25123
|
}
|
|
25041
25124
|
ngAfterViewInit() {
|
|
25042
|
-
if (!this.
|
|
25125
|
+
if (!this._transactionBaseService.transactionLocalMarginInfo) {
|
|
25043
25126
|
this.transactionService.getTransactionMarginInfo(this.transactionInfo.uuid).then(marginInfo => {
|
|
25044
|
-
this.
|
|
25127
|
+
this._transactionBaseService.transactionLocalMarginInfo = marginInfo;
|
|
25045
25128
|
this.lineMarginInfo = marginInfo.lineMarginInfos.find(line => line.lineNr === this.transactionLine.lineNr);
|
|
25046
25129
|
});
|
|
25047
25130
|
}
|
|
25131
|
+
else {
|
|
25132
|
+
this.lineMarginInfo = this._transactionBaseService.transactionLocalMarginInfo.lineMarginInfos.find(line => line.lineNr === this.transactionLine.lineNr);
|
|
25133
|
+
}
|
|
25048
25134
|
}
|
|
25049
25135
|
}
|
|
25050
25136
|
TransactionCardMarginComponent.decorators = [
|
|
@@ -25114,6 +25200,7 @@ TransactionCardMarginComponent.ctorParameters = () => [
|
|
|
25114
25200
|
{ type: IconCacheService },
|
|
25115
25201
|
{ type: TransactionScreenConfigurationService },
|
|
25116
25202
|
{ type: OrderLineSetService },
|
|
25203
|
+
{ type: TransactionBaseService },
|
|
25117
25204
|
{ type: TransactionImageService },
|
|
25118
25205
|
{ type: DictionaryService },
|
|
25119
25206
|
{ type: TransactionService },
|
|
@@ -25230,7 +25317,6 @@ class TransactionMappingService {
|
|
|
25230
25317
|
]);
|
|
25231
25318
|
this._transactionLineComponent = new Map([
|
|
25232
25319
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionOverviewLineComponent],
|
|
25233
|
-
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
|
|
25234
25320
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPurchase }, TransactionPurchaseLineComponent],
|
|
25235
25321
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderAllocation }, TransactionGoodsAllocationLineComponent],
|
|
25236
25322
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderDeliveryNote }, TransactionOrderDeliveryLineComponent],
|
|
@@ -25238,7 +25324,6 @@ class TransactionMappingService {
|
|
|
25238
25324
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPicked }, TransactionPickedLineComponent],
|
|
25239
25325
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderToBePicked }, TransactionToBePickedLineComponent],
|
|
25240
25326
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPlanning }, TransactionPlanningLineComponent],
|
|
25241
|
-
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
|
|
25242
25327
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionPurchaseOverviewLineComponent],
|
|
25243
25328
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
|
|
25244
25329
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
|
|
@@ -25251,6 +25336,7 @@ class TransactionMappingService {
|
|
|
25251
25336
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderInvoice }, TransactionInvoiceLineComponent],
|
|
25252
25337
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPicked }, TransactionPickedLineComponent],
|
|
25253
25338
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderToBePicked }, TransactionToBePickedLineComponent],
|
|
25339
|
+
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
|
|
25254
25340
|
]);
|
|
25255
25341
|
this._transactionCardComponent = new Map([
|
|
25256
25342
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionCardSalesOverviewComponent],
|
|
@@ -29023,17 +29109,21 @@ class TransactionLineDropShipmentButtonComponent extends TransactionBaseComponen
|
|
|
29023
29109
|
}
|
|
29024
29110
|
_getSupplierAllowsDropShipmentParameter() {
|
|
29025
29111
|
if (this.transactionLine && this.visible) {
|
|
29026
|
-
this._relationService.
|
|
29027
|
-
|
|
29028
|
-
|
|
29029
|
-
this._relationService.getSupplierFullObject(+relation.relationNr).then((result) => {
|
|
29030
|
-
if (result) {
|
|
29031
|
-
this.supplierAllowsDropShipment = result.dropshipment;
|
|
29032
|
-
this.detectChanges();
|
|
29033
|
-
}
|
|
29034
|
-
});
|
|
29035
|
-
}
|
|
29112
|
+
this._relationService.getSupplierLightById(this.transactionLine.supplierId).then(result => {
|
|
29113
|
+
this.supplierAllowsDropShipment = result.dropshipment;
|
|
29114
|
+
this.detectChanges();
|
|
29036
29115
|
});
|
|
29116
|
+
// this._relationService.getRelationById(this.transactionLine.supplierId).then((relations: RelationListObject[]) => {
|
|
29117
|
+
// const relation: RelationListObject = relations && relations.length > 0 ? relations[0] : null;
|
|
29118
|
+
// if (relation) {
|
|
29119
|
+
// this._relationService.getSupplierFullObject(+relation.relationNr).then((result) => {
|
|
29120
|
+
// if (result) {
|
|
29121
|
+
// this.supplierAllowsDropShipment = result.dropshipment;
|
|
29122
|
+
// this.detectChanges();
|
|
29123
|
+
// }
|
|
29124
|
+
// });
|
|
29125
|
+
// }
|
|
29126
|
+
// });
|
|
29037
29127
|
}
|
|
29038
29128
|
}
|
|
29039
29129
|
}
|
|
@@ -30803,7 +30893,20 @@ class AvatarComponent {
|
|
|
30803
30893
|
return this._initials;
|
|
30804
30894
|
}
|
|
30805
30895
|
ngOnInit() {
|
|
30806
|
-
this._setImageForAvatar();
|
|
30896
|
+
// this._setImageForAvatar();
|
|
30897
|
+
this._setAvatar();
|
|
30898
|
+
}
|
|
30899
|
+
_setAvatar() {
|
|
30900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30901
|
+
if (this.image && this.image.documentId) {
|
|
30902
|
+
if (!(yield this._getImageContent(this.image.documentId))) {
|
|
30903
|
+
this._setRelationInitials();
|
|
30904
|
+
}
|
|
30905
|
+
}
|
|
30906
|
+
else {
|
|
30907
|
+
this._setRelationInitials();
|
|
30908
|
+
}
|
|
30909
|
+
});
|
|
30807
30910
|
}
|
|
30808
30911
|
_setImageForAvatar() {
|
|
30809
30912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -39532,7 +39635,7 @@ LineSelectionService.ctorParameters = () => [
|
|
|
39532
39635
|
];
|
|
39533
39636
|
|
|
39534
39637
|
class TransactionInternalComponent {
|
|
39535
|
-
constructor(iconCacheService, service, transactionEventService, _appRef, _dynamicComponentService, _transactionConnectorService, _transactionEventService, _screenConfigurationService, _dialogService, _lineSelectionService, _purchaseConfirmationService, _deliveryPlanningService) {
|
|
39638
|
+
constructor(iconCacheService, service, transactionEventService, _appRef, _dynamicComponentService, _transactionConnectorService, _transactionEventService, _screenConfigurationService, _dialogService, _lineSelectionService, _purchaseConfirmationService, _deliveryPlanningService, _transactionBaseService) {
|
|
39536
39639
|
this.iconCacheService = iconCacheService;
|
|
39537
39640
|
this.service = service;
|
|
39538
39641
|
this.transactionEventService = transactionEventService;
|
|
@@ -39545,6 +39648,7 @@ class TransactionInternalComponent {
|
|
|
39545
39648
|
this._lineSelectionService = _lineSelectionService;
|
|
39546
39649
|
this._purchaseConfirmationService = _purchaseConfirmationService;
|
|
39547
39650
|
this._deliveryPlanningService = _deliveryPlanningService;
|
|
39651
|
+
this._transactionBaseService = _transactionBaseService;
|
|
39548
39652
|
this.categories = TransactionTypeCategory;
|
|
39549
39653
|
this.deliveryPlanningModes = DeliveryPlanningModes;
|
|
39550
39654
|
this.viewModes = ContentViewMode;
|
|
@@ -39587,18 +39691,22 @@ class TransactionInternalComponent {
|
|
|
39587
39691
|
this._subs = [];
|
|
39588
39692
|
this._transaction = new TransactionInfoResponse();
|
|
39589
39693
|
this._subs.push(this.service.transactionUpdated.subscribe((transaction) => {
|
|
39590
|
-
var _a, _b;
|
|
39591
39694
|
if (transaction) {
|
|
39592
39695
|
this.shouldShowSidePanel = false;
|
|
39593
39696
|
this._transaction = transaction;
|
|
39594
39697
|
this.updateTransactionLine();
|
|
39595
|
-
if (
|
|
39596
|
-
|
|
39597
|
-
}
|
|
39698
|
+
// if (transaction?.transactionInfo?.uuid) {
|
|
39699
|
+
// this.getTransactionMarginInfo(transaction?.transactionInfo?.uuid);
|
|
39700
|
+
// }
|
|
39598
39701
|
if ((transaction === null || transaction === void 0 ? void 0 : transaction.transactionInfo.id) && transaction.transactionInfo.transactionKind === TransactionKind.SalesOrder) {
|
|
39599
39702
|
this.getPlanOrderForTransaction(transaction);
|
|
39600
39703
|
}
|
|
39601
39704
|
}
|
|
39705
|
+
}), this.service.transactionMargeViewClicked.subscribe((load) => {
|
|
39706
|
+
var _a, _b, _c, _d;
|
|
39707
|
+
if (load && ((_b = (_a = this._transaction) === null || _a === void 0 ? void 0 : _a.transactionInfo) === null || _b === void 0 ? void 0 : _b.uuid)) {
|
|
39708
|
+
this.getTransactionMarginInfo((_d = (_c = this._transaction) === null || _c === void 0 ? void 0 : _c.transactionInfo) === null || _d === void 0 ? void 0 : _d.uuid);
|
|
39709
|
+
}
|
|
39602
39710
|
}), this.service.relationUpdated.subscribe((relation) => {
|
|
39603
39711
|
if (relation) {
|
|
39604
39712
|
this.relation = relation;
|
|
@@ -39841,11 +39949,12 @@ class TransactionInternalComponent {
|
|
|
39841
39949
|
// }
|
|
39842
39950
|
// }
|
|
39843
39951
|
getTransactionMarginInfo(transactionUUID) {
|
|
39844
|
-
|
|
39845
|
-
|
|
39846
|
-
|
|
39847
|
-
|
|
39848
|
-
|
|
39952
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39953
|
+
if (transactionUUID) {
|
|
39954
|
+
const result = yield this._transactionBaseService.loadTransactionMargeInfoList(transactionUUID);
|
|
39955
|
+
this._transactionBaseService.transactionLocalMarginInfo = result;
|
|
39956
|
+
}
|
|
39957
|
+
});
|
|
39849
39958
|
}
|
|
39850
39959
|
handleViewModeChange(mode) {
|
|
39851
39960
|
this.activeViewMode = mode;
|
|
@@ -39956,7 +40065,6 @@ TransactionInternalComponent.decorators = [
|
|
|
39956
40065
|
<div class="transaction-footer-center">
|
|
39957
40066
|
<co-transaction-margin *ngIf="activeCategory === categories.SalesOrderMarginInfo"
|
|
39958
40067
|
[transactionInfo]="transaction.transactionInfo"
|
|
39959
|
-
[transactionMarginInfo]="transactionMarginInfo"
|
|
39960
40068
|
></co-transaction-margin>
|
|
39961
40069
|
</div>
|
|
39962
40070
|
|
|
@@ -40048,7 +40156,8 @@ TransactionInternalComponent.ctorParameters = () => [
|
|
|
40048
40156
|
{ type: DialogService },
|
|
40049
40157
|
{ type: LineSelectionService },
|
|
40050
40158
|
{ type: PurchaseConfirmationService },
|
|
40051
|
-
{ type: DeliveryPlanningService }
|
|
40159
|
+
{ type: DeliveryPlanningService },
|
|
40160
|
+
{ type: TransactionBaseService }
|
|
40052
40161
|
];
|
|
40053
40162
|
TransactionInternalComponent.propDecorators = {
|
|
40054
40163
|
sidePanelComponents: [{ type: ViewChildren, args: [TransactionLineSidePanelComponent,] }],
|
|
@@ -54840,9 +54949,25 @@ TransactionCardsModule.decorators = [
|
|
|
54840
54949
|
];
|
|
54841
54950
|
|
|
54842
54951
|
class TransactionMarginComponent extends TransactionBaseComponent {
|
|
54952
|
+
constructor(transactionEventService, iconCacheService, screenConfigService, _transactionBaseService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
54953
|
+
super(transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
54954
|
+
this.transactionEventService = transactionEventService;
|
|
54955
|
+
this.iconCacheService = iconCacheService;
|
|
54956
|
+
this.screenConfigService = screenConfigService;
|
|
54957
|
+
this._transactionBaseService = _transactionBaseService;
|
|
54958
|
+
this.imageService = imageService;
|
|
54959
|
+
this.dictionaryService = dictionaryService;
|
|
54960
|
+
this.transactionService = transactionService;
|
|
54961
|
+
this.changeDetector = changeDetector;
|
|
54962
|
+
}
|
|
54843
54963
|
showClass() {
|
|
54844
54964
|
return true;
|
|
54845
54965
|
}
|
|
54966
|
+
get transactionMarginInfo() {
|
|
54967
|
+
return this._transactionBaseService.transactionLocalMarginInfo;
|
|
54968
|
+
}
|
|
54969
|
+
ngOnInit() {
|
|
54970
|
+
}
|
|
54846
54971
|
}
|
|
54847
54972
|
TransactionMarginComponent.decorators = [
|
|
54848
54973
|
{ type: Component, args: [{
|
|
@@ -54857,11 +54982,20 @@ TransactionMarginComponent.decorators = [
|
|
|
54857
54982
|
<co-transaction-margin-block [state]="true" [header]="'GROSS_PROFIT_PERCENTAGE' | localize" [originalValue]="transactionMarginInfo?.grossProfitPercentage" [value]="transactionMarginInfo?.grossProfitPercentage / 100 | percent : '1.2-2'" ></co-transaction-margin-block>
|
|
54858
54983
|
</div>
|
|
54859
54984
|
</div>
|
|
54860
|
-
|
|
54861
54985
|
`,
|
|
54862
54986
|
encapsulation: ViewEncapsulation.None
|
|
54863
54987
|
},] }
|
|
54864
54988
|
];
|
|
54989
|
+
TransactionMarginComponent.ctorParameters = () => [
|
|
54990
|
+
{ type: TransactionEventService },
|
|
54991
|
+
{ type: IconCacheService },
|
|
54992
|
+
{ type: TransactionScreenConfigurationService },
|
|
54993
|
+
{ type: TransactionBaseService },
|
|
54994
|
+
{ type: TransactionImageService },
|
|
54995
|
+
{ type: DictionaryService },
|
|
54996
|
+
{ type: TransactionService },
|
|
54997
|
+
{ type: ChangeDetectorRef }
|
|
54998
|
+
];
|
|
54865
54999
|
TransactionMarginComponent.propDecorators = {
|
|
54866
55000
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-margin",] }]
|
|
54867
55001
|
};
|
|
@@ -55074,6 +55208,7 @@ class TransactionComponent {
|
|
|
55074
55208
|
this.saveCancelMovable = false;
|
|
55075
55209
|
this.transactionPlanning = false;
|
|
55076
55210
|
this.screenConfigLoaded = false;
|
|
55211
|
+
this._fetching = false;
|
|
55077
55212
|
}
|
|
55078
55213
|
set confirmationAnalysisId(value) {
|
|
55079
55214
|
this._confirmationAnalysisId = value;
|
|
@@ -55120,13 +55255,11 @@ class TransactionComponent {
|
|
|
55120
55255
|
return !(this.service.transactionDirty && this.service.manualSaveParam);
|
|
55121
55256
|
}
|
|
55122
55257
|
_getTransaction() {
|
|
55123
|
-
if (this.transactionKind) {
|
|
55258
|
+
if (this.transactionKind && this.transactionNr) {
|
|
55124
55259
|
this._transactionConnectorService.connectionInitialized.pipe(take(1)).subscribe((loaded) => {
|
|
55125
55260
|
if (loaded) {
|
|
55126
55261
|
this._screenConfigurationService.loadConfig([this.transactionKind]).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
55127
|
-
|
|
55128
|
-
yield this.service.getTransactionByNrAndKind(this.transactionNr, this.transactionKind);
|
|
55129
|
-
}
|
|
55262
|
+
yield this.service.getTransactionByNrAndKind(this.transactionNr, this.transactionKind);
|
|
55130
55263
|
this._prepareHeader();
|
|
55131
55264
|
this.screenConfigLoaded = true;
|
|
55132
55265
|
}));
|