Subversion Repositories SmartDukaan

Rev

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

Rev 8182 Rev 9416
Line 33... Line 33...
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
    14:i64 codCount,
39
    15:i64 availableQuantity
39
    15:i64 availableQuantity,
40
    16:i64 reservedQuantity
40
    16:i64 reservedQuantity,
41
    17:double avgSales
41
    17:double avgSales,
42
    18:i64 minStockLevel
42
    18:i64 minStockLevel,
43
    19:i64 numberOfDaysStock
43
    19:i64 numberOfDaysStock,
44
    20:i64 suggestedQuantity
44
    20:i64 suggestedQuantity,
45
    21:i64 numberOfDaysInStock
45
    21:i64 numberOfDaysInStock,
46
    22:i64 rtoOrders
46
    22:i64 rtoOrders,
47
    23:string lastXdaysSale
47
    23:string lastXdaysSale,
48
    24:i64 previouslyOrderedQty
48
    24:i64 previouslyOrderedQty,
49
    25:double nlc
49
    25:double nlc,
-
 
50
    26:double mrp
50
}
51
}
51
 
52
 
52
enum POStatus {
53
enum POStatus {
53
    INIT = 0,                   //Just created.
54
    INIT = 0,                   //Just created.
54
    READY = 1,                  //Posted for fulfillment.
55
    READY = 1,                  //Posted for fulfillment.
Line 65... Line 66...
65
enum PurchaseReturnType {
66
enum PurchaseReturnType {
66
    REAL = 1,                   //Purchase Returns where stock is returned to Vendor
67
    REAL = 1,                   //Purchase Returns where stock is returned to Vendor
67
    VIRTUAL = 2		            //Virtual Purchase Return associated with Sale Returns for OursExternal Billing
68
    VIRTUAL = 2		            //Virtual Purchase Return associated with Sale Returns for OursExternal Billing
68
}
69
}
69
 
70
 
-
 
71
enum TaxType {
-
 
72
	VAT = 0,
-
 
73
	CST = 1,
-
 
74
	CFORM = 2
-
 
75
}
-
 
76
 
70
struct PurchaseOrder {
77
struct PurchaseOrder {
71
    1:i64 id,
78
    1:i64 id,
72
    2:string poNumber,
79
    2:string poNumber,
73
    3:list<LineItem> lineitems,
80
    3:list<LineItem> lineitems,
74
    4:i64 supplierId,
81
    4:i64 supplierId,
Line 79... Line 86...
79
    9:double totalCost,
86
    9:double totalCost,
80
    10:double freightCharges,
87
    10:double freightCharges,
81
    11:double realizedCost,
88
    11:double realizedCost,
82
    12:double realizedFreightCharges,
89
    12:double realizedFreightCharges,
83
    13:POType type
90
    13:POType type
-
 
91
    14:TaxType taxType
84
}
92
}
85
 
93
 
86
struct Purchase {
94
struct Purchase {
87
    1:i64 id,
95
    1:i64 id,
88
    2:i64 poId,
96
    2:i64 poId,