1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-16 19:40:44 +01:00

Correzioni minori

This commit is contained in:
Dasc3er 2020-11-09 18:51:46 +01:00
parent fd2933dcc4
commit eeedc8935e
6 changed files with 4 additions and 13 deletions

View File

@ -43,12 +43,8 @@ trait RelationTrait
public function fixIvaIndetraibile()
{
}
/**
* Effettua i conti per il subtotale della riga.
*/
protected function fixSubtotale()
{
$this->fixIva();
}
}

View File

@ -197,7 +197,7 @@ switch (filter('op')) {
$fatture = $anagrafica->fattureAcquisto()
->contabile()
->orderByDesc('created_at')
->orderBy('created_at', 'DESC')
->take(10)
->get();

View File

@ -247,9 +247,6 @@ abstract class Component extends Model
// Impostazione degli attributi
$model = $object::find($model->id);
if (empty($model)) {
dd($model, $attributes, $object);
}
$accepted = $model->getAttributes();
// Azioni specifiche precedenti

View File

@ -27,8 +27,6 @@ abstract class Discount extends Accounting
{
use SimpleModelTrait;
protected $guarded = [];
public static function build(Document $document)
{
$model = new static();

View File

@ -474,7 +474,7 @@ class Database extends Util\Singleton
if ($order == 'ASC') {
$statement = $statement->orderBy($field);
} else {
$statement = $statement->orderByDesc($field);
$statement = $statement->orderBy($field, 'DESC');
}
}
}

View File

@ -41,7 +41,7 @@ class EmailManager implements ManagerInterface
{
// Visualizzo il log delle operazioni di invio email
$emails = Mail::whereRaw('id IN (SELECT id_email FROM zz_operations WHERE id_record = '.prepare($options['id_record']).' AND id_module = '.prepare($options['id_module']).' AND id_email IS NOT NULL)')
->orderByDesc('created_at')
->orderBy('created_at', 'DESC')
->get();
if ($emails->isEmpty()) {