1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Returns directory and filename for GnuCash csv

This commit is contained in:
Jonathan Rosenbaum 2015-04-06 08:39:31 +00:00
parent f89c86384a
commit 76ad12e4a3
2 changed files with 7 additions and 2 deletions

View File

@ -400,7 +400,9 @@ $(function() {
// send values for processing individual csv files for each selected account type
if (gnucash_accounts) {
$.each(gnucash_accounts, function(k,v) {
$.post("json/transaction.php",{ gnucash_account_type: v, transaction_range: transaction_range});
$.post("json/transaction.php",{ gnucash_account_type: v, transaction_range: transaction_range}, function(data) {
});
});
}
});

View File

@ -232,7 +232,8 @@ $csv_directory = CSV_DIRECTORY;
$csv_file = fopen($file, "w") or die("Unable to open file for writing.");
fwrite($csv_file, $gnucash_csv_file);
fclose($csv_file);
echo $file;
// download file to browser
/*
header('Content-Description: File Transfer');
@ -270,6 +271,8 @@ $csv_directory = CSV_DIRECTORY;
$csv_file = fopen($file, "w") or die("Unable to open file for writing.");
fwrite($csv_file, $gnucash_csv_file);
fclose($csv_file);
echo $file;
}