mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Additional translations
This commit is contained in:
parent
7cebb4435f
commit
b7feb1e71b
@ -12,6 +12,7 @@
|
||||
namespace App\Services\Invoice;
|
||||
|
||||
use App\DataMapper\InvoiceItem;
|
||||
use App\Events\Invoice\InvoiceWasPaid;
|
||||
use App\Events\Payment\PaymentWasCreated;
|
||||
use App\Factory\PaymentFactory;
|
||||
use App\Libraries\MultiDB;
|
||||
@ -225,6 +226,13 @@ class AutoBillInvoice extends AbstractService
|
||||
event('eloquent.created: App\Models\Payment', $payment);
|
||||
event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars()));
|
||||
|
||||
//if we have paid the invoice in full using credits, then we need to fire the event
|
||||
if($this->invoice->balance == 0){
|
||||
|
||||
event(new InvoiceWasPaid($this->invoice, $payment, $payment->company, Ninja::eventVars()));
|
||||
|
||||
}
|
||||
|
||||
return $this->invoice
|
||||
->service()
|
||||
->setCalculatedStatus()
|
||||
|
@ -5040,6 +5040,8 @@ $LANG = array(
|
||||
'aged_receivable_summary_report' => 'Aged Receivable Summary Report',
|
||||
'taxable_amount' => 'Taxable Amount',
|
||||
'tax_summary' => 'Tax Summary',
|
||||
'oauth_mail' => 'OAuth / Mail',
|
||||
'preferences' => 'Preferences',
|
||||
);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user