@colijnit/transaction 12.1.35 → 12.1.37
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 +855 -554
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +267 -261
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +268 -262
- package/esm2015/lib/component/checkout/checkout.component.js +3 -1
- package/esm2015/lib/component/core/base/dynamic-base-component.js +8 -0
- package/esm2015/lib/component/core/base/transaction-filter-popup-base.component.js +34 -14
- package/esm2015/lib/component/core/base/transaction-header-base.component.js +1 -1
- package/esm2015/lib/component/core/base/transaction-line-base.component.js +1 -1
- package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-delivery-method/dialog-transaction-header-delivery-method.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.component.js +4 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-price-list/dialog-transaction-line-price-list.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/dialog-transaction-line-warehouse-location.component.js +37 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/dialog-transaction-line-warehouse-location.module.js +28 -0
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +2 -1
- package/esm2015/lib/component/transaction/transaction.component.js +13 -23
- package/esm2015/lib/component/transaction/transaction.module.js +1 -1
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +2 -2
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +3 -3
- package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.js +1 -1
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.js +39 -22
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.js +4 -2
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +2 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +5 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +6 -2
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +18 -7
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +45 -5
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location.component.js +45 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location.module.js +23 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +64 -52
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +2 -4
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +6 -2
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +23 -18
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +4 -10
- package/esm2015/lib/service/article-connector.service.js +2 -8
- package/esm2015/lib/service/article.service.js +6 -2
- package/esm2015/lib/service/dialog.service.js +32 -41
- package/esm2015/lib/service/dynamic-component.service.js +68 -0
- package/esm2015/lib/service/transaction.service.js +3 -3
- package/fesm2015/colijnit-transaction.js +643 -359
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/dynamic-base-component.d.ts +3 -0
- package/lib/component/core/base/transaction-filter-popup-base.component.d.ts +4 -2
- package/lib/component/dialog/dialog-header-search/style/_layout.scss +16 -0
- package/lib/component/dialog/dialog-header-search/style/_material-definition.scss +4 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-delivery-method/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-price-list/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/dialog-transaction-line-warehouse-location.component.d.ts +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/dialog-transaction-line-warehouse-location.module.d.ts +2 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_material-definition.scss +1 -1
- package/lib/component/transaction/transaction.component.d.ts +3 -3
- package/lib/component/transaction-grid/transaction-received-goods-grid/style/_layout.scss +11 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.d.ts +7 -2
- package/lib/component/transaction-line/style/_layout.scss +6 -0
- package/lib/component/transaction-line/style/material.scss +1 -1
- package/lib/component/transaction-line/transaction-line.component.d.ts +2 -0
- package/lib/component/transaction-line-checkbox-list/style/_layout.scss +13 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +9 -0
- package/lib/component/transaction-line-fields/transaction-line-warehouse-location.component.d.ts +13 -0
- package/lib/component/transaction-line-fields/transaction-line-warehouse-location.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +16 -13
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +4 -2
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +1 -1
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +2 -0
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +16 -0
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +4 -1
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +5 -7
- package/lib/service/dialog.service.d.ts +10 -3
- package/lib/service/dynamic-component.service.d.ts +9 -0
- package/lib/service/transaction.service.d.ts +1 -1
- package/lib/style/_variables.scss +1 -0
- package/lib/style/transaction-globals.scss +6 -2
- package/package.json +3 -3
|
@@ -63,7 +63,7 @@ import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-gr
|
|
|
63
63
|
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
64
64
|
import { ResolveHeaderPendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo';
|
|
65
65
|
import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
|
|
66
|
-
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputTextComponent, InputSearchModule,
|
|
66
|
+
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputTextComponent, InputSearchModule, InputDatePickerComponent, InputDatePickerModule, InputNumberPickerModule, PriceDisplayPipeModule, Carousel3dModule, InputTextareaComponent, InputTextareaModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, CarouselModule, ColumnAlign, SimpleGridColumnDirective, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, CoOrientation, CoDirection, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
67
67
|
import { FlexModule } from '@angular/flex-layout';
|
|
68
68
|
import { AddressType } from '@colijnit/transactionapi/build/enum/address-type.enum';
|
|
69
69
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
@@ -2304,8 +2304,10 @@ CharacteristicAnswerComponent.propDecorators = {
|
|
|
2304
2304
|
|
|
2305
2305
|
class TransactionFilterPopupBaseComponent {
|
|
2306
2306
|
constructor() {
|
|
2307
|
+
this.autoClose = false;
|
|
2307
2308
|
this.useModel = true;
|
|
2308
2309
|
this.valueChange = new EventEmitter();
|
|
2310
|
+
this.closeAfterCommit = new EventEmitter();
|
|
2309
2311
|
this.viewModels = [];
|
|
2310
2312
|
this.viewModelsFiltered = [];
|
|
2311
2313
|
this.propsForLabel = [];
|
|
@@ -2328,20 +2330,35 @@ class TransactionFilterPopupBaseComponent {
|
|
|
2328
2330
|
get model() {
|
|
2329
2331
|
return undefined;
|
|
2330
2332
|
}
|
|
2331
|
-
commit(value) {
|
|
2333
|
+
commit(value) {
|
|
2334
|
+
return Promise.resolve(true);
|
|
2335
|
+
}
|
|
2332
2336
|
handleChecked(row) {
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2338
|
+
row.checked = true;
|
|
2339
|
+
const currentModel = this.viewModels.find(v => v.value === row.value);
|
|
2340
|
+
if (currentModel) {
|
|
2341
|
+
currentModel.checked = true;
|
|
2337
2342
|
}
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
this.
|
|
2344
|
-
|
|
2343
|
+
for (let i = 0; i < this.viewModels.length; i++) {
|
|
2344
|
+
if (this.viewModels[i].value !== row.value) {
|
|
2345
|
+
this.viewModels[i].checked = false;
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
if (this.useModel) {
|
|
2349
|
+
if (this.autoClose) {
|
|
2350
|
+
if (yield this.commit(row.value)) {
|
|
2351
|
+
this.closeAfterCommit.emit();
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
else {
|
|
2355
|
+
this.commit(row.value);
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
else {
|
|
2359
|
+
this.valueChange.emit(row.value);
|
|
2360
|
+
}
|
|
2361
|
+
});
|
|
2345
2362
|
}
|
|
2346
2363
|
prepareViewModels() {
|
|
2347
2364
|
this.collection.forEach((d, index) => {
|
|
@@ -2379,9 +2396,11 @@ TransactionFilterPopupBaseComponent.decorators = [
|
|
|
2379
2396
|
{ type: Directive }
|
|
2380
2397
|
];
|
|
2381
2398
|
TransactionFilterPopupBaseComponent.propDecorators = {
|
|
2399
|
+
autoClose: [{ type: Input }],
|
|
2382
2400
|
useModel: [{ type: Input }],
|
|
2383
2401
|
searchText: [{ type: Input }],
|
|
2384
|
-
valueChange: [{ type: Output }]
|
|
2402
|
+
valueChange: [{ type: Output }],
|
|
2403
|
+
closeAfterCommit: [{ type: Output }]
|
|
2385
2404
|
};
|
|
2386
2405
|
|
|
2387
2406
|
class TransactionLineBaseComponent extends TransactionFilterPopupBaseComponent {
|
|
@@ -2469,9 +2488,11 @@ DialogTransactionLineWarehouseComponent.decorators = [
|
|
|
2469
2488
|
template: `
|
|
2470
2489
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
2471
2490
|
<co-transaction-line-warehouse
|
|
2491
|
+
[autoClose]="autoClose"
|
|
2472
2492
|
[useModel]="useModel"
|
|
2473
2493
|
[transactionLine]="transactionLine"
|
|
2474
2494
|
[searchText]="searchText"
|
|
2495
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
2475
2496
|
(valueChange)="handleValueChange($event)"
|
|
2476
2497
|
></co-transaction-line-warehouse>
|
|
2477
2498
|
</co-dialog>
|
|
@@ -2502,8 +2523,11 @@ DialogTransactionLineCommissionCodeComponent.decorators = [
|
|
|
2502
2523
|
template: `
|
|
2503
2524
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
2504
2525
|
<co-transaction-line-commission-code
|
|
2526
|
+
[autoClose]="autoClose"
|
|
2505
2527
|
[useModel]="useModel"
|
|
2528
|
+
[transactionInfo]="transactionInfo"
|
|
2506
2529
|
[transactionLine]="transactionLine"
|
|
2530
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
2507
2531
|
(valueChange)="handleValueChange($event)"></co-transaction-line-commission-code>
|
|
2508
2532
|
</co-dialog>
|
|
2509
2533
|
<ng-template #dialogHeader>
|
|
@@ -2522,12 +2546,113 @@ DialogTransactionLineCommissionCodeComponent.propDecorators = {
|
|
|
2522
2546
|
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
|
|
2523
2547
|
};
|
|
2524
2548
|
|
|
2525
|
-
class
|
|
2549
|
+
class DynamicComponentService {
|
|
2526
2550
|
constructor(_compFactoryResolver, appRef, injector) {
|
|
2527
2551
|
this._compFactoryResolver = _compFactoryResolver;
|
|
2528
2552
|
this.appRef = appRef;
|
|
2529
2553
|
this.injector = injector;
|
|
2530
|
-
|
|
2554
|
+
this._componentRefs = [];
|
|
2555
|
+
}
|
|
2556
|
+
createComponent(componentClass, inputs, outputs, providers) {
|
|
2557
|
+
return new Promise((resolve) => {
|
|
2558
|
+
if (providers) {
|
|
2559
|
+
Injector.create(providers, this.injector);
|
|
2560
|
+
}
|
|
2561
|
+
const componentRef = this._compFactoryResolver
|
|
2562
|
+
.resolveComponentFactory(componentClass)
|
|
2563
|
+
.create(this.injector);
|
|
2564
|
+
this._componentRefs.push(componentRef);
|
|
2565
|
+
if (inputs) {
|
|
2566
|
+
for (let property in inputs) {
|
|
2567
|
+
if (inputs.hasOwnProperty(property)) {
|
|
2568
|
+
componentRef.instance[property] = inputs[property];
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
if (outputs) {
|
|
2573
|
+
for (let event in outputs) {
|
|
2574
|
+
if (outputs.hasOwnProperty(event)) {
|
|
2575
|
+
componentRef.instance[event].subscribe(() => outputs[event]());
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
this.appRef.attachView(componentRef.hostView);
|
|
2580
|
+
const domElem = componentRef.hostView
|
|
2581
|
+
.rootNodes[0];
|
|
2582
|
+
document.body.appendChild(domElem);
|
|
2583
|
+
componentRef.onDestroy(() => {
|
|
2584
|
+
this.appRef.detachView(componentRef.hostView);
|
|
2585
|
+
});
|
|
2586
|
+
componentRef.instance.onClose = (button, output) => {
|
|
2587
|
+
const idx = this._componentRefs.indexOf(componentRef);
|
|
2588
|
+
this.appRef.detachView(componentRef.hostView);
|
|
2589
|
+
this._componentRefs[idx] = undefined;
|
|
2590
|
+
this._componentRefs.splice(idx, 1);
|
|
2591
|
+
if (outputs) {
|
|
2592
|
+
for (let event in outputs) {
|
|
2593
|
+
if (outputs.hasOwnProperty(event)) {
|
|
2594
|
+
componentRef.instance[event].unsubscribe();
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
resolve(output ? output : button);
|
|
2599
|
+
};
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
DynamicComponentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DynamicComponentService_Factory() { return new DynamicComponentService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR)); }, token: DynamicComponentService, providedIn: "root" });
|
|
2604
|
+
DynamicComponentService.decorators = [
|
|
2605
|
+
{ type: Injectable, args: [{
|
|
2606
|
+
providedIn: "root"
|
|
2607
|
+
},] }
|
|
2608
|
+
];
|
|
2609
|
+
DynamicComponentService.ctorParameters = () => [
|
|
2610
|
+
{ type: ComponentFactoryResolver },
|
|
2611
|
+
{ type: ApplicationRef },
|
|
2612
|
+
{ type: Injector }
|
|
2613
|
+
];
|
|
2614
|
+
|
|
2615
|
+
class DialogTransactionLineWarehouseLocationComponent extends DialogTransactionLineBaseComponent {
|
|
2616
|
+
showClass() {
|
|
2617
|
+
return true;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
DialogTransactionLineWarehouseLocationComponent.decorators = [
|
|
2621
|
+
{ type: Component, args: [{
|
|
2622
|
+
selector: "co-dialog-transaction-line-warehouse-location",
|
|
2623
|
+
template: `
|
|
2624
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="onClose(buttonType.Ok)">
|
|
2625
|
+
<co-transaction-line-warehouse-location
|
|
2626
|
+
[autoClose]="autoClose"
|
|
2627
|
+
[useModel]="useModel"
|
|
2628
|
+
[transactionLine]="transactionLine"
|
|
2629
|
+
[searchText]="searchText"
|
|
2630
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
2631
|
+
(valueChange)="handleValueChange($event)"
|
|
2632
|
+
></co-transaction-line-warehouse-location>
|
|
2633
|
+
</co-dialog>
|
|
2634
|
+
<ng-template #dialogHeader>
|
|
2635
|
+
<co-dialog-header-search [title]="'LOCATION'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
2636
|
+
</ng-template>
|
|
2637
|
+
<ng-template #footerTemplate>
|
|
2638
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useModel">
|
|
2639
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
2640
|
+
</div>
|
|
2641
|
+
</ng-template>
|
|
2642
|
+
`,
|
|
2643
|
+
encapsulation: ViewEncapsulation.None
|
|
2644
|
+
},] }
|
|
2645
|
+
];
|
|
2646
|
+
DialogTransactionLineWarehouseLocationComponent.propDecorators = {
|
|
2647
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-warehouse-location",] }]
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
class DialogService {
|
|
2651
|
+
constructor(_compFactoryResolver, appRef, injector, dynamicComponentService) {
|
|
2652
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
2653
|
+
this.appRef = appRef;
|
|
2654
|
+
this.injector = injector;
|
|
2655
|
+
this.dynamicComponentService = dynamicComponentService;
|
|
2531
2656
|
this._componentRefs = [];
|
|
2532
2657
|
}
|
|
2533
2658
|
showYesNo(title, text) {
|
|
@@ -2537,7 +2662,7 @@ class DialogService {
|
|
|
2537
2662
|
text: text,
|
|
2538
2663
|
type: AppPopupType.Confirmation
|
|
2539
2664
|
};
|
|
2540
|
-
const response = yield this.
|
|
2665
|
+
const response = yield this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
2541
2666
|
return response === AppPopupButtonType.Yes;
|
|
2542
2667
|
});
|
|
2543
2668
|
}
|
|
@@ -2550,7 +2675,7 @@ class DialogService {
|
|
|
2550
2675
|
if (details) {
|
|
2551
2676
|
data.details = details;
|
|
2552
2677
|
}
|
|
2553
|
-
return this.
|
|
2678
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
2554
2679
|
}
|
|
2555
2680
|
showInformation(message) {
|
|
2556
2681
|
const data = {
|
|
@@ -2558,7 +2683,19 @@ class DialogService {
|
|
|
2558
2683
|
text: message,
|
|
2559
2684
|
type: AppPopupType.Information
|
|
2560
2685
|
};
|
|
2561
|
-
return this.
|
|
2686
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
2687
|
+
}
|
|
2688
|
+
showTransactionLineComponent(comp, transLine) {
|
|
2689
|
+
const data = {
|
|
2690
|
+
transactionLine: transLine
|
|
2691
|
+
};
|
|
2692
|
+
return this.dynamicComponentService.createComponent(comp, data);
|
|
2693
|
+
}
|
|
2694
|
+
showTransactionHeaderComponent(comp, transactionInfo) {
|
|
2695
|
+
const data = {
|
|
2696
|
+
transactionInfo: transactionInfo
|
|
2697
|
+
};
|
|
2698
|
+
return this.dynamicComponentService.createComponent(comp, data);
|
|
2562
2699
|
}
|
|
2563
2700
|
showCharacteristics(title, choices, value) {
|
|
2564
2701
|
const data = {
|
|
@@ -2566,53 +2703,28 @@ class DialogService {
|
|
|
2566
2703
|
choices: choices,
|
|
2567
2704
|
value: value
|
|
2568
2705
|
};
|
|
2569
|
-
return this.
|
|
2706
|
+
return this.dynamicComponentService.createComponent(CharacteristicAnswerComponent, data);
|
|
2570
2707
|
}
|
|
2571
2708
|
showWarehouse() {
|
|
2572
2709
|
const data = {
|
|
2573
2710
|
useModel: false
|
|
2574
2711
|
};
|
|
2575
|
-
return this.
|
|
2712
|
+
return this.dynamicComponentService.createComponent(DialogTransactionLineWarehouseComponent, data);
|
|
2576
2713
|
}
|
|
2577
2714
|
showCommissionCode() {
|
|
2578
2715
|
const data = {
|
|
2579
2716
|
useModel: false
|
|
2580
2717
|
};
|
|
2581
|
-
return this.
|
|
2718
|
+
return this.dynamicComponentService.createComponent(DialogTransactionLineCommissionCodeComponent, data);
|
|
2582
2719
|
}
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
const componentRef = this._compFactoryResolver
|
|
2589
|
-
.resolveComponentFactory(componentClass)
|
|
2590
|
-
.create(this.injector);
|
|
2591
|
-
this._componentRefs.push(componentRef);
|
|
2592
|
-
for (let key in data) {
|
|
2593
|
-
if (data.hasOwnProperty(key)) {
|
|
2594
|
-
componentRef.instance[key] = data[key];
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
this.appRef.attachView(componentRef.hostView);
|
|
2598
|
-
const domElem = componentRef.hostView
|
|
2599
|
-
.rootNodes[0];
|
|
2600
|
-
document.body.appendChild(domElem);
|
|
2601
|
-
componentRef.onDestroy(() => {
|
|
2602
|
-
this.appRef.detachView(componentRef.hostView);
|
|
2603
|
-
});
|
|
2604
|
-
// @ts-ignore
|
|
2605
|
-
componentRef.instance.onClose = (button, output) => {
|
|
2606
|
-
const idx = this._componentRefs.indexOf(componentRef);
|
|
2607
|
-
this.appRef.detachView(componentRef.hostView);
|
|
2608
|
-
this._componentRefs[idx] = undefined;
|
|
2609
|
-
this._componentRefs.splice(idx, 1);
|
|
2610
|
-
resolve(output ? output : button);
|
|
2611
|
-
};
|
|
2612
|
-
});
|
|
2720
|
+
showWarehouseLocation() {
|
|
2721
|
+
const data = {
|
|
2722
|
+
useModel: false
|
|
2723
|
+
};
|
|
2724
|
+
return this.dynamicComponentService.createComponent(DialogTransactionLineWarehouseLocationComponent, data);
|
|
2613
2725
|
}
|
|
2614
2726
|
}
|
|
2615
|
-
DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR)); }, token: DialogService, providedIn: "root" });
|
|
2727
|
+
DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(DynamicComponentService)); }, token: DialogService, providedIn: "root" });
|
|
2616
2728
|
DialogService.decorators = [
|
|
2617
2729
|
{ type: Injectable, args: [{
|
|
2618
2730
|
providedIn: "root"
|
|
@@ -2621,7 +2733,8 @@ DialogService.decorators = [
|
|
|
2621
2733
|
DialogService.ctorParameters = () => [
|
|
2622
2734
|
{ type: ComponentFactoryResolver },
|
|
2623
2735
|
{ type: ApplicationRef },
|
|
2624
|
-
{ type: Injector }
|
|
2736
|
+
{ type: Injector },
|
|
2737
|
+
{ type: DynamicComponentService }
|
|
2625
2738
|
];
|
|
2626
2739
|
|
|
2627
2740
|
class ErrorService {
|
|
@@ -4592,21 +4705,15 @@ class ArticleConnectorService {
|
|
|
4592
4705
|
getWarehouseLocations(warehouseNr) {
|
|
4593
4706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4594
4707
|
return new Promise((resolve, reject) => {
|
|
4595
|
-
// const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
|
|
4596
|
-
// if (collection) {
|
|
4597
|
-
// resolve(collection);
|
|
4598
|
-
// } else {
|
|
4599
4708
|
return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
|
|
4600
4709
|
if (response && response.validationResult && response.validationResult.success) {
|
|
4601
4710
|
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
|
|
4602
|
-
|
|
4603
|
-
resolve(collection);
|
|
4711
|
+
resolve(collection.slice(0, 50));
|
|
4604
4712
|
}
|
|
4605
4713
|
else {
|
|
4606
4714
|
reject(response.validationMessagesAsString);
|
|
4607
4715
|
}
|
|
4608
4716
|
});
|
|
4609
|
-
// }
|
|
4610
4717
|
});
|
|
4611
4718
|
});
|
|
4612
4719
|
}
|
|
@@ -5328,10 +5435,10 @@ class TransactionService extends PendingReasonService {
|
|
|
5328
5435
|
getRelationListObjects(relationRequest) {
|
|
5329
5436
|
return this.connector.getRelationListObjects(relationRequest);
|
|
5330
5437
|
}
|
|
5331
|
-
addArticle(articleNo,
|
|
5438
|
+
addArticle(articleNo, isReturn = false, aboveLineNr = 0, belowLineNr = 0) {
|
|
5332
5439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5333
5440
|
yield this._checkAndCreateTransaction();
|
|
5334
|
-
const response = yield this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, TransactionLineType.ArticleLine, articleNo,
|
|
5441
|
+
const response = yield this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, TransactionLineType.ArticleLine, articleNo, null, null, null, isReturn, aboveLineNr, belowLineNr);
|
|
5335
5442
|
if (yield this.handleLineOperationStatuses(response)) {
|
|
5336
5443
|
this.rememberCurrentTransaction(response);
|
|
5337
5444
|
}
|
|
@@ -5665,6 +5772,7 @@ class CheckoutComponent {
|
|
|
5665
5772
|
}
|
|
5666
5773
|
handleTransactionFinished(id) {
|
|
5667
5774
|
this.service.currentTransaction = new TransactionInfoResponse();
|
|
5775
|
+
this.service.relation = new CustomerFullObject();
|
|
5668
5776
|
this.service.articleAmount = 0;
|
|
5669
5777
|
this.transactionFinished.emit(id);
|
|
5670
5778
|
}
|
|
@@ -8150,6 +8258,7 @@ class TransactionLineComponent {
|
|
|
8150
8258
|
this._imageService = _imageService;
|
|
8151
8259
|
this.icons = Icon;
|
|
8152
8260
|
this.preview = false;
|
|
8261
|
+
this.transactionInfo = new TransactionInfo();
|
|
8153
8262
|
this.waitingForUserAction = new EventEmitter();
|
|
8154
8263
|
this.sidePanelButtonClicked = new EventEmitter();
|
|
8155
8264
|
this.stock = StockStatus.Low;
|
|
@@ -8326,10 +8435,14 @@ TransactionLineComponent.decorators = [
|
|
|
8326
8435
|
<co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"></co-icon>
|
|
8327
8436
|
<span class="co-transaction-overflow-ellipsis" [textContent]="line.deliveryMethodDescription"></span>
|
|
8328
8437
|
</div>
|
|
8329
|
-
<div class="transaction-line-button custom-width no-border two-column">
|
|
8438
|
+
<div class="transaction-line-button custom-width no-border no-pointer two-column">
|
|
8330
8439
|
<span [textContent]="'DELIVERY_DATE' | localize | append:':'" class="small-font"></span>
|
|
8331
|
-
<
|
|
8332
|
-
|
|
8440
|
+
<co-transaction-line-delivery-date class="transaction-line-deliverydate"
|
|
8441
|
+
[transactionLine]="line"
|
|
8442
|
+
[transactionInfo]="transactionInfo"
|
|
8443
|
+
[showLabel]="false"
|
|
8444
|
+
[defaultEditMode]="false"
|
|
8445
|
+
></co-transaction-line-delivery-date>
|
|
8333
8446
|
</div>
|
|
8334
8447
|
</div>
|
|
8335
8448
|
<div *ngIf="!preview" class="transaction-line-button" (click)="openVatDialog()">
|
|
@@ -8341,7 +8454,7 @@ TransactionLineComponent.decorators = [
|
|
|
8341
8454
|
[showLabel]="false"
|
|
8342
8455
|
[defaultEditMode]="false"
|
|
8343
8456
|
></co-transaction-line-price>
|
|
8344
|
-
<div class="transaction-line-button custom-width" (click)="openTheDiscountDialog()">
|
|
8457
|
+
<div class="transaction-line-button center-align custom-width" (click)="openTheDiscountDialog()">
|
|
8345
8458
|
<span class="co-transaction-overflow-ellipsis transaction-line-discount" [class.negative]="line.lineTotalDiscountAmount < 0"
|
|
8346
8459
|
[textContent]="(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)"></span>
|
|
8347
8460
|
</div>
|
|
@@ -8354,8 +8467,8 @@ TransactionLineComponent.decorators = [
|
|
|
8354
8467
|
<co-editable-label class="transaction-line-totals-total price"
|
|
8355
8468
|
[model]="line.displayNetLineTotal | coCurrency"
|
|
8356
8469
|
[editModel]="line.displayNetLineTotal"
|
|
8357
|
-
[readonly]="
|
|
8358
|
-
[commit]="
|
|
8470
|
+
[readonly]="true"
|
|
8471
|
+
[commit]="false"
|
|
8359
8472
|
></co-editable-label>
|
|
8360
8473
|
</div>
|
|
8361
8474
|
<div *ngIf="!preview" class="transaction-line-buttons">
|
|
@@ -8374,21 +8487,25 @@ TransactionLineComponent.decorators = [
|
|
|
8374
8487
|
</div>
|
|
8375
8488
|
</ng-container>
|
|
8376
8489
|
<co-dialog-transaction-line-delivery-method *ngIf="showDialogDeliveryMethod"
|
|
8490
|
+
[autoClose]="true"
|
|
8377
8491
|
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
8378
8492
|
[transactionLine]="line"
|
|
8379
8493
|
(close)="showDialogDeliveryMethod = false"
|
|
8380
8494
|
></co-dialog-transaction-line-delivery-method>
|
|
8381
8495
|
<co-dialog-transaction-line-commission-code *ngIf="showDialogCommissionCode"
|
|
8496
|
+
[autoClose]="true"
|
|
8382
8497
|
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
8383
8498
|
[transactionLine]="line"
|
|
8384
8499
|
(close)="showDialogCommissionCode = false"
|
|
8385
8500
|
></co-dialog-transaction-line-commission-code>
|
|
8386
8501
|
<co-dialog-transaction-line-vat *ngIf="showDialogVat"
|
|
8502
|
+
[autoClose]="true"
|
|
8387
8503
|
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
8388
8504
|
[transactionLine]="line"
|
|
8389
8505
|
(close)="showDialogVat = false"
|
|
8390
8506
|
></co-dialog-transaction-line-vat>
|
|
8391
8507
|
<co-dialog-transaction-line-warehouse *ngIf="showDialogWarehouse"
|
|
8508
|
+
[autoClose]="true"
|
|
8392
8509
|
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
8393
8510
|
[transactionLine]="line"
|
|
8394
8511
|
(close)="showDialogWarehouse = false"
|
|
@@ -8412,6 +8529,7 @@ TransactionLineComponent.ctorParameters = () => [
|
|
|
8412
8529
|
];
|
|
8413
8530
|
TransactionLineComponent.propDecorators = {
|
|
8414
8531
|
preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
|
|
8532
|
+
transactionInfo: [{ type: Input }],
|
|
8415
8533
|
line: [{ type: Input }],
|
|
8416
8534
|
waitingForUserAction: [{ type: Output }],
|
|
8417
8535
|
sidePanelButtonClicked: [{ type: Output }],
|
|
@@ -8873,10 +8991,12 @@ DialogTransactionLineDeliveryMethodComponent.decorators = [
|
|
|
8873
8991
|
template: `
|
|
8874
8992
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
8875
8993
|
<co-transaction-line-delivery-method
|
|
8994
|
+
[autoClose]="autoClose"
|
|
8876
8995
|
[useModel]="useModel"
|
|
8877
8996
|
[transactionInfo]="transactionInfo"
|
|
8878
8997
|
[transactionLine]="transactionLine"
|
|
8879
8998
|
[searchText]="searchText"
|
|
8999
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
8880
9000
|
(valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
|
|
8881
9001
|
</co-dialog>
|
|
8882
9002
|
<ng-template #dialogHeader>
|
|
@@ -8966,9 +9086,9 @@ TransactionLineCheckboxListComponent.decorators = [
|
|
|
8966
9086
|
selector: "co-transaction-line-checkbox-list",
|
|
8967
9087
|
template: `
|
|
8968
9088
|
<table lazyRenderMaster>
|
|
8969
|
-
<tr *ngFor="let row of collection" lazyRender #lazyRender="lazyRender">
|
|
9089
|
+
<tr *ngFor="let row of collection" lazyRender #lazyRender="lazyRender" [class.visible]="lazyRender.isShowing">
|
|
8970
9090
|
<td>
|
|
8971
|
-
<co-input-checkbox
|
|
9091
|
+
<co-input-checkbox
|
|
8972
9092
|
[model]="row.checked"
|
|
8973
9093
|
[readonly]="readonly"
|
|
8974
9094
|
(click)="handleChecked($event, row)"
|
|
@@ -9206,9 +9326,11 @@ DialogTransactionLineVatComponent.decorators = [
|
|
|
9206
9326
|
template: `
|
|
9207
9327
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
9208
9328
|
<co-transaction-line-vat
|
|
9329
|
+
[autoClose]="autoClose"
|
|
9209
9330
|
[useModel]="useModel"
|
|
9210
9331
|
[transactionLine]="transactionLine"
|
|
9211
9332
|
[searchText]="searchText"
|
|
9333
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
9212
9334
|
(valueChange)="handleValueChange($event)"
|
|
9213
9335
|
></co-transaction-line-vat>
|
|
9214
9336
|
</co-dialog>
|
|
@@ -9838,9 +9960,11 @@ DialogTransactionLinePriceListComponent.decorators = [
|
|
|
9838
9960
|
template: `
|
|
9839
9961
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
9840
9962
|
<co-transaction-line-price-list
|
|
9963
|
+
[autoClose]="autoClose"
|
|
9841
9964
|
[useModel]="useModel"
|
|
9842
9965
|
[transactionLine]="transactionLine"
|
|
9843
9966
|
[searchText]="searchText"
|
|
9967
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
9844
9968
|
(valueChange)="handleValueChange($event)"></co-transaction-line-price-list>
|
|
9845
9969
|
</co-dialog>
|
|
9846
9970
|
<ng-template #dialogHeader>
|
|
@@ -9905,6 +10029,103 @@ DialogTransactionLineDiscountModule.decorators = [
|
|
|
9905
10029
|
},] }
|
|
9906
10030
|
];
|
|
9907
10031
|
|
|
10032
|
+
class TransactionLineDeliveryDateComponent extends TransactionLineBaseComponent {
|
|
10033
|
+
constructor(_transactionService) {
|
|
10034
|
+
super();
|
|
10035
|
+
this._transactionService = _transactionService;
|
|
10036
|
+
this.showLabel = true;
|
|
10037
|
+
this.defaultEditMode = true;
|
|
10038
|
+
this._editMode = false;
|
|
10039
|
+
}
|
|
10040
|
+
set child(content) {
|
|
10041
|
+
if (content) {
|
|
10042
|
+
this.input = content;
|
|
10043
|
+
this.input.commit = (date) => this.commit(date);
|
|
10044
|
+
if (this._editMode) {
|
|
10045
|
+
this.input.requestFocus();
|
|
10046
|
+
}
|
|
10047
|
+
}
|
|
10048
|
+
}
|
|
10049
|
+
set editMode(value) {
|
|
10050
|
+
this._editMode = value;
|
|
10051
|
+
if (this._editMode && this.input) {
|
|
10052
|
+
this.input.doFocus();
|
|
10053
|
+
}
|
|
10054
|
+
}
|
|
10055
|
+
get editMode() {
|
|
10056
|
+
return this._editMode;
|
|
10057
|
+
}
|
|
10058
|
+
handleClick(event) {
|
|
10059
|
+
if (!this.readonly) {
|
|
10060
|
+
this.editMode = true;
|
|
10061
|
+
}
|
|
10062
|
+
}
|
|
10063
|
+
commit(date) {
|
|
10064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10065
|
+
if (this.transactionLine.deliveryDate !== date) {
|
|
10066
|
+
const oldDate = this.transactionLine.deliveryDate;
|
|
10067
|
+
const success = yield this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date);
|
|
10068
|
+
if (!success) {
|
|
10069
|
+
this.transactionLine.deliveryDate = oldDate;
|
|
10070
|
+
}
|
|
10071
|
+
else {
|
|
10072
|
+
this.editMode = false;
|
|
10073
|
+
}
|
|
10074
|
+
return success;
|
|
10075
|
+
}
|
|
10076
|
+
return true;
|
|
10077
|
+
});
|
|
10078
|
+
}
|
|
10079
|
+
transactionInfoSet() {
|
|
10080
|
+
this.readonly = this.readonly || (this.transactionInfo.deliveryDateDefinitive || !this.transactionInfo.allowPartialDelivery);
|
|
10081
|
+
}
|
|
10082
|
+
}
|
|
10083
|
+
TransactionLineDeliveryDateComponent.decorators = [
|
|
10084
|
+
{ type: Component, args: [{
|
|
10085
|
+
selector: "co-transaction-line-delivery-date",
|
|
10086
|
+
template: `
|
|
10087
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionLine.deliveryDate | date:'dd MMM yyyy'"></span>
|
|
10088
|
+
<co-input-date #input *ngIf="editMode || defaultEditMode"
|
|
10089
|
+
[placeholder]="showLabel ? ('DELIVERY_DATE' | localize) : ''"
|
|
10090
|
+
[showSaveCancel]="!readonly"
|
|
10091
|
+
[readonly]="readonly"
|
|
10092
|
+
[model]="transactionLine.deliveryDate"
|
|
10093
|
+
(modelChange)="commit($event)"
|
|
10094
|
+
(blur)="editMode = false"
|
|
10095
|
+
></co-input-date>
|
|
10096
|
+
`,
|
|
10097
|
+
encapsulation: ViewEncapsulation.None
|
|
10098
|
+
},] }
|
|
10099
|
+
];
|
|
10100
|
+
TransactionLineDeliveryDateComponent.ctorParameters = () => [
|
|
10101
|
+
{ type: TransactionService }
|
|
10102
|
+
];
|
|
10103
|
+
TransactionLineDeliveryDateComponent.propDecorators = {
|
|
10104
|
+
child: [{ type: ViewChild, args: ['input', { read: InputDatePickerComponent },] }],
|
|
10105
|
+
showLabel: [{ type: Input }],
|
|
10106
|
+
defaultEditMode: [{ type: Input }],
|
|
10107
|
+
editMode: [{ type: Input }],
|
|
10108
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
10109
|
+
};
|
|
10110
|
+
|
|
10111
|
+
class TransactionLineDeliveryDateModule {
|
|
10112
|
+
}
|
|
10113
|
+
TransactionLineDeliveryDateModule.decorators = [
|
|
10114
|
+
{ type: NgModule, args: [{
|
|
10115
|
+
imports: [
|
|
10116
|
+
CommonModule,
|
|
10117
|
+
PipeModule,
|
|
10118
|
+
InputDatePickerModule
|
|
10119
|
+
],
|
|
10120
|
+
declarations: [
|
|
10121
|
+
TransactionLineDeliveryDateComponent
|
|
10122
|
+
],
|
|
10123
|
+
exports: [
|
|
10124
|
+
TransactionLineDeliveryDateComponent
|
|
10125
|
+
]
|
|
10126
|
+
},] }
|
|
10127
|
+
];
|
|
10128
|
+
|
|
9908
10129
|
class TransactionLineModule {
|
|
9909
10130
|
}
|
|
9910
10131
|
TransactionLineModule.decorators = [
|
|
@@ -9927,7 +10148,8 @@ TransactionLineModule.decorators = [
|
|
|
9927
10148
|
DialogTransactionLineCommissionCodeModule,
|
|
9928
10149
|
DialogTransactionLineVatModule,
|
|
9929
10150
|
DialogTransactionLineWarehouseModule,
|
|
9930
|
-
DialogTransactionLineDiscountModule
|
|
10151
|
+
DialogTransactionLineDiscountModule,
|
|
10152
|
+
TransactionLineDeliveryDateModule
|
|
9931
10153
|
],
|
|
9932
10154
|
declarations: [
|
|
9933
10155
|
TransactionLineComponent
|
|
@@ -9943,6 +10165,7 @@ class TransactionLinesComponent {
|
|
|
9943
10165
|
this.iconCacheService = iconCacheService;
|
|
9944
10166
|
this.service = service;
|
|
9945
10167
|
this.icons = Icon;
|
|
10168
|
+
this.transactionInfo = new TransactionInfo();
|
|
9946
10169
|
this.transactionLines = [];
|
|
9947
10170
|
this.preview = false;
|
|
9948
10171
|
this.saveTransactionLine = new EventEmitter();
|
|
@@ -10024,11 +10247,12 @@ TransactionLinesComponent.decorators = [
|
|
|
10024
10247
|
(cdkDropListDropped)="handleDrop($event)"
|
|
10025
10248
|
>
|
|
10026
10249
|
<div class="draggable-transaction-line" *ngFor="let line of transactionLines; trackBy:trackByFn;" cdkDrag>
|
|
10027
|
-
<co-icon class="transaction-line-drag-handle" [class.show]="line === selectedTransactionLine && transactionLines.length > 1" cdkDragHandle
|
|
10250
|
+
<co-icon *ngIf="!preview" class="transaction-line-drag-handle" [class.show]="line === selectedTransactionLine && transactionLines.length > 1" cdkDragHandle
|
|
10028
10251
|
[iconData]="iconCacheService.getIcon(icons.GripDotsVerticalSolid)">
|
|
10029
10252
|
</co-icon>
|
|
10030
10253
|
<co-transaction-line
|
|
10031
10254
|
[preview]="preview"
|
|
10255
|
+
[transactionInfo]="transactionInfo"
|
|
10032
10256
|
[line]="line"
|
|
10033
10257
|
[selected]="line === selectedTransactionLine"
|
|
10034
10258
|
(dblclick)="handleTransactionLineDblClick(line)"
|
|
@@ -10058,6 +10282,7 @@ TransactionLinesComponent.ctorParameters = () => [
|
|
|
10058
10282
|
];
|
|
10059
10283
|
TransactionLinesComponent.propDecorators = {
|
|
10060
10284
|
transactionArticleText: [{ type: ViewChild, args: [TransactionArticleTextComponent,] }],
|
|
10285
|
+
transactionInfo: [{ type: Input }],
|
|
10061
10286
|
transactionLines: [{ type: Input }],
|
|
10062
10287
|
preview: [{ type: Input }],
|
|
10063
10288
|
saveTransactionLine: [{ type: Output }],
|
|
@@ -10110,6 +10335,7 @@ ShoppingCartPreviewComponent.decorators = [
|
|
|
10110
10335
|
</div>
|
|
10111
10336
|
<div class="cart-lines">
|
|
10112
10337
|
<co-transaction-lines
|
|
10338
|
+
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
10113
10339
|
[transactionLines]="service.currentTransaction.transactionLines"
|
|
10114
10340
|
[preview]="true"
|
|
10115
10341
|
></co-transaction-lines>
|
|
@@ -11693,6 +11919,7 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
11693
11919
|
<co-transaction-header-relation-reference [transactionInfo]="transactionInfo"></co-transaction-header-relation-reference>
|
|
11694
11920
|
</co-dialog>
|
|
11695
11921
|
<co-dialog-transaction-header-delivery-method *ngIf="showDeliveryMethodDialog"
|
|
11922
|
+
[autoClose]="true"
|
|
11696
11923
|
[transactionInfo]="transactionInfo" (close)="showDeliveryMethodDialog = false">
|
|
11697
11924
|
</co-dialog-transaction-header-delivery-method>
|
|
11698
11925
|
`,
|
|
@@ -11838,6 +12065,9 @@ class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseCompon
|
|
|
11838
12065
|
if (!success) {
|
|
11839
12066
|
this.input.model = oldDate;
|
|
11840
12067
|
}
|
|
12068
|
+
else {
|
|
12069
|
+
this.editMode = false;
|
|
12070
|
+
}
|
|
11841
12071
|
return success;
|
|
11842
12072
|
}
|
|
11843
12073
|
return true;
|
|
@@ -11857,6 +12087,7 @@ TransactionHeaderDeliveryDateComponent.decorators = [
|
|
|
11857
12087
|
[showSaveCancel]="!readonly"
|
|
11858
12088
|
[readonly]="readonly"
|
|
11859
12089
|
[model]="transactionInfo.deliveryDate"
|
|
12090
|
+
(modelChange)="commitDeliveryDate($event)"
|
|
11860
12091
|
(blur)="editMode = false"
|
|
11861
12092
|
></co-input-date>
|
|
11862
12093
|
`,
|
|
@@ -12392,6 +12623,9 @@ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderB
|
|
|
12392
12623
|
if (!success) {
|
|
12393
12624
|
this.input.model = oldDate;
|
|
12394
12625
|
}
|
|
12626
|
+
else {
|
|
12627
|
+
this.editMode = false;
|
|
12628
|
+
}
|
|
12395
12629
|
return success;
|
|
12396
12630
|
}
|
|
12397
12631
|
return true;
|
|
@@ -12405,12 +12639,13 @@ TransactionHeaderPreferredDeliveryDateComponent.decorators = [
|
|
|
12405
12639
|
{ type: Component, args: [{
|
|
12406
12640
|
selector: "co-transaction-header-preferred-delivery-date",
|
|
12407
12641
|
template: `
|
|
12408
|
-
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy'"></span>
|
|
12642
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="(transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy') || '<invullen>'"></span>
|
|
12409
12643
|
<co-input-date #input *ngIf="editMode || defaultEditMode"
|
|
12410
12644
|
[placeholder]="showLabel ? ('PREFERRED_DATE' | localize) : ''"
|
|
12411
12645
|
[showSaveCancel]="!readonly"
|
|
12412
12646
|
[readonly]="readonly"
|
|
12413
12647
|
[model]="transactionInfo.preferredDeliveryDate"
|
|
12648
|
+
(modelChange)="commitPreferredDeliveryDate($event)"
|
|
12414
12649
|
(blur)="editMode = false"
|
|
12415
12650
|
></co-input-date>
|
|
12416
12651
|
`,
|
|
@@ -12487,10 +12722,12 @@ DialogTransactionHeaderDeliveryMethodComponent.decorators = [
|
|
|
12487
12722
|
template: `
|
|
12488
12723
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
12489
12724
|
<co-transaction-header-delivery-method
|
|
12725
|
+
[autoClose]="autoClose"
|
|
12490
12726
|
[showAsCarousel]="false"
|
|
12491
12727
|
[useModel]="useModel"
|
|
12492
12728
|
[transactionInfo]="transactionInfo"
|
|
12493
12729
|
[searchText]="searchText"
|
|
12730
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
12494
12731
|
(valueChange)="handleValueChange($event)"></co-transaction-header-delivery-method>
|
|
12495
12732
|
</co-dialog>
|
|
12496
12733
|
<ng-template #dialogHeader>
|
|
@@ -13242,29 +13479,179 @@ var ContentViewMode;
|
|
|
13242
13479
|
ContentViewMode[ContentViewMode["Tiles"] = 5] = "Tiles";
|
|
13243
13480
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
13244
13481
|
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13482
|
+
var TransactionTypeCategory;
|
|
13483
|
+
(function (TransactionTypeCategory) {
|
|
13484
|
+
TransactionTypeCategory["PurchaseOrderOverview"] = "purchaseOrderOverview";
|
|
13485
|
+
TransactionTypeCategory["PurchaseOrderOrderConfirmation"] = "purchaseOrderOrderConfirmation";
|
|
13486
|
+
TransactionTypeCategory["PurchaseOrderTransport"] = "purchaseOrderTransport";
|
|
13487
|
+
TransactionTypeCategory["PurchaseOrderReceivedGoods"] = "purchaseOrderReceivedGoods";
|
|
13488
|
+
TransactionTypeCategory["PurchaseOrderInvoiceCheck"] = "purchaseOrderInvoiceCheck";
|
|
13489
|
+
TransactionTypeCategory["PurchaseOrderMenu"] = "purchaseOrderMenu";
|
|
13490
|
+
TransactionTypeCategory["SalesOrderOverview"] = "salesOrderOverview";
|
|
13491
|
+
TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
|
|
13492
|
+
TransactionTypeCategory["SalesOrderLogistics"] = "salesOrderLogistics";
|
|
13493
|
+
TransactionTypeCategory["SalesOrderPlanning"] = "salesOrderPlanning";
|
|
13494
|
+
TransactionTypeCategory["SalesOrderDeliveryNote"] = "salesOrderDeliveryNote";
|
|
13495
|
+
TransactionTypeCategory["SalesOrderInvoice"] = "salesOrderInvoice";
|
|
13496
|
+
})(TransactionTypeCategory || (TransactionTypeCategory = {}));
|
|
13497
|
+
|
|
13498
|
+
class TransactionEventService {
|
|
13499
|
+
constructor() {
|
|
13500
|
+
this.addToCartBySku = new Subject();
|
|
13501
|
+
this.addToCartBySelectorResult = new Subject();
|
|
13502
|
+
this.openShoppingCartModule = new Subject();
|
|
13503
|
+
this.loggedIn = new Subject();
|
|
13504
|
+
this.addNewUserToShoppingCartModule = new Subject();
|
|
13505
|
+
this.addUserRelationShoppingCartModule = new Subject();
|
|
13506
|
+
this.addArticleLine = new Subject();
|
|
13507
|
+
this.addTextLine = new Subject();
|
|
13508
|
+
this.addArticleLineAt = new Subject();
|
|
13509
|
+
this.addTextLineAt = new Subject();
|
|
13510
|
+
this.changeLineSequence = new Subject();
|
|
13511
|
+
this.transactionLineClicked = new Subject();
|
|
13512
|
+
this.rightSidebarClose = new Subject();
|
|
13513
|
+
this.scrollContent = new Subject();
|
|
13514
|
+
this.receivedPurchaseOrderCommit = new Subject();
|
|
13515
|
+
this.commitReceivePurchaseOrders = new Subject();
|
|
13516
|
+
this.transactionLineChanged = new Subject();
|
|
13517
|
+
}
|
|
13518
|
+
}
|
|
13519
|
+
TransactionEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
13520
|
+
TransactionEventService.decorators = [
|
|
13521
|
+
{ type: Injectable, args: [{ providedIn: "root" },] }
|
|
13522
|
+
];
|
|
13523
|
+
|
|
13524
|
+
class DynamicBaseComponent {
|
|
13525
|
+
onClose() { }
|
|
13526
|
+
}
|
|
13527
|
+
DynamicBaseComponent.decorators = [
|
|
13528
|
+
{ type: Directive }
|
|
13529
|
+
];
|
|
13530
|
+
|
|
13531
|
+
class TransactionLineSidePanelComponent extends DynamicBaseComponent {
|
|
13532
|
+
constructor(iconService, _service, _transactionEventService) {
|
|
13533
|
+
super();
|
|
13534
|
+
this.iconService = iconService;
|
|
13535
|
+
this._service = _service;
|
|
13536
|
+
this._transactionEventService = _transactionEventService;
|
|
13537
|
+
this.icons = Icon;
|
|
13538
|
+
this.categories = TransactionTypeCategory;
|
|
13539
|
+
this.transactionTypes = TransactionKind;
|
|
13540
|
+
this.cancelClick = new EventEmitter();
|
|
13541
|
+
this.show = true;
|
|
13542
|
+
}
|
|
13543
|
+
showClass() {
|
|
13544
|
+
return true;
|
|
13545
|
+
}
|
|
13546
|
+
handleCancelClick() {
|
|
13547
|
+
this.show = false;
|
|
13548
|
+
setTimeout(() => {
|
|
13549
|
+
this.onClose();
|
|
13550
|
+
}, 200);
|
|
13551
|
+
}
|
|
13552
|
+
}
|
|
13553
|
+
TransactionLineSidePanelComponent.decorators = [
|
|
13554
|
+
{ type: Component, args: [{
|
|
13555
|
+
selector: "co-transaction-line-side-panel",
|
|
13556
|
+
template: `
|
|
13557
|
+
<div class="transaction-line-side-panel-wrapper" *ngIf="show" @showHideSidePanel>
|
|
13558
|
+
<icon (click)="handleCancelClick()" [icon]="icons.Cancel" class="close-button"></icon>
|
|
13559
|
+
<div class="transaction-line-side-panel-header">
|
|
13560
|
+
<div class="transaction-line-side-panel-header-item">
|
|
13561
|
+
<span class="side-panel-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
|
|
13562
|
+
<span class="side-panel-header-field" [textContent]="transactionLine.articleNumber"></span>
|
|
13563
|
+
</div>
|
|
13564
|
+
<div class="side-panel-header-divider"></div>
|
|
13565
|
+
<div class="transaction-line-side-panel-header-item">
|
|
13566
|
+
<span class="side-panel-header-label" [textContent]="'DESCRIPTION'| localize"></span>
|
|
13567
|
+
<span class="side-panel-header-field" [textContent]="transactionLine.goodDescription"></span>
|
|
13568
|
+
</div>
|
|
13569
|
+
<div class="side-panel-header-divider"></div>
|
|
13570
|
+
<div class="transaction-line-side-panel-header-item">
|
|
13571
|
+
<span class="side-panel-header-label" [textContent]="'AMOUNT'| localize"></span>
|
|
13572
|
+
<span class="side-panel-header-field" [textContent]="transactionLine.amount"></span>
|
|
13573
|
+
</div>
|
|
13574
|
+
<div class="side-panel-header-divider"></div>
|
|
13575
|
+
<div class="transaction-line-side-panel-header-item">
|
|
13576
|
+
<span class="side-panel-header-label"
|
|
13577
|
+
[textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? ('TO_REPORT_IN' | localize) : ('PRICE' | localize)"></span>
|
|
13578
|
+
<span class="side-panel-header-field"
|
|
13579
|
+
[textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)"></span>
|
|
13580
|
+
</div>
|
|
13581
|
+
</div>
|
|
13582
|
+
<div class="transaction-line-side-panel-nav-bar">
|
|
13583
|
+
<co-transaction-button-bar
|
|
13584
|
+
[transactionType]="transactionInfo.transactionKind"
|
|
13585
|
+
(buttonClicked)="activeCategory = $event.category"
|
|
13586
|
+
></co-transaction-button-bar>
|
|
13587
|
+
</div>
|
|
13588
|
+
<div class="transaction-line-side-panel-content">
|
|
13589
|
+
<ng-container [ngSwitch]="transactionInfo.transactionKind">
|
|
13590
|
+
<ng-container *ngSwitchCase="transactionTypes.PurchaseOrder">
|
|
13591
|
+
<co-transaction-line-side-panel-purchase
|
|
13592
|
+
[transactionLine]="transactionLine"
|
|
13593
|
+
[transactionInfo]="transactionInfo"
|
|
13594
|
+
[category]="activeCategory"
|
|
13595
|
+
(quantityToReceiveChange)="quantityToReceive = $event"
|
|
13596
|
+
></co-transaction-line-side-panel-purchase>
|
|
13597
|
+
</ng-container>
|
|
13598
|
+
<ng-container *ngSwitchDefault>
|
|
13599
|
+
<co-transaction-line-side-panel-purchase
|
|
13600
|
+
[transactionLine]="transactionLine"
|
|
13601
|
+
[transactionInfo]="transactionInfo"
|
|
13602
|
+
[category]="activeCategory"
|
|
13603
|
+
></co-transaction-line-side-panel-purchase>
|
|
13604
|
+
</ng-container>
|
|
13605
|
+
</ng-container>
|
|
13606
|
+
</div>
|
|
13607
|
+
</div>
|
|
13608
|
+
`,
|
|
13609
|
+
animations: [
|
|
13610
|
+
trigger("showHideSidePanel", [
|
|
13611
|
+
state("void", style({ transform: 'translateX(100%)' })),
|
|
13612
|
+
state("*", style({ transform: 'translateX(0)' })),
|
|
13613
|
+
transition("void <=> *", animate("200ms ease-in-out"))
|
|
13614
|
+
])
|
|
13615
|
+
],
|
|
13616
|
+
encapsulation: ViewEncapsulation.None
|
|
13617
|
+
},] }
|
|
13618
|
+
];
|
|
13619
|
+
TransactionLineSidePanelComponent.ctorParameters = () => [
|
|
13620
|
+
{ type: IconCacheService },
|
|
13621
|
+
{ type: TransactionService },
|
|
13622
|
+
{ type: TransactionEventService }
|
|
13623
|
+
];
|
|
13624
|
+
TransactionLineSidePanelComponent.propDecorators = {
|
|
13625
|
+
transactionLine: [{ type: Input }],
|
|
13626
|
+
transactionInfo: [{ type: Input }],
|
|
13627
|
+
activeCategory: [{ type: Input }],
|
|
13628
|
+
cancelClick: [{ type: Output }],
|
|
13629
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
13630
|
+
};
|
|
13631
|
+
|
|
13632
|
+
class TransactionComponent {
|
|
13633
|
+
constructor(iconCacheService, _service, dynamicComponentService) {
|
|
13634
|
+
this.iconCacheService = iconCacheService;
|
|
13635
|
+
this._service = _service;
|
|
13636
|
+
this.dynamicComponentService = dynamicComponentService;
|
|
13637
|
+
this.viewModes = ContentViewMode;
|
|
13638
|
+
this.icons = Icon;
|
|
13639
|
+
this.showHeader = true;
|
|
13640
|
+
this.showQuickAccess = true;
|
|
13641
|
+
this.showButtonBar = true;
|
|
13642
|
+
this.activeViewMode = ContentViewMode.List;
|
|
13643
|
+
this.showDiscountsSidebar = false;
|
|
13644
|
+
this._subs = [];
|
|
13645
|
+
this._transaction = new TransactionInfoResponse();
|
|
13646
|
+
this._subs.push(this._service.transactionUpdated.subscribe((transaction) => __awaiter(this, void 0, void 0, function* () {
|
|
13647
|
+
if (transaction) {
|
|
13648
|
+
this.transaction = transaction;
|
|
13649
|
+
}
|
|
13650
|
+
})));
|
|
13651
|
+
}
|
|
13652
|
+
set transaction(value) {
|
|
13653
|
+
if (value) {
|
|
13654
|
+
this._transaction = value;
|
|
13268
13655
|
}
|
|
13269
13656
|
}
|
|
13270
13657
|
get transaction() {
|
|
@@ -13304,10 +13691,11 @@ class TransactionComponent {
|
|
|
13304
13691
|
}
|
|
13305
13692
|
handleShowSidePanel(line) {
|
|
13306
13693
|
this.sidePanelTransactionLine = line;
|
|
13307
|
-
this.
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13694
|
+
this.dynamicComponentService.createComponent(TransactionLineSidePanelComponent, {
|
|
13695
|
+
transactionInfo: this.transaction.transactionInfo,
|
|
13696
|
+
transactionLine: this.sidePanelTransactionLine,
|
|
13697
|
+
activeCategory: this.activeCategory
|
|
13698
|
+
});
|
|
13311
13699
|
}
|
|
13312
13700
|
}
|
|
13313
13701
|
TransactionComponent.decorators = [
|
|
@@ -13341,6 +13729,7 @@ TransactionComponent.decorators = [
|
|
|
13341
13729
|
</div>
|
|
13342
13730
|
<div class="transaction-lines-wrapper" *ngIf="activeViewMode === viewModes.List">
|
|
13343
13731
|
<co-transaction-lines
|
|
13732
|
+
[transactionInfo]="transaction.transactionInfo"
|
|
13344
13733
|
[transactionLines]="transaction.transactionLines"
|
|
13345
13734
|
(showSidePanelClicked)="handleShowSidePanel($event)"
|
|
13346
13735
|
(saveTransactionLine)="saveTransactionLine($event)"
|
|
@@ -13367,27 +13756,14 @@ TransactionComponent.decorators = [
|
|
|
13367
13756
|
</div>
|
|
13368
13757
|
<co-discount *ngIf="showDiscountsSidebar">
|
|
13369
13758
|
</co-discount>
|
|
13370
|
-
|
|
13371
|
-
<co-transaction-line-side-panel *ngIf="showSidePanel" @showHideSidePanel
|
|
13372
|
-
[transactionInfo]="transaction.transactionInfo"
|
|
13373
|
-
[transactionLine]="sidePanelTransactionLine"
|
|
13374
|
-
[activeCategory]="activeCategory"
|
|
13375
|
-
(cancelClick)="handleCloseSidePanel($event)"
|
|
13376
|
-
></co-transaction-line-side-panel>
|
|
13377
13759
|
`,
|
|
13378
|
-
animations: [
|
|
13379
|
-
trigger("showHideSidePanel", [
|
|
13380
|
-
state("void", style({ transform: 'translateX(100%)' })),
|
|
13381
|
-
state("*", style({ transform: 'translateX(0)' })),
|
|
13382
|
-
transition("void <=> *", animate("200ms ease-in-out"))
|
|
13383
|
-
])
|
|
13384
|
-
],
|
|
13385
13760
|
encapsulation: ViewEncapsulation.None
|
|
13386
13761
|
},] }
|
|
13387
13762
|
];
|
|
13388
13763
|
TransactionComponent.ctorParameters = () => [
|
|
13389
13764
|
{ type: IconCacheService },
|
|
13390
|
-
{ type: TransactionService }
|
|
13765
|
+
{ type: TransactionService },
|
|
13766
|
+
{ type: DynamicComponentService }
|
|
13391
13767
|
];
|
|
13392
13768
|
TransactionComponent.propDecorators = {
|
|
13393
13769
|
transaction: [{ type: Input }],
|
|
@@ -14052,7 +14428,7 @@ TransactionBaseGridComponent.decorators = [
|
|
|
14052
14428
|
</co-simple-grid-column>
|
|
14053
14429
|
<co-simple-grid-column [headerText]="''" [width]="40" [field]="'sideMenuButton'" [order]="400">
|
|
14054
14430
|
<ng-template #template let-row = "row">
|
|
14055
|
-
<co-transaction-line-action-buttons class="transaction-line-action-buttons"
|
|
14431
|
+
<co-transaction-line-action-buttons *ngIf="row.isArticle" class="transaction-line-action-buttons"
|
|
14056
14432
|
[transactionLine]="row"
|
|
14057
14433
|
(sidePanelButtonClicked)="openSidePanel(row)"
|
|
14058
14434
|
></co-transaction-line-action-buttons>
|
|
@@ -14067,137 +14443,6 @@ TransactionBaseGridComponent.propDecorators = {
|
|
|
14067
14443
|
showClass: [{ type: HostBinding, args: ['class.co-transaction-base-grid',] }]
|
|
14068
14444
|
};
|
|
14069
14445
|
|
|
14070
|
-
var TransactionTypeCategory;
|
|
14071
|
-
(function (TransactionTypeCategory) {
|
|
14072
|
-
TransactionTypeCategory["PurchaseOrderOverview"] = "purchaseOrderOverview";
|
|
14073
|
-
TransactionTypeCategory["PurchaseOrderOrderConfirmation"] = "purchaseOrderOrderConfirmation";
|
|
14074
|
-
TransactionTypeCategory["PurchaseOrderTransport"] = "purchaseOrderTransport";
|
|
14075
|
-
TransactionTypeCategory["PurchaseOrderReceivedGoods"] = "purchaseOrderReceivedGoods";
|
|
14076
|
-
TransactionTypeCategory["PurchaseOrderInvoiceCheck"] = "purchaseOrderInvoiceCheck";
|
|
14077
|
-
TransactionTypeCategory["PurchaseOrderMenu"] = "purchaseOrderMenu";
|
|
14078
|
-
TransactionTypeCategory["SalesOrderOverview"] = "salesOrderOverview";
|
|
14079
|
-
TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
|
|
14080
|
-
TransactionTypeCategory["SalesOrderLogistics"] = "salesOrderLogistics";
|
|
14081
|
-
TransactionTypeCategory["SalesOrderPlanning"] = "salesOrderPlanning";
|
|
14082
|
-
TransactionTypeCategory["SalesOrderDeliveryNote"] = "salesOrderDeliveryNote";
|
|
14083
|
-
TransactionTypeCategory["SalesOrderInvoice"] = "salesOrderInvoice";
|
|
14084
|
-
})(TransactionTypeCategory || (TransactionTypeCategory = {}));
|
|
14085
|
-
|
|
14086
|
-
class TransactionEventService {
|
|
14087
|
-
constructor() {
|
|
14088
|
-
this.addToCartBySku = new Subject();
|
|
14089
|
-
this.addToCartBySelectorResult = new Subject();
|
|
14090
|
-
this.openShoppingCartModule = new Subject();
|
|
14091
|
-
this.loggedIn = new Subject();
|
|
14092
|
-
this.addNewUserToShoppingCartModule = new Subject();
|
|
14093
|
-
this.addUserRelationShoppingCartModule = new Subject();
|
|
14094
|
-
this.addArticleLine = new Subject();
|
|
14095
|
-
this.addTextLine = new Subject();
|
|
14096
|
-
this.addArticleLineAt = new Subject();
|
|
14097
|
-
this.addTextLineAt = new Subject();
|
|
14098
|
-
this.changeLineSequence = new Subject();
|
|
14099
|
-
this.transactionLineClicked = new Subject();
|
|
14100
|
-
this.rightSidebarClose = new Subject();
|
|
14101
|
-
this.scrollContent = new Subject();
|
|
14102
|
-
this.receivedPurchaseOrderCommit = new Subject();
|
|
14103
|
-
this.commitReceivePurchaseOrders = new Subject();
|
|
14104
|
-
this.transactionLineChanged = new Subject();
|
|
14105
|
-
}
|
|
14106
|
-
}
|
|
14107
|
-
TransactionEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
14108
|
-
TransactionEventService.decorators = [
|
|
14109
|
-
{ type: Injectable, args: [{ providedIn: "root" },] }
|
|
14110
|
-
];
|
|
14111
|
-
|
|
14112
|
-
class TransactionLineSidePanelComponent {
|
|
14113
|
-
constructor(iconService, _service, _transactionEventService) {
|
|
14114
|
-
this.iconService = iconService;
|
|
14115
|
-
this._service = _service;
|
|
14116
|
-
this._transactionEventService = _transactionEventService;
|
|
14117
|
-
this.icons = Icon;
|
|
14118
|
-
this.categories = TransactionTypeCategory;
|
|
14119
|
-
this.transactionTypes = TransactionKind;
|
|
14120
|
-
this.transactionLine = new TransactionLineInfo();
|
|
14121
|
-
this.transactionInfo = new TransactionInfo();
|
|
14122
|
-
this.cancelClick = new EventEmitter();
|
|
14123
|
-
}
|
|
14124
|
-
showClass() {
|
|
14125
|
-
return true;
|
|
14126
|
-
}
|
|
14127
|
-
handleCancelClick(event) {
|
|
14128
|
-
this.cancelClick.next(event);
|
|
14129
|
-
}
|
|
14130
|
-
}
|
|
14131
|
-
TransactionLineSidePanelComponent.decorators = [
|
|
14132
|
-
{ type: Component, args: [{
|
|
14133
|
-
selector: "co-transaction-line-side-panel",
|
|
14134
|
-
template: `
|
|
14135
|
-
<icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
|
|
14136
|
-
<div class="transaction-line-side-panel-header">
|
|
14137
|
-
<div class="transaction-line-side-panel-header-item">
|
|
14138
|
-
<span class="side-panel-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
|
|
14139
|
-
<span class="side-panel-header-field" [textContent]="transactionLine.articleNumber"></span>
|
|
14140
|
-
</div>
|
|
14141
|
-
<div class="side-panel-header-divider"></div>
|
|
14142
|
-
<div class="transaction-line-side-panel-header-item">
|
|
14143
|
-
<span class="side-panel-header-label" [textContent]="'DESCRIPTION'| localize"></span>
|
|
14144
|
-
<span class="side-panel-header-field" [textContent]="transactionLine.goodDescription"></span>
|
|
14145
|
-
</div>
|
|
14146
|
-
<div class="side-panel-header-divider"></div>
|
|
14147
|
-
<div class="transaction-line-side-panel-header-item">
|
|
14148
|
-
<span class="side-panel-header-label" [textContent]="'AMOUNT'| localize"></span>
|
|
14149
|
-
<span class="side-panel-header-field" [textContent]="transactionLine.amount"></span>
|
|
14150
|
-
</div>
|
|
14151
|
-
<div class="side-panel-header-divider"></div>
|
|
14152
|
-
<div class="transaction-line-side-panel-header-item">
|
|
14153
|
-
<span class="side-panel-header-label"
|
|
14154
|
-
[textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? ('TO_REPORT_IN' | localize) : ('PRICE' | localize)"></span>
|
|
14155
|
-
<span class="side-panel-header-field"
|
|
14156
|
-
[textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)"></span>
|
|
14157
|
-
</div>
|
|
14158
|
-
</div>
|
|
14159
|
-
<div class="transaction-line-side-panel-nav-bar">
|
|
14160
|
-
<co-transaction-button-bar
|
|
14161
|
-
[transactionType]="transactionInfo.transactionKind"
|
|
14162
|
-
(buttonClicked)="activeCategory = $event.category"
|
|
14163
|
-
></co-transaction-button-bar>
|
|
14164
|
-
</div>
|
|
14165
|
-
<div class="transaction-line-side-panel-content">
|
|
14166
|
-
<ng-container [ngSwitch]="transactionInfo.transactionKind">
|
|
14167
|
-
<ng-container *ngSwitchCase="transactionTypes.PurchaseOrder">
|
|
14168
|
-
<co-transaction-line-side-panel-purchase
|
|
14169
|
-
[transactionInfo]="transactionInfo"
|
|
14170
|
-
[transactionLine]="transactionLine"
|
|
14171
|
-
[category]="activeCategory"
|
|
14172
|
-
(quantityToReceiveChange)="quantityToReceive = $event"
|
|
14173
|
-
></co-transaction-line-side-panel-purchase>
|
|
14174
|
-
</ng-container>
|
|
14175
|
-
<ng-container *ngSwitchDefault>
|
|
14176
|
-
<co-transaction-line-side-panel-purchase
|
|
14177
|
-
[transactionInfo]="transactionInfo"
|
|
14178
|
-
[transactionLine]="transactionLine"
|
|
14179
|
-
[category]="activeCategory"
|
|
14180
|
-
></co-transaction-line-side-panel-purchase>
|
|
14181
|
-
</ng-container>
|
|
14182
|
-
</ng-container>
|
|
14183
|
-
</div>
|
|
14184
|
-
`,
|
|
14185
|
-
encapsulation: ViewEncapsulation.None
|
|
14186
|
-
},] }
|
|
14187
|
-
];
|
|
14188
|
-
TransactionLineSidePanelComponent.ctorParameters = () => [
|
|
14189
|
-
{ type: IconCacheService },
|
|
14190
|
-
{ type: TransactionService },
|
|
14191
|
-
{ type: TransactionEventService }
|
|
14192
|
-
];
|
|
14193
|
-
TransactionLineSidePanelComponent.propDecorators = {
|
|
14194
|
-
transactionLine: [{ type: Input }],
|
|
14195
|
-
transactionInfo: [{ type: Input }],
|
|
14196
|
-
activeCategory: [{ type: Input }],
|
|
14197
|
-
cancelClick: [{ type: Output }],
|
|
14198
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
14199
|
-
};
|
|
14200
|
-
|
|
14201
14446
|
class TransactionLineSidePanelDefaultComponent {
|
|
14202
14447
|
constructor(iconService, _transactionService) {
|
|
14203
14448
|
this.iconService = iconService;
|
|
@@ -14358,64 +14603,6 @@ TransactionLineQuantityModule.decorators = [
|
|
|
14358
14603
|
},] }
|
|
14359
14604
|
];
|
|
14360
14605
|
|
|
14361
|
-
class TransactionLineDeliveryDateComponent extends TransactionLineBaseComponent {
|
|
14362
|
-
constructor(_transactionService) {
|
|
14363
|
-
super();
|
|
14364
|
-
this._transactionService = _transactionService;
|
|
14365
|
-
}
|
|
14366
|
-
commit(date) {
|
|
14367
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14368
|
-
if (this.transactionLine.deliveryDate !== date) {
|
|
14369
|
-
const oldDate = this.transactionLine.deliveryDate;
|
|
14370
|
-
const success = yield this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date);
|
|
14371
|
-
if (!success) {
|
|
14372
|
-
this.transactionLine.deliveryDate = oldDate;
|
|
14373
|
-
}
|
|
14374
|
-
return success;
|
|
14375
|
-
}
|
|
14376
|
-
return true;
|
|
14377
|
-
});
|
|
14378
|
-
}
|
|
14379
|
-
transactionInfoSet() {
|
|
14380
|
-
this.readonly = this.readonly || (this.transactionInfo.deliveryDateDefinitive || !this.transactionInfo.allowPartialDelivery);
|
|
14381
|
-
}
|
|
14382
|
-
}
|
|
14383
|
-
TransactionLineDeliveryDateComponent.decorators = [
|
|
14384
|
-
{ type: Component, args: [{
|
|
14385
|
-
selector: "co-transaction-line-delivery-date",
|
|
14386
|
-
template: `
|
|
14387
|
-
<co-input-date
|
|
14388
|
-
[placeholder]="'DELIVERY_DATE' | localize"
|
|
14389
|
-
[model]="transactionLine.deliveryDate"
|
|
14390
|
-
[readonly]="readonly"
|
|
14391
|
-
(modelChange)="commit($event)"
|
|
14392
|
-
></co-input-date>
|
|
14393
|
-
`,
|
|
14394
|
-
encapsulation: ViewEncapsulation.None
|
|
14395
|
-
},] }
|
|
14396
|
-
];
|
|
14397
|
-
TransactionLineDeliveryDateComponent.ctorParameters = () => [
|
|
14398
|
-
{ type: TransactionService }
|
|
14399
|
-
];
|
|
14400
|
-
|
|
14401
|
-
class TransactionLineDeliveryDateModule {
|
|
14402
|
-
}
|
|
14403
|
-
TransactionLineDeliveryDateModule.decorators = [
|
|
14404
|
-
{ type: NgModule, args: [{
|
|
14405
|
-
imports: [
|
|
14406
|
-
CommonModule,
|
|
14407
|
-
PipeModule,
|
|
14408
|
-
InputDatePickerModule
|
|
14409
|
-
],
|
|
14410
|
-
declarations: [
|
|
14411
|
-
TransactionLineDeliveryDateComponent
|
|
14412
|
-
],
|
|
14413
|
-
exports: [
|
|
14414
|
-
TransactionLineDeliveryDateComponent
|
|
14415
|
-
]
|
|
14416
|
-
},] }
|
|
14417
|
-
];
|
|
14418
|
-
|
|
14419
14606
|
class TransactionLineReferenceComponent extends TransactionLineBaseComponent {
|
|
14420
14607
|
constructor(_transactionService) {
|
|
14421
14608
|
super();
|
|
@@ -14631,8 +14818,8 @@ TransactionHistoryGridComponent.decorators = [
|
|
|
14631
14818
|
<co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [order]="20" [width]="100">
|
|
14632
14819
|
<ng-template #template let-row="row">
|
|
14633
14820
|
<div class="row-container">
|
|
14634
|
-
<span class="row" [textContent]="row.
|
|
14635
|
-
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.
|
|
14821
|
+
<span class="row" [textContent]="row.date | date"></span>
|
|
14822
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.date | date"></span>
|
|
14636
14823
|
</div>
|
|
14637
14824
|
</ng-template>
|
|
14638
14825
|
</co-simple-grid-column>
|
|
@@ -14766,9 +14953,8 @@ TransactionHistoryGridModule.decorators = [
|
|
|
14766
14953
|
];
|
|
14767
14954
|
|
|
14768
14955
|
class TransactionReceivingGoodsHistoryComponent {
|
|
14769
|
-
constructor(_service
|
|
14956
|
+
constructor(_service) {
|
|
14770
14957
|
this._service = _service;
|
|
14771
|
-
this._datePipe = _datePipe;
|
|
14772
14958
|
this.reloadReceivingGoodsHistory = new EventEmitter();
|
|
14773
14959
|
}
|
|
14774
14960
|
set goodsReceiptHistory(value) {
|
|
@@ -14777,10 +14963,7 @@ class TransactionReceivingGoodsHistoryComponent {
|
|
|
14777
14963
|
}
|
|
14778
14964
|
}
|
|
14779
14965
|
get goodsReceiptHistory() {
|
|
14780
|
-
return this._goodsReceiptHistory
|
|
14781
|
-
receipt.receiptDate = this._datePipe.transform(receipt.receiptDate);
|
|
14782
|
-
return receipt;
|
|
14783
|
-
});
|
|
14966
|
+
return this._goodsReceiptHistory;
|
|
14784
14967
|
}
|
|
14785
14968
|
showClass() {
|
|
14786
14969
|
return true;
|
|
@@ -14835,8 +15018,7 @@ TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
|
14835
15018
|
},] }
|
|
14836
15019
|
];
|
|
14837
15020
|
TransactionReceivingGoodsHistoryComponent.ctorParameters = () => [
|
|
14838
|
-
{ type: TransactionService }
|
|
14839
|
-
{ type: DatePipe }
|
|
15021
|
+
{ type: TransactionService }
|
|
14840
15022
|
];
|
|
14841
15023
|
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
14842
15024
|
goodsReceiptHistory: [{ type: Input }],
|
|
@@ -14876,7 +15058,10 @@ class ArticleService {
|
|
|
14876
15058
|
}
|
|
14877
15059
|
getWarehouseLocations(warehouseNr) {
|
|
14878
15060
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14879
|
-
|
|
15061
|
+
// @ts-ignore
|
|
15062
|
+
return this._selectMultipleCacheService.requestCache(StockLocation, () => {
|
|
15063
|
+
return this._articleConnectorService.getWarehouseLocations(warehouseNr);
|
|
15064
|
+
}).getValue();
|
|
14880
15065
|
});
|
|
14881
15066
|
}
|
|
14882
15067
|
}
|
|
@@ -14892,10 +15077,11 @@ ArticleService.ctorParameters = () => [
|
|
|
14892
15077
|
];
|
|
14893
15078
|
|
|
14894
15079
|
class TransactionReceivingGoodsDetailsComponent {
|
|
14895
|
-
constructor(_formMaster, _service, _articleService) {
|
|
15080
|
+
constructor(_formMaster, _service, _articleService, _dialogService) {
|
|
14896
15081
|
this._formMaster = _formMaster;
|
|
14897
15082
|
this._service = _service;
|
|
14898
15083
|
this._articleService = _articleService;
|
|
15084
|
+
this._dialogService = _dialogService;
|
|
14899
15085
|
this.reloadReceivingGoodsHistory = new EventEmitter();
|
|
14900
15086
|
this.receiptDetails = new PurchaseOrderLineReceiptDetails();
|
|
14901
15087
|
this.request = new ReceiveGoodsForPurchaseOrderRequest();
|
|
@@ -14961,6 +15147,13 @@ class TransactionReceivingGoodsDetailsComponent {
|
|
|
14961
15147
|
}
|
|
14962
15148
|
});
|
|
14963
15149
|
}
|
|
15150
|
+
openWarehouseLocationDialog() {
|
|
15151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15152
|
+
yield this._dialogService.showWarehouseLocation().then((result) => {
|
|
15153
|
+
this.receiptDetails.locationNr = result;
|
|
15154
|
+
});
|
|
15155
|
+
});
|
|
15156
|
+
}
|
|
14964
15157
|
}
|
|
14965
15158
|
TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
14966
15159
|
{ type: Component, args: [{
|
|
@@ -14987,17 +15180,9 @@ TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
|
14987
15180
|
[disabled]="transactionLine.warehouseNumber !== undefined"
|
|
14988
15181
|
[required]="transactionLine.isWarehouseRequired"
|
|
14989
15182
|
[placeholder]="'WAREHOUSE' | localize"></co-input-text>
|
|
14990
|
-
<
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
[collection]="locations"
|
|
14994
|
-
[fields]="locationDropdownFields"
|
|
14995
|
-
[(model)]="receiptDetails.locationNr"
|
|
14996
|
-
[required]="locationRequired()"
|
|
14997
|
-
[readonly]="receiptDetails.quantityToReceive === 0 || readonly"
|
|
14998
|
-
[disabled]="receiptDetails.quantityToReceive === 0"
|
|
14999
|
-
[placeholder]="'LOCATION' | localize"
|
|
15000
|
-
></co-drop-down-list>
|
|
15183
|
+
<div class="location-wrapper" (click)="openWarehouseLocationDialog()">
|
|
15184
|
+
<div [textContent]="receiptDetails.locationNr ? receiptDetails.locationNr : ('LOCATION' | localize)"></div>
|
|
15185
|
+
</div>
|
|
15001
15186
|
<co-input-text class="details-input"
|
|
15002
15187
|
[(model)]="request.packingSlipNr"
|
|
15003
15188
|
[placeholder]="'PACKING_SLIP' | localize"
|
|
@@ -15015,13 +15200,13 @@ TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
|
15015
15200
|
<co-input-text class="details-input" [(model)]="receiptDetails.batchNr"
|
|
15016
15201
|
[type]="'number'"
|
|
15017
15202
|
[hideArrowButtons]="true"
|
|
15018
|
-
[readonly]="readonly"
|
|
15203
|
+
[readonly]="readonly || !transactionLine.isBatchNrRequired"
|
|
15019
15204
|
[required]="transactionLine.isBatchNrRequired"
|
|
15020
15205
|
[placeholder]="'BATCH_NUMBER' | localize"></co-input-text>
|
|
15021
15206
|
<co-input-text class="details-input" [(model)]="receiptDetails.serialNr"
|
|
15022
15207
|
[type]="'number'"
|
|
15023
15208
|
[hideArrowButtons]="true"
|
|
15024
|
-
[readonly]="readonly"
|
|
15209
|
+
[readonly]="readonly || !transactionLine.isSerialNrRequired"
|
|
15025
15210
|
[required]="transactionLine.isSerialNrRequired"
|
|
15026
15211
|
[placeholder]="'SERIAL_NUMBER' | localize"></co-input-text>
|
|
15027
15212
|
<!-- <co-input-text class="details-input" [(model)]="receiptDetails.refLineNr"-->
|
|
@@ -15031,18 +15216,22 @@ TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
|
15031
15216
|
</co-form>
|
|
15032
15217
|
|
|
15033
15218
|
<div class="save-cancel-wrapper" *ngIf="!readonly">
|
|
15034
|
-
<co-button class="button-wrapper" [label]="'SAVE' | localize" (click)="handleSaveDetailsEdit()"></co-button>
|
|
15035
|
-
<co-button class="button-wrapper" [label]="'CANCEL' | localize" (click)="handleCancelDetailsEdit()"></co-button>
|
|
15219
|
+
<co-button class="button-wrapper clickable" [disabled]="saveButtonDisabled || amountLeftToReceive === 0" [label]="'SAVE' | localize" (click)="handleSaveDetailsEdit()"></co-button>
|
|
15220
|
+
<co-button class="button-wrapper clickable" [label]="'CANCEL' | localize" (click)="handleCancelDetailsEdit()"></co-button>
|
|
15036
15221
|
</div>
|
|
15037
15222
|
</div>
|
|
15038
15223
|
`,
|
|
15224
|
+
providers: [
|
|
15225
|
+
FormMasterService
|
|
15226
|
+
],
|
|
15039
15227
|
encapsulation: ViewEncapsulation.None
|
|
15040
15228
|
},] }
|
|
15041
15229
|
];
|
|
15042
15230
|
TransactionReceivingGoodsDetailsComponent.ctorParameters = () => [
|
|
15043
15231
|
{ type: FormMasterService },
|
|
15044
15232
|
{ type: TransactionService },
|
|
15045
|
-
{ type: ArticleService }
|
|
15233
|
+
{ type: ArticleService },
|
|
15234
|
+
{ type: DialogService }
|
|
15046
15235
|
];
|
|
15047
15236
|
TransactionReceivingGoodsDetailsComponent.propDecorators = {
|
|
15048
15237
|
amountLeftToReceive: [{ type: Input }],
|
|
@@ -15829,12 +16018,14 @@ class ReceiveGoodsViewModel {
|
|
|
15829
16018
|
}
|
|
15830
16019
|
|
|
15831
16020
|
class TransactionReceivedGoodsGridComponent extends TransactionGridBaseComponent {
|
|
15832
|
-
constructor(_imageService, _transactionService, _transactionEventService, _articleService) {
|
|
16021
|
+
constructor(_imageService, _transactionService, _transactionEventService, _articleService, _dialogService) {
|
|
15833
16022
|
super(_imageService);
|
|
15834
16023
|
this._imageService = _imageService;
|
|
15835
16024
|
this._transactionService = _transactionService;
|
|
15836
16025
|
this._transactionEventService = _transactionEventService;
|
|
15837
16026
|
this._articleService = _articleService;
|
|
16027
|
+
this._dialogService = _dialogService;
|
|
16028
|
+
this.columnAlign = ColumnAlign;
|
|
15838
16029
|
this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
15839
16030
|
this.rowViewModels = new Map();
|
|
15840
16031
|
this._subscriptions = [];
|
|
@@ -15857,10 +16048,12 @@ class TransactionReceivedGoodsGridComponent extends TransactionGridBaseComponent
|
|
|
15857
16048
|
}
|
|
15858
16049
|
handleRowVisible(row) {
|
|
15859
16050
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15860
|
-
|
|
15861
|
-
.
|
|
15862
|
-
|
|
15863
|
-
|
|
16051
|
+
if (row.isArticle) {
|
|
16052
|
+
yield this._transactionService.getGoodsReceiptStatus(this.transactionId, row.lineNr)
|
|
16053
|
+
.then((result) => {
|
|
16054
|
+
this.rowViewModels.set(row, new ReceiveGoodsViewModel(row, result, result.quantityToReceive === 0, result.quantityToReceive));
|
|
16055
|
+
});
|
|
16056
|
+
}
|
|
15864
16057
|
});
|
|
15865
16058
|
}
|
|
15866
16059
|
locationRequired(row) {
|
|
@@ -15917,30 +16110,40 @@ class TransactionReceivedGoodsGridComponent extends TransactionGridBaseComponent
|
|
|
15917
16110
|
receiveGoodsViewModel.goodsReceiptStatus.quantityToReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
15918
16111
|
receiveGoodsViewModel.toReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
15919
16112
|
}
|
|
16113
|
+
openWarehouseLocationDialog(line) {
|
|
16114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16115
|
+
yield this._dialogService.showWarehouseLocation().then((result) => {
|
|
16116
|
+
this.getRowViewModel(line).location = result;
|
|
16117
|
+
});
|
|
16118
|
+
});
|
|
16119
|
+
}
|
|
15920
16120
|
}
|
|
15921
16121
|
TransactionReceivedGoodsGridComponent.decorators = [
|
|
15922
16122
|
{ type: Component, args: [{
|
|
15923
16123
|
selector: "co-transaction-received-goods-grid",
|
|
15924
16124
|
template: `
|
|
15925
16125
|
<co-transaction-base-grid [transactionLines]="transactionLines" (sidePanelClicked)="openSidePanel($event)" (rowVisible)="handleRowVisible($event)">
|
|
15926
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'" [order]="40"></co-simple-grid-column>
|
|
16126
|
+
<co-simple-grid-column [textAlign]="columnAlign.Center" [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'" [order]="40"></co-simple-grid-column>
|
|
15927
16127
|
<co-simple-grid-column [headerText]="'LOCATION' | localize" [order]="45">
|
|
15928
16128
|
<ng-template #template let-row = "row">
|
|
15929
|
-
<
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
[
|
|
15936
|
-
[
|
|
15937
|
-
|
|
16129
|
+
<div *ngIf="row.isArticle" class="location-wrapper" (click)="openWarehouseLocationDialog(row)">
|
|
16130
|
+
<div [textContent]="getRowViewModel(row).location ? getRowViewModel(row).location : '-'"></div>
|
|
16131
|
+
</div>
|
|
16132
|
+
<!-- <co-drop-down-list-->
|
|
16133
|
+
<!-- noTriangleGraphic-->
|
|
16134
|
+
<!-- (focus)="handleDropDownSelected(row.warehouseNumber)"-->
|
|
16135
|
+
<!-- [required]="locationRequired(row) && getRowViewModel(row).goodsReceiptStatus.quantityToReceive > 0"-->
|
|
16136
|
+
<!-- [collection]="locations"-->
|
|
16137
|
+
<!-- [fields]="locationDropdownFields"-->
|
|
16138
|
+
<!-- [(model)]="getRowViewModel(row).location"-->
|
|
16139
|
+
<!-- [disabled]="getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0"-->
|
|
16140
|
+
<!-- ></co-drop-down-list>-->
|
|
15938
16141
|
</ng-template>
|
|
15939
16142
|
</co-simple-grid-column>
|
|
15940
|
-
<co-simple-grid-column [headerText]="'IN_ORDER' | localize" [field]="'amount'" [order]="50"></co-simple-grid-column>
|
|
16143
|
+
<co-simple-grid-column [textAlign]="columnAlign.Center" [headerText]="'IN_ORDER' | localize" [field]="'amount'" [order]="50"></co-simple-grid-column>
|
|
15941
16144
|
<co-simple-grid-column [headerText]="'RECEIVED' | localize" [order]="51">
|
|
15942
16145
|
<ng-template #template let-row = "row">
|
|
15943
|
-
<co-input-number-picker
|
|
16146
|
+
<co-input-number-picker *ngIf="row.isArticle"
|
|
15944
16147
|
[min]="getRowViewModel(row).goodsReceiptStatus.quantityToReceive > 0 ? 1 : 0"
|
|
15945
16148
|
[max]="getRowViewModel(row).goodsReceiptStatus.quantityToReceive"
|
|
15946
16149
|
[(model)]="getRowViewModel(row).toReceive"
|
|
@@ -15949,10 +16152,10 @@ TransactionReceivedGoodsGridComponent.decorators = [
|
|
|
15949
16152
|
></co-input-number-picker>
|
|
15950
16153
|
</ng-template>
|
|
15951
16154
|
</co-simple-grid-column>
|
|
15952
|
-
<co-simple-grid-column [headerText]="'BATCH' | localize" [field]="'inOrder'" [order]="52"></co-simple-grid-column>
|
|
15953
|
-
<co-simple-grid-column [headerText]="'Commit button'" [field]="'commitButton'" [order]="55">
|
|
16155
|
+
<co-simple-grid-column [textAlign]="columnAlign.Center" [headerText]="'BATCH' | localize" [field]="'inOrder'" [order]="52"></co-simple-grid-column>
|
|
16156
|
+
<co-simple-grid-column [textAlign]="columnAlign.Center" [headerText]="'Commit button'" [field]="'commitButton'" [order]="55">
|
|
15954
16157
|
<ng-template #template let-row = "row">
|
|
15955
|
-
<co-input-checkbox
|
|
16158
|
+
<co-input-checkbox *ngIf="row.isArticle"
|
|
15956
16159
|
[(model)]="getRowViewModel(row).selected"
|
|
15957
16160
|
[disabled]="getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0"
|
|
15958
16161
|
></co-input-checkbox>
|
|
@@ -15967,7 +16170,8 @@ TransactionReceivedGoodsGridComponent.ctorParameters = () => [
|
|
|
15967
16170
|
{ type: TransactionImageService },
|
|
15968
16171
|
{ type: TransactionService },
|
|
15969
16172
|
{ type: TransactionEventService },
|
|
15970
|
-
{ type: ArticleService }
|
|
16173
|
+
{ type: ArticleService },
|
|
16174
|
+
{ type: DialogService }
|
|
15971
16175
|
];
|
|
15972
16176
|
TransactionReceivedGoodsGridComponent.propDecorators = {
|
|
15973
16177
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-received-goods-grid",] }]
|
|
@@ -16481,7 +16685,6 @@ class TransactionLineSidePanelPurchaseComponent {
|
|
|
16481
16685
|
this._service = _service;
|
|
16482
16686
|
this._transactionEventService = _transactionEventService;
|
|
16483
16687
|
this.categories = TransactionTypeCategory;
|
|
16484
|
-
this.transactionLine = new TransactionLineInfo();
|
|
16485
16688
|
this.quantityToReceiveChange = new EventEmitter();
|
|
16486
16689
|
this.goodsReceiptStatus = new GoodsReceiptStatusWithHistory();
|
|
16487
16690
|
this._transactionInfo = new TransactionInfo();
|
|
@@ -16557,8 +16760,8 @@ TransactionLineSidePanelPurchaseComponent.ctorParameters = () => [
|
|
|
16557
16760
|
{ type: TransactionEventService }
|
|
16558
16761
|
];
|
|
16559
16762
|
TransactionLineSidePanelPurchaseComponent.propDecorators = {
|
|
16560
|
-
transactionInfo: [{ type: Input }],
|
|
16561
16763
|
transactionLine: [{ type: Input }],
|
|
16764
|
+
transactionInfo: [{ type: Input }],
|
|
16562
16765
|
category: [{ type: Input }],
|
|
16563
16766
|
quantityToReceiveChange: [{ type: Output }],
|
|
16564
16767
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel-purchase",] }]
|
|
@@ -17151,6 +17354,86 @@ TransactionGridModule.decorators = [
|
|
|
17151
17354
|
},] }
|
|
17152
17355
|
];
|
|
17153
17356
|
|
|
17357
|
+
// @ts-ignore
|
|
17358
|
+
class TransactionLineWarehouseLocationComponent extends TransactionLineBaseComponent {
|
|
17359
|
+
constructor(_articleService) {
|
|
17360
|
+
super();
|
|
17361
|
+
this._articleService = _articleService;
|
|
17362
|
+
this.codeField = 'locationNo';
|
|
17363
|
+
this.propsForLabel = ['locationNo', 'description'];
|
|
17364
|
+
}
|
|
17365
|
+
ngOnInit() {
|
|
17366
|
+
this.viewModels.length = 0;
|
|
17367
|
+
this._articleService.getWarehouseLocations(this.warehouseNr).then((locations) => {
|
|
17368
|
+
this.collection = locations.slice();
|
|
17369
|
+
});
|
|
17370
|
+
}
|
|
17371
|
+
commit(locationNr) {
|
|
17372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17373
|
+
// not now
|
|
17374
|
+
return true;
|
|
17375
|
+
});
|
|
17376
|
+
}
|
|
17377
|
+
}
|
|
17378
|
+
TransactionLineWarehouseLocationComponent.decorators = [
|
|
17379
|
+
{ type: Component, args: [{
|
|
17380
|
+
selector: "co-transaction-line-warehouse-location",
|
|
17381
|
+
template: `
|
|
17382
|
+
<co-transaction-line-checkbox-list
|
|
17383
|
+
[collection]="viewModelsFiltered"
|
|
17384
|
+
[readonly]="readonly"
|
|
17385
|
+
(checked)="handleChecked($event)"
|
|
17386
|
+
></co-transaction-line-checkbox-list>
|
|
17387
|
+
`,
|
|
17388
|
+
encapsulation: ViewEncapsulation.None
|
|
17389
|
+
},] }
|
|
17390
|
+
];
|
|
17391
|
+
TransactionLineWarehouseLocationComponent.ctorParameters = () => [
|
|
17392
|
+
{ type: ArticleService }
|
|
17393
|
+
];
|
|
17394
|
+
TransactionLineWarehouseLocationComponent.propDecorators = {
|
|
17395
|
+
warehouseNr: [{ type: Input }]
|
|
17396
|
+
};
|
|
17397
|
+
|
|
17398
|
+
class TransactionLineWarehouseLocationModule {
|
|
17399
|
+
}
|
|
17400
|
+
TransactionLineWarehouseLocationModule.decorators = [
|
|
17401
|
+
{ type: NgModule, args: [{
|
|
17402
|
+
imports: [
|
|
17403
|
+
CommonModule,
|
|
17404
|
+
InputCheckboxModule,
|
|
17405
|
+
TransactionLineCheckboxModule
|
|
17406
|
+
],
|
|
17407
|
+
declarations: [
|
|
17408
|
+
TransactionLineWarehouseLocationComponent
|
|
17409
|
+
],
|
|
17410
|
+
exports: [
|
|
17411
|
+
TransactionLineWarehouseLocationComponent
|
|
17412
|
+
]
|
|
17413
|
+
},] }
|
|
17414
|
+
];
|
|
17415
|
+
|
|
17416
|
+
class DialogTransactionLineWarehouseLocationModule {
|
|
17417
|
+
}
|
|
17418
|
+
DialogTransactionLineWarehouseLocationModule.decorators = [
|
|
17419
|
+
{ type: NgModule, args: [{
|
|
17420
|
+
imports: [
|
|
17421
|
+
CommonModule,
|
|
17422
|
+
CoDialogModule,
|
|
17423
|
+
DialogHeaderSearchModule,
|
|
17424
|
+
ButtonModule,
|
|
17425
|
+
PipeModule,
|
|
17426
|
+
TransactionLineWarehouseLocationModule
|
|
17427
|
+
],
|
|
17428
|
+
declarations: [
|
|
17429
|
+
DialogTransactionLineWarehouseLocationComponent
|
|
17430
|
+
],
|
|
17431
|
+
exports: [
|
|
17432
|
+
DialogTransactionLineWarehouseLocationComponent
|
|
17433
|
+
]
|
|
17434
|
+
},] }
|
|
17435
|
+
];
|
|
17436
|
+
|
|
17154
17437
|
class TransactionReceivedGoodsGridModule {
|
|
17155
17438
|
}
|
|
17156
17439
|
TransactionReceivedGoodsGridModule.decorators = [
|
|
@@ -17163,7 +17446,8 @@ TransactionReceivedGoodsGridModule.decorators = [
|
|
|
17163
17446
|
PipeModule,
|
|
17164
17447
|
InputCheckboxModule,
|
|
17165
17448
|
DropDownModule,
|
|
17166
|
-
InputNumberPickerModule
|
|
17449
|
+
InputNumberPickerModule,
|
|
17450
|
+
DialogTransactionLineWarehouseLocationModule
|
|
17167
17451
|
],
|
|
17168
17452
|
declarations: [
|
|
17169
17453
|
TransactionReceivedGoodsGridComponent
|
|
@@ -19962,5 +20246,5 @@ TransactionLineGridModule.decorators = [
|
|
|
19962
20246
|
* Generated bundle index. Do not edit.
|
|
19963
20247
|
*/
|
|
19964
20248
|
|
|
19965
|
-
export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, CharacteristicAnswerModule as ɵba, CharacteristicAnswerComponent as ɵbb, WarehouseModule as ɵbc, WarehouseComponent as ɵbd, ImageDisplayComponent as ɵbe, IconComponent as ɵbf, CustomerGroupsComponent as ɵbg, StockStatusIndicatorComponent as ɵbh, LoaderComponent as ɵbi, LazyRenderMasterDirective as ɵbj, LazyRenderDirective as ɵbk, RelationAddressModule as ɵbl, RelationAddressComponent as ɵbm, RelationBaseComponent as ɵbn, RelationAddressSelectModule as ɵbo, RelationAddressTileModule as ɵbp, TileModule as ɵbq, TileComponent as ɵbr, RelationAddressTileComponent as ɵbs, RelationAddressSelectComponent as ɵbt, BusinessObjectFactory as ɵbu, StepperModule as ɵbv, StepperComponent as ɵbw, StepperStepComponent as ɵbx, TransactionArticleTextModule as ɵby, TransactionArticleTextComponent as ɵbz, OptionsService as ɵc, TransactionArticleTextOverviewModule as ɵca, TransactionArticleTextOverviewComponent as ɵcb, TransactionLineActionButtonsModule as ɵcc, TransactionLineActionButtonsComponent as ɵcd, EditableLabelModule as ɵce, EditableLabelComponent as ɵcf, TransactionLinePriceModule as ɵcg, TransactionLinePriceComponent as ɵch, TransactionLineBaseComponent as ɵci, TransactionFilterPopupBaseComponent as ɵcj, TransactionLineDescriptionModule as ɵck, TransactionLineDescriptionComponent as ɵcl, DialogTransactionLineDeliveryMethodModule as ɵcm, TransactionLineDeliveryMethodModule as ɵcn, TransactionLineCheckboxModule as ɵco, TransactionLineCheckboxListComponent as ɵcp, TransactionLineDeliveryMethodComponent as ɵcq, DialogHeaderSearchModule as ɵcr, DialogHeaderSearchComponent as ɵcs, DialogTransactionLineDeliveryMethodComponent as ɵct, DialogTransactionLineBaseComponent as ɵcu, DialogTransactionLineCommissionCodeModule as ɵcv, TransactionLineCommissionCodeModule as ɵcw, TransactionLineCommissionCodeComponent as ɵcx, DialogTransactionLineCommissionCodeComponent as ɵcy, DialogTransactionLineVatModule as ɵcz, DictionaryService as ɵd, TransactionLineVatModule as ɵda, TransactionLineVatComponent as ɵdb, DialogTransactionLineVatComponent as ɵdc, DialogTransactionLineWarehouseModule as ɵdd, TransactionLineWarehouseModule as ɵde, TransactionLineWarehouseComponent as ɵdf, DialogTransactionLineWarehouseComponent as ɵdg, DialogTransactionLineDiscountModule as ɵdh, TransactionLinePriceListModule as ɵdi, TransactionLinePriceListComponent as ɵdj, TransactionLineLineDiscountModule as ɵdk, TransactionLineLineDiscountComponent as ɵdl, TransactionLineDiscountAmountModule as ɵdm, TransactionLineDiscountAmountComponent as ɵdn, TransactionLineQuantumDiscountModule as ɵdo, TransactionLineQuantumDiscountComponent as ɵdp, TransactionLineSpecialDiscountModule as ɵdq, TransactionLineSpecialDiscountComponent as ɵdr, DialogTransactionLinePriceListModule as ɵds, DialogTransactionLinePriceListComponent as ɵdt, DialogTransactionLineDiscountComponent as ɵdu, TransactionImageService as ɵdv, AvatarModule as ɵdw, AvatarComponent as ɵdx, SharedService as ɵdy, SharedConnectorService as ɵdz, TransactionConnectorService as ɵe, DeliveryTypeTileModule as ɵea, DeliveryTypeTileComponent as ɵeb, PaymentModule as ɵec, PaymentTileModule as ɵed, PaymentTileComponent as ɵee, PaymentQrCodeModule as ɵef, PaymentQrCodeComponent as ɵeg, PaymentComponent as ɵeh, PaymentService as ɵei, RelationTypeModule as ɵej, RelationTypeComponent as ɵek, RelationGeneralModule as ɵel, RelationSuggestionsListModule as ɵem, RelationSuggestionsListItemModule as ɵen, RelationSuggestionsListItemComponent as ɵeo, RelationSuggestionsListComponent as ɵep, RelationGeneralComponent as ɵeq, RelationAddressesModule as ɵer, RelationAddressesComponent as ɵes, RelationContactDetailsModule as ɵet, RelationContactDetailsComponent as ɵeu, RelationPreferencesModule as ɵev, RelationPreferencesComponent as ɵew, TransactionHeaderBlockModule as ɵex, TransactionHeaderBlockComponent as ɵey, TransactionHeaderDeliveryDateModule as ɵez, TransactionConnectorAdapterService as ɵf, TransactionHeaderDeliveryDateComponent as ɵfa, TransactionHeaderBaseComponent as ɵfb, TransactionHeaderDeliveryOptionsModule as ɵfc, TransactionHeaderDeliveryOptionsComponent as ɵfd, TransactionHeaderRemarksModule as ɵfe, TransactionHeaderRemarksComponent as ɵff, TransactionHeaderReferenceModule as ɵfg, TransactionHeaderReferenceComponent as ɵfh, TransactionHeaderRelationReferenceModule as ɵfi, TransactionHeaderRelationReferenceComponent as ɵfj, TransactionHeaderDeliveryMethodModule as ɵfk, TransactionHeaderDeliveryMethodComponent as ɵfl, TransactionHeaderPreferredDeliveryDateModule as ɵfm, TransactionHeaderPreferredDeliveryDateComponent as ɵfn, DialogTransactionHeaderDeliveryMethodModule as ɵfo, DialogTransactionHeaderDeliveryMethodComponent as ɵfp, DialogTransactionHeaderBaseComponent as ɵfq, TransactionBaseComponent as ɵfr, TransactionHeaderPartialDeliveryModule as ɵfs, TransactionHeaderPartialDeliveryComponent as ɵft, TransactionHeaderDownpaymentPercentageModule as ɵfu, TransactionHeaderDownpaymentPercentageComponent as ɵfv, TransactionHeaderDownpaymentAmountModule as ɵfw, TransactionHeaderDownpaymentAmountComponent as ɵfx, TransactionHeaderDefinitiveModule as ɵfy, TransactionHeaderDefinitiveComponent as ɵfz, SelectMultipleCacheService as ɵg, TransactionHeaderBranchModule as ɵga, TransactionHeaderBranchComponent as ɵgb, TransactionHeaderAdministrativeRelationModule as ɵgc, TransactionHeaderAdministrativeRelationComponent as ɵgd, TransactionHeaderMarketingModule as ɵge, TransactionHeaderMarketingComponent as ɵgf, CheckoutOverviewRelationEditComponent as ɵgg, CheckoutOverviewDeliveryEditComponent as ɵgh, CheckoutOverviewDeliveryAddressComponent as ɵgi, CheckoutOverviewPaymentComponent as ɵgj, CheckoutLoginComponent as ɵgk, TransactionFilterCategoriesModule as ɵgl, TransactionFilterCategoriesComponent as ɵgm, TransactionHeaderPaymentModule as ɵgn, TransactionHeaderPaymentComponent as ɵgo, TransactionLinesGridModule as ɵgp, TransactionBaseGridModule as ɵgq, TransactionLineSidePanelModule as ɵgr, TransactionLineSidePanelDefaultModule as ɵgs, TransactionLineQuantityModule as ɵgt, TransactionLineQuantityComponent as ɵgu, TransactionLineDeliveryDateModule as ɵgv, TransactionLineDeliveryDateComponent as ɵgw, TransactionLineReferenceModule as ɵgx, TransactionLineReferenceComponent as ɵgy, TransactionLineSupplierModule as ɵgz, BusinessObjectCacheManagerService as ɵh, TransactionLineSupplierComponent as ɵha, TransactionLineSidePanelDefaultComponent as ɵhb, TransactionReceivingGoodsHistoryModule as ɵhc, TransactionHistoryGridModule as ɵhd, TransactionHistoryGridStatusModule as ɵhe, TransactionHistoryGridStatusComponent as ɵhf, TransactionHistoryGridComponent as ɵhg, TransactionReceivingGoodsHistoryComponent as ɵhh, TransactionReceivingGoodsDetailsModule as ɵhi, TransactionReceivingGoodsDetailsComponent as ɵhj, ArticleService as ɵhk, TransactionButtonBarModule as ɵhl, TransactionButtonBarComponent as ɵhm, TransactionMappingService as ɵhn, TransactionButtonBarButtonComponent as ɵho, TransactionLineSidePanelPurchaseModule as ɵhp, DefaultOkCancelButtonsModule as ɵhq, DefaultOkCancelButtonsComponent as ɵhr, TransactionLineSidePanelPurchaseComponent as ɵhs, TransactionEventService as ɵht, TransactionLineSidePanelComponent as ɵhu, TransactionBaseGridComponent as ɵhv, TransactionGridBaseComponent as ɵhw, TransactionLinesGridComponent as ɵhx, DiscountModule as ɵhy, DiscountComponent as ɵhz, CacheField as ɵi, TransactionQuickAccessOverviewModule as ɵia, TransactionQuickAccessOverviewComponent as ɵib, TransactionOrderConfirmationGridModule as ɵic, TransactionOrderConfirmationGridComponent as ɵid, TransactionReceivedGoodsGridModule as ɵie, TransactionReceivedGoodsGridComponent as ɵif, ViewModeButtonsModule as ɵig, ViewModeButtonsComponent as ɵih, TransactionGridModule as ɵii, TransactionGridComponent as ɵij, TransactionTileModule as ɵik, TransactionTileComponent as ɵil, TransactionSearchResultModule as ɵim, TransactionSearchSalesOrderTileModule as ɵin, StatusBarModule as ɵio, StatusBarComponent as ɵip, TransactionSearchSalesOrderTileComponent as ɵiq, TransactionSearchTileBaseComponent as ɵir, TransactionSearchPurchaseOrderTileModule as ɵis, TransactionSearchPurchaseOrderTileComponent as ɵit, TransactionSearchSalesOrderGridModule as ɵiu, TransactionSearchSalesOrderGridComponent as ɵiv, TransactionSearchGridBaseComponent as ɵiw, TransactionSearchPurchaseOrderGridModule as ɵix, TransactionSearchPurchaseOrderGridComponent as ɵiy, TransactionSearchHeaderModule as ɵiz, SelectMultipleParameterizedCacheService as ɵj, TransactionSearchHeaderComponent as ɵja, TransactionSearchGridModule as ɵjb, TransactionSearchGridComponent as ɵjc, TransactionSearchTileModule as ɵjd, TransactionSearchTileComponent as ɵje, TransactionSearchResultComponent as ɵjf, TransactionSalesOrderFilterModule as ɵjg, TransactionSalesOrderFilterContentOrderModule as ɵjh, TransactionSalesOrderFilterContentOrderComponent as ɵji, TransactionFilterContentBaseComponent as ɵjj, FilterRequestService as ɵjk, TransactionSalesOrderFilterContentLogisticsModule as ɵjl, TransactionFilterHistoricStateModule as ɵjm, TransactionFilterHistoricStateComponent as ɵjn, TransactionSalesOrderFilterContentLogisticsComponent as ɵjo, TransactionSalesOrderFilterContentArticleModule as ɵjp, TransactionSalesOrderFilterContentArticleComponent as ɵjq, TransactionSalesOrderFilterComponent as ɵjr, TransactionFilterBaseComponent as ɵjs, TransactionPurchaseOrderFilterModule as ɵjt, TransactionPurchaseOrderFilterContentOrderModule as ɵju, TransactionPurchaseOrderFilterContentOrderComponent as ɵjv, TransactionPurchaseOrderFilterContentLogisticsModule as ɵjw, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵjx, TransactionPurchaseOrderFilterContentArticleModule as ɵjy, TransactionPurchaseOrderFilterContentArticleComponent as ɵjz, ErrorService as ɵk, TransactionPurchaseOrderFilterComponent as ɵka, TransactionFilterModule as ɵkb, TransactionFilterComponent as ɵkc, SelectSingleCacheService as ɵl, ArticleConnectorService as ɵm, CoreModule as ɵn, ConfirmationDialogModule as ɵo, PipeModule as ɵp, AppendPipe as ɵq, DeliveryTimePipe as ɵr, DateDurationPipe as ɵs, LocalizePipe as ɵt, CoCurrencyPipe as ɵu, SafeStylePipe as ɵv, SafeHtmlPipe as ɵw, ConfirmationDialogComponent as ɵx, DialogBaseComponent as ɵy, IconCacheService as ɵz };
|
|
20249
|
+
export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, IconCacheService as ɵba, CharacteristicAnswerModule as ɵbb, CharacteristicAnswerComponent as ɵbc, WarehouseModule as ɵbd, WarehouseComponent as ɵbe, ImageDisplayComponent as ɵbf, IconComponent as ɵbg, CustomerGroupsComponent as ɵbh, StockStatusIndicatorComponent as ɵbi, LoaderComponent as ɵbj, LazyRenderMasterDirective as ɵbk, LazyRenderDirective as ɵbl, RelationAddressModule as ɵbm, RelationAddressComponent as ɵbn, RelationBaseComponent as ɵbo, RelationAddressSelectModule as ɵbp, RelationAddressTileModule as ɵbq, TileModule as ɵbr, TileComponent as ɵbs, RelationAddressTileComponent as ɵbt, RelationAddressSelectComponent as ɵbu, BusinessObjectFactory as ɵbv, StepperModule as ɵbw, StepperComponent as ɵbx, StepperStepComponent as ɵby, TransactionArticleTextModule as ɵbz, DynamicComponentService as ɵc, TransactionArticleTextComponent as ɵca, TransactionArticleTextOverviewModule as ɵcb, TransactionArticleTextOverviewComponent as ɵcc, TransactionLineActionButtonsModule as ɵcd, TransactionLineActionButtonsComponent as ɵce, EditableLabelModule as ɵcf, EditableLabelComponent as ɵcg, TransactionLinePriceModule as ɵch, TransactionLinePriceComponent as ɵci, TransactionLineBaseComponent as ɵcj, TransactionFilterPopupBaseComponent as ɵck, TransactionLineDescriptionModule as ɵcl, TransactionLineDescriptionComponent as ɵcm, DialogTransactionLineDeliveryMethodModule as ɵcn, TransactionLineDeliveryMethodModule as ɵco, TransactionLineCheckboxModule as ɵcp, TransactionLineCheckboxListComponent as ɵcq, TransactionLineDeliveryMethodComponent as ɵcr, DialogHeaderSearchModule as ɵcs, DialogHeaderSearchComponent as ɵct, DialogTransactionLineDeliveryMethodComponent as ɵcu, DialogTransactionLineBaseComponent as ɵcv, DialogTransactionLineCommissionCodeModule as ɵcw, TransactionLineCommissionCodeModule as ɵcx, TransactionLineCommissionCodeComponent as ɵcy, DialogTransactionLineCommissionCodeComponent as ɵcz, OptionsService as ɵd, DialogTransactionLineVatModule as ɵda, TransactionLineVatModule as ɵdb, TransactionLineVatComponent as ɵdc, DialogTransactionLineVatComponent as ɵdd, DialogTransactionLineWarehouseModule as ɵde, TransactionLineWarehouseModule as ɵdf, TransactionLineWarehouseComponent as ɵdg, DialogTransactionLineWarehouseComponent as ɵdh, DialogTransactionLineDiscountModule as ɵdi, TransactionLinePriceListModule as ɵdj, TransactionLinePriceListComponent as ɵdk, TransactionLineLineDiscountModule as ɵdl, TransactionLineLineDiscountComponent as ɵdm, TransactionLineDiscountAmountModule as ɵdn, TransactionLineDiscountAmountComponent as ɵdo, TransactionLineQuantumDiscountModule as ɵdp, TransactionLineQuantumDiscountComponent as ɵdq, TransactionLineSpecialDiscountModule as ɵdr, TransactionLineSpecialDiscountComponent as ɵds, DialogTransactionLinePriceListModule as ɵdt, DialogTransactionLinePriceListComponent as ɵdu, DialogTransactionLineDiscountComponent as ɵdv, TransactionLineDeliveryDateModule as ɵdw, TransactionLineDeliveryDateComponent as ɵdx, TransactionImageService as ɵdy, AvatarModule as ɵdz, DictionaryService as ɵe, AvatarComponent as ɵea, SharedService as ɵeb, SharedConnectorService as ɵec, DeliveryTypeTileModule as ɵed, DeliveryTypeTileComponent as ɵee, PaymentModule as ɵef, PaymentTileModule as ɵeg, PaymentTileComponent as ɵeh, PaymentQrCodeModule as ɵei, PaymentQrCodeComponent as ɵej, PaymentComponent as ɵek, PaymentService as ɵel, RelationTypeModule as ɵem, RelationTypeComponent as ɵen, RelationGeneralModule as ɵeo, RelationSuggestionsListModule as ɵep, RelationSuggestionsListItemModule as ɵeq, RelationSuggestionsListItemComponent as ɵer, RelationSuggestionsListComponent as ɵes, RelationGeneralComponent as ɵet, RelationAddressesModule as ɵeu, RelationAddressesComponent as ɵev, RelationContactDetailsModule as ɵew, RelationContactDetailsComponent as ɵex, RelationPreferencesModule as ɵey, RelationPreferencesComponent as ɵez, TransactionConnectorService as ɵf, TransactionHeaderBlockModule as ɵfa, TransactionHeaderBlockComponent as ɵfb, TransactionHeaderDeliveryDateModule as ɵfc, TransactionHeaderDeliveryDateComponent as ɵfd, TransactionHeaderBaseComponent as ɵfe, TransactionHeaderDeliveryOptionsModule as ɵff, TransactionHeaderDeliveryOptionsComponent as ɵfg, TransactionHeaderRemarksModule as ɵfh, TransactionHeaderRemarksComponent as ɵfi, TransactionHeaderReferenceModule as ɵfj, TransactionHeaderReferenceComponent as ɵfk, TransactionHeaderRelationReferenceModule as ɵfl, TransactionHeaderRelationReferenceComponent as ɵfm, TransactionHeaderDeliveryMethodModule as ɵfn, TransactionHeaderDeliveryMethodComponent as ɵfo, TransactionHeaderPreferredDeliveryDateModule as ɵfp, TransactionHeaderPreferredDeliveryDateComponent as ɵfq, DialogTransactionHeaderDeliveryMethodModule as ɵfr, DialogTransactionHeaderDeliveryMethodComponent as ɵfs, DialogTransactionHeaderBaseComponent as ɵft, TransactionBaseComponent as ɵfu, TransactionHeaderPartialDeliveryModule as ɵfv, TransactionHeaderPartialDeliveryComponent as ɵfw, TransactionHeaderDownpaymentPercentageModule as ɵfx, TransactionHeaderDownpaymentPercentageComponent as ɵfy, TransactionHeaderDownpaymentAmountModule as ɵfz, TransactionConnectorAdapterService as ɵg, TransactionHeaderDownpaymentAmountComponent as ɵga, TransactionHeaderDefinitiveModule as ɵgb, TransactionHeaderDefinitiveComponent as ɵgc, TransactionHeaderBranchModule as ɵgd, TransactionHeaderBranchComponent as ɵge, TransactionHeaderAdministrativeRelationModule as ɵgf, TransactionHeaderAdministrativeRelationComponent as ɵgg, TransactionHeaderMarketingModule as ɵgh, TransactionHeaderMarketingComponent as ɵgi, CheckoutOverviewRelationEditComponent as ɵgj, CheckoutOverviewDeliveryEditComponent as ɵgk, CheckoutOverviewDeliveryAddressComponent as ɵgl, CheckoutOverviewPaymentComponent as ɵgm, CheckoutLoginComponent as ɵgn, TransactionFilterCategoriesModule as ɵgo, TransactionFilterCategoriesComponent as ɵgp, TransactionHeaderPaymentModule as ɵgq, TransactionHeaderPaymentComponent as ɵgr, TransactionLinesGridModule as ɵgs, TransactionBaseGridModule as ɵgt, TransactionLineSidePanelModule as ɵgu, TransactionLineSidePanelDefaultModule as ɵgv, TransactionLineQuantityModule as ɵgw, TransactionLineQuantityComponent as ɵgx, TransactionLineReferenceModule as ɵgy, TransactionLineReferenceComponent as ɵgz, SelectMultipleCacheService as ɵh, TransactionLineSupplierModule as ɵha, TransactionLineSupplierComponent as ɵhb, TransactionLineSidePanelDefaultComponent as ɵhc, TransactionReceivingGoodsHistoryModule as ɵhd, TransactionHistoryGridModule as ɵhe, TransactionHistoryGridStatusModule as ɵhf, TransactionHistoryGridStatusComponent as ɵhg, TransactionHistoryGridComponent as ɵhh, TransactionReceivingGoodsHistoryComponent as ɵhi, TransactionReceivingGoodsDetailsModule as ɵhj, TransactionReceivingGoodsDetailsComponent as ɵhk, ArticleService as ɵhl, TransactionButtonBarModule as ɵhm, TransactionButtonBarComponent as ɵhn, TransactionMappingService as ɵho, TransactionButtonBarButtonComponent as ɵhp, TransactionLineSidePanelPurchaseModule as ɵhq, DefaultOkCancelButtonsModule as ɵhr, DefaultOkCancelButtonsComponent as ɵhs, TransactionLineSidePanelPurchaseComponent as ɵht, TransactionEventService as ɵhu, TransactionLineSidePanelComponent as ɵhv, DynamicBaseComponent as ɵhw, TransactionBaseGridComponent as ɵhx, TransactionGridBaseComponent as ɵhy, TransactionLinesGridComponent as ɵhz, BusinessObjectCacheManagerService as ɵi, DiscountModule as ɵia, DiscountComponent as ɵib, TransactionQuickAccessOverviewModule as ɵic, TransactionQuickAccessOverviewComponent as ɵid, TransactionOrderConfirmationGridModule as ɵie, TransactionOrderConfirmationGridComponent as ɵif, TransactionReceivedGoodsGridModule as ɵig, DialogTransactionLineWarehouseLocationModule as ɵih, TransactionLineWarehouseLocationModule as ɵii, TransactionLineWarehouseLocationComponent as ɵij, DialogTransactionLineWarehouseLocationComponent as ɵik, TransactionReceivedGoodsGridComponent as ɵil, ViewModeButtonsModule as ɵim, ViewModeButtonsComponent as ɵin, TransactionGridModule as ɵio, TransactionGridComponent as ɵip, TransactionTileModule as ɵiq, TransactionTileComponent as ɵir, TransactionSearchResultModule as ɵis, TransactionSearchSalesOrderTileModule as ɵit, StatusBarModule as ɵiu, StatusBarComponent as ɵiv, TransactionSearchSalesOrderTileComponent as ɵiw, TransactionSearchTileBaseComponent as ɵix, TransactionSearchPurchaseOrderTileModule as ɵiy, TransactionSearchPurchaseOrderTileComponent as ɵiz, CacheField as ɵj, TransactionSearchSalesOrderGridModule as ɵja, TransactionSearchSalesOrderGridComponent as ɵjb, TransactionSearchGridBaseComponent as ɵjc, TransactionSearchPurchaseOrderGridModule as ɵjd, TransactionSearchPurchaseOrderGridComponent as ɵje, TransactionSearchHeaderModule as ɵjf, TransactionSearchHeaderComponent as ɵjg, TransactionSearchGridModule as ɵjh, TransactionSearchGridComponent as ɵji, TransactionSearchTileModule as ɵjj, TransactionSearchTileComponent as ɵjk, TransactionSearchResultComponent as ɵjl, TransactionSalesOrderFilterModule as ɵjm, TransactionSalesOrderFilterContentOrderModule as ɵjn, TransactionSalesOrderFilterContentOrderComponent as ɵjo, TransactionFilterContentBaseComponent as ɵjp, FilterRequestService as ɵjq, TransactionSalesOrderFilterContentLogisticsModule as ɵjr, TransactionFilterHistoricStateModule as ɵjs, TransactionFilterHistoricStateComponent as ɵjt, TransactionSalesOrderFilterContentLogisticsComponent as ɵju, TransactionSalesOrderFilterContentArticleModule as ɵjv, TransactionSalesOrderFilterContentArticleComponent as ɵjw, TransactionSalesOrderFilterComponent as ɵjx, TransactionFilterBaseComponent as ɵjy, TransactionPurchaseOrderFilterModule as ɵjz, SelectMultipleParameterizedCacheService as ɵk, TransactionPurchaseOrderFilterContentOrderModule as ɵka, TransactionPurchaseOrderFilterContentOrderComponent as ɵkb, TransactionPurchaseOrderFilterContentLogisticsModule as ɵkc, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵkd, TransactionPurchaseOrderFilterContentArticleModule as ɵke, TransactionPurchaseOrderFilterContentArticleComponent as ɵkf, TransactionPurchaseOrderFilterComponent as ɵkg, TransactionFilterModule as ɵkh, TransactionFilterComponent as ɵki, ErrorService as ɵl, SelectSingleCacheService as ɵm, ArticleConnectorService as ɵn, CoreModule as ɵo, ConfirmationDialogModule as ɵp, PipeModule as ɵq, AppendPipe as ɵr, DeliveryTimePipe as ɵs, DateDurationPipe as ɵt, LocalizePipe as ɵu, CoCurrencyPipe as ɵv, SafeStylePipe as ɵw, SafeHtmlPipe as ɵx, ConfirmationDialogComponent as ɵy, DialogBaseComponent as ɵz };
|
|
19966
20250
|
//# sourceMappingURL=colijnit-transaction.js.map
|