Subversion Repositories SmartDukaan

Rev

Rev 5945 | Rev 6746 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5945 Rev 5948
Line 6... Line 6...
6
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
6
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
7
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
7
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
8
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
8
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
9
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
9
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
10
import in.shop2020.model.v1.inventory.Warehouse;
10
import in.shop2020.model.v1.inventory.Warehouse;
11
import in.shop2020.thrift.clients.CatalogClient;
11
import in.shop2020.thrift.clients.InventoryClient;
12
import in.shop2020.thrift.clients.HelperClient;
12
import in.shop2020.thrift.clients.HelperClient;
13
import in.shop2020.utils.DashboardUser;
13
import in.shop2020.utils.DashboardUser;
14
import in.shop2020.utils.HelperService.Client;
14
import in.shop2020.utils.HelperService.Client;
15
import in.shop2020.utils.HelperServiceException;
15
import in.shop2020.utils.HelperServiceException;
16
 
16
 
Line 55... Line 55...
55
            }
55
            }
56
			status = true;
56
			status = true;
57
			nextScreen = NEXT.INBOX;
57
			nextScreen = NEXT.INBOX;
58
			
58
			
59
			warehouseId = dashboardUser.getWarehouseId();
59
			warehouseId = dashboardUser.getWarehouseId();
60
			CatalogClient csc = new CatalogClient();
60
			InventoryClient csc = new InventoryClient();
61
			in.shop2020.model.v1.catalog.CatalogService.Client iClient = csc.getClient();
61
			in.shop2020.model.v1.inventory.InventoryService.Client iClient = csc.getClient();
62
			Warehouse warehouse = iClient.getWarehouse(warehouseId);
62
			Warehouse warehouse = iClient.getWarehouse(warehouseId);
63
			switch(warehouse.getBillingType()){
63
			switch(warehouse.getBillingType()){
64
			case OURS:
64
			case OURS:
65
			    billingType = BillingType.OURS;
65
			    billingType = BillingType.OURS;
66
			    break;
66
			    break;