feature/cierres (#25)

Varios cambios

Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #25
This commit is contained in:
2025-07-22 13:18:00 +00:00
parent ba57cad514
commit 307f2ac7d7
418 changed files with 20045 additions and 984 deletions

View File

@ -0,0 +1,52 @@
<?php
declare(strict_types=1);
use Phinx\Seed\AbstractSeed;
class TipoPago extends AbstractSeed
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* https://book.cakephp.org/phinx/0/en/seeding.html
*/
public function run(): void
{
$table = $this->table('tipo_pago');
$data = [
[
'descripcion' => 'cheque',
],
[
'descripcion' => 'carta de resguardo',
],
[
'descripcion' => 'vale vista'
],
[
'descripcion' => 'deposito',
],
[
'descripcion' => 'efectivo',
],
[
'descripcion' => 'tarjeta de credito',
],
[
'descripcion' => 'transferencia electronica',
],
[
'descripcion' => 'virtual',
]
];
$table->truncate();
$table
->insert($data)
->saveData();
}
}