Laravel 11, Vuexy Admin 10.3, by admin@koneko.mx

This commit is contained in:
2025-01-25 04:23:40 -06:00
parent c3045b43b1
commit 64d505910f
1283 changed files with 140198 additions and 0 deletions

View File

@ -0,0 +1,46 @@
<?php
namespace Modules\Admin\App\Models\Sat;
use Illuminate\Database\Eloquent\Model;
class Moneda extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'sat_moneda';
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'c_moneda',
'descripcion',
'decimales',
'porcentaje_variacion',
'fecha_inicio_de_vigencia',
'fecha_fin_de_vigencia',
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'fecha_inicio_de_vigencia' => 'datetime',
'fecha_fin_de_vigencia' => 'datetime',
];
public static function selectList()
{
return self::selectRaw('c_moneda, CONCAT_WS(" ", c_moneda, "-", descripcion) as text')
->pluck('text', 'c_moneda');
}
}