Commit 466b86b5 authored by sunko's avatar sunko
Browse files

fix: rework

parent ee3279ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@
		<div class="form-group row">
			<div class="col-sm-9 offset-sm-2">
				<div class="checkbox">
					<nb-checkbox status="success" formControlName="isStoreMode">
					<nb-checkbox status="success" formControlName="inStoreMode">
						{{
							'WAREHOUSE_VIEW.MUTATION.IN_STORE_MODE' | translate
						}}
+6 −6
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ export type WarehouseManageTabsDetails = Pick<
	| 'preferRestrictedCarriersForDelivery'
	| 'ordersShortProcess'
	| 'orderCancelation'
	| 'isStoreMode'
	| 'inStoreMode'
>;

@Component({
@@ -78,8 +78,8 @@ export class WarehouseManageTabsDetailsComponent
		private readonly _translateService: TranslateService
	) {}

	get isStoreMode() {
		return this.form.get('isStoreMode');
	get inStoreMode() {
		return this.form.get('inStoreMode');
	}

	get name() {
@@ -181,7 +181,7 @@ export class WarehouseManageTabsDetailsComponent
			preferRestrictedCarriersForDelivery: [false],
			carriersIds: [[]],
			ordersShortProcess: [false],
			isStoreMode: [],
			inStoreMode: [],

			enabledOrderCancelation: [false],
			stateOrderCancelation: [0],
@@ -209,7 +209,7 @@ export class WarehouseManageTabsDetailsComponent
			useOnlyRestrictedCarriersForDelivery: boolean;
			preferRestrictedCarriersForDelivery: boolean;
			ordersShortProcess: boolean;
			isStoreMode: boolean;
			inStoreMode: boolean;

			enabledOrderCancelation: boolean;
			stateOrderCancelation: number;
@@ -218,7 +218,7 @@ export class WarehouseManageTabsDetailsComponent
		return {
			ordersShortProcess: basicInfo.ordersShortProcess,
			isActive: basicInfo.isActive,
			isStoreMode: basicInfo.isStoreMode,
			inStoreMode: basicInfo.inStoreMode,
			isManufacturing: basicInfo.isManufacturing,
			isCarrierRequired: basicInfo.isCarrierRequired,
			name: basicInfo.name,
+1 −1
Original line number Diff line number Diff line
@@ -462,7 +462,7 @@
			"EDIT": "Edit",
			"ZONE_NAME": "Zone name",
			"UNALLOWED_ORDER_CANCELATION": "Unallowed Order Cancelation",
			"IN_STORE_MODE": "In Store mode",
			"IN_STORE_MODE": "In-store mode",
			"ORDER_CANCELATION_OPTIONS": {
				"ORDERING": "After Ordering",
				"START_PROCESSING": "After Start Processing",
+1 −1
Original line number Diff line number Diff line
@@ -462,7 +462,7 @@
			"EDIT": "Edit",
			"ZONE_NAME": "Zone name",
			"UNALLOWED_ORDER_CANCELATION": "Unallowed Order Cancelation",
			"IN_STORE_MODE": "In Store mode",
			"IN_STORE_MODE": "In-store mode",
			"ORDER_CANCELATION_OPTIONS": {
				"ORDERING": "After Ordering",
				"START_PROCESSING": "After Start Processing",
+1 −1
Original line number Diff line number Diff line
@@ -462,7 +462,7 @@
			"EDIT": "Edit",
			"ZONE_NAME": "Zone name",
			"UNALLOWED_ORDER_CANCELATION": "Unallowed Order Cancelation",
			"IN_STORE_MODE": "In Store mode",
			"IN_STORE_MODE": "In-store mode",
			"ORDER_CANCELATION_OPTIONS": {
				"ORDERING": "After Ordering",
				"START_PROCESSING": "After Start Processing",
Loading