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