mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Invoice Subpanel implementation
This commit is contained in:
parent
adca306c93
commit
9855c638c6
10 changed files with 676 additions and 39 deletions
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
|
||||
|
||||
use App\Legacy\Statistics\SubPanelAccountsInvoicesTotal;
|
||||
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* Class SubPanelCasesCountMock
|
||||
* @package Mock\Core\Legacy\Statistics
|
||||
*/
|
||||
class SubPanelAccountsInvoicesTotalMock extends SubPanelAccountsInvoicesTotal
|
||||
{
|
||||
use DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'select' => '',
|
||||
'where' => '',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function fetchRow(string $query): array
|
||||
{
|
||||
return $this->getMockQueryResults();
|
||||
}
|
||||
|
||||
protected function startLegacyApp(): void
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
|
||||
|
||||
use App\Legacy\Statistics\SubPanelContactsInvoicesTotal;
|
||||
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* Class SubPanelCasesCountMock
|
||||
* @package Mock\Core\Legacy\Statistics
|
||||
*/
|
||||
class SubPanelContactsInvoicesTotalMock extends SubPanelContactsInvoicesTotal
|
||||
{
|
||||
use DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'select' => '',
|
||||
'where' => '',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function fetchRow(string $query): array
|
||||
{
|
||||
return $this->getMockQueryResults();
|
||||
}
|
||||
|
||||
protected function startLegacyApp(): void
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
|
||||
|
||||
use App\Legacy\Statistics\SubPanelQuotesInvoicesTotal;
|
||||
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* Class SubPanelCasesCountMock
|
||||
* @package Mock\Core\Legacy\Statistics
|
||||
*/
|
||||
class SubPanelQuotesInvoicesTotalMock extends SubPanelQuotesInvoicesTotal
|
||||
{
|
||||
use DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'select' => '',
|
||||
'where' => '',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function fetchRow(string $query): array
|
||||
{
|
||||
return $this->getMockQueryResults();
|
||||
}
|
||||
|
||||
protected function startLegacyApp(): void
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue