Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #316 #361

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open

Fixes #316 #361

wants to merge 1 commit into from

Conversation

Schrank
Copy link
Member

@Schrank Schrank commented Oct 15, 2017

Thanks @nige-one

@sprankhub
Copy link
Member

Did you test this @Schrank? I just tested it and it does not change anything for me. The "Shipping & Handling Tax" is still shown separately and does not show any tax rate. Are you sure this works @nige-one?

@Schrank
Copy link
Member Author

Schrank commented Oct 15, 2017

No, I just added it and then left the room :) (no joke)

@nige-one
Copy link

It works like a charm for me. Just tested it again, dropped my XML totals extension from #316 (comment) and copied the new file from the PR.

Maybe a configuration issue. Here is mine:
image

Note the overridden fields, which do not seem to take affect, since everything is still working as expected in the B2C configuration.
This installation is version 1.9.3.6.

By the way: I changed

    public function __getCalculatedTaxes()
    {
        return array();
    }

to

    public function _getCalculatedTaxes()
    {
        return $this->_getTaxHelper()->getCalculatedTaxes($this->getSource());
    }

I really can't remember why at the moment, but I think it has something to do with rendering the order itself as PDF to use it as order confirmation. Probably this addresses #297 (comment) as well.

@sprankhub
Copy link
Member

@nige-one could you provide a screenshot of the totals section of the invoice PDF? Mine looks like this:

image

As you can see, it still dows not show the tax rate of the shipping and handling tax.

@nige-one
Copy link

Ok, I have to extend my answer.
Shipping tax and value of goods taxes get only summed up if you return an empty array for both functions _getShippingTax() and _getCalculatedTaxes().
So @Schrank's PR should lead to the wanted behaviour.

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

Successfully merging this pull request may close these issues.

3 participants