Agregando datos base

This commit is contained in:
2025-01-05 15:50:44 -03:00
parent c576bd836e
commit fd5298b990
28 changed files with 31043 additions and 15 deletions

2328
.phpstorm.meta.php Normal file

File diff suppressed because it is too large Load Diff

27431
_ide_helper.php Normal file

File diff suppressed because it is too large Load Diff

243
_ide_helper_models.php Normal file
View File

@@ -0,0 +1,243 @@
<?php
// @formatter:off
// phpcs:ignoreFile
/**
* A helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace App\Models{
/**
*
*
* @property int $id
* @property int $valor
* @property string $descripcion
* @property int $turno_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereDescripcion($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereTurnoId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CalculoFondo whereValor($value)
*/
class CalculoFondo extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int $veinte_mil
* @property int $diez_mil
* @property int $cinco_mil
* @property int $dos_mil
* @property int $mil
* @property int $quinientos
* @property int $cien
* @property int $cincuenta
* @property int $diez
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereCien($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereCincoMil($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereCincuenta($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereDiez($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereDiezMil($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereDosMil($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereMil($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereQuinientos($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Efectivo whereVeinteMil($value)
*/
class Efectivo extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $numero
* @property string $descripcion
* @property int $valor
* @property string $tipo_egreso
* @property int $turno_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereDescripcion($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereNumero($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereTipoEgreso($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereTurnoId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Egreso whereValor($value)
*/
class Egreso extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $mes
* @property int $costo_venta
* @property int $cuenta_corriente_factura
* @property int $cuenta_corriente_boleta
* @property int $cuenta_corriente_sin_respaldo
* @property int $cuenta_corriente_partime
* @property int $remuneraciones
* @property int $finiquitos
* @property int $aguinaldo
* @property int $bonos_personal
* @property int $honorarios_contador
* @property int $arriendo
* @property int $agua
* @property int $luz
* @property int $gas
* @property int $telefono
* @property int $otro_servicio
* @property string $ppm
* @property int $iva_a_favor
* @property int $dias_habiles
* @property int $dias_trabajados
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereAgua($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereAguinaldo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereArriendo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereBonosPersonal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCostoVenta($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCuentaCorrienteBoleta($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCuentaCorrienteFactura($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCuentaCorrientePartime($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereCuentaCorrienteSinRespaldo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereDiasHabiles($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereDiasTrabajados($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereFiniquitos($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereGas($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereHonorariosContador($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereIvaAFavor($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereLuz($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereMes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereOtroServicio($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado wherePpm($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereRemuneraciones($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereTelefono($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstadoResultado whereUpdatedAt($value)
*/
class EstadoResultado extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int $numero
* @property int $numero_z
* @property int $ingreso_inicial
* @property int $ingreso_final
* @property int $total
* @property string $tipo_ingreso
* @property int $turno_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereIngresoFinal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereIngresoInicial($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereNumero($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereNumeroZ($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereTipoIngreso($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereTurnoId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Ingreso whereUpdatedAt($value)
*/
class Ingreso extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $fecha
* @property int $numero_caja
* @property int $numero_turno
* @property int $fondo
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereFecha($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereFondo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereNumeroCaja($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereNumeroTurno($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Turno whereUpdatedAt($value)
*/
class Turno extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string $password
* @property string|null $remember_token
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read int|null $notifications_count
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereEmailVerifiedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereUpdatedAt($value)
*/
class User extends \Eloquent {}
}

View File

@@ -0,0 +1,8 @@
<?php
enum TipoDocumento: string {
case ChequesDia = 'Cheques al Dia';
case TarjetasCredito = 'Tarjetas de Credito';
case TarjetasDebito = 'Tarjetas de Debito';
case Retiro = 'Retiro';
}

17
app/Enums/TipoEgreso.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
enum TipoEgreso: string
{
case FacturaMateriaPrima = 'Factura Materia Prima';
case FacturaGastosGenerales = 'Factura Gastos Generales';
case BoletaMateriaPrima = 'Boleta Materia Prima';
case ValeMateriaPrima = 'Vale Materia Prima';
case BoletaGastosGenerales = 'Boleta Gastos Generales';
case ValeGastosGenerales = 'Vale Gastos Generales';
case GuiaMateriaPrima = 'Guía Materia Prima';
case AnticipoArriendo = 'Anticipo Arriendo';
case AnticipoPersonal = 'Anticipo Personal';
case PagoPartime = 'Pago Partime';
case RetirosGerencia = 'Retiros Gerencia';
case Otro = 'Otro';
}

View File

@@ -0,0 +1,9 @@
<?php
enum TipoGastoCuentaCorriente: string
{
case Factura = 'Factura';
case Boleta = 'Boleta';
case SinRespaldo = 'Sin Respaldo';
case Guias = 'Guias';
}

10
app/Enums/TipoIngreso.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
enum TipoIngreso: string
{
case BoletasFiscales = 'Boletas Fiscales';
case BoletasManuales = 'Boletas Manuales';
case Facturas = 'Facturas';
case Guias = 'Guias';
case BoletaExenta = 'Boleta Exenta';
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CalculoFondo extends Model
{
protected $table = 'calculo_fondos';
}

10
app/Models/Documento.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Documentos extends Model
{
protected $table = 'documentos';
}

10
app/Models/Efectivo.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Efectivo extends Model
{
protected $table = 'efectivos';
}

10
app/Models/Egreso.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Egreso extends Model
{
protected $table = 'egresos';
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EstadoResultado extends Model
{
protected $table = 'estados_resultado';
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class GastosCuentaCorriente extends Model
{
protected $table = 'gastos_cuenta_corriente';
}

10
app/Models/Ingreso.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Ingreso extends Model
{
protected $table = 'ingresos';
}

10
app/Models/Turno.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Turno extends Model
{
protected $table = 'turnos';
}

View File

@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Models\CalculoFondo;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -19,6 +21,6 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
Model::preventLazyLoading(! app()->isProduction());
}
}

View File

@@ -16,6 +16,7 @@
"livewire/volt": "^1.0"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.4",
"fakerphp/faker": "^1.23",
"laravel/breeze": "^2.3",
"laravel/pail": "^1.1",
@@ -44,7 +45,9 @@
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
@@ -75,4 +78,4 @@
},
"minimum-stability": "stable",
"prefer-stable": true
}
}

300
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "44877f0e3c471acabfa39b82b5c94b6e",
"content-hash": "38321bb5c34e1ebdec7298491f72a70f",
"packages": [
{
"name": "brick/math",
@@ -5948,6 +5948,152 @@
}
],
"packages-dev": [
{
"name": "barryvdh/laravel-ide-helper",
"version": "v3.4.0",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-ide-helper.git",
"reference": "2a41415f01bf3c409d200f6cdd940c1e7d86cfd3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/2a41415f01bf3c409d200f6cdd940c1e7d86cfd3",
"reference": "2a41415f01bf3c409d200f6cdd940c1e7d86cfd3",
"shasum": ""
},
"require": {
"barryvdh/reflection-docblock": "^2.2",
"composer/class-map-generator": "^1.0",
"ext-json": "*",
"illuminate/console": "^11.15",
"illuminate/database": "^11.15",
"illuminate/filesystem": "^11.15",
"illuminate/support": "^11.15",
"nikic/php-parser": "^4.18 || ^5",
"php": "^8.2",
"phpdocumentor/type-resolver": "^1.1.0"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"friendsofphp/php-cs-fixer": "^3",
"illuminate/config": "^11.15",
"illuminate/view": "^11.15",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^9.2",
"phpunit/phpunit": "^10.5",
"spatie/phpunit-snapshot-assertions": "^4 || ^5",
"vimeo/psalm": "^5.4"
},
"suggest": {
"illuminate/events": "Required for automatic helper generation (^6|^7|^8|^9|^10|^11)."
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider"
]
},
"branch-alias": {
"dev-master": "3.4-dev"
}
},
"autoload": {
"psr-4": {
"Barryvdh\\LaravelIdeHelper\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.",
"keywords": [
"autocomplete",
"codeintel",
"helper",
"ide",
"laravel",
"netbeans",
"phpdoc",
"phpstorm",
"sublime"
],
"support": {
"issues": "https://github.com/barryvdh/laravel-ide-helper/issues",
"source": "https://github.com/barryvdh/laravel-ide-helper/tree/v3.4.0"
},
"funding": [
{
"url": "https://fruitcake.nl",
"type": "custom"
},
{
"url": "https://github.com/barryvdh",
"type": "github"
}
],
"time": "2024-12-29T12:10:58+00:00"
},
{
"name": "barryvdh/reflection-docblock",
"version": "v2.3.0",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/ReflectionDocBlock.git",
"reference": "818be8de6af4d16ef3ad51ea9234b3d37026ee5f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/818be8de6af4d16ef3ad51ea9234b3d37026ee5f",
"reference": "818be8de6af4d16ef3ad51ea9234b3d37026ee5f",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^8.5.14|^9"
},
"suggest": {
"dflydev/markdown": "~1.0",
"erusev/parsedown": "~1.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.3.x-dev"
}
},
"autoload": {
"psr-0": {
"Barryvdh": [
"src/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Mike van Riel",
"email": "mike.vanriel@naenius.com"
}
],
"support": {
"source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.3.0"
},
"time": "2024-12-30T10:35:04+00:00"
},
{
"name": "brianium/paratest",
"version": "v7.7.0",
@@ -6041,6 +6187,158 @@
],
"time": "2024-12-11T14:50:44+00:00"
},
{
"name": "composer/class-map-generator",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/composer/class-map-generator.git",
"reference": "4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/class-map-generator/zipball/4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915",
"reference": "4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915",
"shasum": ""
},
"require": {
"composer/pcre": "^2.1 || ^3.1",
"php": "^7.2 || ^8.0",
"symfony/finder": "^4.4 || ^5.3 || ^6 || ^7"
},
"require-dev": {
"phpstan/phpstan": "^1.12 || ^2",
"phpstan/phpstan-deprecation-rules": "^1 || ^2",
"phpstan/phpstan-phpunit": "^1 || ^2",
"phpstan/phpstan-strict-rules": "^1.1 || ^2",
"phpunit/phpunit": "^8",
"symfony/filesystem": "^5.4 || ^6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Composer\\ClassMapGenerator\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "https://seld.be"
}
],
"description": "Utilities to scan PHP code and generate class maps.",
"keywords": [
"classmap"
],
"support": {
"issues": "https://github.com/composer/class-map-generator/issues",
"source": "https://github.com/composer/class-map-generator/tree/1.5.0"
},
"funding": [
{
"url": "https://packagist.com",
"type": "custom"
},
{
"url": "https://github.com/composer",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
"type": "tidelift"
}
],
"time": "2024-11-25T16:11:06+00:00"
},
{
"name": "composer/pcre",
"version": "3.3.2",
"source": {
"type": "git",
"url": "https://github.com/composer/pcre.git",
"reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e",
"reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e",
"shasum": ""
},
"require": {
"php": "^7.4 || ^8.0"
},
"conflict": {
"phpstan/phpstan": "<1.11.10"
},
"require-dev": {
"phpstan/phpstan": "^1.12 || ^2",
"phpstan/phpstan-strict-rules": "^1 || ^2",
"phpunit/phpunit": "^8 || ^9"
},
"type": "library",
"extra": {
"phpstan": {
"includes": [
"extension.neon"
]
},
"branch-alias": {
"dev-main": "3.x-dev"
}
},
"autoload": {
"psr-4": {
"Composer\\Pcre\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be"
}
],
"description": "PCRE wrapping library that offers type-safe preg_* replacements.",
"keywords": [
"PCRE",
"preg",
"regex",
"regular expression"
],
"support": {
"issues": "https://github.com/composer/pcre/issues",
"source": "https://github.com/composer/pcre/tree/3.3.2"
},
"funding": [
{
"url": "https://packagist.com",
"type": "custom"
},
{
"url": "https://github.com/composer",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
"type": "tidelift"
}
],
"time": "2024-11-12T16:29:46+00:00"
},
{
"name": "doctrine/deprecations",
"version": "1.1.4",

337
config/ide-helper.php Normal file
View File

@@ -0,0 +1,337 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Filename
|--------------------------------------------------------------------------
|
| The default filename.
|
*/
'filename' => '_ide_helper.php',
/*
|--------------------------------------------------------------------------
| Models filename
|--------------------------------------------------------------------------
|
| The default filename for the models helper file.
|
*/
'models_filename' => '_ide_helper_models.php',
/*
|--------------------------------------------------------------------------
| PhpStorm meta filename
|--------------------------------------------------------------------------
|
| PhpStorm also supports the directory `.phpstorm.meta.php/` with arbitrary
| files in it, should you need additional files for your project; e.g.
| `.phpstorm.meta.php/laravel_ide_Helper.php'.
|
*/
'meta_filename' => '.phpstorm.meta.php',
/*
|--------------------------------------------------------------------------
| Fluent helpers
|--------------------------------------------------------------------------
|
| Set to true to generate commonly used Fluent methods.
|
*/
'include_fluent' => false,
/*
|--------------------------------------------------------------------------
| Factory builders
|--------------------------------------------------------------------------
|
| Set to true to generate factory generators for better factory()
| method auto-completion.
|
| Deprecated for Laravel 8 or latest.
|
*/
'include_factory_builders' => false,
/*
|--------------------------------------------------------------------------
| Write model magic methods
|--------------------------------------------------------------------------
|
| Set to false to disable write magic methods of model.
|
*/
'write_model_magic_where' => true,
/*
|--------------------------------------------------------------------------
| Write model external Eloquent builder methods
|--------------------------------------------------------------------------
|
| Set to false to disable write external Eloquent builder methods.
|
*/
'write_model_external_builder_methods' => true,
/*
|--------------------------------------------------------------------------
| Write model relation count properties
|--------------------------------------------------------------------------
|
| Set to false to disable writing of relation count properties to model DocBlocks.
|
*/
'write_model_relation_count_properties' => true,
/*
|--------------------------------------------------------------------------
| Write Eloquent model mixins
|--------------------------------------------------------------------------
|
| This will add the necessary DocBlock mixins to the model class
| contained in the Laravel framework. This helps the IDE with
| auto-completion.
|
| Please be aware that this setting changes a file within the /vendor directory.
|
*/
'write_eloquent_model_mixins' => false,
/*
|--------------------------------------------------------------------------
| Helper files to include
|--------------------------------------------------------------------------
|
| Include helper files. By default not included, but can be toggled with the
| -- helpers (-H) option. Extra helper files can be included.
|
*/
'include_helpers' => false,
'helper_files' => [
base_path() . '/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
],
/*
|--------------------------------------------------------------------------
| Model locations to include
|--------------------------------------------------------------------------
|
| Define in which directories the ide-helper:models command should look
| for models.
|
| glob patterns are supported to easier reach models in sub-directories,
| e.g. `app/Services/* /Models` (without the space).
|
*/
'model_locations' => [
'app',
],
/*
|--------------------------------------------------------------------------
| Models to ignore
|--------------------------------------------------------------------------
|
| Define which models should be ignored.
|
*/
'ignored_models' => [
// App\MyModel::class,
],
/*
|--------------------------------------------------------------------------
| Models hooks
|--------------------------------------------------------------------------
|
| Define which hook classes you want to run for models to add custom information.
|
| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.
|
*/
'model_hooks' => [
// App\Support\IdeHelper\MyModelHook::class
],
/*
|--------------------------------------------------------------------------
| Extra classes
|--------------------------------------------------------------------------
|
| These implementations are not really extended, but called with magic functions.
|
*/
'extra' => [
'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],
'Session' => ['Illuminate\Session\Store'],
],
'magic' => [],
/*
|--------------------------------------------------------------------------
| Interface implementations
|--------------------------------------------------------------------------
|
| These interfaces will be replaced with the implementing class. Some interfaces
| are detected by the helpers, others can be listed below.
|
*/
'interfaces' => [
// App\MyInterface::class => App\MyImplementation::class,
],
/*
|--------------------------------------------------------------------------
| Support for camel cased models
|--------------------------------------------------------------------------
|
| There are some Laravel packages (such as Eloquence) that allow for accessing
| Eloquent model properties via camel case, instead of snake case.
|
| Enabling this option will support these packages by saving all model
| properties as camel case, instead of snake case.
|
| For example, normally you would see this:
|
| * @property \Illuminate\Support\Carbon $created_at
| * @property \Illuminate\Support\Carbon $updated_at
|
| With this enabled, the properties will be this:
|
| * @property \Illuminate\Support\Carbon $createdAt
| * @property \Illuminate\Support\Carbon $updatedAt
|
| Note, it is currently an all-or-nothing option.
|
*/
'model_camel_case_properties' => false,
/*
|--------------------------------------------------------------------------
| Property casts
|--------------------------------------------------------------------------
|
| Cast the given "real type" to the given "type".
|
*/
'type_overrides' => [
'integer' => 'int',
'boolean' => 'bool',
],
/*
|--------------------------------------------------------------------------
| Include DocBlocks from classes
|--------------------------------------------------------------------------
|
| Include DocBlocks from classes to allow additional code inspection for
| magic methods and properties.
|
*/
'include_class_docblocks' => false,
/*
|--------------------------------------------------------------------------
| Force FQN usage
|--------------------------------------------------------------------------
|
| Use the fully qualified (class) name in DocBlocks,
| even if the class exists in the same namespace
| or there is an import (use className) of the class.
|
*/
'force_fqn' => false,
/*
|--------------------------------------------------------------------------
| Use generics syntax
|--------------------------------------------------------------------------
|
| Use generics syntax within DocBlocks,
| e.g. `Collection<User>` instead of `Collection|User[]`.
|
*/
'use_generics_annotations' => true,
/*
|--------------------------------------------------------------------------
| Additional relation types
|--------------------------------------------------------------------------
|
| Sometimes it's needed to create custom relation types. The key of the array
| is the relationship method name. The value of the array is the fully-qualified
| class name of the relationship, e.g. `'relationName' => RelationShipClass::class`.
|
*/
'additional_relation_types' => [],
/*
|--------------------------------------------------------------------------
| Additional relation return types
|--------------------------------------------------------------------------
|
| When using custom relation types its possible for the class name to not contain
| the proper return type of the relation. The key of the array is the relationship
| method name. The value of the array is the return type of the relation ('many'
| or 'morphTo').
| e.g. `'relationName' => 'many'`.
|
*/
'additional_relation_return_types' => [],
/*
|--------------------------------------------------------------------------
| Enforce nullable Eloquent relationships on not null columns
|--------------------------------------------------------------------------
|
| When set to true (default), this option enforces nullable Eloquent relationships.
| However, in cases where the application logic ensures the presence of related
| records it may be desirable to set this option to false to avoid unwanted null warnings.
|
| Default: true
| A not null column with no foreign key constraint will have a "nullable" relationship.
| * @property int $not_null_column_with_no_foreign_key_constraint
| * @property-read BelongsToVariation|null $notNullColumnWithNoForeignKeyConstraint
|
| Option: false
| A not null column with no foreign key constraint will have a "not nullable" relationship.
| * @property int $not_null_column_with_no_foreign_key_constraint
| * @property-read BelongsToVariation $notNullColumnWithNoForeignKeyConstraint
|
*/
'enforce_nullable_relationships' => true,
/*
|--------------------------------------------------------------------------
| Run artisan commands after migrations to generate model helpers
|--------------------------------------------------------------------------
|
| The specified commands should run after migrations are finished running.
|
*/
'post_migrate' => [
'ide-helper:models --nowrite',
],
];

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('turnos', function (Blueprint $table) {
$table->id();
$table->date('fecha');
$table->integer('numero_caja');
$table->integer('numero_turno');
$table->integer('fondo');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('turnos');
}
};

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('calculo_fondos', function (Blueprint $table) {
$table->id();
$table->bigInteger('valor');
$table->text('descripcion');
$table->foreignId('turno_id')->constrained('turnos')->onDelete('cascade');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('calculo_fondos');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('documentos', function (Blueprint $table) {
$table->id();
$table->text('descripcion');
$table->bigInteger('valor');
$table->text('tipo_documento');
$table->foreignId('turno_id')->constrained('turnos')->cascadeOnDelete();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('documentos');
}
};

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('efectivos', function (Blueprint $table) {
$table->id();
$table->bigInteger('veinte_mil')->default(0);
$table->bigInteger('diez_mil')->default(0);
$table->bigInteger('cinco_mil')->default(0);
$table->bigInteger('dos_mil')->default(0);
$table->bigInteger('mil')->default(0);
$table->bigInteger('quinientos')->default(0);
$table->bigInteger('cien')->default(0);
$table->bigInteger('cincuenta')->default(0);
$table->bigInteger('diez')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('efectivos');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('egresos', function (Blueprint $table) {
$table->id();
$table->text('numero');
$table->text('descripcion');
$table->bigInteger('valor');
$table->text('tipo_egreso');
$table->foreignId('turno_id')->constrained('turnos')->cascadeOnDelete();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('egresos');
}
};

View File

@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('estados_resultado', function (Blueprint $table) {
$table->id();
$table->date('mes');
$table->bigInteger('costo_venta');
$table->bigInteger('cuenta_corriente_factura');
$table->bigInteger('cuenta_corriente_boleta');
$table->bigInteger('cuenta_corriente_sin_respaldo');
$table->bigInteger('cuenta_corriente_partime');
$table->bigInteger('remuneraciones');
$table->bigInteger('finiquitos');
$table->bigInteger('aguinaldo');
$table->bigInteger('bonos_personal');
$table->bigInteger('honorarios_contador');
$table->bigInteger('arriendo');
$table->bigInteger('agua');
$table->bigInteger('luz');
$table->bigInteger('gas');
$table->bigInteger('telefono');
$table->bigInteger('otro_servicio');
$table->decimal('ppm', 15, 2);
$table->bigInteger('iva_a_favor');
$table->bigInteger('dias_habiles');
$table->bigInteger('dias_trabajados');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('estados_resultado');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('gastos_cuenta_corriente', function (Blueprint $table) {
$table->id();
$table->bigInteger('valor');
$table->text('descripcion');
$table->text('tipo_gasto');
$table->foreignId('estado_resultado_id')->constrained('estados_resultado')->cascadeOnDelete();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('gastos_cuenta_corriente');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('ingresos', function (Blueprint $table) {
$table->id();
$table->bigInteger('numero');
$table->bigInteger('numero_z');
$table->bigInteger('ingreso_inicial');
$table->bigInteger('ingreso_final');
$table->bigInteger('total');
$table->text('tipo_ingreso');
$table->foreignId('turno_id')->constrained('turnos')->cascadeOnDelete();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('ingresos');
}
};

View File

@@ -2,22 +2,11 @@
namespace Database\Seeders;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
}
}