Subversion Repositories SmartDukaan

Rev

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

Rev 11751 Rev 11801
Line 101... Line 101...
101
struct Purchase {
101
struct Purchase {
102
    1:i64 id,
102
    1:i64 id,
103
    2:i64 poId,
103
    2:i64 poId,
104
    3:string invoiceNumber,
104
    3:string invoiceNumber,
105
    4:i64 receivedOn,
105
    4:i64 receivedOn,
106
    5:double freightCharges
106
    5:double freightCharges,
-
 
107
    6:string purchaseComments
107
}
108
}
108
 
109
 
109
struct PurchaseReturn {
110
struct PurchaseReturn {
110
    1:i64 id,
111
    1:i64 id,
111
    2:i64 vendorId,
112
    2:i64 vendorId,
Line 156... Line 157...
156
    
157
    
157
    /**
158
    /**
158
    Creates a purchase for the given purchase order.
159
    Creates a purchase for the given purchase order.
159
    Throws an exception if no more purchases are allowed against the given purchase order.
160
    Throws an exception if no more purchases are allowed against the given purchase order.
160
    */
161
    */
161
    i64 startPurchase(1:i64 purchaseOrderId, 2:string invoiceNumber, 3:double freightCharges) throws (1:PurchaseServiceException e),
162
    i64 startPurchase(1:i64 purchaseOrderId, 2:string invoiceNumber, 3:double freightCharges, 4:string purchaseComments) throws (1:PurchaseServiceException e),
162
    
163
    
163
    /**
164
    /**
164
    Marks a purchase as complete and updates the receivedOn time.
165
    Marks a purchase as complete and updates the receivedOn time.
165
    Throws an exception if no such purchase exists.
166
    Throws an exception if no such purchase exists.
166
    */
167
    */