reports: ODS currency formatting gets integer precision from Babel.
This commit is contained in:
parent
21383d2355
commit
b4f2b506be
1 changed files with 1 additions and 2 deletions
|
@ -742,7 +742,6 @@ class BaseODS(BaseSpreadsheet[RT, ST], metaclass=abc.ABCMeta):
|
||||||
*,
|
*,
|
||||||
fmt_key: Optional[str]=None,
|
fmt_key: Optional[str]=None,
|
||||||
volatile: bool=False,
|
volatile: bool=False,
|
||||||
minintegerdigits: int=1,
|
|
||||||
) -> odf.element.Element:
|
) -> odf.element.Element:
|
||||||
if fmt_key is None:
|
if fmt_key is None:
|
||||||
fmt_key = self.currency_fmt_key
|
fmt_key = self.currency_fmt_key
|
||||||
|
@ -767,7 +766,7 @@ class BaseODS(BaseSpreadsheet[RT, ST], metaclass=abc.ABCMeta):
|
||||||
style.addElement(odf.number.Number(
|
style.addElement(odf.number.Number(
|
||||||
decimalplaces=str(pattern.frac_prec[0]),
|
decimalplaces=str(pattern.frac_prec[0]),
|
||||||
grouping='true' if pattern.grouping[0] else 'false',
|
grouping='true' if pattern.grouping[0] else 'false',
|
||||||
minintegerdigits=str(minintegerdigits),
|
minintegerdigits=str(pattern.int_prec[0]),
|
||||||
))
|
))
|
||||||
elif part == '¤':
|
elif part == '¤':
|
||||||
style.addElement(odf.number.CurrencySymbol(
|
style.addElement(odf.number.CurrencySymbol(
|
||||||
|
|
Loading…
Add table
Reference in a new issue