mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 08:54:34 -04:00
remove deletePdf()
This commit is contained in:
parent
306364ed08
commit
9cc464d0d7
@ -173,7 +173,7 @@ class SendRemindersCron extends Command
|
|||||||
/**Refresh Invoice values*/
|
/**Refresh Invoice values*/
|
||||||
$invoice->calc()->getInvoice()->save();
|
$invoice->calc()->getInvoice()->save();
|
||||||
$invoice->fresh();
|
$invoice->fresh();
|
||||||
$invoice->service()->deletePdf()->save();
|
// $invoice->service()->deletePdf()->save();
|
||||||
if ($invoice->client->getSetting('enable_e_invoice')){
|
if ($invoice->client->getSetting('enable_e_invoice')){
|
||||||
$invoice->service()->deleteEInvoice()->save();
|
$invoice->service()->deleteEInvoice()->save();
|
||||||
}
|
}
|
||||||
|
@ -385,8 +385,8 @@ class CreditController extends BaseController
|
|||||||
$credit = $this->credit_repository->save($request->all(), $credit);
|
$credit = $this->credit_repository->save($request->all(), $credit);
|
||||||
|
|
||||||
$credit->service()
|
$credit->service()
|
||||||
->triggeredActions($request)
|
->triggeredActions($request);
|
||||||
->deletePdf();
|
// ->deletePdf();
|
||||||
|
|
||||||
/** @var \App\Models\User $user**/
|
/** @var \App\Models\User $user**/
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
|
@ -415,7 +415,7 @@ class InvoiceController extends BaseController
|
|||||||
|
|
||||||
$invoice->service()
|
$invoice->service()
|
||||||
->triggeredActions($request)
|
->triggeredActions($request)
|
||||||
->deletePdf()
|
// ->deletePdf()
|
||||||
->adjustInventory($old_invoice);
|
->adjustInventory($old_invoice);
|
||||||
|
|
||||||
event(new InvoiceWasUpdated($invoice, $invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
event(new InvoiceWasUpdated($invoice, $invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
||||||
@ -700,7 +700,7 @@ class InvoiceController extends BaseController
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'cancel':
|
case 'cancel':
|
||||||
$invoice = $invoice->service()->handleCancellation()->deletePdf()->save();
|
$invoice = $invoice->service()->handleCancellation()->save();
|
||||||
if (! $bulk) {
|
if (! $bulk) {
|
||||||
$this->itemResponse($invoice);
|
$this->itemResponse($invoice);
|
||||||
}
|
}
|
||||||
|
@ -114,11 +114,6 @@ class CreditEmailEngine extends BaseEmailEngine
|
|||||||
->setTextBody($text_body);
|
->setTextBody($text_body);
|
||||||
|
|
||||||
if ($this->client->getSetting('pdf_email_attachment') !== false && $this->credit->company->account->hasFeature(Account::FEATURE_PDF_ATTACHMENT)) {
|
if ($this->client->getSetting('pdf_email_attachment') !== false && $this->credit->company->account->hasFeature(Account::FEATURE_PDF_ATTACHMENT)) {
|
||||||
// if (Ninja::isHosted()) {
|
|
||||||
// $this->setAttachments([$this->credit->pdf_file_path($this->invitation, 'url', true)]);
|
|
||||||
// } else {
|
|
||||||
// $this->setAttachments([$this->credit->pdf_file_path($this->invitation)]);
|
|
||||||
// }
|
|
||||||
|
|
||||||
$pdf = ((new CreateRawPdf($this->invitation, $this->invitation->company->db))->handle());
|
$pdf = ((new CreateRawPdf($this->invitation, $this->invitation->company->db))->handle());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user