This question has been flagged

I'm on Odoo v9 and are using point_of_sale and pos_restaurant.

I've defined a product:
-with sale price (list_price) of 100
-25% sale tax, where taxes are included in price.

I've defined 2 Fiscal Positions:
-Restaurant (which is empty)
-take Away, where tax mapping/tax on product is 25% and tax to apply is 15%

I've set the fiscal positions to be available in pos.config.

I can register sales with different fiscal positions, i get correct prices, and correct info on the reciepts.
Everything seems to works as intended, until i try to close the session and click "Validate Closing & Post Entries".
Then I get the error message "Cannot create unbalanced journal entry".
If I've registered any sale with a different fiscal position, this warning-message shows and I'm unable to close the session.


To try fo find the error/whats happening, I've comment out parts of /addon/account/models/account_move.py
under def assert_balanced(self):

# if len(self._cr.fetchall()) != 0:
# raise UserError(_("Cannot create unbalanced journal entry."))

The session closes, but on the report only the TAX-code for the 25% tax is used, event thought i've sold products with 15% tax.

Is it not possible to use fiscal positions in point_of_sale, when the products have a default tax, and the price is included in the price, and the prices are displayed including tax in pos?

Any and all ideas are welcome!

Avatar
Discard
Author

This was a bug. And it's fixed: https://github.com/odoo/odoo/commit/d37c8ef6327a834eaed7ce0dfa6a6b775aad96c1 Also check out modules if you need different fiscal positions on restaurant floors: https://github.com/yelizariev/pos-addons/tree/9.0/pos_fiscal_current https://github.com/yelizariev/pos-addons/tree/9.0/pos_fiscal_floor