mirror of https://github.com/itflow-org/itflow
Fix Invoice CSV Exporting
This commit is contained in:
parent
3e3531a6ce
commit
ad5710b1d8
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
require_once '../../../includes/modal_header.php';
|
||||
|
||||
$key = randomString(32);
|
||||
$decryptPW = randomString(32);
|
||||
$key = randomString(43);
|
||||
$decryptPW = randomString(43);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -659,7 +659,7 @@ if (isset($_POST['export_invoices_csv'])) {
|
|||
$file_name_date = date('Y-m-d_H-i-s');
|
||||
}
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM invoices LEFT JOIN clients ON invoice_client_id = client_id WHERE $date_query $client_query ORDER BY invoice_number ASC");
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM invoices LEFT JOIN clients ON invoice_client_id = client_id WHERE $date_query AND $client_query ORDER BY invoice_number ASC");
|
||||
|
||||
$num_rows = mysqli_num_rows($sql);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue