Subversion Repositories SmartDukaan

Rev

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

Rev 5185 Rev 5235
Line 14... Line 14...
14
 
14
 
15
import java.util.List;
15
import java.util.List;
16
 
16
 
17
import org.apache.commons.logging.Log;
17
import org.apache.commons.logging.Log;
18
import org.apache.commons.logging.LogFactory;
18
import org.apache.commons.logging.LogFactory;
-
 
19
import org.apache.thrift.TException;
-
 
20
import org.apache.thrift.transport.TTransportException;
19
 
21
 
20
/**
22
/**
21
 * @author mandeep
23
 * @author mandeep
22
 *
24
 *
23
 */
25
 */
Line 51... Line 53...
51
            logger.error("Could not fetch inventory items", e);
53
            logger.error("Could not fetch inventory items", e);
52
        }
54
        }
53
 
55
 
54
        return index();
56
        return index();
55
    }
57
    }
-
 
58
 
-
 
59
    public String getPONumber(long purchaseId) {
-
 
60
        try {
-
 
61
            in.shop2020.purchase.PurchaseService.Client purchaseClient = new PurchaseClient().getClient();
-
 
62
            return purchaseClient.getPurchaseOrderForPurchase(purchaseId).getPoNumber();
-
 
63
        } catch (Exception e) {
-
 
64
            return "N/A";
-
 
65
        }
56
    
66
    }
-
 
67
 
57
    public String getWarehouseDisplayName(long warehouseId) {
68
    public String getWarehouseDisplayName(long warehouseId) {
58
        try {
69
        try {
59
            in.shop2020.model.v1.catalog.InventoryService.Client catalogClient = new CatalogClient().getClient();
70
            in.shop2020.model.v1.catalog.InventoryService.Client catalogClient = new CatalogClient().getClient();
60
            return catalogClient.getWarehouse(warehouseId).getDisplayName();
71
            return catalogClient.getWarehouse(warehouseId).getDisplayName();
61
        } catch (Exception e) {
72
        } catch (Exception e) {