mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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->company_id = $company_id;
|
||||
$invoice->recurring_id = null;
|
||||
$invoice->exchange_rate = 1;
|
||||
|
||||
return $invoice;
|
||||
}
|
||||
|
@ -269,10 +269,7 @@ class SelfUpdateController extends BaseController
|
||||
if(strpos($file->getPathname(), '.git') !== false)
|
||||
continue;
|
||||
|
||||
//nlog($file->getPathname());
|
||||
|
||||
if ($file->isFile() && ! $file->isWritable()) {
|
||||
// throw new FilePermissionsFailure($file);
|
||||
nlog("Cannot update system because {$file->getFileName()} is not writable");
|
||||
throw new FilePermissionsFailure("Cannot update system because {$file->getFileName()} is not writable");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user