updated Invoice PDF generation task for more performance
This commit is contained in:
@@ -837,7 +837,7 @@ class InvoiceController extends mfBaseController {
|
||||
public function createPDFs($limit = false) {
|
||||
$invoice_path_base = MFUPLOAD_FILE_SAVE_PATH."/".TT_INVOICE_SAVE_SUBFOLDER;
|
||||
$created = 0;
|
||||
foreach(InvoiceModel::getAll() as $invoice) {
|
||||
foreach(InvoiceModel::search(["invoice_file" => false]) as $invoice) {
|
||||
if($limit && $created >= $limit) {
|
||||
return $created;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user