Skip to content

Commit

Permalink
allow to return zero values
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Apr 8, 2023
1 parent 52d3fd4 commit 4f893c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invoice2data/extract/invoice_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def extract(self, optimized_str: str, invoice_file: str, input_module: str) -> O
if v["parser"] in PARSERS_MAPPING:
parser = PARSERS_MAPPING[v["parser"]]
value = parser.parse(self, k, v, optimized_str_for_parser)
if value:
if value or value == 0.0:
output[k] = value
else:
logger.warning("Failed to parse field %s with parser %s", k, v["parser"])
Expand Down

0 comments on commit 4f893c0

Please sign in to comment.