111
This commit is contained in:
parent
5eaaaf32ca
commit
b053b628f1
@ -103,7 +103,7 @@ def calculate_price(price_request: OrderPriceCalculateRequest,user: UserDB,db: S
|
||||
extra_package_price = float(community.extra_package_price)
|
||||
extra_package_threshold = int(community.extra_package_threshold)
|
||||
|
||||
original_amount = round((base_price + extra_package_price * (package_count - extra_package_threshold)), 2)
|
||||
original_amount = round((base_price + extra_package_price * max(0, package_count - extra_package_threshold)), 2)
|
||||
|
||||
result.price_info.package_count = package_count
|
||||
result.price_info.pickup_images_count = pickup_images_count
|
||||
|
||||
Loading…
Reference in New Issue
Block a user