Skip to Content
Menu
This question has been flagged

Dear all,

I set up a point of sale for a Belgian customer. I created a new fiscal position for the VAT :

-> If it's on site, the VAT should be 12% in stead of 6%


The prices are all tax included in the DB. So the tax is set up like this : 


Here is the fiscal position :


My pos is set up like this :



Here is the product :



Now, when I open a session in the pos :


Case 1 : Chose the "national regime" --> works totally fine, total price is 2€ and tax is 0.12€

Case 2 : Chose the "sur place" (on site) --> I get a traceback. 


Is there something I am missing ?



Here copy of the TB:

Uncaught TypeError: this.compute_all is not a function http:/xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:227 Traceback: TypeError: this.compute_all is not a function at child.compute_fixed_price (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:227:184) at child.fix_tax_included_price (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:254:662) at child.set_quantity (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:209:140) at child.set_quantity (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:574:31) at http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:474:1754 at Function._.each._.forEach (http://xxxxxxxxxxxxxx.odoo.com/web/content/1047-97f2088/web.assets_common.js:108:558) at confirm (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:474:1705) at Class.click_item (http://xxxxxxxxxxxxxx.odoo.com/web/content/1074-499e9c5/point_of_sale.assets.js:379:2548) at HTMLDivElement.<anonymous> (http://xxxxxxxxxxxxxx.com/web/content/1047-97f2088/web.assets_common.js:3946:11) at HTMLDivElement.dispatch (http://xxxxxxxxxxxxxx.odoo.com/web/content/1047-97f2088/web.assets_common.js:1024:447)

Avatar
Discard
Author Best Answer

What was the issue :

1 In V14 and before, and when storing the prices VAT included on the product, it is NOT possible to change the rate efficiently. It will always be wrongly computed by Odoo. 

2 The traceback I got was related to this : 


If I use percentage only, the traceback doesn't show. 

3 there is two solution to my business case : 

a- Store the prices tax excluded on the DB and use this kind of set up (fiscal position and price list) : https://www.odoo.com/documentation/14.0/applications/finance/accounting/taxation/taxes/B2B_B2C.html

b- In this case, as all our products were consumable, we duplicate the products and set up two categories "eat-in" and another "take-away", with the correct tax for each. Do not opt for this if you sell storables. Your stock would be a nightmare to manage. 



Avatar
Discard
Related Posts Replies Views Activity
1
Feb 22
3147
1
Nov 23
3999
0
Jul 20
2775
1
Mar 24
1109
1
Sep 21
1827