Subversion Repositories SmartDukaan

Rev

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

Rev 5527 Rev 5528
Line 27... Line 27...
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)
32
    orderType = Field(String, primary_key = True)
32
    orderType = Field(Integer, primary_key = True)
33
    using_options(shortnames=True)
33
    using_options(shortnames=True)
34
    using_table_options(mysql_engine="InnoDB")   
34
    using_table_options(mysql_engine="InnoDB")   
35
    
35
    
36
class RechargeVoucherTracker(Entity):
36
class RechargeVoucherTracker(Entity):
37
    order = ManyToOne("Order")
37
    order = ManyToOne("Order")