Add update consolidado command and queuing

This commit is contained in:
2022-04-18 22:13:17 -04:00
parent cf27465d75
commit 6ff584013f
19 changed files with 328 additions and 70 deletions

View File

@ -9,6 +9,19 @@ use ProVM\Common\Alias\Model;
* @property string $color
*/
class TipoCuenta extends Model {
public static $_table = 'tipos_cuenta';
protected static $fields = ['descripcion', 'color'];
public static $_table = 'tipos_cuenta';
protected static $fields = ['descripcion', 'color'];
public function cargo()
{
$tipos = [
'activo',
'perdida',
'banco'
];
if (in_array(strtolower($this->descripcion), $tipos)) {
return false;
}
return true;
}
}