mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-24 09:50:54 -06:00
Bug 799454 - Numeric value in exported CSV transactions
This commit is contained in:
parent
d0d1c82039
commit
764157ddeb
@ -163,7 +163,10 @@ static std::string
|
|||||||
get_amount (Split *split, bool t_void, bool symbol)
|
get_amount (Split *split, bool t_void, bool symbol)
|
||||||
{
|
{
|
||||||
auto amt_num{t_void ? xaccSplitVoidFormerAmount (split) : xaccSplitGetAmount (split)};
|
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
|
// Value with Symbol or not
|
||||||
@ -173,6 +176,8 @@ get_value (Split *split, bool t_void, bool symbol)
|
|||||||
auto trans{xaccSplitGetParent(split)};
|
auto trans{xaccSplitGetParent(split)};
|
||||||
auto tcurr{xaccTransGetCurrency (trans)};
|
auto tcurr{xaccTransGetCurrency (trans)};
|
||||||
auto pai{gnc_commodity_print_info (tcurr, symbol)};
|
auto pai{gnc_commodity_print_info (tcurr, symbol)};
|
||||||
|
if (!symbol)
|
||||||
|
pai.use_separators = 0;
|
||||||
auto amt_num{t_void ? xaccSplitVoidFormerValue (split): xaccSplitGetValue (split)};
|
auto amt_num{t_void ? xaccSplitVoidFormerValue (split): xaccSplitGetValue (split)};
|
||||||
return xaccPrintAmount (amt_num, pai);
|
return xaccPrintAmount (amt_num, pai);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user