| Line 6... |
Line 6... |
| 6 |
import com.spice.profitmandi.common.util.ExcelUtils;
|
6 |
import com.spice.profitmandi.common.util.ExcelUtils;
|
| 7 |
import com.spice.profitmandi.common.util.Utils;
|
7 |
import com.spice.profitmandi.common.util.Utils;
|
| 8 |
import com.spice.profitmandi.dao.entity.catalog.BrandCatalog;
|
8 |
import com.spice.profitmandi.dao.entity.catalog.BrandCatalog;
|
| 9 |
import com.spice.profitmandi.dao.entity.catalog.Catalog;
|
9 |
import com.spice.profitmandi.dao.entity.catalog.Catalog;
|
| 10 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
10 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 11 |
import com.spice.profitmandi.dao.entity.dtr.Brand;
|
- |
|
| 12 |
import com.spice.profitmandi.dao.entity.inventory.VendorCatalogPricing;
|
11 |
import com.spice.profitmandi.dao.entity.inventory.VendorCatalogPricing;
|
| 13 |
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
|
12 |
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
|
| 14 |
import com.spice.profitmandi.dao.entity.warehouse.Supplier;
|
13 |
import com.spice.profitmandi.dao.entity.warehouse.Supplier;
|
| 15 |
import com.spice.profitmandi.dao.model.StateGstRateModel;
|
14 |
import com.spice.profitmandi.dao.model.StateGstRateModel;
|
| 16 |
import com.spice.profitmandi.dao.repository.catalog.BrandsRepository;
|
15 |
import com.spice.profitmandi.dao.repository.catalog.BrandsRepository;
|
| Line 179... |
Line 178... |
| 179 |
}
|
178 |
}
|
| 180 |
catalog.setBrandId(brand.getId());
|
179 |
catalog.setBrandId(brand.getId());
|
| 181 |
catalog.setBrand(itemLoaderModel.getBrand());
|
180 |
catalog.setBrand(itemLoaderModel.getBrand());
|
| 182 |
catalog.setModelName(itemLoaderModel.getModelName());
|
181 |
catalog.setModelName(itemLoaderModel.getModelName());
|
| 183 |
catalog.setModelNumber(itemLoaderModel.getModelNumber());
|
182 |
catalog.setModelNumber(itemLoaderModel.getModelNumber());
|
| - |
|
183 |
catalog.setCategoryId(itemLoaderModel.getCategoryId());
|
| 184 |
catalog.setCreated(LocalDateTime.now());
|
184 |
catalog.setCreated(LocalDateTime.now());
|
| 185 |
catalog.setCreatedBy("System");
|
185 |
catalog.setCreatedBy("System");
|
| 186 |
catalogRepository.persist(catalog);
|
186 |
catalogRepository.persist(catalog);
|
| 187 |
}
|
187 |
}
|
| 188 |
//Finally either got valid existing model or new model altogether
|
188 |
//Finally either got valid existing model or new model altogether
|