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.
|
||||
*/
|
||||
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');
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue