mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Update design seeders
This commit is contained in:
parent
2bae9bfc31
commit
6e66a8d1a7
@ -53,12 +53,12 @@ class DesignUpdate extends Command
|
||||
$invoice_design->document();
|
||||
|
||||
$design_object = new \stdClass;
|
||||
$design_object->includes = $invoice_design->getSectionHTML('includes');
|
||||
$design_object->header = $invoice_design->getSectionHTML('head', false);
|
||||
$design_object->body = $invoice_design->getSectionHTML('body', false);
|
||||
$design_object->product = $invoice_design->getSectionHTML('product-table');
|
||||
$design_object->task = $invoice_design->getSectionHTML('task-table');
|
||||
$design_object->footer = $invoice_design->getSectionHTML('footer', false);
|
||||
$design_object->includes = $invoice_design->getSectionHTML('style');
|
||||
$design_object->header = $invoice_design->getSectionHTML('header');
|
||||
$design_object->body = $invoice_design->getSectionHTML('body');
|
||||
$design_object->product = '';
|
||||
$design_object->task = '';
|
||||
$design_object->footer = $invoice_design->getSectionHTML('footer');
|
||||
|
||||
$design->design = $design_object;
|
||||
$design->save();
|
||||
|
@ -194,6 +194,7 @@ trait DesignHelpers
|
||||
{
|
||||
$html = '';
|
||||
|
||||
$html .= $partials['includes'];
|
||||
$html .= $partials['header'];
|
||||
$html .= $partials['body'];
|
||||
$html .= $partials['footer'];
|
||||
|
@ -11,7 +11,6 @@
|
||||
namespace Database\Seeders;
|
||||
|
||||
|
||||
use App\Models\Bank;
|
||||
use App\Models\Design;
|
||||
use App\Services\PdfMaker\Design as PdfMakerDesign;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@ -53,12 +52,12 @@ class DesignSeeder extends Seeder
|
||||
$template->document();
|
||||
|
||||
$design_object = new \stdClass;
|
||||
$design_object->includes = $template->getSectionHTML('includes');
|
||||
$design_object->header = $template->getSectionHTML('head', false);
|
||||
$design_object->body = $template->getSectionHTML('body', false);
|
||||
$design_object->product = $template->getSectionHTML('product-table');
|
||||
$design_object->task = $template->getSectionHTML('task-table');
|
||||
$design_object->footer = $template->getSectionHTML('footer', false);
|
||||
$design_object->includes = $template->getSectionHTML('style');
|
||||
$design_object->header = $template->getSectionHTML('header');
|
||||
$design_object->body = $template->getSectionHTML('body');
|
||||
$design_object->product = '';
|
||||
$design_object->task = '';
|
||||
$design_object->footer = $template->getSectionHTML('footer');
|
||||
|
||||
$design->design = $design_object;
|
||||
$design->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user