Skip to content

Commit

Permalink
se coloca mensage que indica que bodeguero o responsable de bodega pr…
Browse files Browse the repository at this point in the history
…incipal no esta bien configurado
  • Loading branch information
wcadena committed Nov 29, 2018
1 parent 54e9295 commit fd6e2be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions database/seeds/ContactosTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ContactosTableSeeder extends Seeder
public function run()
{
Auth::login(App\User::inRandomOrder()->first());
factory(App\Custodios::class, 10)->create();
if (\App\Empresa::where('empresa', '=', 'Avianca EC')->first() == null) {
\Illuminate\Support\Facades\DB::table('empresas')->insert([
'empresa' => 'Avianca EC',
Expand All @@ -25,12 +26,15 @@ public function run()
'tipo' => 'texto',
'valores_fuente' => 'FIJO',
'fijo' => 1,
'valor' => null,
'valor' => App\Custodios::inRandomOrder()->first()->id,
'empresa' => 'Avianca Ec',
]);
}
factory(App\Custodios::class, 10)->create();
factory(App\Equipos::class, 500)->create();

factory(App\Equipos::class, 250)->create();
factory(App\User::class, 1)->create();
$custodio = App\Configuracion::where('empresa', '=', 'Avianca EC')->where('atributo','=','CUSTODIO_BODEGA')->first();
$custodio->valor = App\Custodios::inRandomOrder()->first()->id;
$custodio->save();
}
}
1 change: 1 addition & 0 deletions resources/lang/es/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
'notifica_correo' => 'Notificacion de Cambio de Equipos de activos fijos',
'notifica_correo_line1' => 'Se a realizado un cambio de Equipo en el sistema de activos fijos.',
'notifica_correo_fin' => 'Revice el correo adjunto de los equipos asignado a usted.',
'notifica_custodio_bodega_error' => 'Error, el custodio de la bodega por defecto no existe, por favor revisar el valor por defecto de ID custodio.',
];

0 comments on commit fd6e2be

Please sign in to comment.