Add exchange rate to factory

This commit is contained in:
David Bomba 2022-07-20 07:57:57 +10:00
parent 4ef33a4c80
commit add1827759
2 changed files with 1 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;