| Line 2100... |
Line 2100... |
| 2100 |
itemHistory.commission = item.commission
|
2100 |
itemHistory.commission = item.commission
|
| 2101 |
itemHistory.serviceTax = item.serviceTax
|
2101 |
itemHistory.serviceTax = item.serviceTax
|
| 2102 |
itemHistory.suppressPriceFeed = item.suppressPriceFeed
|
2102 |
itemHistory.suppressPriceFeed = item.suppressPriceFeed
|
| 2103 |
itemHistory.suppressInventoryFeed = item.suppressInventoryFeed
|
2103 |
itemHistory.suppressInventoryFeed = item.suppressInventoryFeed
|
| 2104 |
itemHistory.updatedOn = item.updatedOn
|
2104 |
itemHistory.updatedOn = item.updatedOn
|
| - |
|
2105 |
itemHistory.maxNlc = item.maxNlc
|
| - |
|
2106 |
itemHistory.skuAtSnapdeal = item.skuAtSnapdeal
|
| 2105 |
|
2107 |
|
| 2106 |
if snapdealitem.exceptionPrice is not None:
|
2108 |
if snapdealitem.exceptionPrice is not None:
|
| 2107 |
item.exceptionPrice = snapdealitem.exceptionPrice
|
2109 |
item.exceptionPrice = snapdealitem.exceptionPrice
|
| 2108 |
if snapdealitem.warehouseId is not None:
|
2110 |
if snapdealitem.warehouseId is not None:
|
| 2109 |
item.warehouseId = snapdealitem.warehouseId
|
2111 |
item.warehouseId = snapdealitem.warehouseId
|
| Line 2118... |
Line 2120... |
| 2118 |
if snapdealitem.commission is not None:
|
2120 |
if snapdealitem.commission is not None:
|
| 2119 |
item.commission = snapdealitem.commission
|
2121 |
item.commission = snapdealitem.commission
|
| 2120 |
if snapdealitem.serviceTax is not None:
|
2122 |
if snapdealitem.serviceTax is not None:
|
| 2121 |
item.serviceTax = snapdealitem.serviceTax
|
2123 |
item.serviceTax = snapdealitem.serviceTax
|
| 2122 |
item.suppressPriceFeed =snapdealitem.suppressPriceFeed
|
2124 |
item.suppressPriceFeed =snapdealitem.suppressPriceFeed
|
| 2123 |
item.suppressInventoryFeed =snapdealitem.suppressInventoryFeed
|
2125 |
item.suppressInventoryFeed =snapdealitem.suppressInventoryFeed
|
| - |
|
2126 |
item.maxNlc = snapdealitem.maxNlc
|
| - |
|
2127 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
| 2124 |
item.updatedOn = datetime.datetime.now()
|
2128 |
item.updatedOn = datetime.datetime.now()
|
| 2125 |
session.commit()
|
2129 |
session.commit()
|
| 2126 |
return True
|
2130 |
return True
|
| 2127 |
else:
|
2131 |
else:
|
| 2128 |
item = SnapdealItem()
|
2132 |
item = SnapdealItem()
|
| Line 2144... |
Line 2148... |
| 2144 |
item.commission = snapdealitem.commission
|
2148 |
item.commission = snapdealitem.commission
|
| 2145 |
if snapdealitem.serviceTax is not None:
|
2149 |
if snapdealitem.serviceTax is not None:
|
| 2146 |
item.serviceTax = snapdealitem.serviceTax
|
2150 |
item.serviceTax = snapdealitem.serviceTax
|
| 2147 |
item.suppressPriceFeed =snapdealitem.suppressPriceFeed
|
2151 |
item.suppressPriceFeed =snapdealitem.suppressPriceFeed
|
| 2148 |
item.suppressInventoryFeed =snapdealitem.suppressInventoryFeed
|
2152 |
item.suppressInventoryFeed =snapdealitem.suppressInventoryFeed
|
| - |
|
2153 |
item.maxNlc = snapdealitem.maxNlc
|
| - |
|
2154 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
| 2149 |
item.updatedOn = datetime.datetime.now()
|
2155 |
item.updatedOn = datetime.datetime.now()
|
| 2150 |
session.commit()
|
2156 |
session.commit()
|
| 2151 |
return True
|
2157 |
return True
|
| 2152 |
return False
|
2158 |
return False
|
| 2153 |
except:
|
2159 |
except:
|