修改条幅价格
Цей коміт міститься в:
@@ -3110,8 +3110,12 @@ public class ProductService {
|
|||||||
product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number));
|
product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number));
|
||||||
double other_price = 0;
|
double other_price = 0;
|
||||||
if (width * length <= 50 * 50) {
|
if (width * length <= 50 * 50) {
|
||||||
other_price = (count) * 5 * number + number * 5;
|
if (number > 1) {
|
||||||
product.setPrice(Math.ceil(45 + other_price));
|
other_price = (count) * 5 * (number - 1) + (number - 1) * 5;
|
||||||
|
} else {
|
||||||
|
other_price = (count - 1) * 5;
|
||||||
|
}
|
||||||
|
product.setPrice(Math.ceil(40 + other_price));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Посилання в новій задачі
Заблокувати користувача