Subversion Repositories SmartDukaan

Rev

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

Rev 6880 Rev 7410
Line 102... Line 102...
102
    1:i64 id,
102
    1:i64 id,
103
    2:string invoiceNumber,
103
    2:string invoiceNumber,
104
    3:i64 date,
104
    3:i64 date,
105
    4:i64 numItems,
105
    4:i64 numItems,
106
    5:string receivedFrom,
106
    5:string receivedFrom,
107
    6:i64 supplierId
107
    6:i64 supplierId,
-
 
108
    7:i64 warehouseId
108
}
109
}
109
 
110
 
110
exception PurchaseServiceException {
111
exception PurchaseServiceException {
111
    1:GenericService.ExceptionType exceptionType,
112
    1:GenericService.ExceptionType exceptionType,
112
    2:string message
113
    2:string message
Line 189... Line 190...
189
    /**
190
    /**
190
     * Fetches all invoices after a given date
191
     * Fetches all invoices after a given date
191
     */
192
     */
192
    list<Invoice> getInvoices(1:i64 date);
193
    list<Invoice> getInvoices(1:i64 date);
193
 
194
 
-
 
195
	/**
-
 
196
     * Fetches all invoices after a given date
-
 
197
     */
-
 
198
    list<Invoice> getInvoicesForWarehouse(1:i64 warehouseId, 2:i64 supplierId, 3:i64 date);
-
 
199
 
194
    /**
200
    /**
195
     * Creates an invoice object
201
     * Creates an invoice object
196
     */
202
     */
197
    void createInvoice(1:Invoice invoice) throws (1:PurchaseServiceException e);
203
    void createInvoice(1:Invoice invoice) throws (1:PurchaseServiceException e);
198
    
204
    
Line 231... Line 237...
231
    **/
237
    **/
232
    i64 createPurchaseForOurExtBilling(1:string invoiceNumber, 2:double unitPrice, 3:i64 itemId);
238
    i64 createPurchaseForOurExtBilling(1:string invoiceNumber, 2:double unitPrice, 3:i64 itemId);
233
    
239
    
234
    void fulfillPOForExtBilling(1:i64 itemId, 2:i64 quantity);
240
    void fulfillPOForExtBilling(1:i64 itemId, 2:i64 quantity);
235
    
241
    
-
 
242
    /**
-
 
243
     * Marks a purchase order as closedcomplete and updates the receivedOn time.
236
    
244
    */
-
 
245
    void closePO(1:i64 poId) throws (1:PurchaseServiceException e),
-
 
246
 
-
 
247
    /**
-
 
248
     * Check if invoice is already received with given supplierId and invoiceNumber
237
    
249
    */
-
 
250
    bool isInvoiceReceived(1:string invoiceNumber, 2:i64 supplierId);
238
}
251
}