add test batches
This commit is contained in:
@@ -8,7 +8,9 @@ use App\Services\Discounts\DiscountInvoiceService;
|
||||
|
||||
class RefundInvoiceAdjustmentService
|
||||
{
|
||||
public function __construct(private DiscountInvoiceService $invoiceService) {}
|
||||
public function __construct(private DiscountInvoiceService $invoiceService)
|
||||
{
|
||||
}
|
||||
|
||||
public function applyBookChargeAndUpdateInvoice(
|
||||
Invoice $invoice,
|
||||
@@ -21,7 +23,7 @@ class RefundInvoiceAdjustmentService
|
||||
$bookChargeDesc = 'Book fee retained for withdrawals before the refund deadline.';
|
||||
|
||||
$bookPrice = (float) ($refundDetails['book_price'] ?? 0.0);
|
||||
$eligible = ! empty($refundDetails['eligible']);
|
||||
$eligible = !empty($refundDetails['eligible']);
|
||||
|
||||
$bookChargeDelta = 0.0;
|
||||
$bookChargeAction = 'none';
|
||||
|
||||
Reference in New Issue
Block a user