More information on the invoice (SKU, TAX...)

Created on 18 July 2020, over 4 years ago
Updated 3 February 2023, almost 2 years ago

The module is great, but I have a few shortcomings in the EU, respectively CZE invoicing:

  • How to display SKUs on an item line?
  • Is it possible to display the VAT rate on the line item?
  • Is it possible to display the VAT rate on the line item?
    Is it possible to display the price with VAT and the price without VAT on the line of items? By default, everything in the e-shop is displayed only with VAT, but it would be good to have both on the invoice.
  • How do I display % rates next to the word VAT?
    • I now have:
      Summary
      Shipping
      VAT
      VAT
      Total


      I need:
      Summary
      Shipping
      VAT 10%
      VAT 21%
      Total
📌 Task
Status

Active

Component

Code

Created by

🇨🇿Czech Republic mandus.cz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇰Denmark nicklasmf

    Hi ivanpg94,
    I think you overcomplicate things in your patch. You could something like:

    public function getSKU(): string {
      $item = $this->getOrderItem()->getPurchasedEntity();
      return $item ? $item->get('sku')->value : '';
    }
    

    This also means that you can get it from your template with {{ invoice_item.getOrderItem.getPurchasedEntity.get('sku').value }}

Production build 0.71.5 2024