Subversion Repositories SmartDukaan

Rev

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

Rev 5504 Rev 5512
Line 255... Line 255...
255
    sellingPrice = Field(Float) 
255
    sellingPrice = Field(Float) 
256
    using_options(shortnames=True)
256
    using_options(shortnames=True)
257
    using_table_options(mysql_engine="InnoDB")
257
    using_table_options(mysql_engine="InnoDB")
258
 
258
 
259
class VoucherItemMapping(Entity):
259
class VoucherItemMapping(Entity):
260
    voucherType = Field(String(200), primary_key=True)
260
    voucherType = Field(Integer, primary_key=True)
261
    item = ManyToOne('Item', primary_key=True)
261
    item = ManyToOne('Item', primary_key=True)
262
    amount = Field(Integer, default=0, server_default="0")
262
    amount = Field(Integer, default=0, server_default="0")
263
    using_options(shortnames=True)
263
    using_options(shortnames=True)
264
    using_table_options(mysql_engine="InnoDB")
264
    using_table_options(mysql_engine="InnoDB")
265
 
265