Skip to content
Code-Schnipsel Gruppen Projekte
Commit 457b97a8 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: #110

Übergeordneter 0e973fd4
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -168,13 +168,13 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/Journal', [
switch (parseInt(entry.isbrutto)) {
case 1:
entry.display_isbrutto = new Element('span', {
'class': 'fa fa-minus'
'class': 'fa fa-check'
});
break;
case 2:
default:
entry.display_isbrutto = new Element('span', {
'class': 'fa fa-check'
'class': 'fa fa-minus'
});
break;
}
......
......@@ -212,7 +212,7 @@ public function order($order)
*
* @throws QUI\Exception
*/
public function search()
public function search(): array
{
return $this->executeQueryParams($this->getQuery());
}
......@@ -223,7 +223,7 @@ public function search()
* @return array
* @throws QUI\Exception
*/
public function searchForGrid()
public function searchForGrid(): array
{
$this->cache = [];
......@@ -271,7 +271,7 @@ public function searchForGrid()
/**
* @return array
*/
protected function getQueryCount()
protected function getQueryCount(): array
{
return $this->getQuery(true);
}
......@@ -280,7 +280,7 @@ protected function getQueryCount()
* @param bool $count - Use count select, or not
* @return array
*/
protected function getQuery($count = false)
protected function getQuery($count = false): array
{
$Invoices = Handler::getInstance();
......@@ -506,7 +506,7 @@ protected function getQuery($count = false)
* @return array
* @throws QUI\Exception
*/
protected function executeQueryParams($queryData = [])
protected function executeQueryParams(array $queryData = []): array
{
$PDO = QUI::getDataBase()->getPDO();
$binds = $queryData['binds'];
......@@ -533,10 +533,8 @@ protected function executeQueryParams($queryData = [])
/**
* @param array $data
* @return array
*
* @throws QUI\Exception
*/
protected function parseListForGrid($data)
protected function parseListForGrid(array $data): array
{
$Invoices = Handler::getInstance();
$Locale = QUI::getLocale();
......@@ -708,7 +706,7 @@ protected function parseListForGrid($data)
$invoiceAddress['firstname'].' '.
$invoiceAddress['lastname']
);
if (!empty($invoiceAddress['company'])) {
$invoiceData['customer_name'] = trim($invoiceData['customer_name']);
......@@ -785,7 +783,7 @@ protected function parseListForGrid($data)
/**
* @return array
*/
protected function getAllowedFields()
protected function getAllowedFields(): array
{
return [
'id',
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren