${value.strftime('%Y%m%d')}
${party.name}
${id}
${TradeAddress(address)}
${tax_identifier.code}
${address.postal_code}
${lines[0]}
${lines[1]}
${lines[2]}
${address.city}
${address.country.code}
${address.subdivision.name}
${amount * this.type_sign}
${this.tax_unece_code(tax)}
${tax.legal_notice}
${base * this.type_sign}
${this.tax_category_code(tax)}
${tax.rate * 100}
urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended
${this.invoice.number}
${this.invoice.description}
${this.type_code}
${DateTime(this.invoice.invoice_date)}
${comment_line['content_code']}
${comment_line['content']}
${comment_line['subject_content']}
${line_id}
${line.product.code}
${line.product.name if line.product else ''}
${line.description}
${this.invoice.currency.round(line.unit_price)}
${line.quantity * this.type_sign}
${TradeTax(tax.tax)}
${line.amount}
${TradeParty(this.seller_trade_party, this.seller_trade_address, this.seller_trade_tax_identifier)}
${TradeParty(this.buyer_trade_party, this.buyer_trade_address, this.buyer_trade_tax_identifier)}
${this.invoice.reference}
${this.invoice.reference}
${TradeParty(this.ship_to_trade_party, this.ship_to_trade_address)}
${TradeParty(this.ship_from_trade_party, this.ship_from_trade_address)}
${this.payment_reference}
${this.invoice.currency.code}
1
${TradeTax(tax.tax, tax.amount, tax.base)}
${this.invoice.payment_term.description}
${DateTime(line.maturity_date)}
${(line.amount_second_currency or (line.debit - line.credit)) * this.type_sign}
${this.invoice.untaxed_amount * this.type_sign}
${this.invoice.untaxed_amount * this.type_sign}
${this.invoice.tax_amount * this.type_sign}
${this.invoice.total_amount * this.type_sign}
${this.invoice.amount_to_pay * this.type_sign}