Subversion Repositories SmartDukaan

Rev

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

Rev 4496 Rev 4555
Line 63... Line 63...
63
struct Purchase {
63
struct Purchase {
64
    1:i64 id,
64
    1:i64 id,
65
    2:i64 poId,
65
    2:i64 poId,
66
    3:string invoiceNumber,
66
    3:string invoiceNumber,
67
    4:i64 receivedOn,
67
    4:i64 receivedOn,
68
    5:double freightCharges
68
    5:double freightCharges,
69
}
69
}
70
 
70
 
71
exception PurchaseServiceException {
71
exception PurchaseServiceException {
72
    1:GenericService.ExceptionType exceptionType,
72
    1:GenericService.ExceptionType exceptionType,
73
    2:string message
73
    2:string message
Line 109... Line 109...
109
    
109
    
110
    /**
110
    /**
111
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
111
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
112
    */
112
    */
113
    list<Purchase> getAllPurchases(1:i64 purchaseOrderId, 2:bool open) throws (1:PurchaseServiceException e),
113
    list<Purchase> getAllPurchases(1:i64 purchaseOrderId, 2:bool open) throws (1:PurchaseServiceException e),
114
    
114
 
115
    /**
115
    /**
116
     * Returns the price at which we bought an item from a supplier
116
     * Returns the purchase order object for a given purchase
117
     */
117
     */
118
    i64 getPrice(1:i64 purchaseId, 2:i64 itemId);
118
    PurchaseOrder getPurchaseOrderForPurchase(1:i64 purchaseId);
119
}
119
}