cart_item resource

This commit is contained in:
merdan 2022-12-23 14:33:24 +05:00
parent 071e6c6425
commit 8df7259e6a
1 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ class OrderItemResource extends JsonResource
'qty_shipped' => (int) $this->qty_shipped, 'qty_shipped' => (int) $this->qty_shipped,
'qty_refunded' => (int) $this->qty_refunded, 'qty_refunded' => (int) $this->qty_refunded,
'price' => (double) $this->price, '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, '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, 'total_invoiced' => (double) $this->total_invoiced,
'formatted_total_invoiced' => core()->formatPrice($this->total_invoiced, $this->order->order_currency_code), '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_percent' => (double) $this->discount_percent,
'discount_amount' => (double) $this->discount_amount, '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, 'discount_invoiced' => (double) $this->discount_invoiced,
'formatted_discount_invoiced' => core()->formatPrice($this->discount_invoiced, $this->order->order_currency_code), 'formatted_discount_invoiced' => core()->formatPrice($this->discount_invoiced, $this->order->order_currency_code),