Пример #1
0
                die($msg);
            }
        }
    }
    if (!$INTEGRATED_AR) {
        $msg = invoice_post($invoice_info);
        if ($msg) {
            die($msg);
        }
    }
    // If applicable, set the invoice reference number.
    $invoice_refno = '';
    if (isset($_POST['form_irnumber'])) {
        $invoice_refno = trim($_POST['form_irnumber']);
    } else {
        $invoice_refno = updateInvoiceRefNumber();
    }
    if ($invoice_refno) {
        sqlStatement("UPDATE form_encounter " . "SET invoice_refno = ? " . "WHERE pid = ? AND encounter = ?", array($invoice_refno, $form_pid, $form_encounter));
    }
    generate_receipt($form_pid, $form_encounter);
    exit;
}
// If an encounter ID was given, then we must generate a receipt.
//
if (!empty($_GET['enc'])) {
    generate_receipt($patient_id, $_GET['enc']);
    exit;
}
// Get the unbilled billing table items and product sales for
// this patient.
Пример #2
0
                die($msg);
            }
        }
    }
    if (!$INTEGRATED_AR) {
        $msg = invoice_post($invoice_info);
        if ($msg) {
            die($msg);
        }
    }
    // If applicable, set the invoice reference number.
    $invoice_refno = '';
    if (isset($_POST['form_irnumber'])) {
        $invoice_refno = formData('form_irnumber', 'P', true);
    } else {
        $invoice_refno = add_escape_custom(updateInvoiceRefNumber());
    }
    if ($invoice_refno) {
        sqlStatement("UPDATE form_encounter " . "SET invoice_refno = '{$invoice_refno}' " . "WHERE pid = '{$form_pid}' AND encounter = '{$form_encounter}'");
    }
    generate_receipt($form_pid, $form_encounter);
    exit;
}
// If an encounter ID was given, then we must generate a receipt.
//
if (!empty($_GET['enc'])) {
    generate_receipt($pid, $_GET['enc']);
    exit;
}
// Get the unbilled billing table items and product sales for
// this patient.