Subversion Repositories SmartDukaan

Rev

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

Rev 19236 Rev 20873
Line 101... Line 101...
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 = OneToMany("User")
105
    user = OneToMany("User")
-
 
106
    wallet_amount = Field(Float, default=0, server_default="0")
106
    using_options(shortnames=True)
107
    using_options(shortnames=True)
107
    using_table_options(mysql_engine="InnoDB")
108
    using_table_options(mysql_engine="InnoDB")
108
 
109
 
109
class Discount(Entity):
110
class Discount(Entity):
110
    line = ManyToOne("Line", primary_key=True)
111
    line = ManyToOne("Line", primary_key=True)