mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 19:04:33 -04:00
Add exchange rate to factory
This commit is contained in:
parent
4ef33a4c80
commit
add1827759
@ -49,6 +49,7 @@ class InvoiceFactory
|
|||||||
$invoice->user_id = $user_id;
|
$invoice->user_id = $user_id;
|
||||||
$invoice->company_id = $company_id;
|
$invoice->company_id = $company_id;
|
||||||
$invoice->recurring_id = null;
|
$invoice->recurring_id = null;
|
||||||
|
$invoice->exchange_rate = 1;
|
||||||
|
|
||||||
return $invoice;
|
return $invoice;
|
||||||
}
|
}
|
||||||
|
@ -269,10 +269,7 @@ class SelfUpdateController extends BaseController
|
|||||||
if(strpos($file->getPathname(), '.git') !== false)
|
if(strpos($file->getPathname(), '.git') !== false)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//nlog($file->getPathname());
|
|
||||||
|
|
||||||
if ($file->isFile() && ! $file->isWritable()) {
|
if ($file->isFile() && ! $file->isWritable()) {
|
||||||
// throw new FilePermissionsFailure($file);
|
|
||||||
nlog("Cannot update system because {$file->getFileName()} is not writable");
|
nlog("Cannot update system because {$file->getFileName()} is not writable");
|
||||||
throw new FilePermissionsFailure("Cannot update system because {$file->getFileName()} is not writable");
|
throw new FilePermissionsFailure("Cannot update system because {$file->getFileName()} is not writable");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user