mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix migration issues
This commit is contained in:
parent
9beafcd73b
commit
207c9388b5
@ -85,6 +85,10 @@ class CreateInvoicePdf implements ShouldQueue
|
|||||||
|
|
||||||
$design = Design::find($invoice_design_id);
|
$design = Design::find($invoice_design_id);
|
||||||
|
|
||||||
|
if (!$design) {
|
||||||
|
$design = Design::first();
|
||||||
|
}
|
||||||
|
|
||||||
$html = new HtmlEngine(null, $this->invitation, 'invoice');
|
$html = new HtmlEngine(null, $this->invitation, 'invoice');
|
||||||
|
|
||||||
$template = new PdfMakerDesign(strtolower($design->name));
|
$template = new PdfMakerDesign(strtolower($design->name));
|
||||||
|
@ -208,6 +208,13 @@ class Import implements ShouldQueue
|
|||||||
{
|
{
|
||||||
Company::unguard();
|
Company::unguard();
|
||||||
|
|
||||||
|
if (
|
||||||
|
$data['settings']['invoice_design_id'] > 9 ||
|
||||||
|
$data['settings']['invoice_design_id'] > "9"
|
||||||
|
) {
|
||||||
|
$data['settings']['invoice_design_id'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$data = $this->transformCompanyData($data);
|
$data = $this->transformCompanyData($data);
|
||||||
|
|
||||||
$rules = (new UpdateCompanyRequest())->rules();
|
$rules = (new UpdateCompanyRequest())->rules();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user