1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00

Also factor in optin and optout for auto_enabled

This commit is contained in:
David Bomba 2020-12-10 19:47:17 +11:00
parent 91f90c94e3
commit 894481989c

View File

@ -113,11 +113,11 @@ class StoreRecurringInvoiceRequest extends Request
private function setAutoBillFlag($auto_bill)
{
if ($auto_bill == 'always') {
if ($auto_bill == 'always' || $auto_bill == 'optout') {
return true;
}
if ($auto_bill == 'off') {
if ($auto_bill == 'off' || $auto_bill == 'optin') {
return false;
}
}