|
23 | 23 | import org.broadleafcommerce.common.copy.MultiTenantCopyContext;
|
24 | 24 | import org.broadleafcommerce.common.money.BankersRounding;
|
25 | 25 | import org.broadleafcommerce.common.money.Money;
|
26 |
| -import org.broadleafcommerce.common.presentation.*; |
| 26 | +import org.broadleafcommerce.common.presentation.AdminPresentation; |
| 27 | +import org.broadleafcommerce.common.presentation.AdminPresentationClass; |
| 28 | +import org.broadleafcommerce.common.presentation.AdminPresentationCollection; |
| 29 | +import org.broadleafcommerce.common.presentation.PopulateToOneFieldsEnum; |
| 30 | +import org.broadleafcommerce.common.presentation.RequiredOverride; |
27 | 31 | import org.broadleafcommerce.common.presentation.client.SupportedFieldType;
|
28 | 32 | import org.broadleafcommerce.core.catalog.service.type.ProductBundlePricingModelType;
|
29 | 33 | import org.hibernate.annotations.BatchSize;
|
30 | 34 | import org.hibernate.annotations.Cache;
|
31 | 35 | import org.hibernate.annotations.CacheConcurrencyStrategy;
|
32 | 36 | import org.hibernate.annotations.Cascade;
|
33 | 37 |
|
34 |
| -import javax.persistence.*; |
35 | 38 | import java.math.BigDecimal;
|
36 | 39 | import java.util.ArrayList;
|
37 | 40 | import java.util.List;
|
38 | 41 |
|
| 42 | +import javax.persistence.CascadeType; |
| 43 | +import javax.persistence.Column; |
| 44 | +import javax.persistence.Entity; |
| 45 | +import javax.persistence.Inheritance; |
| 46 | +import javax.persistence.InheritanceType; |
| 47 | +import javax.persistence.OneToMany; |
| 48 | +import javax.persistence.Table; |
| 49 | + |
39 | 50 | @Entity
|
40 | 51 | @Inheritance(strategy = InheritanceType.JOINED)
|
41 | 52 | @Table(name = "BLC_PRODUCT_BUNDLE")
|
@@ -136,6 +147,14 @@ public Money getBundleItemsSalePrice() {
|
136 | 147 | }
|
137 | 148 | return price;
|
138 | 149 | }
|
| 150 | + |
| 151 | + @Override |
| 152 | + public void clearDynamicPrices() { |
| 153 | + super.clearDynamicPrices(); |
| 154 | + for (SkuBundleItem bundleItem : getSkuBundleItems()) { |
| 155 | + bundleItem.clearDynamicPrices(); |
| 156 | + } |
| 157 | + } |
139 | 158 |
|
140 | 159 | @Override
|
141 | 160 | public Boolean getAutoBundle() {
|
|
0 commit comments