exactonline icon indicating copy to clipboard operation
exactonline copied to clipboard

Fix FIXMEs from invoice.py

Open wdoekes opened this issue 7 years ago • 0 comments

        for ledger_line in self.get_ledger_lines():
            # We must use VATCode. It accepts VATPercentages, but only
            # when it is higher than 0. Not using:
            # 'VATPercentage': str(ledger_line['vat_percentage'] / 100)
            if ledger_line['vat_percentage'] == 0:
                vatcode = '0  '  # FIXME: hardcoded.. fetch from API?
            elif ledger_line['vat_percentage'] == 21:
                vatcode = '2  '  # FIXME: hardcoded.. fetch from API?

wdoekes avatar May 15 '17 12:05 wdoekes