Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 799454 - Numeric value in exported CSV transactions #2044

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion gnucash/import-export/csv-exp/csv-transactions-export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ static std::string
get_amount (Split *split, bool t_void, bool symbol)
{
auto amt_num{t_void ? xaccSplitVoidFormerAmount (split) : xaccSplitGetAmount (split)};
return xaccPrintAmount (amt_num, gnc_split_amount_print_info (split, symbol));
auto pinfo{gnc_split_amount_print_info (split, symbol)};
if (!symbol)
pinfo.use_separators = 0;
return xaccPrintAmount (amt_num, pinfo);
}

// Value with Symbol or not
Expand All @@ -173,6 +176,8 @@ get_value (Split *split, bool t_void, bool symbol)
auto trans{xaccSplitGetParent(split)};
auto tcurr{xaccTransGetCurrency (trans)};
auto pai{gnc_commodity_print_info (tcurr, symbol)};
if (!symbol)
pai.use_separators = 0;
auto amt_num{t_void ? xaccSplitVoidFormerValue (split): xaccSplitGetValue (split)};
return xaccPrintAmount (amt_num, pai);
}
Expand Down
Loading