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'4/yӬ${ CQ ܭ8Չ_:k}f^uGև`"j=Um[wxbȥְĎrDo﬈hV6!X&8]If~"M?47KOUlac %b SzP)Mi=y$7QZ_mrK=?C䏋4[w:YP V?XV,V^ ID]xĵzuN1}ލ>-"&>KZq&)GauƀQ(tAenET»Q7,}~., LLdw'J(;u%'s/Y|F5輮;vkC-$Ղ!S~QS۸l\Aڈǐ/T!ڡqhdͶa.a&f9l#Z%W Cajero Hora Inicio Hora Fin ' . $POSI_CAJA . ' ' . $CAJERO . ' ' . $H_INICIO . ' ' . $H_FIN . ' '; // set core font $pdf->SetFont('helvetica', '', 10); // output the HTML content $pdf->writeHTML($html_cabecera, true, 0, true, true); $pdf->Ln(); $total_en_sistema = $APERTURA + $TOTAL_ENTRADA - $TOTAL_SALIDA; $total_en_sistema_cierre = $M_CIERRE+$vta_debito+$vta_credito+$vta_cheque+$vta_transferencia; $DIFERENCIA= $total_en_sistema-$total_en_sistema_cierre; $html_cabecera = '
Resumen Rendicion
Monto Apertura ' . number_format($APERTURA, 0) . '
Total Ingreso ' . number_format($TOTAL_ENTRADA, 0) . '
Total Egesos ' . number_format($TOTAL_SALIDA, 0) . '
Monto Cierre ' . number_format($M_CIERRE, 0) . '
Total T.Debito ' . number_format($vta_debito, 0) . '
Total T.Credito ' . number_format($vta_credito, 0) . '
Total Cheque ' . number_format($vta_cheque, 0) . '
Total Transferencia ' . number_format($vta_transferencia, 0) . '
Total Sistema ' . number_format($total_en_sistema, 0) . ' ' . number_format($total_en_sistema_cierre, 0) . '
Diferencia ' . number_format($DIFERENCIA, 0) . '
'; // set core font $pdf->SetFont('helvetica', '', 10); // output the HTML content $pdf->writeHTML($html_cabecera, true, 0, true, true); $detalle_esta_entrada = $aux_fdb->LISTADO_BUSCAR_RENDICION_ENTRADAS($numero_caja_pos, $codigo); $num_detalle_esta_entrada = $aux_fdb->numero_de_filas($detalle_esta_entrada); $tot_ingre = 0; if ($num_detalle_esta_entrada > 0) { $pdf->Ln(); $html_detalle_Ingresos = '
Ingresos
Descripcion Documento Importe
'; $html_detalle_Ingresos .= ''; while ($row = $detalle_esta_entrada->fetch_assoc()) { $desc_ingreso = $row['desc_entrada']; $nro_documento = $row['nro_doc_entrada']; $tot_ingre += $row['monto_entrada']; $importe_ingreso = $row['monto_entrada']; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; } $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= ''; $html_detalle_Ingresos .= '
' . $desc_ingreso . '' . $nro_documento . '' . number_format($importe_ingreso, 0) . '
Total ' . number_format($tot_ingre, 0) . '
'; // output the HTML content $pdf->writeHTML($html_detalle_Ingresos, true, 0, true, true); $pdf->Ln(); } $detalle_esta_salida = $aux_fdb->LISTADO_BUSCAR_RENDICION_SALIDAS($numero_caja_pos, $codigo); $num_detalle_esta_salida = $aux_fdb->numero_de_filas($detalle_esta_salida); $tot_egre = 0; if ($num_detalle_esta_salida > 0) { $pdf->Ln(); $html_detalle_egresos = '
Egresos
Descripcion Documento Importe
'; $html_detalle_egresos .= ''; while ($row = $detalle_esta_salida->fetch_assoc()) { $cod_salida = $row['id_salidas']; $desc_egreso = $row['desc_salida']; $nro_documento = $row['numero_salida']; $importe_gasto = $row['monto_salida']; $afecta_rs = $row['afecta_rs']; if ($afecta_rs == 1) { $desc_egreso = "(No afecta)" . $row['desc_salida'] . "--(" . number_format($importe_gasto, 0) . ")"; $importe_gasto = 0; } $tot_egre += $importe_gasto; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; } $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= ''; $html_detalle_egresos .= '
' . $desc_egreso . '' . $nro_documento . '' . number_format($importe_gasto, 0) . '
Total ' . number_format($tot_egre, 0) . '
'; // output the HTML content $pdf->writeHTML($html_detalle_egresos, true, 0, true, true); $pdf->Ln(); } $detalle_caja_fpagos = $aux_fdb->LISTADO_BUSCAR_RENDICION_PAGOS_NO_EFECTIVOS($numero_caja_pos, $codigo); $num_detalle_caja_fpagos = $aux_fdb->numero_de_filas($detalle_caja_fpagos); if ($num_detalle_caja_fpagos > 0) { $pdf->Ln(); $html_detalle_fpago = '
Valores Rendicion
Nro Cliente. Forma. Nro. Importe
'; $html_detalle_fpago .= ''; while ($row = $detalle_caja_fpagos->fetch_assoc()) { $numero_factc = $row['numero_fact']; $numero_fact = " Fct" . $row['numero_fact']; $numero_tick = $row['numero_tick']; $nombres_cli = $row['razon_cli_vta']; $desc_formapago = $row['desc_formapago']; $nro_documento = $row['nro_documento']; IF ($numero_factc == 0) { $numero_fact = $numero_tick; } $cant_moneda = $row['subto_moneda']; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; $html_detalle_fpago .= ''; } $html_detalle_fpago .= '
' . $numero_fact . '' . $nombres_cli . '' . $desc_formapago . '' . $nro_documento . '' . number_format($cant_moneda, 0) . '
'; // output the HTML content $pdf->writeHTML($html_detalle_fpago, true, 0, true, true); $pdf->Ln(); } //**********************DETALLE DE LA CAJA $pdf->AddPage(); //$consulta = $aux_fdb->DATOS_CAJA_DETALLE_POS($codigo, $numero_caja_pos); $consulta = $aux_fdb->DATOS_CAJA_DETALLE_POS_RESUMEN($codigo, $numero_caja_pos); $numfilas = $aux_fdb->numero_de_filas($consulta); $html_detalle_tot_por_servicio = '
Movimientos de la caja
Mesa Mozo Descripcion Entrada Salida
'; $tot = 0; $tot_ent = 0; $to_sal = 0; for ($i = 0; $i < $numfilas; $i++) { $row = $consulta->fetch_assoc(); $id_det_caja = $row['id_det_caja']; $h_sistema = $row['h_sistema']; $desc_movimiento = $row['desc_movimiento']; $tot_ent += $row['monto_entrada']; $tot_sal += $row['monto_salida']; $nro_mesa = $row['cod_mesa']; $mozo = $row['nombre_usu']; $monto_entrada = number_format($row['monto_entrada'], 0); $monto_salida = number_format($row['monto_salida'], 0); $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; } $monto_salida = number_format($row['monto_salida'], 0); $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= '
' . $nro_mesa . '' . $mozo . '' . $desc_movimiento . '' . $monto_entrada . '' . $monto_salida . '
Totales' . number_format($tot_ent, 0) . '' . number_format($tot_sal, 0) . '
'; $pdf->SetFont('helvetica', '', 9); $pdf->writeHTML($html_detalle_tot_por_servicio, true, 0, true, true); $pdf->Ln(); ///******************* $consulta = $aux_fdb->DATOS_CAJA_DETALLE_POS_RESUMEN_POR_MOZO($codigo, $numero_caja_pos); $numfilas = $aux_fdb->numero_de_filas($consulta); $html_detalle_tot_por_servicio = '
Ventas Por Mozo
Mozo Total
'; for ($i = 0; $i < $numfilas; $i++) { $row = $consulta->fetch_assoc(); $cod_mozo = $row['cod_mozo']; $mozo = $row['nombre_usu']; $TOTAL_MOZO = number_format($row['TOTAL_MOZO'], 0); if($cod_mozo){ $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; } } $html_detalle_tot_por_servicio .= '
' . $mozo . '' . $TOTAL_MOZO . '
'; $pdf->SetFont('helvetica', '', 9); $pdf->writeHTML($html_detalle_tot_por_servicio, true, 0, true, true); $pdf->Ln(); ///******************* //**********************DETALLE DE LA CAJA $pdf->AddPage(); $consulta = $aux_fdb->PRODUCTOS_VENTA_CAJA_DETALLE_POS($codigo, $numero_caja_pos); $numfilas = $aux_fdb->numero_de_filas($consulta); $html_detalle_tot_por_servicio = '
Productos vendidos de la caja
Cant. Descripcion
'; $tot = 0; $tot_ent = 0; $to_sal = 0; for ($i = 0; $i < $numfilas; $i++) { $row = $consulta->fetch_assoc(); $cantidad = number_format($row['cantidad'], 0); $desc_pedido = $row['desc_pedido']; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; $html_detalle_tot_por_servicio .= ''; } $html_detalle_tot_por_servicio .= '
' . $cantidad . '' . $desc_pedido . '
'; $pdf->SetFont('helvetica', '', 9); $pdf->writeHTML($html_detalle_tot_por_servicio, true, 0, true, true); $pdf->lastPage(); // --------------------------------------------------------- $impresino = 'envio_' . $codigo . '.pdf'; //Close and output PDF document $pdf->Output($impresino, 'I'); //============================================================+ // END OF FILE //============================================================+