category default limit

This commit is contained in:
merdan 2022-03-10 13:29:47 +05:00
parent 94b891c66e
commit 1b8833fa32
2 changed files with 26 additions and 26 deletions

View File

@ -30,28 +30,28 @@ 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->base_price, $this->order->order_currency_code),
'total' => $this->total,
'formatted_total' => core()->formatPrice($this->base_total, $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->base_total, $this->order->order_currency_code),
'total_invoiced' => $this->total_invoiced,
'formatted_total_invoiced' => core()->formatPrice($this->base_total_invoiced, $this->order->order_currency_code),
'total_invoiced' => (double) $this->total_invoiced,
'formatted_total_invoiced' => core()->formatPrice($this->base_total_invoiced, $this->order->order_currency_code),
'amount_refunded' => $this->amount_refunded,
'formatted_amount_refunded' => core()->formatPrice($this->base_amount_refunded, $this->order->order_currency_code),
'amount_refunded' => (double) $this->amount_refunded,
'formatted_amount_refunded' => core()->formatPrice($this->base_amount_refunded, $this->order->order_currency_code),
'discount_percent' => $this->discount_percent,
'discount_percent' => (double) $this->discount_percent,
'discount_amount' => (double) $this->discount_amount,
'formatted_discount_amount' => core()->formatPrice($this->base_discount_amount, $this->order->order_currency_code),
'formatted_discount_amount' => core()->formatPrice($this->base_discount_amount, $this->order->order_currency_code),
'discount_invoiced' => $this->discount_invoiced,
'formatted_discount_invoiced' => core()->formatPrice($this->base_discount_invoiced, $this->order->order_currency_code),
'discount_invoiced' => (double) $this->discount_invoiced,
'formatted_discount_invoiced' => core()->formatPrice($this->base_discount_invoiced, $this->order->order_currency_code),
'discount_refunded' => $this->discount_refunded,
'formatted_discount_refunded' => core()->formatPrice($this->base_discount_refunded, $this->order->order_currency_code),
'discount_refunded' => (double) $this->discount_refunded,
'formatted_discount_refunded' => core()->formatPrice($this->base_discount_refunded, $this->order->order_currency_code),
'grant_total' => $this->total + $this->tax_amount,
'formatted_grant_total' => core()->formatPrice($this->base_total + $this->base_tax_amount, $this->order->order_currency_code),
'formatted_grant_total' => core()->formatPrice($this->base_total + $this->base_tax_amount, $this->order->order_currency_code),
'downloadable_links' => $this->downloadable_link_purchased,
'additional' => is_array($this->resource->additional)
? $this->resource->additional

View File

@ -35,39 +35,39 @@ class OrderResource extends JsonResource
'shipping_description' => $this->shipping_description,
'coupon_code' => $this->coupon_code,
'is_gift' => $this->is_gift,
'total_item_count' => (int)$this->total_item_count,
'total_qty_ordered' => (int)$this->total_qty_ordered,
'total_item_count' => (int) $this->total_item_count,
'total_qty_ordered' => (int) $this->total_qty_ordered,
'base_currency_code' => $this->base_currency_code,
'channel_currency_code' => $this->channel_currency_code,
'order_currency_code' => $this->order_currency_code,
'grand_total' => (double)$this->grand_total,
'grand_total' => (double) $this->grand_total,
'formatted_grand_total' => core()->formatPrice($this->base_grand_total, $this->order_currency_code),
'grand_total_invoiced' => (double)$this->grand_total_invoiced,
'grand_total_invoiced' => (double) $this->grand_total_invoiced,
'formatted_grand_total_invoiced' => core()->formatPrice($this->base_grand_total_invoiced, $this->order_currency_code),
'grand_total_refunded' => (double)$this->grand_total_refunded,
'grand_total_refunded' => (double) $this->grand_total_refunded,
'formatted_grand_total_refunded' => core()->formatPrice($this->base_grand_total_refunded, $this->order_currency_code),
'sub_total' => (double)$this->sub_total,
'sub_total' => (double) $this->sub_total,
'formatted_sub_total' => core()->formatPrice($this->base_sub_total, $this->order_currency_code),
'sub_total_invoiced' => (double)$this->sub_total_invoiced,
'sub_total_invoiced' => (double) $this->sub_total_invoiced,
'formatted_sub_total_invoiced' => core()->formatPrice($this->base_sub_total_invoiced, $this->order_currency_code),
'sub_total_refunded' => (double)$this->sub_total_refunded,
'sub_total_refunded' => (double) $this->sub_total_refunded,
// 'formatted_sub_total_refunded' => core()->formatPrice($this->sub_total_refunded, $this->order_currency_code),
'discount_percent' => $this->discount_percent,
'discount_amount' => (double)$this->discount_amount,
'discount_percent' => (double) $this->discount_percent,
'discount_amount' => (double) $this->discount_amount,
'formatted_discount_amount' => core()->formatPrice($this->base_discount_amount, $this->order_currency_code),
'discount_invoiced' => (double)$this->discount_invoiced,
'formatted_discount_invoiced' => core()->formatPrice($this->base_discount_invoiced, $this->order_currency_code),
'discount_refunded' => (double)$this->discount_refunded,
'discount_refunded' => (double) $this->discount_refunded,
'formatted_discount_refunded' => core()->formatPrice($this->base_discount_refunded, $this->order_currency_code),
'shipping_amount' => (double)$this->shipping_amount,
'shipping_amount' => (double) $this->shipping_amount,
'formatted_shipping_amount' => core()->formatPrice($this->base_shipping_amount, $this->order_currency_code),
'shipping_invoiced' => $this->shipping_invoiced,