Subversion Repositories SmartDukaan

Rev

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

Rev 12357 Rev 13691
Line 80... Line 80...
80
	VAT = 0,
80
	VAT = 0,
81
	CST = 1,
81
	CST = 1,
82
	CFORM = 2
82
	CFORM = 2
83
}
83
}
84
 
84
 
-
 
85
enum PrReasonType {
-
 
86
	WRONG_GRN = 1,
-
 
87
	ACTUAL_PR = 2,
-
 
88
	REPLACEMENT = 3
-
 
89
}
-
 
90
 
-
 
91
enum SettlementType {
-
 
92
	CREDIT_NOTE = 1,
-
 
93
	REPLACEMENT = 2,
-
 
94
	AGAINST_GRN = 3
-
 
95
}
-
 
96
 
85
struct PurchaseOrder {
97
struct PurchaseOrder {
86
    1:i64 id,
98
    1:i64 id,
87
    2:string poNumber,
99
    2:string poNumber,
88
    3:list<LineItem> lineitems,
100
    3:list<LineItem> lineitems,
89
    4:i64 supplierId,
101
    4:i64 supplierId,
Line 94... Line 106...
94
    9:i64 updatedAt,
106
    9:i64 updatedAt,
95
    10:double totalCost,
107
    10:double totalCost,
96
    11:double freightCharges,
108
    11:double freightCharges,
97
    12:double realizedCost,
109
    12:double realizedCost,
98
    13:double realizedFreightCharges,
110
    13:double realizedFreightCharges,
99
    14:POType type
111
    14:POType type,
100
    15:TaxType taxType
112
    15:TaxType taxType
101
}
113
}
102
 
114
 
103
struct Purchase {
115
struct Purchase {
104
    1:i64 id,
116
    1:i64 id,
Line 114... Line 126...
114
    2:i64 vendorId,
126
    2:i64 vendorId,
115
    3:i64 amount,
127
    3:i64 amount,
116
    4:i64 returnTimestamp,
128
    4:i64 returnTimestamp,
117
    5:bool isSettled,
129
    5:bool isSettled,
118
    6:PurchaseReturnType type,
130
    6:PurchaseReturnType type,
119
    7:PurchaseReturnInventoryType returnInventoryType
131
    7:PurchaseReturnInventoryType returnInventoryType,
-
 
132
    8:SettlementType currentSettlementType,
-
 
133
    9:i64 latestSettlementDate,
-
 
134
    10:PrReasonType purchaseReturnType,
-
 
135
    11:string reasonText,
-
 
136
    12:string documentNumber,
-
 
137
    13:string createdBy,
-
 
138
    14:i64 unsettledAmount  
-
 
139
}
-
 
140
 
-
 
141
struct PurchaseReturnSettlement {
-
 
142
	1:i64 purchaseReturnId,
-
 
143
	2:SettlementType settlementType,
-
 
144
	3:i64 settlementAmount,
-
 
145
	4:i64 settlementDate,
-
 
146
	5:string settlementBy
-
 
147
	6:string documentNumber
120
}
148
}
121
 
149
 
-
 
150
 
122
struct Invoice {
151
struct Invoice {
123
    1:i64 id,
152
    1:i64 id,
124
    2:string invoiceNumber,
153
    2:string invoiceNumber,
125
    3:i64 date,
154
    3:i64 date,
126
    4:i64 numItems,
155
    4:i64 numItems,
Line 283... Line 312...
283
    
312
    
284
    /**
313
    /**
285
     * Get Purchase Return from Id
314
     * Get Purchase Return from Id
286
    */
315
    */
287
    PurchaseReturn getPurchaseReturn(1:i64 id)throws (1:PurchaseServiceException e);
316
    PurchaseReturn getPurchaseReturn(1:i64 id)throws (1:PurchaseServiceException e);
-
 
317
    
-
 
318
    bool markPurchasereturnSettled(1:i64 id, 2:SettlementType settlementType, 3:string documentNumber, 4:string settlementBy, 5:i64 settledAmount) throws (1:PurchaseServiceException e);
-
 
319
    
-
 
320
    list<PurchaseReturnSettlement> getPrSettlementsForPurchaseReturn(1:i64 purchaseReturnId) throws (1:PurchaseServiceException e);
-
 
321
    
-
 
322
    void updatePurchaseReturn(1:PurchaseReturn purchaseReturn) throws (1:PurchaseServiceException e);
288
}
323
}