mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for invoice creation from recurring where balance doubles
This commit is contained in:
parent
b5606c1524
commit
da7eb3b4c2
@ -43,7 +43,7 @@ class RecurringInvoiceToInvoiceFactory
|
||||
$invoice->custom_value3 = $recurring_invoice->custom_value3;
|
||||
$invoice->custom_value4 = $recurring_invoice->custom_value4;
|
||||
$invoice->amount = $recurring_invoice->amount;
|
||||
$invoice->balance = $recurring_invoice->balance;
|
||||
// $invoice->balance = $recurring_invoice->balance;
|
||||
$invoice->user_id = $recurring_invoice->user_id;
|
||||
$invoice->assigned_user_id = $recurring_invoice->assigned_user_id;
|
||||
$invoice->company_id = $recurring_invoice->company_id;
|
||||
|
@ -168,8 +168,12 @@ class CreateEntityPdf implements ShouldQueue
|
||||
return $file_path;
|
||||
}
|
||||
|
||||
public function failed(\Exception $exception)
|
||||
public function failed($e)
|
||||
{
|
||||
nlog("help!");
|
||||
|
||||
}
|
||||
// public function failed(\Exception $exception)
|
||||
// {
|
||||
// nlog("help!");
|
||||
// }
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ class SendRecurring implements ShouldQueue
|
||||
$invoice = RecurringInvoiceToInvoiceFactory::create($this->recurring_invoice, $this->recurring_invoice->client);
|
||||
|
||||
$invoice->date = now()->format('Y-m-d');
|
||||
|
||||
|
||||
$invoice = $invoice->service()
|
||||
->markSent()
|
||||
->applyNumber()
|
||||
|
Loading…
x
Reference in New Issue
Block a user