@hitsoft/kadooglu-keops 0.0.3 → 0.0.4
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/config/enums/route-names.d.ts +2 -1
- package/esm2020/config/enums/route-names.mjs +1 -1
- package/esm2020/config/providers/route.provider.mjs +10 -1
- package/esm2020/lib/features/cost-calculation/components/cost-calculation-inputs.component.mjs +12 -10
- package/esm2020/lib/features/cost-calculation/components/cost-calculation-results.component.mjs +3 -3
- package/esm2020/lib/features/cost-calculation/components/cost-calculation.component.mjs +86 -31
- package/esm2020/lib/features/cost-calculation/engine/currency.utils.mjs +10 -10
- package/esm2020/lib/features/cost-calculation/engine/formulas.mjs +10 -10
- package/esm2020/lib/features/cost-calculation/engine/item-resolver.mjs +16 -16
- package/esm2020/lib/features/cost-calculation/engine/stage-builder.mjs +8 -8
- package/esm2020/lib/features/cost-parameter-categories/components/cost-parameter-categories.component.mjs +3 -7
- package/esm2020/lib/features/cost-parameter-categories/components/cost-parameter-category-form.component.mjs +4 -14
- package/esm2020/lib/features/cost-parameters/components/cost-parameter-form.component.mjs +5 -6
- package/esm2020/lib/features/cost-parameters/components/cost-parameters.component.mjs +7 -10
- package/esm2020/lib/features/item-classifications/components/item-classifications.component.mjs +199 -0
- package/esm2020/lib/features/item-classifications/hit-item-classifications-routing.module.mjs +29 -0
- package/esm2020/lib/features/item-classifications/hit-item-classifications.module.mjs +60 -0
- package/esm2020/lib/features/price-parameters/components/price-parameter-form-items.component.mjs +6 -6
- package/esm2020/lib/features/price-parameters/components/price-parameter-form-price-lists.component.mjs +6 -6
- package/esm2020/lib/features/price-parameters/components/price-parameter-form.component.mjs +114 -46
- package/esm2020/lib/features/price-parameters/components/price-parameter-price-update-preview-modal.component.mjs +26 -0
- package/esm2020/lib/features/price-parameters/components/price-parameters.component.mjs +24 -17
- package/esm2020/lib/features/price-parameters/hit-price-parameters.module.mjs +5 -2
- package/esm2020/lib/features/price-parameters/price-parameter-cost-match.service.mjs +3 -3
- package/esm2020/lib/features/price-parameters/price-parameter-form-data.service.mjs +1 -2
- package/esm2020/lib/features/price-parameters/price-parameter-lookups.service.mjs +5 -10
- package/esm2020/lib/features/price-parameters/price-parameter-price-update.service.mjs +119 -0
- package/esm2020/lib/features/settings/components/cost-settings.component.mjs +8 -4
- package/esm2020/lib/kadooglu-keops-routing.module.mjs +3 -1
- package/esm2020/lib/shared/amount-currency-input/amount-currency-input.component.mjs +5 -3
- package/esm2020/lib/shared/cost-item-classification.utils.mjs +5 -2
- package/esm2020/lib/utils/business-region.utils.mjs +12 -0
- package/esm2020/lib/utils/currency.utils.mjs +3 -1
- package/esm2020/proxy/business-region.enum.mjs +9 -0
- package/esm2020/proxy/controllers/index.mjs +2 -1
- package/esm2020/proxy/controllers/item-classification.service.mjs +42 -0
- package/esm2020/proxy/controllers/item.service.mjs +7 -3
- package/esm2020/proxy/controllers/price-list.service.mjs +5 -5
- package/esm2020/proxy/controllers/price-parameter.service.mjs +6 -1
- package/esm2020/proxy/cost-parameter-categories/dtos/models.mjs +1 -1
- package/esm2020/proxy/cost-parameters/dtos/models.mjs +1 -1
- package/esm2020/proxy/item-classifications/dtos/index.mjs +2 -0
- package/esm2020/proxy/item-classifications/dtos/models.mjs +2 -0
- package/esm2020/proxy/price-parameters/dtos/models.mjs +1 -1
- package/esm2020/proxy/public-api.mjs +3 -2
- package/esm2020/proxy/settings/models.mjs +1 -1
- package/fesm2015/hitsoft-kadooglu-keops-config.mjs +9 -0
- package/fesm2015/hitsoft-kadooglu-keops-config.mjs.map +1 -1
- package/fesm2015/hitsoft-kadooglu-keops-proxy.mjs +63 -14
- package/fesm2015/hitsoft-kadooglu-keops-proxy.mjs.map +1 -1
- package/fesm2015/hitsoft-kadooglu-keops.mjs +795 -287
- package/fesm2015/hitsoft-kadooglu-keops.mjs.map +1 -1
- package/fesm2020/hitsoft-kadooglu-keops-config.mjs +9 -0
- package/fesm2020/hitsoft-kadooglu-keops-config.mjs.map +1 -1
- package/fesm2020/hitsoft-kadooglu-keops-proxy.mjs +63 -14
- package/fesm2020/hitsoft-kadooglu-keops-proxy.mjs.map +1 -1
- package/fesm2020/hitsoft-kadooglu-keops.mjs +776 -272
- package/fesm2020/hitsoft-kadooglu-keops.mjs.map +1 -1
- package/lib/features/cost-calculation/components/cost-calculation-inputs.component.d.ts +9 -7
- package/lib/features/cost-calculation/components/cost-calculation.component.d.ts +16 -8
- package/lib/features/cost-calculation/engine/currency.utils.d.ts +2 -2
- package/lib/features/cost-calculation/engine/formulas.d.ts +2 -2
- package/lib/features/cost-parameter-categories/components/cost-parameter-categories.component.d.ts +0 -1
- package/lib/features/cost-parameter-categories/components/cost-parameter-category-form.component.d.ts +1 -5
- package/lib/features/cost-parameters/components/cost-parameter-form.component.d.ts +2 -2
- package/lib/features/cost-parameters/components/cost-parameters.component.d.ts +1 -2
- package/lib/features/item-classifications/components/item-classifications.component.d.ts +66 -0
- package/lib/features/item-classifications/hit-item-classifications-routing.module.d.ts +7 -0
- package/lib/features/item-classifications/hit-item-classifications.module.d.ts +17 -0
- package/lib/features/price-parameters/components/price-parameter-form-items.component.d.ts +3 -3
- package/lib/features/price-parameters/components/price-parameter-form-price-lists.component.d.ts +3 -3
- package/lib/features/price-parameters/components/price-parameter-form.component.d.ts +16 -9
- package/lib/features/price-parameters/components/price-parameter-price-update-preview-modal.component.d.ts +11 -0
- package/lib/features/price-parameters/components/price-parameters.component.d.ts +5 -2
- package/lib/features/price-parameters/hit-price-parameters.module.d.ts +12 -11
- package/lib/features/price-parameters/price-parameter-cost-match.service.d.ts +2 -2
- package/lib/features/price-parameters/price-parameter-form-data.service.d.ts +0 -1
- package/lib/features/price-parameters/price-parameter-lookups.service.d.ts +0 -1
- package/lib/features/price-parameters/price-parameter-price-update.service.d.ts +30 -0
- package/lib/shared/amount-currency-input/amount-currency-input.component.d.ts +2 -2
- package/lib/shared/cost-item-classification.utils.d.ts +5 -1
- package/lib/utils/business-region.utils.d.ts +7 -0
- package/lib/utils/currency.utils.d.ts +1 -0
- package/package.json +1 -1
- package/proxy/business-region.enum.d.ts +6 -0
- package/proxy/controllers/index.d.ts +1 -0
- package/proxy/controllers/item-classification.service.d.ts +17 -0
- package/proxy/controllers/item.service.d.ts +3 -1
- package/proxy/controllers/price-list.service.d.ts +3 -2
- package/proxy/controllers/price-parameter.service.d.ts +2 -1
- package/proxy/cost-parameter-categories/dtos/models.d.ts +0 -4
- package/proxy/cost-parameters/dtos/models.d.ts +4 -3
- package/proxy/item-classifications/dtos/index.d.ts +1 -0
- package/proxy/item-classifications/dtos/models.d.ts +34 -0
- package/proxy/price-parameters/dtos/models.d.ts +38 -12
- package/proxy/public-api.d.ts +2 -1
- package/proxy/settings/models.d.ts +1 -0
- package/esm2020/lib/features/cost-parameter-categories/cost-parameter-category-l10n-helper.mjs +0 -6
- package/esm2020/proxy/cost-parameter-categories/cost-parameter-category-parent-code.enum.mjs +0 -8
- package/lib/features/cost-parameter-categories/cost-parameter-category-l10n-helper.d.ts +0 -2
- package/proxy/cost-parameter-categories/cost-parameter-category-parent-code.enum.d.ts +0 -5
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import DataSource from 'devextreme/data/data_source';
|
|
3
|
-
import {
|
|
3
|
+
import { PriceParameterDto, ItemDto, Currency } from '@hitsoft/kadooglu-keops/proxy';
|
|
4
4
|
import { CostCalculationStage } from '../cost-calculation.models';
|
|
5
|
-
import { isRateCostItem } from '../../../shared/cost-item-classification.utils';
|
|
5
|
+
import { isPackagingCostItem, isRateCostItem } from '../../../shared/cost-item-classification.utils';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CostCalculationInputsComponent {
|
|
8
8
|
readonly isRate: typeof isRateCostItem;
|
|
9
|
+
readonly isPackaging: typeof isPackagingCostItem;
|
|
9
10
|
readonly currencyOptions: import("../../../utils/currency.utils").CurrencyOption[];
|
|
11
|
+
readonly tryUsdCurrencyOptions: import("../../../utils/currency.utils").CurrencyOption[];
|
|
10
12
|
itemsDataSource: DataSource | null;
|
|
11
13
|
itemDisplayExpr: (item: ItemDto) => string;
|
|
12
|
-
parameters:
|
|
13
|
-
parameterDisplayExpr: (p:
|
|
14
|
+
parameters: PriceParameterDto[];
|
|
15
|
+
parameterDisplayExpr: (p: PriceParameterDto) => string;
|
|
14
16
|
stages: CostCalculationStage[];
|
|
15
17
|
selectedItemCode: string | null;
|
|
16
18
|
selectedItemCodeChange: EventEmitter<string>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
selectedParameterDocEntry: number | null;
|
|
20
|
+
selectedParameterDocEntryChange: EventEmitter<number>;
|
|
19
21
|
rawOilPrice: number;
|
|
20
22
|
rawOilPriceChange: EventEmitter<number>;
|
|
21
23
|
rawOilCurrency: Currency;
|
|
@@ -37,5 +39,5 @@ export declare class CostCalculationInputsComponent {
|
|
|
37
39
|
onRateEurChange(): void;
|
|
38
40
|
private emitAndRecalc;
|
|
39
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CostCalculationInputsComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CostCalculationInputsComponent, "lib-cost-calculation-inputs", never, { "itemsDataSource": "itemsDataSource"; "itemDisplayExpr": "itemDisplayExpr"; "parameters": "parameters"; "parameterDisplayExpr": "parameterDisplayExpr"; "stages": "stages"; "selectedItemCode": "selectedItemCode"; "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CostCalculationInputsComponent, "lib-cost-calculation-inputs", never, { "itemsDataSource": "itemsDataSource"; "itemDisplayExpr": "itemDisplayExpr"; "parameters": "parameters"; "parameterDisplayExpr": "parameterDisplayExpr"; "stages": "stages"; "selectedItemCode": "selectedItemCode"; "selectedParameterDocEntry": "selectedParameterDocEntry"; "rawOilPrice": "rawOilPrice"; "rawOilCurrency": "rawOilCurrency"; "systemRateUsd": "systemRateUsd"; "systemRateEur": "systemRateEur"; "rateUsd": "rateUsd"; "rateEur": "rateEur"; }, { "selectedItemCodeChange": "selectedItemCodeChange"; "selectedParameterDocEntryChange": "selectedParameterDocEntryChange"; "rawOilPriceChange": "rawOilPriceChange"; "rawOilCurrencyChange": "rawOilCurrencyChange"; "rateUsdChange": "rateUsdChange"; "rateEurChange": "rateEurChange"; "itemChange": "itemChange"; "parameterChange": "parameterChange"; "recalc": "recalc"; }, never, never, false>;
|
|
41
43
|
}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { LocalizationService } from '@abp/ng.core';
|
|
2
3
|
import DataSource from 'devextreme/data/data_source';
|
|
3
|
-
import { CostGroupService, CostItemService,
|
|
4
|
+
import { CostGroupService, CostItemService, PriceParameterService, ExchangeRateService, ItemService, ItemDto, PriceParameterDto, Currency } from '@hitsoft/kadooglu-keops/proxy';
|
|
4
5
|
import { CostResult, RoleGroup } from '../engine';
|
|
5
6
|
import { CostCalculationStage } from '../cost-calculation.models';
|
|
7
|
+
import { PriceParameterLookupsService } from '../../price-parameters/price-parameter-lookups.service';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export declare class CostCalculationComponent implements OnInit {
|
|
8
10
|
private readonly parameterService;
|
|
9
|
-
private readonly
|
|
11
|
+
private readonly priceParameterLookupsService;
|
|
10
12
|
private readonly costItemService;
|
|
11
13
|
private readonly costGroupService;
|
|
12
14
|
private readonly exchangeRateService;
|
|
13
15
|
private readonly itemService;
|
|
16
|
+
private readonly localization;
|
|
14
17
|
readonly itemCodePrefix = "05";
|
|
15
18
|
productItems: ItemDto[];
|
|
16
19
|
itemsDataSource: DataSource | null;
|
|
17
20
|
selectedItemCode: string | null;
|
|
18
21
|
selectedItemName: string | null;
|
|
19
|
-
parameters:
|
|
20
|
-
|
|
22
|
+
parameters: PriceParameterDto[];
|
|
23
|
+
selectedParameterDocEntry: number | null;
|
|
21
24
|
rawOilPrice: number;
|
|
22
25
|
rawOilCurrency: Currency;
|
|
23
26
|
systemRateUsd: number;
|
|
@@ -27,18 +30,23 @@ export declare class CostCalculationComponent implements OnInit {
|
|
|
27
30
|
stages: CostCalculationStage[];
|
|
28
31
|
result: CostResult | null;
|
|
29
32
|
roleGroups: RoleGroup[];
|
|
33
|
+
private packagingBaseTry;
|
|
30
34
|
private costItemsByCode;
|
|
31
35
|
private groups;
|
|
32
36
|
private productGroupNames;
|
|
33
|
-
private
|
|
34
|
-
constructor(parameterService:
|
|
37
|
+
private typeNames;
|
|
38
|
+
constructor(parameterService: PriceParameterService, priceParameterLookupsService: PriceParameterLookupsService, costItemService: CostItemService, costGroupService: CostGroupService, exchangeRateService: ExchangeRateService, itemService: ItemService, localization: LocalizationService);
|
|
35
39
|
ngOnInit(): void;
|
|
36
|
-
parameterLabel(p:
|
|
40
|
+
parameterLabel(p: PriceParameterDto): string;
|
|
37
41
|
onItemChange(): void;
|
|
42
|
+
private loadPackagingCost;
|
|
43
|
+
private findPackagingItem;
|
|
44
|
+
private applyPackagingAmount;
|
|
38
45
|
readonly itemDisplayExpr: (item: ItemDto) => string;
|
|
39
|
-
readonly parameterDisplayExpr: (p:
|
|
46
|
+
readonly parameterDisplayExpr: (p: PriceParameterDto) => string;
|
|
40
47
|
private toNameMap;
|
|
41
48
|
onParameterChange(): void;
|
|
49
|
+
private loadProductItems;
|
|
42
50
|
private buildValuesByCode;
|
|
43
51
|
private buildStages;
|
|
44
52
|
calculate(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Currency } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
2
|
import { CostAmount } from './models';
|
|
3
|
-
export declare function toAmount(
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function toAmount(baseTry: number, rateUsd: number, rateEur: number): CostAmount;
|
|
4
|
+
export declare function toBaseTry(value: number, currency: Currency | undefined, rateUsd: number, rateEur: number): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CostResult, EngineRequest, ResolvedItems } from './models';
|
|
2
|
-
export declare function calculateLoss(
|
|
3
|
-
export declare function calculateProductionCost(
|
|
2
|
+
export declare function calculateLoss(rawOilTry: number, resolvedItems: ResolvedItems): number;
|
|
3
|
+
export declare function calculateProductionCost(rawOilTry: number, resolvedItems: ResolvedItems, loss: number): number;
|
|
4
4
|
export declare function calculateTotalCost(productionCost: number, resolvedItems: ResolvedItems): number;
|
|
5
5
|
export declare function calculateProfit(totalCost: number, profitRate: number): number;
|
|
6
6
|
export declare function calculateTotalSalePrice(totalCost: number, profit: number): number;
|
package/lib/features/cost-parameter-categories/components/cost-parameter-categories.component.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare class CostParameterCategoriesComponent implements OnInit {
|
|
|
12
12
|
formMode: 'create' | 'edit';
|
|
13
13
|
constructor(service: CostParameterCategoryService, toaster: ToasterService, confirmation: ConfirmationService);
|
|
14
14
|
ngOnInit(): void;
|
|
15
|
-
getParentCodeLabel(value: any): string;
|
|
16
15
|
loadList(): void;
|
|
17
16
|
openCreate(): void;
|
|
18
17
|
openEdit(row: CostParameterCategoryDto): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CostParameterCategoryService, CostParameterCategoryDto
|
|
3
|
+
import { CostParameterCategoryService, CostParameterCategoryDto } from '@hitsoft/kadooglu-keops/proxy';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CostParameterCategoryFormComponent implements OnInit, OnChanges {
|
|
6
6
|
private readonly fb;
|
|
@@ -11,10 +11,6 @@ export declare class CostParameterCategoryFormComponent implements OnInit, OnCha
|
|
|
11
11
|
visibleChange: EventEmitter<boolean>;
|
|
12
12
|
saved: EventEmitter<void>;
|
|
13
13
|
form: FormGroup;
|
|
14
|
-
readonly parentCodeOptions: {
|
|
15
|
-
value: CostParameterCategoryParentCode;
|
|
16
|
-
label: string;
|
|
17
|
-
}[];
|
|
18
14
|
constructor(fb: FormBuilder, service: CostParameterCategoryService);
|
|
19
15
|
ngOnInit(): void;
|
|
20
16
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -13,7 +13,6 @@ export declare class CostParameterFormComponent implements OnInit {
|
|
|
13
13
|
mode: 'create' | 'edit';
|
|
14
14
|
current: CostParameterDto | null;
|
|
15
15
|
productGroupOptions: CostParameterCategoryDto[];
|
|
16
|
-
regionOptions: CostParameterCategoryDto[];
|
|
17
16
|
visibleChange: EventEmitter<boolean>;
|
|
18
17
|
saved: EventEmitter<void>;
|
|
19
18
|
form: FormGroup;
|
|
@@ -24,6 +23,7 @@ export declare class CostParameterFormComponent implements OnInit {
|
|
|
24
23
|
label: string;
|
|
25
24
|
}[];
|
|
26
25
|
readonly currencyOptions: import("../../../utils/currency.utils").CurrencyOption[];
|
|
26
|
+
readonly regionOptions: import("../../../utils/business-region.utils").BusinessRegionOption[];
|
|
27
27
|
readonly customLabel: string;
|
|
28
28
|
readonly isRate: typeof isRateCostItem;
|
|
29
29
|
readonly isCustom: typeof isCustomCostItem;
|
|
@@ -35,5 +35,5 @@ export declare class CostParameterFormComponent implements OnInit {
|
|
|
35
35
|
save(): void;
|
|
36
36
|
private loadCostItems;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CostParameterFormComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CostParameterFormComponent, "lib-cost-parameter-form", never, { "visible": "visible"; "mode": "mode"; "current": "current"; "productGroupOptions": "productGroupOptions";
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CostParameterFormComponent, "lib-cost-parameter-form", never, { "visible": "visible"; "mode": "mode"; "current": "current"; "productGroupOptions": "productGroupOptions"; }, { "visibleChange": "visibleChange"; "saved": "saved"; }, never, never, false>;
|
|
39
39
|
}
|
|
@@ -9,7 +9,6 @@ export declare class CostParametersComponent implements OnInit {
|
|
|
9
9
|
private readonly confirmation;
|
|
10
10
|
items: CostParameterDto[];
|
|
11
11
|
productGroupOptions: CostParameterCategoryDto[];
|
|
12
|
-
regionOptions: CostParameterCategoryDto[];
|
|
13
12
|
selected: CostParameterDto | null;
|
|
14
13
|
formVisible: boolean;
|
|
15
14
|
formMode: 'create' | 'edit';
|
|
@@ -17,7 +16,7 @@ export declare class CostParametersComponent implements OnInit {
|
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
getStatusLabel(value: any): string;
|
|
19
18
|
getProductGroupName(code: string | undefined | null): string;
|
|
20
|
-
|
|
19
|
+
getRegionLabel(value: any): string;
|
|
21
20
|
private resolveName;
|
|
22
21
|
load(): void;
|
|
23
22
|
loadList(): void;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { LocalizationService } from '@abp/ng.core';
|
|
3
|
+
import { ToasterService } from '@abp/ng.theme.shared';
|
|
4
|
+
import { ItemClassificationService, ItemClassificationDto, ItemPackageTypeService, ItemPackageGroupService, ItemProductTypeService, ItemPackageTypeDto, ItemPackageGroupDto, ItemProductTypeDto, CostParameterCategoryDto, BusinessRegion, PackagingMaterialDto } from '@hitsoft/kadooglu-keops/proxy';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface ItemKind {
|
|
7
|
+
labelKey: string;
|
|
8
|
+
prefix: string;
|
|
9
|
+
}
|
|
10
|
+
interface BatchChange {
|
|
11
|
+
type: string;
|
|
12
|
+
key: string;
|
|
13
|
+
data: Partial<ItemClassificationDto>;
|
|
14
|
+
}
|
|
15
|
+
export declare class ItemClassificationsComponent implements OnDestroy {
|
|
16
|
+
private readonly service;
|
|
17
|
+
private readonly itemPackageTypeService;
|
|
18
|
+
private readonly itemPackageGroupService;
|
|
19
|
+
private readonly itemProductTypeService;
|
|
20
|
+
private readonly toaster;
|
|
21
|
+
private readonly localization;
|
|
22
|
+
readonly kinds: ItemKind[];
|
|
23
|
+
selectedPrefix: string;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
saving: boolean;
|
|
26
|
+
saveProgress: {
|
|
27
|
+
processed: number;
|
|
28
|
+
total: number;
|
|
29
|
+
};
|
|
30
|
+
rows: ItemClassificationDto[];
|
|
31
|
+
packageTypes: ItemPackageTypeDto[];
|
|
32
|
+
packageGroups: ItemPackageGroupDto[];
|
|
33
|
+
productTypes: ItemProductTypeDto[];
|
|
34
|
+
regions: {
|
|
35
|
+
value: BusinessRegion;
|
|
36
|
+
name: string;
|
|
37
|
+
}[];
|
|
38
|
+
costGroups: CostParameterCategoryDto[];
|
|
39
|
+
packagingMaterials: PackagingMaterialDto[];
|
|
40
|
+
changes: BatchChange[];
|
|
41
|
+
selectedKeys: string[];
|
|
42
|
+
bulkPaketTuru: string | null;
|
|
43
|
+
bulkPaketGrubu: string | null;
|
|
44
|
+
bulkUrunTipi: string | null;
|
|
45
|
+
bulkRegion: BusinessRegion | null;
|
|
46
|
+
bulkCostGroup: string | null;
|
|
47
|
+
bulkPckMat: string | null;
|
|
48
|
+
private saveSub?;
|
|
49
|
+
constructor(service: ItemClassificationService, itemPackageTypeService: ItemPackageTypeService, itemPackageGroupService: ItemPackageGroupService, itemProductTypeService: ItemProductTypeService, toaster: ToasterService, localization: LocalizationService);
|
|
50
|
+
ngOnDestroy(): void;
|
|
51
|
+
get hasKind(): boolean;
|
|
52
|
+
onKindChange(): void;
|
|
53
|
+
load(selectAfter?: string[]): void;
|
|
54
|
+
private resetState;
|
|
55
|
+
/** Grid'in yerleşik batch "kaydet/geri al" (disk/revert) düğmelerini gizler. */
|
|
56
|
+
onToolbarPreparing(e: any): void;
|
|
57
|
+
applyBulk(): void;
|
|
58
|
+
/** Seçili satırların ilgili kolonuna değeri batch-change olarak yazar (sayfadan bağımsız, key bazlı). */
|
|
59
|
+
private applyValueToSelected;
|
|
60
|
+
save(): void;
|
|
61
|
+
private pollStatus;
|
|
62
|
+
private onSaveCompleted;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemClassificationsComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemClassificationsComponent, "lib-item-classifications", never, {}, {}, never, never, false>;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class HitItemClassificationsRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HitItemClassificationsRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HitItemClassificationsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HitItemClassificationsRoutingModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/item-classifications.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@abp/ng.core";
|
|
6
|
+
import * as i5 from "@abp/ng.theme.shared";
|
|
7
|
+
import * as i6 from "@abp/ng.components/page";
|
|
8
|
+
import * as i7 from "@volo/abp.commercial.ng.ui";
|
|
9
|
+
import * as i8 from "@ng-bootstrap/ng-bootstrap";
|
|
10
|
+
import * as i9 from "./hit-item-classifications-routing.module";
|
|
11
|
+
import * as i10 from "devextreme-angular";
|
|
12
|
+
export declare class HitItemClassificationsModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HitItemClassificationsModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HitItemClassificationsModule, [typeof i1.ItemClassificationsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.CoreModule, typeof i5.ThemeSharedModule, typeof i6.PageModule, typeof i7.CommercialUiModule, typeof i8.NgbDropdownModule, typeof i9.HitItemClassificationsRoutingModule, typeof i10.DxDataGridModule, typeof i10.DxSelectBoxModule], never>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HitItemClassificationsModule>;
|
|
16
|
+
}
|
|
17
|
+
export declare function loadHitItemClassificationsModuleAsChild(): Promise<typeof HitItemClassificationsModule>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { PriceListItemDto, PriceListService } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
|
+
import { BusinessRegion, PriceListItemDto, PriceListService } from '@hitsoft/kadooglu-keops/proxy';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PriceParameterItemsTabComponent implements OnChanges {
|
|
5
5
|
private readonly priceListService;
|
|
6
|
-
|
|
6
|
+
businessRegion: BusinessRegion | null;
|
|
7
7
|
cpGroupCode: string | null;
|
|
8
8
|
items: PriceListItemDto[];
|
|
9
9
|
loading: boolean;
|
|
@@ -11,5 +11,5 @@ export declare class PriceParameterItemsTabComponent implements OnChanges {
|
|
|
11
11
|
ngOnChanges(): void;
|
|
12
12
|
private load;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterItemsTabComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParameterItemsTabComponent, "lib-price-parameter-items-tab", never, { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParameterItemsTabComponent, "lib-price-parameter-items-tab", never, { "businessRegion": "businessRegion"; "cpGroupCode": "cpGroupCode"; }, {}, never, never, false>;
|
|
15
15
|
}
|
package/lib/features/price-parameters/components/price-parameter-form-price-lists.component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { PriceListDto, PriceListService } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
|
+
import { BusinessRegion, PriceListDto, PriceListService } from '@hitsoft/kadooglu-keops/proxy';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PriceParameterPriceListsTabComponent implements OnChanges {
|
|
5
5
|
private readonly priceListService;
|
|
6
|
-
|
|
6
|
+
businessRegion: BusinessRegion | null;
|
|
7
7
|
ppTypeCode: string | null;
|
|
8
8
|
priceLists: PriceListDto[];
|
|
9
9
|
loading: boolean;
|
|
@@ -11,5 +11,5 @@ export declare class PriceParameterPriceListsTabComponent implements OnChanges {
|
|
|
11
11
|
ngOnChanges(): void;
|
|
12
12
|
private load;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterPriceListsTabComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParameterPriceListsTabComponent, "lib-price-parameter-price-lists-tab", never, { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParameterPriceListsTabComponent, "lib-price-parameter-price-lists-tab", never, { "businessRegion": "businessRegion"; "ppTypeCode": "ppTypeCode"; }, {}, never, never, false>;
|
|
15
15
|
}
|
|
@@ -3,9 +3,10 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
3
3
|
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
4
4
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
5
5
|
import DataSource from 'devextreme/data/data_source';
|
|
6
|
-
import { PriceParameterService, BusinessPartnerDto, CostItemDto, Currency, CostParameterCategoryDto, PriceParameterTypeLookupDto, PriceParameterDto, PriceParameterStatus } from '@hitsoft/kadooglu-keops/proxy';
|
|
6
|
+
import { PriceParameterService, BusinessPartnerDto, BusinessRegion, CostItemDto, Currency, CostParameterCategoryDto, PriceParameterTypeLookupDto, PriceParameterDto, PriceParameterStatus } from '@hitsoft/kadooglu-keops/proxy';
|
|
7
7
|
import { PriceParameterFormDataService } from '../price-parameter-form-data.service';
|
|
8
8
|
import { PriceParameterCostMatchService } from '../price-parameter-cost-match.service';
|
|
9
|
+
import { PriceParameterPriceUpdateService } from '../price-parameter-price-update.service';
|
|
9
10
|
import { isRateCostItem, isCustomCostItem } from '../../../shared/cost-item-classification.utils';
|
|
10
11
|
import { CostItemRowsBuilder } from '../../../shared/cost-item-rows.builder';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
@@ -18,6 +19,7 @@ export declare class PriceParameterFormComponent implements OnInit {
|
|
|
18
19
|
private readonly formDataService;
|
|
19
20
|
private readonly costMatchService;
|
|
20
21
|
private readonly rowsBuilder;
|
|
22
|
+
private readonly priceUpdateService;
|
|
21
23
|
form: FormGroup;
|
|
22
24
|
saving: boolean;
|
|
23
25
|
editMode: boolean;
|
|
@@ -27,42 +29,47 @@ export declare class PriceParameterFormComponent implements OnInit {
|
|
|
27
29
|
private allCostItems;
|
|
28
30
|
typeOptions: PriceParameterTypeLookupDto[];
|
|
29
31
|
groupOptions: CostParameterCategoryDto[];
|
|
30
|
-
regionOptions:
|
|
32
|
+
readonly regionOptions: import("../../../utils/business-region.utils").BusinessRegionOption[];
|
|
31
33
|
private autoApplyEnabled;
|
|
34
|
+
updatingPrices: boolean;
|
|
35
|
+
salesPriceExcludingPackagingTry: number;
|
|
36
|
+
salesPriceExcludingPackagingUsd: number;
|
|
37
|
+
private effectiveRateUsd;
|
|
38
|
+
private effectiveRateEur;
|
|
32
39
|
systemRateUsd: number;
|
|
33
40
|
systemRateEur: number;
|
|
34
|
-
rateCurrency: Currency;
|
|
35
41
|
businessPartnersDataSource: DataSource | null;
|
|
36
42
|
selectedCustomerCode: string | null;
|
|
37
43
|
gekapCurrency: Currency;
|
|
38
44
|
rawOilCurrency: Currency;
|
|
39
|
-
salesPriceExcludingPackagingCurrency: Currency;
|
|
40
45
|
readonly statusOptions: {
|
|
41
46
|
value: PriceParameterStatus;
|
|
42
47
|
label: string;
|
|
43
48
|
}[];
|
|
44
49
|
readonly currencyOptions: import("../../../utils/currency.utils").CurrencyOption[];
|
|
45
|
-
readonly
|
|
50
|
+
readonly tryUsdCurrencyOptions: import("../../../utils/currency.utils").CurrencyOption[];
|
|
46
51
|
readonly customerDisplayExpr: (c: BusinessPartnerDto | null) => string;
|
|
47
|
-
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, toaster: ToasterService, service: PriceParameterService, formDataService: PriceParameterFormDataService, costMatchService: PriceParameterCostMatchService, rowsBuilder: CostItemRowsBuilder);
|
|
52
|
+
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, toaster: ToasterService, service: PriceParameterService, formDataService: PriceParameterFormDataService, costMatchService: PriceParameterCostMatchService, rowsBuilder: CostItemRowsBuilder, priceUpdateService: PriceParameterPriceUpdateService);
|
|
48
53
|
ngOnInit(): void;
|
|
49
54
|
get itemsArray(): FormArray;
|
|
50
55
|
get discountsArray(): FormArray;
|
|
51
56
|
get title(): string;
|
|
52
|
-
get
|
|
57
|
+
get selectedRegion(): BusinessRegion | null;
|
|
53
58
|
get selectedTypeCode(): string | null;
|
|
54
59
|
get selectedGroupCode(): string | null;
|
|
55
60
|
readonly isRate: typeof isRateCostItem;
|
|
56
61
|
readonly isCustom: typeof isCustomCostItem;
|
|
57
|
-
onRateCurrencyChange(): void;
|
|
58
62
|
goBack(): void;
|
|
59
|
-
save(): void;
|
|
63
|
+
save(andUpdatePriceList?: boolean): void;
|
|
64
|
+
saveAndUpdatePriceList(): void;
|
|
60
65
|
private load;
|
|
61
66
|
private patchFromCurrent;
|
|
62
67
|
private applyDiscounts;
|
|
63
68
|
private createDiscountRow;
|
|
64
69
|
private applyItems;
|
|
65
70
|
private clearItems;
|
|
71
|
+
protected recalcSalesPriceExcludingPackaging(): void;
|
|
72
|
+
updatePriceList(): void;
|
|
66
73
|
private onCombinationChange;
|
|
67
74
|
private toDateInput;
|
|
68
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterFormComponent, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import { PriceUpdatePreviewItemDto } from '@hitsoft/kadooglu-keops/proxy';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PriceParameterPriceUpdatePreviewModalComponent {
|
|
5
|
+
readonly activeModal: NgbActiveModal;
|
|
6
|
+
items: PriceUpdatePreviewItemDto[];
|
|
7
|
+
priceListNo: number | null;
|
|
8
|
+
constructor(activeModal: NgbActiveModal);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterPriceUpdatePreviewModalComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParameterPriceUpdatePreviewModalComponent, "lib-price-parameter-price-update-preview-modal", never, { "items": "items"; "priceListNo": "priceListNo"; }, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -3,24 +3,27 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
4
4
|
import { PriceParameterService, PriceParameterDto, PriceParameterStatus, CostParameterCategoryDto, PriceParameterTypeLookupDto } from '@hitsoft/kadooglu-keops/proxy';
|
|
5
5
|
import { PriceParameterLookupsService } from '../price-parameter-lookups.service';
|
|
6
|
+
import { PriceParameterPriceUpdateService } from '../price-parameter-price-update.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class PriceParametersComponent implements OnInit {
|
|
8
9
|
private readonly service;
|
|
9
10
|
private readonly lookupsService;
|
|
11
|
+
private readonly priceUpdateService;
|
|
10
12
|
private readonly router;
|
|
11
13
|
private readonly toaster;
|
|
12
14
|
private readonly confirmation;
|
|
13
15
|
items: PriceParameterDto[];
|
|
14
16
|
typeOptions: PriceParameterTypeLookupDto[];
|
|
15
17
|
groupOptions: CostParameterCategoryDto[];
|
|
16
|
-
|
|
17
|
-
constructor(service: PriceParameterService, lookupsService: PriceParameterLookupsService, router: Router, toaster: ToasterService, confirmation: ConfirmationService);
|
|
18
|
+
constructor(service: PriceParameterService, lookupsService: PriceParameterLookupsService, priceUpdateService: PriceParameterPriceUpdateService, router: Router, toaster: ToasterService, confirmation: ConfirmationService);
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
getStatusLabel(value: PriceParameterStatus): string;
|
|
21
|
+
getRegionLabel(value: any): string;
|
|
20
22
|
load(): void;
|
|
21
23
|
loadList(): void;
|
|
22
24
|
openCreate(): void;
|
|
23
25
|
openEdit(row: PriceParameterDto): void;
|
|
26
|
+
updatePriceList(row: PriceParameterDto): void;
|
|
24
27
|
remove(row: PriceParameterDto): void;
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParametersComponent, never>;
|
|
26
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<PriceParametersComponent, "lib-price-parameters", never, {}, {}, never, never, false>;
|
|
@@ -6,19 +6,20 @@ import * as i4 from "./components/price-parameter-form-price-lists.component";
|
|
|
6
6
|
import * as i5 from "./components/price-parameter-form-items.component";
|
|
7
7
|
import * as i6 from "./components/price-parameter-form-discount-rates.component";
|
|
8
8
|
import * as i7 from "./components/price-parameter-form-discount-rates-modal.component";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@
|
|
12
|
-
import * as i11 from "@abp/ng.
|
|
13
|
-
import * as i12 from "@abp/ng.
|
|
14
|
-
import * as i13 from "@
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
9
|
+
import * as i8 from "./components/price-parameter-price-update-preview-modal.component";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@abp/ng.core";
|
|
13
|
+
import * as i12 from "@abp/ng.theme.shared";
|
|
14
|
+
import * as i13 from "@abp/ng.components/page";
|
|
15
|
+
import * as i14 from "@volo/abp.commercial.ng.ui";
|
|
16
|
+
import * as i15 from "@ng-bootstrap/ng-bootstrap";
|
|
17
|
+
import * as i16 from "./hit-price-parameters-routing.module";
|
|
18
|
+
import * as i17 from "devextreme-angular";
|
|
19
|
+
import * as i18 from "../../shared/shared-ui.module";
|
|
19
20
|
export declare class HitPriceParametersModule {
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<HitPriceParametersModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HitPriceParametersModule, [typeof i1.PriceParametersComponent, typeof i2.PriceParameterFormComponent, typeof i3.PriceParameterCostItemsTabComponent, typeof i4.PriceParameterPriceListsTabComponent, typeof i5.PriceParameterItemsTabComponent, typeof i6.PriceParameterDiscountRatesTabComponent, typeof i7.PriceParameterDiscountRatesModalComponent], [typeof
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HitPriceParametersModule, [typeof i1.PriceParametersComponent, typeof i2.PriceParameterFormComponent, typeof i3.PriceParameterCostItemsTabComponent, typeof i4.PriceParameterPriceListsTabComponent, typeof i5.PriceParameterItemsTabComponent, typeof i6.PriceParameterDiscountRatesTabComponent, typeof i7.PriceParameterDiscountRatesModalComponent, typeof i8.PriceParameterPriceUpdatePreviewModalComponent], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.CoreModule, typeof i12.ThemeSharedModule, typeof i13.PageModule, typeof i14.CommercialUiModule, typeof i15.NgbDropdownModule, typeof i15.NgbNavModule, typeof i15.NgbModalModule, typeof i16.HitPriceParametersRoutingModule, typeof i17.DxDataGridModule, typeof i17.DxDateBoxModule, typeof i17.DxSelectBoxModule, typeof i18.SharedUiModule], never>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<HitPriceParametersModule>;
|
|
23
24
|
}
|
|
24
25
|
export declare function loadHitPriceParametersModuleAsChild(): Promise<typeof HitPriceParametersModule>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { CostParameterDto, CostParameterService } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
|
+
import { BusinessRegion, CostParameterDto, CostParameterService } from '@hitsoft/kadooglu-keops/proxy';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PriceParameterCostMatchService {
|
|
5
5
|
private readonly costParameterService;
|
|
6
6
|
constructor(costParameterService: CostParameterService);
|
|
7
|
-
findMatch(
|
|
7
|
+
findMatch(region: BusinessRegion, groupCode: string): Observable<CostParameterDto | undefined>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterCostMatchService, never>;
|
|
9
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<PriceParameterCostMatchService>;
|
|
10
10
|
}
|
|
@@ -6,7 +6,6 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export interface PriceParameterFormData {
|
|
7
7
|
typeOptions: PriceParameterTypeLookupDto[];
|
|
8
8
|
groupOptions: CostParameterCategoryDto[];
|
|
9
|
-
regionOptions: CostParameterCategoryDto[];
|
|
10
9
|
businessPartnersDataSource: DataSource;
|
|
11
10
|
costItems: CostItemDto[];
|
|
12
11
|
systemRateUsd: number;
|
|
@@ -4,7 +4,6 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export interface PriceParameterTypeAndCategoryLookups {
|
|
5
5
|
typeOptions: PriceParameterTypeLookupDto[];
|
|
6
6
|
groupOptions: CostParameterCategoryDto[];
|
|
7
|
-
regionOptions: CostParameterCategoryDto[];
|
|
8
7
|
}
|
|
9
8
|
export declare class PriceParameterLookupsService {
|
|
10
9
|
private readonly priceParameterTypeService;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
4
|
+
import { BusinessRegion, CostItemService, PriceListService, PriceParameterService } from '@hitsoft/kadooglu-keops/proxy';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface PriceUpdateSourceValues {
|
|
7
|
+
region: BusinessRegion;
|
|
8
|
+
groupCode: string;
|
|
9
|
+
typeCode: string;
|
|
10
|
+
salesPriceExcludingPackagingTry: number;
|
|
11
|
+
rateUsd: number;
|
|
12
|
+
rateEur: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class PriceParameterPriceUpdateService {
|
|
15
|
+
private readonly service;
|
|
16
|
+
private readonly priceListService;
|
|
17
|
+
private readonly costItemService;
|
|
18
|
+
private readonly modalService;
|
|
19
|
+
private readonly toaster;
|
|
20
|
+
private readonly confirmation;
|
|
21
|
+
constructor(service: PriceParameterService, priceListService: PriceListService, costItemService: CostItemService, modalService: NgbModal, toaster: ToasterService, confirmation: ConfirmationService);
|
|
22
|
+
updateForDocEntry(docEntry: number): Observable<void>;
|
|
23
|
+
updateFromValues(source: PriceUpdateSourceValues): Observable<void>;
|
|
24
|
+
private confirmAndRun;
|
|
25
|
+
private performUpdateForDocEntry;
|
|
26
|
+
private performUpdateFromValues;
|
|
27
|
+
private computeSalesPrice;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PriceParameterPriceUpdateService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PriceParameterPriceUpdateService>;
|
|
30
|
+
}
|
|
@@ -7,8 +7,8 @@ export declare class AmountCurrencyInputComponent implements ControlValueAccesso
|
|
|
7
7
|
currencyOptions: CurrencyOption[];
|
|
8
8
|
currency: Currency;
|
|
9
9
|
currencyChange: EventEmitter<Currency>;
|
|
10
|
-
value: number | null;
|
|
11
10
|
disabled: boolean;
|
|
11
|
+
value: number | null;
|
|
12
12
|
private onChange;
|
|
13
13
|
private onTouched;
|
|
14
14
|
writeValue(value: number | null): void;
|
|
@@ -19,5 +19,5 @@ export declare class AmountCurrencyInputComponent implements ControlValueAccesso
|
|
|
19
19
|
onCurrencyChange(value: Currency): void;
|
|
20
20
|
onBlur(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AmountCurrencyInputComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AmountCurrencyInputComponent, "lib-amount-currency-input", never, { "currencyOptions": "currencyOptions"; "currency": "currency"; }, { "currencyChange": "currencyChange"; }, never, never, false>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AmountCurrencyInputComponent, "lib-amount-currency-input", never, { "currencyOptions": "currencyOptions"; "currency": "currency"; "disabled": "disabled"; }, { "currencyChange": "currencyChange"; }, never, never, false>;
|
|
23
23
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { CostItemCalculationType } from '@hitsoft/kadooglu-keops/proxy';
|
|
1
|
+
import { CostItemCalculationType, CostItemSystemCode } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
2
|
export interface CostItemLike {
|
|
3
3
|
calculationType: CostItemCalculationType;
|
|
4
4
|
}
|
|
5
|
+
export interface SystemCodedCostItemLike {
|
|
6
|
+
systemCode?: CostItemSystemCode;
|
|
7
|
+
}
|
|
5
8
|
export declare function isRateCostItem(item: CostItemLike): boolean;
|
|
6
9
|
export declare function isCustomCostItem(item: CostItemLike): boolean;
|
|
7
10
|
export declare function currencyApplies(calculationType: CostItemCalculationType): boolean;
|
|
11
|
+
export declare function isPackagingCostItem(item: SystemCodedCostItemLike): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BusinessRegion } from '@hitsoft/kadooglu-keops/proxy';
|
|
2
|
+
export declare const businessRegionLabels: Record<BusinessRegion, string>;
|
|
3
|
+
export interface BusinessRegionOption {
|
|
4
|
+
value: BusinessRegion;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const BUSINESS_REGION_OPTIONS: BusinessRegionOption[];
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ export * from './exchange-rate.service';
|
|
|
16
16
|
export * from './fob-inland-definition.service';
|
|
17
17
|
export * from './freight-offer.service';
|
|
18
18
|
export * from './incoterm.service';
|
|
19
|
+
export * from './item-classification.service';
|
|
19
20
|
export * from './item-package-group.service';
|
|
20
21
|
export * from './item-package-type.service';
|
|
21
22
|
export * from './item-product-type.service';
|