修改价格限制
This commit is contained in:
+13
-18
@@ -1093,26 +1093,21 @@ public class PrcPriceSetServiceImpl implements IPrcPriceSetService
|
||||
}
|
||||
}
|
||||
|
||||
/** Package freight / registration must not go below the imported product country price. */
|
||||
/** Package freight floor vs imported base — temporarily disabled. */
|
||||
private void assertNotBelowImportedPrice(PrcPriceSetDetail detail)
|
||||
{
|
||||
BmsProductCountry base = findImportedPrice(detail);
|
||||
if (base == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (detail.getFvValue() != null && base.getFreightPrice() != null
|
||||
&& detail.getFvValue().compareTo(base.getFreightPrice()) < 0)
|
||||
{
|
||||
throw new ServiceException(MessageUtils.message("price.set.detail.freight.belowBase",
|
||||
stripTrailingZeros(base.getFreightPrice())));
|
||||
}
|
||||
if (detail.getFvRegistrationFee() != null && base.getRegistrationFee() != null
|
||||
&& detail.getFvRegistrationFee().compareTo(base.getRegistrationFee()) < 0)
|
||||
{
|
||||
throw new ServiceException(MessageUtils.message("price.set.detail.registration.belowBase",
|
||||
stripTrailingZeros(base.getRegistrationFee())));
|
||||
}
|
||||
// Temporarily allow package freight below imported base price.
|
||||
// BmsProductCountry base = findImportedPrice(detail);
|
||||
// if (base == null)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// if (detail.getFvValue() != null && base.getFreightPrice() != null
|
||||
// && detail.getFvValue().compareTo(base.getFreightPrice()) < 0)
|
||||
// {
|
||||
// throw new ServiceException(MessageUtils.message("price.set.detail.freight.belowBase",
|
||||
// stripTrailingZeros(base.getFreightPrice())));
|
||||
// }
|
||||
}
|
||||
|
||||
private BmsProductCountry findImportedPrice(PrcPriceSetDetail detail)
|
||||
|
||||
Reference in New Issue
Block a user