cart_item resource
This commit is contained in:
parent
071e6c6425
commit
8df7259e6a
|
|
@ -31,9 +31,9 @@ class OrderItemResource extends JsonResource
|
|||
'qty_shipped' => (int) $this->qty_shipped,
|
||||
'qty_refunded' => (int) $this->qty_refunded,
|
||||
'price' => (double) $this->price,
|
||||
'formatted_price' => core()->formatPrice($this->price, $this->order->order_currency_code),
|
||||
'formatted_price' => core()->formatPrice($this->base_price, $this->order->order_currency_code),
|
||||
'total' => (double) $this->total,
|
||||
'formatted_total' => core()->formatPrice($this->total, $this->order->order_currency_code),
|
||||
'formatted_total' => core()->formatPrice($this->base_total, $this->order->order_currency_code),
|
||||
|
||||
'total_invoiced' => (double) $this->total_invoiced,
|
||||
'formatted_total_invoiced' => core()->formatPrice($this->total_invoiced, $this->order->order_currency_code),
|
||||
|
|
@ -43,7 +43,7 @@ class OrderItemResource extends JsonResource
|
|||
|
||||
'discount_percent' => (double) $this->discount_percent,
|
||||
'discount_amount' => (double) $this->discount_amount,
|
||||
'formatted_discount_amount' => core()->formatPrice($this->discount_amount, $this->order->order_currency_code),
|
||||
'formatted_discount_amount' => core()->formatPrice($this->base_discount_amount, $this->order->order_currency_code),
|
||||
|
||||
'discount_invoiced' => (double) $this->discount_invoiced,
|
||||
'formatted_discount_invoiced' => core()->formatPrice($this->discount_invoiced, $this->order->order_currency_code),
|
||||
|
|
|
|||
Loading…
Reference in New Issue