</form>
</fieldset>
<?php 
$socio = $_POST["idsocio"];
$documento = $_POST["idsolicitud"];
$tipo = $_POST["tipodescuento"];
$monto = $_POST["monto"];
$parcialidad = $_POST["idparcialidad"];
$observaciones = $_POST["observaciones"];
$fecha_operacion = fechasys();
if (isset($socio) and $monto > 0) {
    $xBtn = new cHButton("id-cmdImprimir");
    $xRec = new cReciboDeOperacion(96, false);
    $recibo = $xRec->setNuevoRecibo($socio, $documento, $fecha_operacion, $parcialidad, 96, $observaciones);
    $xRec->setNuevoMvto($fecha_operacion, $monto, $tipo, $parcialidad, $observaciones, -1, TM_ABONO);
    $xRec->setFinalizarRecibo();
    echo $xRec->getFichaSocio();
    echo $xRec->getFicha(true, "<tr><th colspan='4'>" . $xBtn->getImprimirRecibo() . "</th></tr>");
}
// end if
?>
</body>
<script  >
<?php 
if (isset($socio) and $monto > 0) {
    echo $xRec->getJsPrint();
}
?>
</script>
</html>