|
|
@@ -83,8 +83,8 @@ public class CartController extends BaseController {
|
|
|
Collection collection = collectionRepo.findById(cart.getCollectionId()).orElse(null);
|
|
|
if (collection != null) {
|
|
|
if (!collection.isSalable() || collection.getStock() < 0 || collection.isInPaying()) {
|
|
|
- cart.setEnabled(false);
|
|
|
if (!collection.isInPaying()) {
|
|
|
+ cart.setEnabled(false);
|
|
|
cartRepo.save(cart);
|
|
|
} else {
|
|
|
if (orderRepo.countByCollectionIdAndUserIdAndStatus(cart.getCollectionId(), cart
|