mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Minor updates to migration
This commit is contained in:
parent
5121a02b4d
commit
9969f52bd6
@ -812,13 +812,13 @@ trait GenerateMigrationResources
|
||||
|
||||
private function calcAutoBillEnabled($invoice)
|
||||
{
|
||||
if($invoice->auto_bill == 1)
|
||||
if($invoice->auto_bill === 1)
|
||||
return 'off';
|
||||
elseif($invoice->auto_bill == 2)
|
||||
elseif($invoice->auto_bill === 2)
|
||||
return 'optin';
|
||||
elseif($invoice->auto_bill == 3)
|
||||
elseif($invoice->auto_bill === 3)
|
||||
return 'optout';
|
||||
elseif($invoice->auto_bill == 4)
|
||||
elseif($invoice->auto_bill === 4)
|
||||
return 'always';
|
||||
else
|
||||
return 'off';
|
||||
|
Loading…
Reference in New Issue
Block a user