Subversion Repositories SmartDukaan

Rev

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

Rev 5508 Rev 5527
Line 26... Line 26...
26
 
26
 
27
if __name__=="__main__":
27
if __name__=="__main__":
28
    initialize()
28
    initialize()
29
 
29
 
30
class InvoiceIDGenerator(Entity):
30
class InvoiceIDGenerator(Entity):
-
 
31
    id = Field(Integer)
31
    id=Field(Integer, primary_key=True)
32
    orderType = Field(String, primary_key = True)
32
    using_options(shortnames=True)
33
    using_options(shortnames=True)
33
    using_table_options(mysql_engine="InnoDB")   
34
    using_table_options(mysql_engine="InnoDB")   
34
    
35
    
35
class RechargeVoucherTracker(Entity):
36
class RechargeVoucherTracker(Entity):
36
    order = ManyToOne("Order")
37
    order = ManyToOne("Order")
Line 135... Line 136...
135
    first_dlvyatmp_timestamp = Field(DateTime)
136
    first_dlvyatmp_timestamp = Field(DateTime)
136
    orderInventory = OneToMany("OrderInventory")
137
    orderInventory = OneToMany("OrderInventory")
137
    vendor_paid = Field(Boolean, default=0, server_default="0")
138
    vendor_paid = Field(Boolean, default=0, server_default="0")
138
    originalOrderId = Field(Integer)
139
    originalOrderId = Field(Integer)
139
    fulfilmentWarehouseId = Field(Integer)
140
    fulfilmentWarehouseId = Field(Integer)
-
 
141
    orderType = Field(Integer)
140
    using_options(shortnames=True)
142
    using_options(shortnames=True)
141
    using_table_options(mysql_engine="InnoDB")
143
    using_table_options(mysql_engine="InnoDB")
142
    
144
    
143
class CodVerificationAgent(Entity):
145
class CodVerificationAgent(Entity):
144
    orderId = Field(Integer, primary_key=True, autoincrement=True)
146
    orderId = Field(Integer, primary_key=True, autoincrement=True)
Line 209... Line 211...
209
    settlementDate = Field(DateTime)
211
    settlementDate = Field(DateTime)
210
    serviceTax = Field(Numeric(precision=11, scale=3, asdecimal=False))
212
    serviceTax = Field(Numeric(precision=11, scale=3, asdecimal=False))
211
    otherCharges = Field(Numeric(precision=11, scale=3, asdecimal=False))
213
    otherCharges = Field(Numeric(precision=11, scale=3, asdecimal=False))
212
    netCollection = Field(Numeric(precision=11, scale=3, asdecimal=False))
214
    netCollection = Field(Numeric(precision=11, scale=3, asdecimal=False))
213
    using_options(shortnames=True)
215
    using_options(shortnames=True)
-
 
216
    using_table_options(mysql_engine="InnoDB")
-
 
217
 
-
 
218
class Attribute(Entity):
-
 
219
    orderId = Field(Integer)
-
 
220
    name = Field(String(100))
-
 
221
    value = Field(String(100))
-
 
222
    using_options(shortnames=True)
214
    using_table_options(mysql_engine="InnoDB")
223
    using_table_options(mysql_engine="InnoDB")
215
224