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:
parent
fd2933dcc4
commit
eeedc8935e
@ -43,12 +43,8 @@ trait RelationTrait
|
||||
public function fixIvaIndetraibile()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Effettua i conti per il subtotale della riga.
|
||||
*/
|
||||
|
||||
protected function fixSubtotale()
|
||||
{
|
||||
$this->fixIva();
|
||||
}
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ switch (filter('op')) {
|
||||
|
||||
$fatture = $anagrafica->fattureAcquisto()
|
||||
->contabile()
|
||||
->orderByDesc('created_at')
|
||||
->orderBy('created_at', 'DESC')
|
||||
->take(10)
|
||||
->get();
|
||||
|
||||
|
@ -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
|
||||
|
@ -27,8 +27,6 @@ abstract class Discount extends Accounting
|
||||
{
|
||||
use SimpleModelTrait;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public static function build(Document $document)
|
||||
{
|
||||
$model = new static();
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user