do not include running entries in invoices (#2551)
This commit is contained in:
@@ -192,7 +192,6 @@ final class InvoiceController extends AbstractController
|
||||
$query->setBegin($begin);
|
||||
$query->setEnd($end);
|
||||
$query->setExported(InvoiceQuery::STATE_NOT_EXPORTED);
|
||||
$query->setState(InvoiceQuery::STATE_STOPPED);
|
||||
// limit access to data from teams
|
||||
$query->setCurrentUser($this->getUser());
|
||||
|
||||
|
||||
@@ -28,7 +28,11 @@ class InvoiceQuery extends TimesheetQuery
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setBillable(true);
|
||||
$this->setDefaults([
|
||||
'state' => self::STATE_STOPPED,
|
||||
'billable' => true,
|
||||
'markAsExported' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
public function getTemplate(): ?InvoiceTemplate
|
||||
|
||||
Reference in New Issue
Block a user