mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for shared counterS
This commit is contained in:
parent
4555859936
commit
a4c1829257
@ -318,7 +318,7 @@ trait GeneratesCounter
|
|||||||
*
|
*
|
||||||
* @return bool True if has shared counter, False otherwise.
|
* @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')
|
if($type == 'quote')
|
||||||
return (bool) $client->getSetting('shared_invoice_quote_counter');
|
return (bool) $client->getSetting('shared_invoice_quote_counter');
|
||||||
|
@ -108,7 +108,7 @@ class GeneratesCounterTest extends TestCase
|
|||||||
|
|
||||||
public function testHasSharedCounter()
|
public function testHasSharedCounter()
|
||||||
{
|
{
|
||||||
$this->assertFalse($this->hasSharedCounter($this->client));
|
$this->assertFalse($this->hasSharedCounter($this->client,));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testHasTrueSharedCounter()
|
public function testHasTrueSharedCounter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user