Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#8188 by superscotty19
13 Jun 2019, 08:01
Hi,

(This might be a development request - if I'm posting in the wrong area, sorry, please direct me to the proper channel(s).)

Here in Canada we have 2 taxes - federal and provincial - and businesses are required to clearly indicate/separate the two. Now, Aimeos' "Products > Prices" section only has "tax rate in %" (i.e. 1 total amount for tax). Is it possible to have "tax 1 rate in % ... tax 2 rate in % ..." etc.?

Thanks!
-Scott.
#8191 by superscotty19
13 Jun 2019, 16:13
Good question.

Ideally, it would be nice if it was both shown and calculated. However, I guess we could show them (for example, GST = 5%, PST = 6%) but use the total tax rate (11%) for calculations.

Having said that, what do you recommend?
-S.
#8196 by aimeos
14 Jun 2019, 09:40
OK, this is going to be a bit of work, maybe you can help :-)
First of all, we will implement properties for price items so tax rates for different purposes can be stored. Afterwards, we have to adapt the frontend and the price calculation and there we would need a bit of help from you.
#8199 by aimeos
14 Jun 2019, 21:31
It's now possible to store multiple tax rates as price properties in dev-master. Next is price calculation and displaying in the frontend. Maybe you can help in the later part?
#8205 by aimeos
15 Jun 2019, 11:49
Can you please create a PR for aimeos/ai-client-html that renders the tax rates in the price partial, basket and checkout summary? There's now a $priceItem->getTaxRates() method available that returns all tax rates as array with the tax types as key so they can be translated e.g. from "taxrate-pst" to "PST 5%".

You can add arbitrary tax rates as price properties to price items by creating new price property types that begin with "taxrate" (currently, "taxrate-local" has beed defined).
#8208 by superscotty19
16 Jun 2019, 04:56
Hi,

While I'm certainly willing to do that, I'm embarrassed to admit that I don't know what you're talking about. I don't know the blueprint of the aimeos file structure (I've only been a user for a couple weeks, and FAR from a "under the hood" developer) - so I don't even know where to find the file/function you've mentioned let alone connect it/them to other functions/files ... and I don't know what a PR is ... :-/

-S.