Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Problem taxes admin sales and email order #9

Closed
lucav90 opened this issue Nov 4, 2016 · 6 comments
Closed

Problem taxes admin sales and email order #9

lucav90 opened this issue Nov 4, 2016 · 6 comments
Assignees

Comments

@lucav90
Copy link

lucav90 commented Nov 4, 2016

Hi,

there is a bug in order page (admin), email order, invoice with the price of Cash on delivery.
We have the correct price of COD in frontend but in order page (admin), email order, invoice we have the price excluding taxes.

Example
In CSV we have 2.46€

In frontend 2.46€ + 0.54 = 3€

In order page (admin), email order, invoice
Cash On Delivery Amount: 1,92 €
Cash On Delivery Tax: 0,54 €

@phoenix128
Copy link
Contributor

Hello @lucav90 ,
we are trying to reproduce this bug in our test environments.

Can we ask you how did you setup taxes in your store?

@wals06
Copy link

wals06 commented Jan 12, 2017

Hi,
i have the same problem.

I report the configuration of my tax page in italian, but all voices are in order

Classe tassa per la spedizione -> 22
Classe Tassa predefinita per i prodotti -> 22
Classe Tassa predefinita per i clienti -> Retail

Metodo di calcolo tasse basato su -> Totale
Calcolo dell'imposta basato su -> Indirizzo di fatturazione
Prezzi Catalogo -> Incluse Tasse
Prezzi di spedizione -> Escluse Tasse
Applica Tassa cliente -> Prima dello sconto
Applica sconto sui prezzi -> Incluse Tasse
Applica Tassa su -> Prezzo personalizzato se disponibile
Abilitare commercio oltre frontiera -> No

Paese predefinito -> Italia
Provincia Predefinita -> *
Codice postale predefinito -> *

Visualizzare i prezzi dei prodotti nel catalogo -> Incluse Tasse
Visualizza i prezzi di spedizione -> Incluse Tasse

Mostra prezzi -> Incluse Tasse
Mostra Subtotale -> Incluse Tasse
Mostra importo spedizione -> Incluse Tasse
Includi tasse nel totale dell'ordine -> NO
Mostra riepilogo completo tasse -> SI
Mostra Subtotale tasse Zero -> NO

Mostra prezzi -> Incluse Tasse
Mostra Subtotale -> Incluse Tasse
Mostra importo spedizione -> Incluse Tasse
Includi tasse nel totale dell'ordine -> NO
Mostra riepilogo completo tasse -> NO
Mostra Subtotale tasse Zero -> NO

Abilitare FPT -> NO
Visualizza prezzi In elenchi di prodotti -> Only FTP
Visualizza i prezzi nella Pagina di Visualizzazione Prodotto -> Only FTP
Visualizza Prezzi nei Moduli di Vendita -> Only FTP
Visualizza Prezzi nelle Email -> Only FTP
Applicare Tassa al FPT -> NO
Includi FPT nel subtotale -> NO

@ebaschiera
Copy link

ebaschiera commented Jan 22, 2017

I can confirm this issue. I am on Magento EE 2.1.3 .
In my opinion the problem is here: https://github.com/magespecialist/m2-MSP_CashOnDelivery/blob/master/Block/Info/CashOnDelivery.php#L37
Replacing
$amount = $order->getMspCodAmount() - $taxes;
with
$amount = $order->getMspCodAmount();
fixes the problem.

@phoenix128
Copy link
Contributor

@ebaschiera , nice point. I think it depends on tax configuration. How did you configure Magento?

@ebaschiera
Copy link

In the end we modified the source code on two places:

But we got stuck with an issue at checkout, where taxes are not correctly calculated. Here is a screenshot:
checkout summary
We would expect a tax amount of € 72,53 instead of € 70,33 at the row "Italia (22%) 70,33 €".
I still haven't found a fix for that.

Here it is the tax configuration screenshot:
configuration 2f settings 2f stores 2f magento admin

Thanks!

@synpatic
Copy link

The same problem can been seen also in PDF invoices:
The COD has been set 4 € and VAT is 24 %
Magento ver. 2.1.5

Under
Payment Method
Cash On Delivery Amount: 3,04 €
Cash On Delivery Tax: 0,96 €

And in totals:
Cash on delivery amount: 4,00 €
Cash on delivery tax: 0,96 €

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants