Description
Hi there,
I have an issue with my pdf invoices, that you can maybe help me with.
I don't know if this has been asked before, at least I didn't find anything.
When I print invoices they have the following totals included:
(I'll list them with actual numbers as an example):
Subtotal (excl. tax) - 539,41
Subtotal (incl. tax) - 641,90
Tax (19%) - 102,49
Tax - 102,49
Total - 641,90
I hope I translated those correctly as in my invoice everything is in german.
The original values are in the same order as above:
Zwischensumme (zzg. Steuern)
Zwischensumme (inkl. Steuern)
MwSt (19%)
Steuer
Gesamtsumme
Now I have been asked to change the output to:
Subtotal (excl. tax) - Zwischensumme (netto)
Shipping (excl. tax) - Versandkosten (netto)
Total (excl. tax) - Summe (netto)
Tax (19%) - MwSt (19%)
Total (incl. tax) - Summe (brutto)
How can I address this?
Where are these fields in the invoice coming from?
From what I found these are inserted in the insertTotals function in the Abstract.php which I guess I could overwrite in my own engine.
Unfortunately my PHP and/or Magento skills aren't good enough to actually understand what is happening in this function, as It seems to me the totals (or which totals to be used) aren't defined there but coming from somewhere else.
Can you give me a hint on what may be the best way to change the output into something like above?
Many thanks in advance.