mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for regressions
This commit is contained in:
parent
8d3154a149
commit
10d62f23f8
@ -57,7 +57,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
Relation::morphMap([
|
||||
'invoices' => \App\Models\Invoice::class,
|
||||
'credits' => \App\Models\Credit::class,
|
||||
// 'credits' => \App\Models\Credit::class,
|
||||
'proposals' => \App\Models\Proposal::class,
|
||||
]);
|
||||
|
||||
|
@ -18,6 +18,7 @@ use App\Factory\InvoiceItemFactory;
|
||||
use App\Factory\PaymentFactory;
|
||||
use App\Helpers\Invoice\InvoiceSum;
|
||||
use App\Models\Client;
|
||||
use App\Models\Credit;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\Paymentable;
|
||||
@ -102,7 +103,7 @@ class HandleReversal extends AbstractService
|
||||
$payment->credits()->save($credit);
|
||||
|
||||
$paymentable_credit = $payment->credits()
|
||||
->wherePaymentableType('credits')
|
||||
->wherePaymentableType(Credit::class)
|
||||
->wherePaymentableId($credit->id)
|
||||
->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user