fix Order::getRemainingUnrefundedItems
This commit is contained in:
parent
9a0f882025
commit
68c8705dd3
1 changed files with 0 additions and 4 deletions
|
|
@ -393,14 +393,10 @@ class Order extends Model
|
|||
$orderedItems->each(function (
|
||||
object $basketItem
|
||||
) use (
|
||||
$shippedItems,
|
||||
$refundedTransactionsQtys,
|
||||
$remainingItems
|
||||
) {
|
||||
$qty = $basketItem->qty;
|
||||
if ($shippedItems->contains('id', $basketItem->id)) {
|
||||
$qty -= $shippedItems->where('id', $basketItem->id)->first()->qty;
|
||||
}
|
||||
if ($refundedTransactionsQtys->contains('id', $basketItem->id)) {
|
||||
$qty -= $refundedTransactionsQtys->where('id', $basketItem->id)->first()->qty;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue