Skip to content

Commit

Permalink
ECWID-124671 OE2: Send Order Data to Calculation and Display Changes:…
Browse files Browse the repository at this point in the history
… Bulk Discount Pricing.

Added needCalculateWholesalePrice field, which enables calculating wholesale price in order item.
  • Loading branch information
kitty-ecwid committed Sep 14, 2023
1 parent 185ddb6 commit 18def5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ data class OrderForCalculate(

val price: Double? = null,
val productPrice: Double? = null,
val needCalculateWholesalePrice: Boolean? = null,
val shipping: Double? = null,
val tax: Double? = null,
val fixedShippingRate: Double? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ val orderForCalculateNullablePropertyRules: List<NullablePropertyRule<*, *>> = l
IgnoreNullable(OrderForCalculate.OrderItem::imageUrl),
IgnoreNullable(OrderForCalculate.OrderItem::isShippingRequired),
IgnoreNullable(OrderForCalculate.OrderItem::name),
AllowNullable(OrderForCalculate.OrderItem::needCalculateWholesalePrice),
IgnoreNullable(OrderForCalculate.OrderItem::price),
IgnoreNullable(OrderForCalculate.OrderItem::productId),
IgnoreNullable(OrderForCalculate.OrderItem::productPrice),
Expand Down

0 comments on commit 18def5b

Please sign in to comment.