1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for shared counterS

This commit is contained in:
David Bomba 2021-07-16 23:33:53 +10:00
parent 4555859936
commit a4c1829257
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ trait GeneratesCounter
*
* @return bool True if has shared counter, False otherwise.
*/
public function hasSharedCounter(Client $client, string $type) : bool
public function hasSharedCounter(Client $client, string $type = 'quote') : bool
{
if($type == 'quote')
return (bool) $client->getSetting('shared_invoice_quote_counter');

View File

@ -108,7 +108,7 @@ class GeneratesCounterTest extends TestCase
public function testHasSharedCounter()
{
$this->assertFalse($this->hasSharedCounter($this->client));
$this->assertFalse($this->hasSharedCounter($this->client,));
}
public function testHasTrueSharedCounter()