News:

Support the VirtueMart project and become a member

Main Menu

Tax not sent to Payson Invoice

Started by roefen, December 01, 2013, 13:17:34 PM

Previous topic - Next topic

roefen

Hi,

Can't get my head around this, TAX is not being sent to Payson Invoice,
I've set up the following rules:

In Tax & Calculation Rules:
- VatTax per product
- +%
- 25.0000
- Currency: Swedish
available for all

In product:
Cost Price: 50 Swedish
Base Price 50 SEK (Apply above Tax)
Final price 62,50 SEK (apple no rule)

This looks good on the site and in the checkout (see image),
but when trying to checkout with Payson I got a mismatch with the TAX and it not allowing me to checkout at all. 

Checked the plugin and it looks like this:
foreach ($cart->products as $key => $product) {
                    $orderItems[] = new OrderItem( 
                                        substr(strip_tags($product->product_name), 0, 127),
                                        strtoupper($paymentCurrency->ensureUsingCurrencyCode($product->product_currency)) != 'SEK' ? $paymentCurrency->convertCurrencyTo ($paymentCurrency->getCurrencyIdByField('SEK') , $cart->pricesUnformatted[$product->virtuemart_product_id]['basePrice'], FALSE) : $cart->pricesUnformatted[$product->virtuemart_product_id]['costPrice'],
                                        $product->quantity, $cart->pricesUnformatted[$product->virtuemart_product_id]['VatTax'][1][1]/100, 
                                        $product->product_sku
                            );                     
                }


If changing "costPrice" to "salesPrice" I can checkout but still no TAX showing,
meaning it not adding the TAX at all?

Thanks for any help with this, been trying to fix this for days now.





edit: Joomla 2.5.14, Virtuemart 2.0.24c