diff --git a/agent/modals/payment/payment_export.php b/agent/modals/payment/payment_export.php deleted file mode 100644 index bd861fbd..00000000 --- a/agent/modals/payment/payment_export.php +++ /dev/null @@ -1,31 +0,0 @@ - - - -
- - - - - -
- - - -
-
-

Payments

- 0) { ?> -
- -
- -
- -
-
- - - -
-
-
- -
- - -
-
-
-
-
- -
-
- -
-
- -
-
-
-
" id="advancedFilter"> -
-
-
- - - - - -
-
-
-
-
-
-
- - text-nowrap"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Payment Date - - - - Invoice Date - - - - Invoice - - - - Client - - - - Invoice Amount - - - - Payment Amount - - - - Payment Method - - - - Reference - - - - Account - -
- - - - - = 3) { ?> - - -
-
- -
-
- - 0) { - $delimiter = ","; - $enclosure = '"'; - $escape = '\\'; // backslash - $filename = sanitizeFilename($file_name_prepend . "Payments-" . date('Y-m-d_H-i-s') . ".csv"); - - //create a file pointer - $f = fopen('php://memory', 'w'); - - //set column headers - $fields = array('Payment Date', 'Invoice Date', 'Invoice Number', 'Invoice Amount', 'Payment Amount', 'Payment Method', 'Referrence'); - fputcsv($f, $fields, $delimiter, $enclosure, $escape); - - //output each row of the data, format line as csv and write to file pointer - while($row = $sql->fetch_assoc()){ - $lineData = array($row['payment_date'], $row['invoice_date'], $row['invoice_prefix'] . $row['invoice_number'], $row['invoice_amount'], $row['payment_amount'], $row['payment_method'], $row['payment_reference']); - fputcsv($f, array_map('escapeCsvFormula', $lineData), $delimiter, $enclosure, $escape); - } - - //move back to beginning of file - fseek($f, 0); - - //set headers to download file rather than displayed - header('Content-Type: text/csv'); - header('Content-Disposition: attachment; filename="' . $filename . '";'); - - //output all remaining data on a file pointer - fpassthru($f); - } - - logAudit("Payments", "Export", "$session_name exported $num_rows payments to CSV file"); - - exit; - -} diff --git a/agent/revenues.php b/agent/revenues.php deleted file mode 100644 index a7236499..00000000 --- a/agent/revenues.php +++ /dev/null @@ -1,169 +0,0 @@ - - -
-
-

Revenues

- = 2) { ?> -
- -
- -
- -
-
-
-
-
- -
- - -
-
-
-
-
" id="advancedFilter"> -
-
-
- - - - - -
-
-
-
-
-
-
- - text-nowrap"> - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Date - - - - Category - - - - Amount - - - - Method - - - - Reference - - - - Account - - Action
- - - - - -
-
- -
-
- -