|
@@ -101,7 +101,7 @@ public class PurcProductServiceImpl implements PurcProductService {
|
|
|
product.setCode(product.getCode());
|
|
product.setCode(product.getCode());
|
|
|
} else {
|
|
} else {
|
|
|
Product oldProd = prods.get(0);
|
|
Product oldProd = prods.get(0);
|
|
|
- if (!oldProd.getIsPurchase().equals(Constant.YES)) {
|
|
|
|
|
|
|
+ if (oldProd.getIsPubsale() == null || !oldProd.getIsPurchase().equals(Constant.YES)) {
|
|
|
oldProd.setIsPurchase(Constant.YES);
|
|
oldProd.setIsPurchase(Constant.YES);
|
|
|
productDao.save(oldProd);
|
|
productDao.save(oldProd);
|
|
|
}
|
|
}
|