1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00
This commit is contained in:
David Bomba 2021-04-06 20:38:56 +10:00
parent 6c6a142f36
commit 69f6179e6a
5 changed files with 16 additions and 7 deletions

View File

@ -1 +1 @@
5.1.35
5.1.36

View File

@ -114,12 +114,12 @@ class PaymentFailureObject
$text = '';
foreach($this->invoices as $invoice)
{
// foreach($this->invoices as $invoice)
// {
$text .= ctrans('texts.notification_invoice_payment_failed_subject', ['invoice' => $invoice->number]) . "\n";
// $text .= ctrans('texts.notification_invoice_payment_failed_subject', ['invoice' => $invoice->number]) . "\n";
}
// }
return $text;

View File

@ -124,7 +124,6 @@ class SubscriptionService
$response = $this->triggerWebhook($context);
}
/* Starts the process to create a trial

View File

@ -14,7 +14,7 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', ''),
'app_version' => '5.1.35',
'app_version' => '5.1.36',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),

View File

@ -61,5 +61,15 @@ class PlanTest extends TestCase
}
public function testTrialFilter()
{
$plans = collect(['trial_pro','trial_enterprise','no_freebies']);
$filtered_plans = $plans->filter(function ($plan){
return strpos($plan, 'trial_') !== false;
});
$this->assertEquals($filtered_plans->count(), 2);
}
}