����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.42 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/www/html/t/sae/appsae/core/app/view/ |
Upload File : |
<?php $almacenes= StockData::getAll(); ?> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <section class="content-header"> <h1><h1>Balance General (Solo Almacen General)</h1></h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Reportes</a></li> <li class="active">Balance</li> </ol> </section> <section class="content"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Debe seleccionar un folio para visualizar su reporte de la venta.</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="row"> <div class="col-md-12"> <form> <input type="hidden" name="view" value="balanceG"> <div class="row"> <div class="col-md-4"> <select name="stock_id" id="stock_id" required class="form-control"> <option value="">-- ALMACEN --</option> <?php foreach($almacenes as $p):?> <option value="<?php echo $p->id;?>" <?php if(isset($_GET["stock_id"]) && $_GET["stock_id"]==$p->id){ echo "selected"; }?>><?php echo $p->name;?></option> <?php endforeach; ?> </select> </div> <div class="col-md-3"> <input type="date" name="sd" value="<?php if(isset($_GET["sd"])){ echo $_GET["sd"]; }?>" class="form-control"> </div> <div class="col-md-3"> <input type="date" name="ed" value="<?php if(isset($_GET["ed"])){ echo $_GET["ed"]; }?>" class="form-control"> </div> <div class="col-md-2"> <input type="submit" class="btn btn-success btn-block" value="Procesar"> </div> </div> </form> <?php if(isset($_GET["sd"]) && isset($_GET["ed"]) ):?> <hr width="70%" size="5" noshade> <div id="container"></div> <script> var c=0; var dates=Array(); var data=Array(); var data2=Array(); var data3=Array(); var data4=Array(); var total=Array(); <?php $sd = strtotime($_GET["sd"]); $ed = strtotime($_GET["ed"]); for($i=$sd;$i<=$ed;$i+=(60*60*24)){ //echo date("Y-m-d",$i); //echo"/"; //SOLO ALMACEN GENERAL $operations = SellData::getByDateOp(date("Y-m-d",$i)); $Credits = SellData::getByDateOpCredit(date("Y-m-d",$i)); $res = ReData::getByDateOp(date("Y-m-d",$i)); $spends = SpendGData::getByDateOp( date("Y-m-d",$i) ); //echo $operations[0]->c; //abonos o pagos recibidos en el dia $abonos->suma $abonos = PaymentData::getAllDay(); $sa = $abonos->suma!=null?$abonos->suma:0; //COMPRAS $sr = 0; $sr = $res[0]->tot!=null?$res[0]->tot:0; //VENTAS CONTADO $sl = 0; $sl =$operations[0]->c!=null?$operations[0]->c:0; $sl = $sl + $sa; //VENTAS CREDITO $sc = 0; $sc =$Credits[0]->p!=null?$Credits[0]->p:0; //GASTOS $sp= 0; $sp = $spends[0]->t!=null?$spends[0]->t:0; $utilidad = ($sl+$sc+$sa) - ( $sr + $sp); $utilidad = $utilidad!=null?$utilidad:0; ?> data[c]=( <?php echo $utilidad;?>); data2[c]= <?php echo $sl+$sc;?> ; data3[c]= <?php echo $sp;?> ; data4[c]= <?php echo $sr;?> ; c++; <?php } ?> Highcharts.chart('container', { title: { text: 'Estadisticas Por Fecha' }, subtitle: { text: 'Almacen: <?php echo $_GET["stock_id"]; ?>' }, yAxis: { title: { text: 'Ventas en pesos MX' } }, legend: { layout: 'vertical', align: 'right', verticalAlign: 'middle' }, plotOptions: { series: { pointStart: 1 } }, series: [{ name: 'utilidad Periodo', data: data }, { name: 'ventas Periodo', data: data2 }, { name: 'Gastos Periodo', data: data3 }, { name: 'Compras Periodo', data: data4 } ] }); </script> <?php endif;?> </div> </div> </div> </div> </section>