Commit ee3279ed authored by sunko's avatar sunko
Browse files

feat: implemented enable disable store mode

parent 8c88619c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -172,6 +172,17 @@
				</select>
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-9 offset-sm-2">
				<div class="checkbox">
					<nb-checkbox status="success" formControlName="isStoreMode">
						{{
							'WAREHOUSE_VIEW.MUTATION.IN_STORE_MODE' | translate
						}}
					</nb-checkbox>
				</div>
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2 control-label">{{
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ export type WarehouseManageTabsDetails = Pick<
	| 'preferRestrictedCarriersForDelivery'
	| 'ordersShortProcess'
	| 'orderCancelation'
	| 'isStoreMode'
>;

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

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

	get name() {
		return this.form.get('name');
	}
@@ -176,6 +181,7 @@ export class WarehouseManageTabsDetailsComponent
			preferRestrictedCarriersForDelivery: [false],
			carriersIds: [[]],
			ordersShortProcess: [false],
			isStoreMode: [],

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

			enabledOrderCancelation: boolean;
			stateOrderCancelation: number;
@@ -211,6 +218,7 @@ export class WarehouseManageTabsDetailsComponent
		return {
			ordersShortProcess: basicInfo.ordersShortProcess,
			isActive: basicInfo.isActive,
			isStoreMode: basicInfo.isStoreMode,
			isManufacturing: basicInfo.isManufacturing,
			isCarrierRequired: basicInfo.isCarrierRequired,
			name: basicInfo.name,
+1 −0
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@
			"ADD": "Добави",
			"EDIT": "Редактирай",
			"ZONE_NAME": "Име на зона",
			"IN_STORE_MODE": "В режим на съхраняване",
			"ERRORS": {
				"NAME_IS_REQUIRED": "Името на склада е задължително",
				"NAME_ATLEAST_3_CHARS": "Името трябва да е с дължина най-малко 3 знака",
+1 −0
Original line number Diff line number Diff line
@@ -462,6 +462,7 @@
			"EDIT": "Edit",
			"ZONE_NAME": "Zone name",
			"UNALLOWED_ORDER_CANCELATION": "Unallowed Order Cancelation",
			"IN_STORE_MODE": "In Store mode",
			"ORDER_CANCELATION_OPTIONS": {
				"ORDERING": "After Ordering",
				"START_PROCESSING": "After Start Processing",
+1 −0
Original line number Diff line number Diff line
@@ -462,6 +462,7 @@
			"EDIT": "Edit",
			"ZONE_NAME": "Zone name",
			"UNALLOWED_ORDER_CANCELATION": "Unallowed Order Cancelation",
			"IN_STORE_MODE": "In Store mode",
			"ORDER_CANCELATION_OPTIONS": {
				"ORDERING": "After Ordering",
				"START_PROCESSING": "After Start Processing",
Loading