diff --git a/Core/Controller/EditSubcuenta.php b/Core/Controller/EditSubcuenta.php index b0a9268844..ad00fd6164 100644 --- a/Core/Controller/EditSubcuenta.php +++ b/Core/Controller/EditSubcuenta.php @@ -1,7 +1,7 @@ + * Copyright (C) 2017-2022 Carlos Garcia Gomez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as @@ -39,22 +39,12 @@ class EditSubcuenta extends EditController { - /** - * Returns the class name of the model to use in the editView. - * - * @return string - */ - public function getModelClassName() + public function getModelClassName(): string { return 'Subcuenta'; } - /** - * Returns basic page attributes - * - * @return array - */ - public function getPageData() + public function getPageData(): array { $data = parent::getPageData(); $data['menu'] = 'accounting'; @@ -78,14 +68,10 @@ protected function addLedgerReport(string $viewName) $this->setLedgerReportValues($viewName); } - /** - * - * @param string $viewName - */ protected function createDepartureView(string $viewName = 'ListPartidaAsiento') { $this->addListView($viewName, 'Join\PartidaAsiento', 'accounting-entries', 'fas fa-balance-scale'); - $this->views[$viewName]->addOrderBy(['fecha', 'numero'], 'date', 2); + $this->views[$viewName]->addOrderBy(['fecha', 'numero', 'idpartida'], 'date', 2); $this->views[$viewName]->addSearchFields(['partidas.concepto']); $this->views[$viewName]->addFilterPeriod('date', 'date', 'fecha'); @@ -223,10 +209,6 @@ protected function loadData($viewName, $view) } } - /** - * - * @param BaseView $view - */ protected function prepareSubcuenta(BaseView $view) { $cuenta = new Cuenta();