Finetuning software updates, general UI improvements
This commit is contained in:
@@ -59,9 +59,9 @@ if (!empty($invoice_data['customer']['language'])) {
|
||||
// Generate invoice HTML
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
var_dump($invoice_data);
|
||||
list($data, $customer_email, $order_id) = generateSoftwareInvoice($invoice_data, $order_number, $invoice_language);
|
||||
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// Check for HTML output request
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
@@ -92,6 +92,7 @@ $dompdf->render();
|
||||
|
||||
$file_name = 'Factuur - ' . $order_id;
|
||||
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// Handle different actions
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
@@ -124,7 +125,7 @@ if (isset($_POST['email_invoice_to_admin'])) {
|
||||
$header_redirect = 'Location: index.php?page=order&id=' . $order_id . '&success=invoice_sent_admin';
|
||||
|
||||
// Send to bookkeeping if configured
|
||||
if (defined('invoice_bookkeeping') && invoice_bookkeeping && defined('email_bookkeeping') && email_bookkeeping) {
|
||||
if (invoice_bookkeeping && email_bookkeeping) {
|
||||
send_mail(email_bookkeeping, $subject, $message, $attachment, $attachment_name);
|
||||
}
|
||||
|
||||
@@ -133,7 +134,7 @@ if (isset($_POST['email_invoice_to_admin'])) {
|
||||
}
|
||||
|
||||
// Show invoice in browser
|
||||
if (isset($_POST['show_invoice'])) {
|
||||
if (isset($_GET['show_invoice'])) {
|
||||
// Clean output buffer to prevent corrupted PDF
|
||||
if (ob_get_level()) {
|
||||
ob_end_clean();
|
||||
|
||||
Reference in New Issue
Block a user