Commit cff72130 authored by Tsvetelina Yordanova's avatar Tsvetelina Yordanova
Browse files

fix: #1189 remove autoConfirm change

parent 068ffa4a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -270,9 +270,6 @@ export class WarehousesOrdersService
			orderNumber: await this.getNextOrderNumber(warehouseId),
			orderType,
			...(options.autoConfirm ? { isConfirmed: true } : {}),
			...(options.autoConfirm
				? { warehouseStatus: OrderWarehouseStatus.ReadyForProcessing }
				: { warehouseStatus: OrderWarehouseStatus.NoStatus }),
		});

		// we do all remove operations and notify about warehouse orders change after we remove products from warehouse