Subversion Repositories SmartDukaan

Rev

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

Rev 6762 Rev 6821
Line 34... Line 34...
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
    14:i64 codCount
-
 
39
    15:i64 availableQuantity
-
 
40
    16:i64 reservedQuantity
-
 
41
    17:double avgSales
-
 
42
    18:i64 minStockLevel
-
 
43
    19:i64 numberOfDaysStock
-
 
44
    20:i64 suggestedQuantity
-
 
45
    21:i64 numberOfDaysInStock
39
}
46
}
40
 
47
 
41
enum POStatus {
48
enum POStatus {
42
    INIT = 0,                   //Just created.
49
    INIT = 0,                   //Just created.
43
    READY = 1,                  //Posted for fulfillment.
50
    READY = 1,                  //Posted for fulfillment.
44
    PARTIALLY_FULFILLED = 2,    //Partially fulfullied. Possible to accept purchases against it.
51
    PARTIALLY_FULFILLED = 2,    //Partially fulfullied. Possible to accept purchases against it.
45
    PRECLOSED = 3,              //PO was partially fulfilled and the supplier has clarified that he can't supply the remaining items. 
52
    PRECLOSED = 3,              //PO was partially fulfilled and the supplier has clarified that he can't supply the remaining items. 
46
    CLOSED = 4                  //PO was completely fulfilled.
53
    CLOSED = 4                  //PO was completely fulfilled.
47
}
54
}
48
 
55
 
-
 
56
enum POType {
-
 
57
    REAL = 1,                   //PO created manually
-
 
58
    VIRTUAL = 2		            //Virtual PO generated automatically for Ours_External Billing
-
 
59
}
-
 
60
 
-
 
61
enum PurchaseReturnType {
-
 
62
    REAL = 1,                   //Purchase Returns where stock is returned to Vendor
-
 
63
    VIRTUAL = 2		            //Virtual Purchase Return associated with Sale Returns for OursExternal Billing
-
 
64
}
-
 
65
 
49
struct PurchaseOrder {
66
struct PurchaseOrder {
50
    1:i64 id,
67
    1:i64 id,
51
    2:string poNumber,
68
    2:string poNumber,
52
    3:list<LineItem> lineitems,
69
    3:list<LineItem> lineitems,
53
    4:i64 supplierId,
70
    4:i64 supplierId,
Line 56... Line 73...
56
    7:i64 createdAt,
73
    7:i64 createdAt,
57
    8:i64 updatedAt,
74
    8:i64 updatedAt,
58
    9:double totalCost,
75
    9:double totalCost,
59
    10:double freightCharges,
76
    10:double freightCharges,
60
    11:double realizedCost,
77
    11:double realizedCost,
61
    12:double realizedFreightCharges
78
    12:double realizedFreightCharges,
-
 
79
    13:POType type
62
}
80
}
63
 
81
 
64
struct Purchase {
82
struct Purchase {
65
    1:i64 id,
83
    1:i64 id,
66
    2:i64 poId,
84
    2:i64 poId,
Line 72... Line 90...
72
struct PurchaseReturn {
90
struct PurchaseReturn {
73
    1:i64 id,
91
    1:i64 id,
74
    2:i64 vendorId,
92
    2:i64 vendorId,
75
    3:i64 amount,
93
    3:i64 amount,
76
    4:i64 returnTimestamp,
94
    4:i64 returnTimestamp,
77
    5:bool isSettled
95
    5:bool isSettled,
-
 
96
    6:PurchaseReturnType type
78
}
97
}
79
 
98
 
80
struct Invoice {
99
struct Invoice {
81
    1:i64 id,
100
    1:i64 id,
82
    2:string invoiceNumber,
101
    2:string invoiceNumber,