mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-02-15 12:08:40 +00:00
fix tests
This commit is contained in:
parent
c920ae9a26
commit
d251b1be4b
|
|
@ -50,6 +50,15 @@ final class Installer extends InstallerAbstract
|
||||||
self::importAccounts($app);
|
self::importAccounts($app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import accounts
|
||||||
|
*
|
||||||
|
* @param ApplicationAbstract $app Application
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
private static function importAccounts(ApplicationAbstract $app) : void
|
private static function importAccounts(ApplicationAbstract $app) : void
|
||||||
{
|
{
|
||||||
/** @var \Modules\Accounting\Controller\ApiController $module */
|
/** @var \Modules\Accounting\Controller\ApiController $module */
|
||||||
|
|
|
||||||
|
|
@ -214,20 +214,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update account from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateAccountFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an cost center
|
* Api method to create an cost center
|
||||||
*
|
*
|
||||||
|
|
@ -271,20 +257,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create cost center from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createCostCenterFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an cost center
|
* Api method to update an cost center
|
||||||
*
|
*
|
||||||
|
|
@ -328,20 +300,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update cost center from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateCostCenterFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an cost object
|
* Api method to create an cost object
|
||||||
*
|
*
|
||||||
|
|
@ -385,20 +343,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create cost object from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createCostObjectFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an cost object
|
* Api method to update an cost object
|
||||||
*
|
*
|
||||||
|
|
@ -442,20 +386,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update cost object from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateCostObjectFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an entry
|
* Api method to create an entry
|
||||||
*
|
*
|
||||||
|
|
@ -499,20 +429,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an entry
|
* Api method to update an entry
|
||||||
*
|
*
|
||||||
|
|
@ -556,20 +472,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an recurring entry
|
* Api method to create an recurring entry
|
||||||
*
|
*
|
||||||
|
|
@ -613,20 +515,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create recurring entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createRecurringEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an recurring entry
|
* Api method to update an recurring entry
|
||||||
*
|
*
|
||||||
|
|
@ -670,20 +558,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update recurring entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateRecurringEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an tax key
|
* Api method to create an tax key
|
||||||
*
|
*
|
||||||
|
|
@ -727,20 +601,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create tax key from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createTaxKeyFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an tax key
|
* Api method to update an tax key
|
||||||
*
|
*
|
||||||
|
|
@ -784,20 +644,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update tax key from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateTaxKeyFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to create an batch entry
|
* Api method to create an batch entry
|
||||||
*
|
*
|
||||||
|
|
@ -841,20 +687,6 @@ final class ApiController extends Controller
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to create batch entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function createBatchEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api method to update an batch entry
|
* Api method to update an batch entry
|
||||||
*
|
*
|
||||||
|
|
@ -897,18 +729,4 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Method to update batch entry from request.
|
|
||||||
*
|
|
||||||
* @param RequestAbstract $request Request
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private function updateBatchEntryFromRequest(RequestAbstract $request) : mixed
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/Accounting/Theme/Backend/coa-list');
|
$view->setTemplate('/Modules/Accounting/Theme/Backend/coa-list');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1002604001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1002604001, $request, $response);
|
||||||
|
|
||||||
$view->data['accounts'] = AccountAbstractMapper::getAll()
|
$view->data['accounts'] = AccountAbstractMapper::getAll()
|
||||||
->with('l11n')
|
->with('l11n')
|
||||||
->where('l11n/language', $response->header->l11n->language)
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,11 @@ final class Autoloader
|
||||||
{
|
{
|
||||||
$class = \ltrim($class, '\\');
|
$class = \ltrim($class, '\\');
|
||||||
$class = \strtr($class, '_\\', '//');
|
$class = \strtr($class, '_\\', '//');
|
||||||
|
|
||||||
|
if (\stripos($class, 'Web/Backend')) {
|
||||||
|
$class = \str_replace('Web', 'Install/Application', $class);
|
||||||
|
}
|
||||||
|
|
||||||
$class2 = $class;
|
$class2 = $class;
|
||||||
|
|
||||||
$pos = \stripos($class, '/');
|
$pos = \stripos($class, '/');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user