Skip to content

Commit

Permalink
Bug 799454 - Numeric value in exported CSV transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Nov 4, 2024
1 parent d0d1c82 commit 764157d
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 764157d

Please sign in to comment.