I am stuck here with the following problem:
For an invoice-object I need all tax-percentages, tax-amounts and
total without tax that were processed within this invoice
20%, 5€, 25€
How can I achieve that? is there any documentation about the classes in Magento2?
For the moment it is just trial and error for me
Solved! Go to Solution.
Hope you have invoice object
let's example your invoice object name is $invoice
above code for get Tax value from invoice
above code get base total.
for percentage you will get from all invoice item.
Hope it will work for you.
If it will help you, then mark as solution
Let's example you have invoice item and object name for invoice item is $invoiceItem
By above code you will get Percentage for specific item.
If it will work or help you then mark as solution