Subversion Repositories SmartDukaan

Rev

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

Rev 13136 Rev 13139
Line 100... Line 100...
100
    updated_on = Field(DateTime)
100
    updated_on = Field(DateTime)
101
    lines = OneToMany("Line")
101
    lines = OneToMany("Line")
102
    total_price = Field(Float)
102
    total_price = Field(Float)
103
    discounted_price = Field(Float)
103
    discounted_price = Field(Float)
104
    coupon_code = Field(String(20))
104
    coupon_code = Field(String(20))
105
    user = ManyToOne("User")
105
    user = OneToMany("User")
106
    using_options(shortnames=True)
106
    using_options(shortnames=True)
107
    using_table_options(mysql_engine="InnoDB")
107
    using_table_options(mysql_engine="InnoDB")
108
 
108
 
109
class Discount(Entity):
109
class Discount(Entity):
110
    line = ManyToOne("Line", primary_key=True)
110
    line = ManyToOne("Line", primary_key=True)