Subversion Repositories SmartDukaan

Rev

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

Rev 4917 Rev 4979
Line 125... Line 125...
125
    dealerPrice = Field(Float)
125
    dealerPrice = Field(Float)
126
    transfer_price = Field(Float)
126
    transfer_price = Field(Float)
127
    using_options(shortnames=True)
127
    using_options(shortnames=True)
128
    using_table_options(mysql_engine="InnoDB")
128
    using_table_options(mysql_engine="InnoDB")
129
 
129
 
130
#class VendorDetails(Entity):
-
 
131
#    vendor = ManyToOne('Vendor', primary_key=True)
-
 
132
#    type = Field(Integer, primary_key=True)
-
 
133
#    holiday = Field(Integer, primary_key=True)
-
 
134
#    using_options(shortnames=True)
-
 
135
#    using_table_options(mysql_engine="InnoDB")
-
 
136
 
-
 
137
class VendorItemProcurementDelay(Entity):
130
class VendorItemProcurementDelay(Entity):
138
    vendor = ManyToOne('Vendor', primary_key=True)
131
    vendor = ManyToOne('Vendor', primary_key=True)
139
    item = ManyToOne('Item', primary_key=True)
132
    item = ManyToOne('Item', primary_key=True)
140
    procurementDelay = Field(Integer)
133
    procurementDelay = Field(Integer)
141
    using_options(shortnames=True)
134
    using_options(shortnames=True)
142
    using_table_options(mysql_engine="InnoDB")
135
    using_table_options(mysql_engine="InnoDB")
143
 
136
 
144
#class VendorHolidays(Entity):
137
class VendorHolidays(Entity):
145
#    vendor = ManyToOne('Vendor', primary_key=True)
138
    vendor = ManyToOne('Vendor', primary_key=True)
146
#    date = Field(Date, primary_key=True)
139
    holidayType = Field(Integer, primary_key=True, autoincrement=False)
-
 
140
    holidayValue = Field(Integer, primary_key=True, autoincrement=False)
147
#    occasion = Field(String(100))
141
    occasion = Field(String(100))
148
#    using_options(shortnames=True)
142
    using_options(shortnames=True)
149
#    using_table_options(mysql_engine="InnoDB")
143
    using_table_options(mysql_engine="InnoDB")
150
        
144
        
151
class ItemInfo(Entity):
145
class ItemInfo(Entity):
152
    id = Field(Integer, primary_key=True, autoincrement=True)
146
    id = Field(Integer, primary_key=True, autoincrement=True)
153
    key = Field(String(30))
147
    key = Field(String(30))
154
    value = Field(String(100))
148
    value = Field(String(100))