mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for bulk downloading pdfs
This commit is contained in:
parent
1b256dba9b
commit
8e33463bf7
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Jobs\Credit;
|
namespace App\Jobs\Credit;
|
||||||
|
|
||||||
|
use App\Jobs\Entity\CreateEntityPdf;
|
||||||
use App\Jobs\Mail\NinjaMailerJob;
|
use App\Jobs\Mail\NinjaMailerJob;
|
||||||
use App\Jobs\Mail\NinjaMailerObject;
|
use App\Jobs\Mail\NinjaMailerObject;
|
||||||
use App\Jobs\Util\UnlinkFile;
|
use App\Jobs\Util\UnlinkFile;
|
||||||
@ -79,6 +80,13 @@ class ZipCredits implements ShouldQueue
|
|||||||
$invitation = $this->credits->first()->invitations->first();
|
$invitation = $this->credits->first()->invitations->first();
|
||||||
$path = $this->credits->first()->client->quote_filepath($invitation);
|
$path = $this->credits->first()->client->quote_filepath($invitation);
|
||||||
|
|
||||||
|
|
||||||
|
$this->credits->each(function ($credit){
|
||||||
|
|
||||||
|
CreateEntityPdf::dispatchNow($credit->invitations()->first());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
foreach ($this->credits as $credit) {
|
foreach ($this->credits as $credit) {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Jobs\Invoice;
|
namespace App\Jobs\Invoice;
|
||||||
|
|
||||||
|
use App\Jobs\Entity\CreateEntityPdf;
|
||||||
use App\Jobs\Mail\NinjaMailerJob;
|
use App\Jobs\Mail\NinjaMailerJob;
|
||||||
use App\Jobs\Mail\NinjaMailerObject;
|
use App\Jobs\Mail\NinjaMailerObject;
|
||||||
use App\Jobs\Util\UnlinkFile;
|
use App\Jobs\Util\UnlinkFile;
|
||||||
@ -40,6 +41,8 @@ class ZipInvoices implements ShouldQueue
|
|||||||
|
|
||||||
public $settings;
|
public $settings;
|
||||||
|
|
||||||
|
public $tries = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $invoices
|
* @param $invoices
|
||||||
* @param Company $company
|
* @param Company $company
|
||||||
@ -78,6 +81,12 @@ class ZipInvoices implements ShouldQueue
|
|||||||
$invitation = $this->invoices->first()->invitations->first();
|
$invitation = $this->invoices->first()->invitations->first();
|
||||||
$path = $this->invoices->first()->client->invoice_filepath($invitation);
|
$path = $this->invoices->first()->client->invoice_filepath($invitation);
|
||||||
|
|
||||||
|
$this->invoices->each(function ($invoice){
|
||||||
|
|
||||||
|
CreateEntityPdf::dispatchNow($invoice->invitations()->first());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
foreach ($this->invoices as $invoice) {
|
foreach ($this->invoices as $invoice) {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Jobs\Quote;
|
namespace App\Jobs\Quote;
|
||||||
|
|
||||||
|
use App\Jobs\Entity\CreateEntityPdf;
|
||||||
use App\Jobs\Mail\NinjaMailerJob;
|
use App\Jobs\Mail\NinjaMailerJob;
|
||||||
use App\Jobs\Mail\NinjaMailerObject;
|
use App\Jobs\Mail\NinjaMailerObject;
|
||||||
use App\Jobs\Util\UnlinkFile;
|
use App\Jobs\Util\UnlinkFile;
|
||||||
@ -40,6 +41,8 @@ class ZipQuotes implements ShouldQueue
|
|||||||
|
|
||||||
public $settings;
|
public $settings;
|
||||||
|
|
||||||
|
public $tries = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $invoices
|
* @param $invoices
|
||||||
* @param Company $company
|
* @param Company $company
|
||||||
@ -78,6 +81,13 @@ class ZipQuotes implements ShouldQueue
|
|||||||
$invitation = $this->quotes->first()->invitations->first();
|
$invitation = $this->quotes->first()->invitations->first();
|
||||||
$path = $this->quotes->first()->client->quote_filepath($invitation);
|
$path = $this->quotes->first()->client->quote_filepath($invitation);
|
||||||
|
|
||||||
|
|
||||||
|
$this->quotes->each(function ($quote){
|
||||||
|
|
||||||
|
CreateEntityPdf::dispatchNow($quote->invitations()->first());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
foreach ($this->quotes as $quote) {
|
foreach ($this->quotes as $quote) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user