Subversion Repositories SmartDukaan

Rev

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

Rev 4555 Rev 4754
Line 32... Line 32...
32
    8:string itemNumber,
32
    8:string itemNumber,
33
    9:double quantity,
33
    9:double quantity,
34
    10:double unfulfilledQuantity,
34
    10:double unfulfilledQuantity,
35
    11:i64 createdAt,
35
    11:i64 createdAt,
36
    12:double unitPrice,
36
    12:double unitPrice,
37
    13:bool fulfilled
37
    13:bool fulfilled,
-
 
38
    14:i64 codCount
38
}
39
}
39
 
40
 
40
enum POStatus {
41
enum POStatus {
41
    INIT = 0,                   //Just created.
42
    INIT = 0,                   //Just created.
42
    READY = 1,                  //Posted for fulfillment.
43
    READY = 1,                  //Posted for fulfillment.
Line 114... Line 115...
114
 
115
 
115
    /**
116
    /**
116
     * Returns the purchase order object for a given purchase
117
     * Returns the purchase order object for a given purchase
117
     */
118
     */
118
    PurchaseOrder getPurchaseOrderForPurchase(1:i64 purchaseId);
119
    PurchaseOrder getPurchaseOrderForPurchase(1:i64 purchaseId);
-
 
120
 
-
 
121
    /**
-
 
122
     * Creates purchase order objects from pending orders
-
 
123
     */
-
 
124
    list<PurchaseOrder> getPendingPurchaseOrders(1:i64 warehouseId) throws (1:PurchaseServiceException e);
-
 
125
 
-
 
126
    /**
-
 
127
     * Returns all the valid suppliers
-
 
128
     */
-
 
129
    list<Supplier> getSuppliers() throws (1:PurchaseServiceException e);
-
 
130
 
-
 
131
    /**
-
 
132
     * Fulfills a given purchase order with an item.
-
 
133
     */
-
 
134
    void fulfillPO(1:i64 purchaseOrderId, 2:i64 itemId, 3:i64 quantity) throws (1:PurchaseServiceException e);
-
 
135
 
-
 
136
    /**
-
 
137
     * Amends a PO as per the new lineitems passed 
-
 
138
     */
-
 
139
    void updatePurchaseOrder(1:PurchaseOrder purchaseOrder) throws (1:PurchaseServiceException e),
119
}
140
}