SpecifiedTradePaymentTerms for E-Rechnung

Version

v5.10.40

Environment

Docker

Describe the bug

When I export my invoice as “E-Rechnung” in the XML I have the following lines:

Payment Online:

      <ram:SpecifiedTradeSettlementPaymentMeans>
        <ram:TypeCode>68</ram:TypeCode>
        <ram:Information>Die Rechnung muss online über den bereitgestellten Link bezahlt werden</ram:Information>
      </ram:SpecifiedTradeSettlementPaymentMeans>

Payment in 0 days net:

      <ram:SpecifiedTradePaymentTerms>
        <ram:Description>Zahlbar innerhalb von 0 Tagen netto bis </ram:Description>
      </ram:SpecifiedTradePaymentTerms>

Where can I change that? I would like to have Bank Transfer (Überweisung) and 8 days net?

Hi,

I suggest asking in a discussion on GitHub

Will do! I will post the findings here …

1 Like

@pixelwave in the latest release, the e-invoice payment means when configured to payment means type code “30” will override the old system of custom field values.

@david I am not quite sure I understood this. So I got this far that the first issue is gone by using custom fields:

The paying online part:

     <ram:SpecifiedTradeSettlementPaymentMeans>
        <ram:TypeCode>68</ram:TypeCode>
        <ram:Information>Die Rechnung muss online über den bereitgestellten Link bezahlt werden</ram:Information>
      </ram:SpecifiedTradeSettlementPaymentMeans>

Seems to be automatically be replaced when I fill out the for custom company fields like that (for EN16931):

Screenshot 2024-11-12 at 08 48 04

Now the “SpecifiedTradeSettlementPaymentMeans” in the XML output are those:

      <ram:SpecifiedTradeSettlementPaymentMeans>
        <ram:TypeCode>30</ram:TypeCode>
        <ram:PayeePartyCreditorFinancialAccount>
          <ram:IBANID>DE***</ram:IBANID>
          <ram:AccountName>A***</ram:AccountName>
        </ram:PayeePartyCreditorFinancialAccount>
        <ram:PayeeSpecifiedCreditorFinancialInstitution>
          <ram:BICID>WELA***</ram:BICID>
        </ram:PayeeSpecifiedCreditorFinancialInstitution>
      </ram:SpecifiedTradeSettlementPaymentMeans>

PERFECT!

Now the only issue missing so I can use it in production is the “payment net until” issue. When not specifing a target date manually in the invoice I seemingly get random durations. Like this time:

      <ram:SpecifiedTradePaymentTerms>
        <ram:Description>Zahlbar innerhalb von 11 Tagen netto bis </ram:Description>
      </ram:SpecifiedTradePaymentTerms>

I need to find a way to fix them to 8 days without having to manually pick a target date every time.

Link to the GitHub issue.

Could you please explain how you did get this to work? The screenshot is empty and I have no idea where to set the payment method, iban and bic.

You can define 4 custom fields in the settings and you define them like this:

Thank you, it works now. I also had to update.

1 Like

@pixelwave Are those custom fields related to company?
Do I need to add those custom fields anywhere or how will they be picked up?

Apparently you can use the Payment Means section in Settings > E-Invoice for this purpose now instead of the custom fields:

See full discussion here: SpecifiedTradePaymentTerms for E-Rechnung · invoiceninja/invoiceninja · Discussion #10232 · GitHub

I assume you need the latest version.

This leaves the custom fields open for other use. You create the custom fields once and fill them out in the company tab (not sure which one atm) then they are always included in the XML.

1 Like