Fix model Order
This commit is contained in:
parent
ee4a4aa729
commit
ffe65f6ec6
1 changed files with 2 additions and 0 deletions
|
|
@ -538,6 +538,8 @@ class Order extends Model
|
|||
/** @var \Illuminate\Support\Collection<object> */
|
||||
$refundedTransactionsItems = $this->transactions()
|
||||
->where('type', TransactionType::credit())
|
||||
->where('status', TransactionStatus::canceled())
|
||||
->where('status', TransactionStatus::failed())
|
||||
->pluck('items');
|
||||
|
||||
$final = \collect($orderedItems);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue