Update validacionCompra.php
This commit is contained in:
@@ -60,6 +60,8 @@ class validacionCompra extends Command
|
|||||||
foreach ($registro_vendedores_duplicados as $index => $registro) {
|
foreach ($registro_vendedores_duplicados as $index => $registro) {
|
||||||
if ($index > 0) {
|
if ($index > 0) {
|
||||||
$anterior = $registro_vendedores_duplicados[$index - 1];
|
$anterior = $registro_vendedores_duplicados[$index - 1];
|
||||||
|
if ($anterior->valor == $registro->valor && $anterior->tarifa_id == $registro->tarifa_id && $anterior->promocion_id == $registro->promocion_id) {
|
||||||
|
|
||||||
$diferencia = Carbon::parse($anterior->created_at)->diffInSeconds(Carbon::parse($registro->created_at));
|
$diferencia = Carbon::parse($anterior->created_at)->diffInSeconds(Carbon::parse($registro->created_at));
|
||||||
|
|
||||||
if ($diferencia < 20) {
|
if ($diferencia < 20) {
|
||||||
@@ -111,6 +113,7 @@ class validacionCompra extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function enviarTelegram($mensaje)
|
public function enviarTelegram($mensaje)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user