Manejo de errores
This commit is contained in:
parent
e37aa25b3d
commit
3c14055006
1 changed files with 6 additions and 0 deletions
|
@ -11,7 +11,9 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use League\Csv\CannotInsertRecord;
|
||||
use League\Csv\Exception;
|
||||
use League\Csv\InvalidArgument;
|
||||
|
||||
class Producto extends Model
|
||||
{
|
||||
|
@ -143,6 +145,10 @@ class Producto extends Model
|
|||
->groupBy('producto');
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws InvalidArgument
|
||||
* @throws CannotInsertRecord
|
||||
*/
|
||||
static public function planillaNotas() {
|
||||
$headers = ['Producto'];
|
||||
$barrios = GrupoDeCompra::barriosMenosPruebaConPedidosAprobados()
|
||||
|
|
Loading…
Add table
Reference in a new issue