@colijnit/transaction 12.1.199 → 12.1.200
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 +121 -121
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +5 -6
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-planning/component/transaction-quick-access-planning-popup/transaction-quick-access-planning-popup.component.js +10 -10
- package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
- package/esm2015/lib/service/transaction-connector.service.js +1 -1
- package/esm2015/lib/service/transaction-mapping.service.js +3 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +190 -190
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -1
- package/lib/service/transaction-connector.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -241,8 +241,8 @@ class Version {
|
|
|
241
241
|
constructor() {
|
|
242
242
|
this.name = "@colijnit/transaction";
|
|
243
243
|
this.description = "Colijn IT transaction package";
|
|
244
|
-
this.symVer = "12.1.
|
|
245
|
-
this.publishDate = "
|
|
244
|
+
this.symVer = "12.1.200";
|
|
245
|
+
this.publishDate = "29-3-2024 12:09:59";
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -5203,7 +5203,7 @@ class TransactionConnectorAdapterService {
|
|
|
5203
5203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5204
5204
|
const response = yield this.connector.sendPackageInformationToLSP(request);
|
|
5205
5205
|
if (response && response.validationResult && response.validationResult.success) {
|
|
5206
|
-
return this._boFactory.
|
|
5206
|
+
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
|
|
5207
5207
|
}
|
|
5208
5208
|
else {
|
|
5209
5209
|
this._handleExceptionFromResponse(response);
|
|
@@ -20556,6 +20556,179 @@ TransactionLinesSidePanelCashDeskComponent.propDecorators = {
|
|
|
20556
20556
|
showClass: [{ type: HostBinding, args: ['class.co-transaction-lines-side-panel-cash-desk',] }]
|
|
20557
20557
|
};
|
|
20558
20558
|
|
|
20559
|
+
class TransactionPlanningLineComponent extends TransactionBaseComponent {
|
|
20560
|
+
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
20561
|
+
super(transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
20562
|
+
this.transactionEventService = transactionEventService;
|
|
20563
|
+
this.iconCacheService = iconCacheService;
|
|
20564
|
+
this.screenConfigService = screenConfigService;
|
|
20565
|
+
this.orderLineSetService = orderLineSetService;
|
|
20566
|
+
this.imageService = imageService;
|
|
20567
|
+
this.dictionaryService = dictionaryService;
|
|
20568
|
+
this.transactionService = transactionService;
|
|
20569
|
+
this.changeDetector = changeDetector;
|
|
20570
|
+
this.category = TransactionTypeCategory;
|
|
20571
|
+
this.selectedLines = [];
|
|
20572
|
+
this.descriptionDblClick = new EventEmitter();
|
|
20573
|
+
this.stock = StockStatus.Low;
|
|
20574
|
+
this.mouseOver = false;
|
|
20575
|
+
this.readonly = false;
|
|
20576
|
+
this.statusBarConfigNames = {
|
|
20577
|
+
statusBarBT: this.cfgNames.StatusBarBT,
|
|
20578
|
+
statusBarTG: this.cfgNames.StatusBarTG,
|
|
20579
|
+
statusBarPA: this.cfgNames.StatusBarPA,
|
|
20580
|
+
statusBarPV: this.cfgNames.StatusBarPV,
|
|
20581
|
+
statusBarTP: this.cfgNames.StatusBarTP,
|
|
20582
|
+
statusBarGT: this.cfgNames.StatusBarGT,
|
|
20583
|
+
statusBarGP: this.cfgNames.StatusBarGP,
|
|
20584
|
+
statusBarGL: this.cfgNames.StatusBarGL,
|
|
20585
|
+
statusBarGF: this.cfgNames.StatusBarGF
|
|
20586
|
+
};
|
|
20587
|
+
this.discountConfigNames = {
|
|
20588
|
+
linePriceList: this.cfgNames.LinePriceList,
|
|
20589
|
+
lineDiscountAmount: this.cfgNames.LineDiscountAmount,
|
|
20590
|
+
lineDiscountPercentage: this.cfgNames.LineDiscountPercentage,
|
|
20591
|
+
lineDiscountSpecial: this.cfgNames.LineDiscountSpecial,
|
|
20592
|
+
lineDiscountQuantum: this.cfgNames.LineDiscountQuantum
|
|
20593
|
+
};
|
|
20594
|
+
}
|
|
20595
|
+
showClass() {
|
|
20596
|
+
return true;
|
|
20597
|
+
}
|
|
20598
|
+
handleMouseOver(event) {
|
|
20599
|
+
this.mouseOver = true;
|
|
20600
|
+
}
|
|
20601
|
+
handleMouseLeave(event) {
|
|
20602
|
+
this.mouseOver = false;
|
|
20603
|
+
}
|
|
20604
|
+
handleCheckBoxValueChanged(value, line) {
|
|
20605
|
+
this.transactionLine.selected = value;
|
|
20606
|
+
}
|
|
20607
|
+
handleLineClicked(mouseClick) {
|
|
20608
|
+
if (this.transactionLine && this.transactionLine.commissionCode !== "1") {
|
|
20609
|
+
return;
|
|
20610
|
+
}
|
|
20611
|
+
const target = mouseClick.target;
|
|
20612
|
+
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
20613
|
+
this.transactionEventService.openSidePanel.next(this.transactionLine);
|
|
20614
|
+
}
|
|
20615
|
+
}
|
|
20616
|
+
onDescriptionDblClick() {
|
|
20617
|
+
this.descriptionDblClick.emit();
|
|
20618
|
+
}
|
|
20619
|
+
dragStarted(ev, line) {
|
|
20620
|
+
ev.dataTransfer.setData("text", "line");
|
|
20621
|
+
}
|
|
20622
|
+
}
|
|
20623
|
+
TransactionPlanningLineComponent.decorators = [
|
|
20624
|
+
{ type: Component, args: [{
|
|
20625
|
+
selector: "co-planning-overview-line",
|
|
20626
|
+
template: `
|
|
20627
|
+
<co-transaction-base-line
|
|
20628
|
+
[draggable]="true"
|
|
20629
|
+
(dragstart)="dragStarted($event, transactionLine)"
|
|
20630
|
+
[transactionInfo]="transactionInfo"
|
|
20631
|
+
[transactionLine]="transactionLine"
|
|
20632
|
+
[preview]="preview"
|
|
20633
|
+
[checkbox]="true"
|
|
20634
|
+
[checkboxValue]="transactionLine.selected"
|
|
20635
|
+
(checkboxValueChanged)="handleCheckBoxValueChanged($event, transactionLine)"
|
|
20636
|
+
(click)="handleLineClicked($event)"
|
|
20637
|
+
observeVisibility #observer=visibilityObserve (visibilityChange)="handleVisibilityChange(transactionLine, $event)">
|
|
20638
|
+
<ng-container *ngIf="transactionLine.isArticle">
|
|
20639
|
+
<div class="transaction-line-wrapper">
|
|
20640
|
+
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
20641
|
+
<div class="column1">
|
|
20642
|
+
<co-transaction-line-commission-button
|
|
20643
|
+
[screenConfigurationObject]="cfgNames.LineCommission"
|
|
20644
|
+
[transactionLine]="transactionLine"
|
|
20645
|
+
[transactionInfo]="transactionInfo"
|
|
20646
|
+
></co-transaction-line-commission-button>
|
|
20647
|
+
<co-transaction-line-warehouse-button
|
|
20648
|
+
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
20649
|
+
[transactionLine]="transactionLine"
|
|
20650
|
+
[transactionInfo]="transactionInfo"
|
|
20651
|
+
></co-transaction-line-warehouse-button>
|
|
20652
|
+
<co-transaction-line-statusbar
|
|
20653
|
+
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
20654
|
+
[configNames]="statusBarConfigNames"
|
|
20655
|
+
[transactionInfo]="transactionInfo"
|
|
20656
|
+
[transactionLine]="transactionLine"
|
|
20657
|
+
[activeCategory]="category.SalesOrderOverview"></co-transaction-line-statusbar>
|
|
20658
|
+
</div>
|
|
20659
|
+
<div class="column2">
|
|
20660
|
+
<co-transaction-line-delivery-button
|
|
20661
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryMethod"
|
|
20662
|
+
[transactionLine]="transactionLine"
|
|
20663
|
+
[transactionInfo]="transactionInfo"
|
|
20664
|
+
></co-transaction-line-delivery-button>
|
|
20665
|
+
<co-transaction-line-delivery-date-button class="transaction-line-delivery-date two-column"
|
|
20666
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryDate"
|
|
20667
|
+
[transactionInfo]="transactionInfo"
|
|
20668
|
+
[transactionLine]="transactionLine"
|
|
20669
|
+
></co-transaction-line-delivery-date-button>
|
|
20670
|
+
</div>
|
|
20671
|
+
</div>
|
|
20672
|
+
<div class="transaction-line-section">
|
|
20673
|
+
<co-transaction-line-vat-button *ngIf="!preview"
|
|
20674
|
+
[screenConfigurationObject]="cfgNames.LineVat"
|
|
20675
|
+
[transactionLine]="transactionLine"
|
|
20676
|
+
[transactionInfo]="transactionInfo"
|
|
20677
|
+
></co-transaction-line-vat-button>
|
|
20678
|
+
<div class="transaction-line-totals">
|
|
20679
|
+
<co-transaction-line-price class="transaction-line-totals-price price"
|
|
20680
|
+
[screenConfigurationObject]="cfgNames.LinePrice"
|
|
20681
|
+
[transactionInfo]="transactionInfo"
|
|
20682
|
+
[transactionLine]="transactionLine"
|
|
20683
|
+
[showLabel]="false"
|
|
20684
|
+
[defaultEditMode]="false"
|
|
20685
|
+
></co-transaction-line-price>
|
|
20686
|
+
<co-transaction-line-discount-button *ngIf="!preview"
|
|
20687
|
+
[screenConfigurationObject]="cfgNames.LineDiscount"
|
|
20688
|
+
[configNames]="discountConfigNames"
|
|
20689
|
+
[transactionLine]="transactionLine"
|
|
20690
|
+
[transactionInfo]="transactionInfo"
|
|
20691
|
+
></co-transaction-line-discount-button>
|
|
20692
|
+
<div class="transaction-line-totals-amount">
|
|
20693
|
+
<co-transaction-line-amount class="amount-number-picker"
|
|
20694
|
+
[screenConfigurationObject]="cfgNames.LineAmount"
|
|
20695
|
+
[transactionLine]="transactionLine"
|
|
20696
|
+
[transactionInfo]="transactionInfo"
|
|
20697
|
+
></co-transaction-line-amount>
|
|
20698
|
+
</div>
|
|
20699
|
+
<co-editable-label class="transaction-line-totals-total price"
|
|
20700
|
+
[screenConfigurationObject]="cfgNames.LineNetLineTotal"
|
|
20701
|
+
[model]="transactionLine.displayNetLineTotal | coCurrency"
|
|
20702
|
+
[editModel]="transactionLine.displayNetLineTotal"
|
|
20703
|
+
[commit]="!readonly"
|
|
20704
|
+
></co-editable-label>
|
|
20705
|
+
</div>
|
|
20706
|
+
</div>
|
|
20707
|
+
</div>
|
|
20708
|
+
</ng-container>
|
|
20709
|
+
</co-transaction-base-line>
|
|
20710
|
+
`,
|
|
20711
|
+
encapsulation: ViewEncapsulation.None
|
|
20712
|
+
},] }
|
|
20713
|
+
];
|
|
20714
|
+
TransactionPlanningLineComponent.ctorParameters = () => [
|
|
20715
|
+
{ type: TransactionEventService },
|
|
20716
|
+
{ type: IconCacheService },
|
|
20717
|
+
{ type: TransactionScreenConfigurationService },
|
|
20718
|
+
{ type: OrderLineSetService },
|
|
20719
|
+
{ type: TransactionImageService },
|
|
20720
|
+
{ type: DictionaryService },
|
|
20721
|
+
{ type: TransactionService },
|
|
20722
|
+
{ type: ChangeDetectorRef }
|
|
20723
|
+
];
|
|
20724
|
+
TransactionPlanningLineComponent.propDecorators = {
|
|
20725
|
+
transactionLineActionButtons: [{ type: ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
20726
|
+
descriptionDblClick: [{ type: Output }],
|
|
20727
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-overview-line",] }],
|
|
20728
|
+
handleMouseOver: [{ type: HostListener, args: ["mouseover", ["$event"],] }],
|
|
20729
|
+
handleMouseLeave: [{ type: HostListener, args: ["mouseleave", ["$event"],] }]
|
|
20730
|
+
};
|
|
20731
|
+
|
|
20559
20732
|
class TransactionQuickAccessPlanningComponent extends TransactionBaseComponent {
|
|
20560
20733
|
constructor(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _purchaseConfirmationService, _connector, _transactionService) {
|
|
20561
20734
|
super(transactionEventService, iconCacheService, transactionScreenConfigurationService, imageService, dictionaryService, service, changeDetector);
|
|
@@ -20886,6 +21059,7 @@ class TransactionMappingService {
|
|
|
20886
21059
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionInvoiceLineComponent],
|
|
20887
21060
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPicked }, TransactionPickedLineComponent],
|
|
20888
21061
|
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderToBePicked }, TransactionToBePickedLineComponent],
|
|
21062
|
+
[{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPlanning }, TransactionPlanningLineComponent],
|
|
20889
21063
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionPurchaseOverviewLineComponent],
|
|
20890
21064
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
|
|
20891
21065
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
|
|
@@ -24117,179 +24291,6 @@ TransactionLineDeliveryDateModule.decorators = [
|
|
|
24117
24291
|
},] }
|
|
24118
24292
|
];
|
|
24119
24293
|
|
|
24120
|
-
class TransactionPlanningLineComponent extends TransactionBaseComponent {
|
|
24121
|
-
constructor(transactionEventService, iconCacheService, screenConfigService, orderLineSetService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
24122
|
-
super(transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
24123
|
-
this.transactionEventService = transactionEventService;
|
|
24124
|
-
this.iconCacheService = iconCacheService;
|
|
24125
|
-
this.screenConfigService = screenConfigService;
|
|
24126
|
-
this.orderLineSetService = orderLineSetService;
|
|
24127
|
-
this.imageService = imageService;
|
|
24128
|
-
this.dictionaryService = dictionaryService;
|
|
24129
|
-
this.transactionService = transactionService;
|
|
24130
|
-
this.changeDetector = changeDetector;
|
|
24131
|
-
this.category = TransactionTypeCategory;
|
|
24132
|
-
this.selectedLines = [];
|
|
24133
|
-
this.descriptionDblClick = new EventEmitter();
|
|
24134
|
-
this.stock = StockStatus.Low;
|
|
24135
|
-
this.mouseOver = false;
|
|
24136
|
-
this.readonly = false;
|
|
24137
|
-
this.statusBarConfigNames = {
|
|
24138
|
-
statusBarBT: this.cfgNames.StatusBarBT,
|
|
24139
|
-
statusBarTG: this.cfgNames.StatusBarTG,
|
|
24140
|
-
statusBarPA: this.cfgNames.StatusBarPA,
|
|
24141
|
-
statusBarPV: this.cfgNames.StatusBarPV,
|
|
24142
|
-
statusBarTP: this.cfgNames.StatusBarTP,
|
|
24143
|
-
statusBarGT: this.cfgNames.StatusBarGT,
|
|
24144
|
-
statusBarGP: this.cfgNames.StatusBarGP,
|
|
24145
|
-
statusBarGL: this.cfgNames.StatusBarGL,
|
|
24146
|
-
statusBarGF: this.cfgNames.StatusBarGF
|
|
24147
|
-
};
|
|
24148
|
-
this.discountConfigNames = {
|
|
24149
|
-
linePriceList: this.cfgNames.LinePriceList,
|
|
24150
|
-
lineDiscountAmount: this.cfgNames.LineDiscountAmount,
|
|
24151
|
-
lineDiscountPercentage: this.cfgNames.LineDiscountPercentage,
|
|
24152
|
-
lineDiscountSpecial: this.cfgNames.LineDiscountSpecial,
|
|
24153
|
-
lineDiscountQuantum: this.cfgNames.LineDiscountQuantum
|
|
24154
|
-
};
|
|
24155
|
-
}
|
|
24156
|
-
showClass() {
|
|
24157
|
-
return true;
|
|
24158
|
-
}
|
|
24159
|
-
handleMouseOver(event) {
|
|
24160
|
-
this.mouseOver = true;
|
|
24161
|
-
}
|
|
24162
|
-
handleMouseLeave(event) {
|
|
24163
|
-
this.mouseOver = false;
|
|
24164
|
-
}
|
|
24165
|
-
handleCheckBoxValueChanged(value, line) {
|
|
24166
|
-
this.transactionLine.selected = value;
|
|
24167
|
-
}
|
|
24168
|
-
handleLineClicked(mouseClick) {
|
|
24169
|
-
if (this.transactionLine && this.transactionLine.commissionCode !== "1") {
|
|
24170
|
-
return;
|
|
24171
|
-
}
|
|
24172
|
-
const target = mouseClick.target;
|
|
24173
|
-
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
24174
|
-
this.transactionEventService.openSidePanel.next(this.transactionLine);
|
|
24175
|
-
}
|
|
24176
|
-
}
|
|
24177
|
-
onDescriptionDblClick() {
|
|
24178
|
-
this.descriptionDblClick.emit();
|
|
24179
|
-
}
|
|
24180
|
-
dragStarted(ev, line) {
|
|
24181
|
-
ev.dataTransfer.setData("text", "line");
|
|
24182
|
-
}
|
|
24183
|
-
}
|
|
24184
|
-
TransactionPlanningLineComponent.decorators = [
|
|
24185
|
-
{ type: Component, args: [{
|
|
24186
|
-
selector: "co-planning-overview-line",
|
|
24187
|
-
template: `
|
|
24188
|
-
<co-transaction-base-line
|
|
24189
|
-
[draggable]="true"
|
|
24190
|
-
(dragstart)="dragStarted($event, transactionLine)"
|
|
24191
|
-
[transactionInfo]="transactionInfo"
|
|
24192
|
-
[transactionLine]="transactionLine"
|
|
24193
|
-
[preview]="preview"
|
|
24194
|
-
[checkbox]="true"
|
|
24195
|
-
[checkboxValue]="transactionLine.selected"
|
|
24196
|
-
(checkboxValueChanged)="handleCheckBoxValueChanged($event, transactionLine)"
|
|
24197
|
-
(click)="handleLineClicked($event)"
|
|
24198
|
-
observeVisibility #observer=visibilityObserve (visibilityChange)="handleVisibilityChange(transactionLine, $event)">
|
|
24199
|
-
<ng-container *ngIf="transactionLine.isArticle">
|
|
24200
|
-
<div class="transaction-line-wrapper">
|
|
24201
|
-
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
24202
|
-
<div class="column1">
|
|
24203
|
-
<co-transaction-line-commission-button
|
|
24204
|
-
[screenConfigurationObject]="cfgNames.LineCommission"
|
|
24205
|
-
[transactionLine]="transactionLine"
|
|
24206
|
-
[transactionInfo]="transactionInfo"
|
|
24207
|
-
></co-transaction-line-commission-button>
|
|
24208
|
-
<co-transaction-line-warehouse-button
|
|
24209
|
-
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
24210
|
-
[transactionLine]="transactionLine"
|
|
24211
|
-
[transactionInfo]="transactionInfo"
|
|
24212
|
-
></co-transaction-line-warehouse-button>
|
|
24213
|
-
<co-transaction-line-statusbar
|
|
24214
|
-
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
24215
|
-
[configNames]="statusBarConfigNames"
|
|
24216
|
-
[transactionInfo]="transactionInfo"
|
|
24217
|
-
[transactionLine]="transactionLine"
|
|
24218
|
-
[activeCategory]="category.SalesOrderOverview"></co-transaction-line-statusbar>
|
|
24219
|
-
</div>
|
|
24220
|
-
<div class="column2">
|
|
24221
|
-
<co-transaction-line-delivery-button
|
|
24222
|
-
[screenConfigurationObject]="cfgNames.LineDeliveryMethod"
|
|
24223
|
-
[transactionLine]="transactionLine"
|
|
24224
|
-
[transactionInfo]="transactionInfo"
|
|
24225
|
-
></co-transaction-line-delivery-button>
|
|
24226
|
-
<co-transaction-line-delivery-date-button class="transaction-line-delivery-date two-column"
|
|
24227
|
-
[screenConfigurationObject]="cfgNames.LineDeliveryDate"
|
|
24228
|
-
[transactionInfo]="transactionInfo"
|
|
24229
|
-
[transactionLine]="transactionLine"
|
|
24230
|
-
></co-transaction-line-delivery-date-button>
|
|
24231
|
-
</div>
|
|
24232
|
-
</div>
|
|
24233
|
-
<div class="transaction-line-section">
|
|
24234
|
-
<co-transaction-line-vat-button *ngIf="!preview"
|
|
24235
|
-
[screenConfigurationObject]="cfgNames.LineVat"
|
|
24236
|
-
[transactionLine]="transactionLine"
|
|
24237
|
-
[transactionInfo]="transactionInfo"
|
|
24238
|
-
></co-transaction-line-vat-button>
|
|
24239
|
-
<div class="transaction-line-totals">
|
|
24240
|
-
<co-transaction-line-price class="transaction-line-totals-price price"
|
|
24241
|
-
[screenConfigurationObject]="cfgNames.LinePrice"
|
|
24242
|
-
[transactionInfo]="transactionInfo"
|
|
24243
|
-
[transactionLine]="transactionLine"
|
|
24244
|
-
[showLabel]="false"
|
|
24245
|
-
[defaultEditMode]="false"
|
|
24246
|
-
></co-transaction-line-price>
|
|
24247
|
-
<co-transaction-line-discount-button *ngIf="!preview"
|
|
24248
|
-
[screenConfigurationObject]="cfgNames.LineDiscount"
|
|
24249
|
-
[configNames]="discountConfigNames"
|
|
24250
|
-
[transactionLine]="transactionLine"
|
|
24251
|
-
[transactionInfo]="transactionInfo"
|
|
24252
|
-
></co-transaction-line-discount-button>
|
|
24253
|
-
<div class="transaction-line-totals-amount">
|
|
24254
|
-
<co-transaction-line-amount class="amount-number-picker"
|
|
24255
|
-
[screenConfigurationObject]="cfgNames.LineAmount"
|
|
24256
|
-
[transactionLine]="transactionLine"
|
|
24257
|
-
[transactionInfo]="transactionInfo"
|
|
24258
|
-
></co-transaction-line-amount>
|
|
24259
|
-
</div>
|
|
24260
|
-
<co-editable-label class="transaction-line-totals-total price"
|
|
24261
|
-
[screenConfigurationObject]="cfgNames.LineNetLineTotal"
|
|
24262
|
-
[model]="transactionLine.displayNetLineTotal | coCurrency"
|
|
24263
|
-
[editModel]="transactionLine.displayNetLineTotal"
|
|
24264
|
-
[commit]="!readonly"
|
|
24265
|
-
></co-editable-label>
|
|
24266
|
-
</div>
|
|
24267
|
-
</div>
|
|
24268
|
-
</div>
|
|
24269
|
-
</ng-container>
|
|
24270
|
-
</co-transaction-base-line>
|
|
24271
|
-
`,
|
|
24272
|
-
encapsulation: ViewEncapsulation.None
|
|
24273
|
-
},] }
|
|
24274
|
-
];
|
|
24275
|
-
TransactionPlanningLineComponent.ctorParameters = () => [
|
|
24276
|
-
{ type: TransactionEventService },
|
|
24277
|
-
{ type: IconCacheService },
|
|
24278
|
-
{ type: TransactionScreenConfigurationService },
|
|
24279
|
-
{ type: OrderLineSetService },
|
|
24280
|
-
{ type: TransactionImageService },
|
|
24281
|
-
{ type: DictionaryService },
|
|
24282
|
-
{ type: TransactionService },
|
|
24283
|
-
{ type: ChangeDetectorRef }
|
|
24284
|
-
];
|
|
24285
|
-
TransactionPlanningLineComponent.propDecorators = {
|
|
24286
|
-
transactionLineActionButtons: [{ type: ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
24287
|
-
descriptionDblClick: [{ type: Output }],
|
|
24288
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-overview-line",] }],
|
|
24289
|
-
handleMouseOver: [{ type: HostListener, args: ["mouseover", ["$event"],] }],
|
|
24290
|
-
handleMouseLeave: [{ type: HostListener, args: ["mouseleave", ["$event"],] }]
|
|
24291
|
-
};
|
|
24292
|
-
|
|
24293
24294
|
class TransactionPlanningLineModule {
|
|
24294
24295
|
}
|
|
24295
24296
|
TransactionPlanningLineModule.decorators = [
|
|
@@ -32441,13 +32442,12 @@ class TransactionInternalComponent {
|
|
|
32441
32442
|
this._subs = [];
|
|
32442
32443
|
this._transaction = new TransactionInfoResponse();
|
|
32443
32444
|
this._subs.push(this.service.transactionUpdated.subscribe((transaction) => {
|
|
32444
|
-
var _a;
|
|
32445
32445
|
if (transaction) {
|
|
32446
32446
|
this.shouldShowSidePanel = false;
|
|
32447
32447
|
this._transaction = transaction;
|
|
32448
|
-
if
|
|
32449
|
-
|
|
32450
|
-
}
|
|
32448
|
+
// if(transaction.transactionInfo?.id) {
|
|
32449
|
+
// this.getTransactionMarginInfo(transaction?.transactionInfo.id);
|
|
32450
|
+
// }
|
|
32451
32451
|
this.updateTransactionLine();
|
|
32452
32452
|
}
|
|
32453
32453
|
}), this.service.relationUpdated.subscribe((relation) => {
|
|
@@ -32710,7 +32710,7 @@ TransactionInternalComponent.decorators = [
|
|
|
32710
32710
|
<co-avatar class="transaction-sales-avatar"
|
|
32711
32711
|
[relationId]="transaction.transactionInfo.branch?.relationId"
|
|
32712
32712
|
[screenConfigurationObject]="cfgNames.HeaderBranch" screenConfigNativeElement></co-avatar>
|
|
32713
|
-
<co-view-mode-buttons *ngIf="!shouldShowTiles()
|
|
32713
|
+
<co-view-mode-buttons *ngIf="!shouldShowTiles() && showViewModeButtons" [showViewModes]="[viewModes.List, viewModes.Tiles]"
|
|
32714
32714
|
(viewModeChange)="activeViewMode = $event"></co-view-mode-buttons>
|
|
32715
32715
|
</div>
|
|
32716
32716
|
</div>
|
|
@@ -41134,7 +41134,7 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
41134
41134
|
}
|
|
41135
41135
|
ngOnInit() {
|
|
41136
41136
|
if (this.deliveryMethods.length) {
|
|
41137
|
-
this.selectedDeliveryMethod = this.deliveryMethods[
|
|
41137
|
+
this.selectedDeliveryMethod = this.deliveryMethods[0];
|
|
41138
41138
|
}
|
|
41139
41139
|
}
|
|
41140
41140
|
get transactionInfo() {
|
|
@@ -41160,12 +41160,12 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
41160
41160
|
lspLine.lineUUID = line.uuid;
|
|
41161
41161
|
request.lines.push(lspLine);
|
|
41162
41162
|
});
|
|
41163
|
-
this._transaction.sendPackageInformationToLSP(request).then(result => {
|
|
41164
|
-
|
|
41163
|
+
this._transaction.sendPackageInformationToLSP(request).then((result) => {
|
|
41164
|
+
this._transactionService.rememberCurrentTransaction(result).then(result => {
|
|
41165
41165
|
this._transaction.getPackageInformation(this.transactionInfo.transactionInfo.uuid, this.selectedLines[0].uuid).then((result) => {
|
|
41166
|
-
this.packageLSP = result;
|
|
41166
|
+
this.packageLSP = result ? result : undefined;
|
|
41167
41167
|
});
|
|
41168
|
-
}
|
|
41168
|
+
});
|
|
41169
41169
|
});
|
|
41170
41170
|
}
|
|
41171
41171
|
openTrackAndTraceURL(packageLsp) {
|
|
@@ -41198,20 +41198,20 @@ TransactionQuickAccessPlanningPopupComponent.decorators = [
|
|
|
41198
41198
|
</div>
|
|
41199
41199
|
</div>
|
|
41200
41200
|
</div>
|
|
41201
|
-
<div class="header-info-wrapper">
|
|
41201
|
+
<div class="header-info-wrapper" *ngFor="let lsp of packageLSP">
|
|
41202
41202
|
<div class="block">
|
|
41203
41203
|
<span class="header" [textContent]="'LINES_AMOUNT' | localize"></span>
|
|
41204
|
-
<span class="text" [textContent]="
|
|
41204
|
+
<span class="text" [textContent]="lsp.lineCount"></span>
|
|
41205
41205
|
</div>
|
|
41206
41206
|
|
|
41207
41207
|
<div class="block">
|
|
41208
41208
|
<span class="header" [textContent]="'ARTICLE_AMOUNT' | localize"></span>
|
|
41209
|
-
<span class="text" [textContent]="
|
|
41209
|
+
<span class="text" [textContent]="lsp.productCount"></span>
|
|
41210
41210
|
</div>
|
|
41211
41211
|
|
|
41212
41212
|
<div class="block">
|
|
41213
41213
|
<span class="header" [textContent]="'TOTAL_WEIGHT' | localize"></span>
|
|
41214
|
-
<span class="text" [textContent]="'
|
|
41214
|
+
<span class="text" [textContent]="lsp.totalWeight + ' kg'"></span>
|
|
41215
41215
|
</div>
|
|
41216
41216
|
|
|
41217
41217
|
<div class="block">
|