Skip to content

Commit

Permalink
Corregido el orden de partidas en subcuentas.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Apr 18, 2022
1 parent cc226a2 commit 22723c8
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Core/Controller/EditSubcuenta.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* This file is part of FacturaScripts
* Copyright (C) 2017-2021 Carlos Garcia Gomez <carlos@facturascripts.com>
* Copyright (C) 2017-2022 Carlos Garcia Gomez <carlos@facturascripts.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
Expand Down Expand Up @@ -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';
Expand All @@ -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');
Expand Down Expand Up @@ -223,10 +209,6 @@ protected function loadData($viewName, $view)
}
}

/**
*
* @param BaseView $view
*/
protected function prepareSubcuenta(BaseView $view)
{
$cuenta = new Cuenta();
Expand Down

0 comments on commit 22723c8

Please sign in to comment.