Subversion Repositories SmartDukaan

Rev

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

Rev 21873 Rev 21875
Line 58... Line 58...
58
    private List<Supplier> suppliers;
58
    private List<Supplier> suppliers;
59
    private String errorMessage = "";
59
    private String errorMessage = "";
60
    private Supplier supplier;
60
    private Supplier supplier;
61
 
61
 
62
    public String index() {
62
    public String index() {
63
        try {
-
 
64
            Client purchaseClient = new PurchaseClient().getClient();
-
 
65
            suppliers = purchaseClient.getAllSuppliers();
-
 
66
        } catch (Exception e) {
-
 
67
            logger.error("Error loading suppliers", e);
-
 
68
        }
-
 
69
 
-
 
70
        return INDEX;
63
        return INDEX;
71
    }
64
    }
72
    
65
    
73
    /* (non-Javadoc)
66
    /* (non-Javadoc)
74
     * @see in.shop2020.inventory.controllers.BaseController#edit()
67
     * @see in.shop2020.inventory.controllers.BaseController#edit()