mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Also factor in optin and optout for auto_enabled
This commit is contained in:
parent
894481989c
commit
8c46e140af
@ -113,13 +113,13 @@ class StoreRecurringInvoiceRequest extends Request
|
||||
|
||||
private function setAutoBillFlag($auto_bill)
|
||||
{
|
||||
if ($auto_bill == 'always' || $auto_bill == 'optout') {
|
||||
if ($auto_bill == 'always')
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if ($auto_bill == 'off' || $auto_bill == 'optin') {
|
||||
return false;
|
||||
}
|
||||
//if ($auto_bill == 'off' || $auto_bill == 'optin') {
|
||||
return false;
|
||||
//}
|
||||
}
|
||||
|
||||
public function messages()
|
||||
|
Loading…
x
Reference in New Issue
Block a user