Odoo POS adding a product to checkout appears with quantity zero instead of one and does not allow to change product quantity - odoo

Adding a product at checkout in POS should appear with quantity 1 but appears with quantity 0 and it does not allow to change product quantity. Price is correct but since quantity is zero total price for the ticket is always zero.
Odoo 14 2023-01-26, Ubuntu 20.04 LTS, Firefox 109.0 Evrything was update today to latest version after this error but did not help.

The problem was the unit of measure (pieza). The precision conversion was changed from 0.01000 to 40.03000. Once it was returned to original value everything worked as normal.

Related

Customer VAT ID / Number property

I found some resources online indicating that ORO has/had VAT ID / Number property on the Customer. Searching through the codebase I couldn't find any traces of VAT ID / Number. Is this still a case in the latest 4.* version? Also, does the Customer has properties such Company Registration Number?
As last one, what would be the best approach of extending the Customer entity and adding this fields?
The vat ID field is available in the german version of OroCommerce application:
https://github.com/oroinc/orocommerce-application-de.
For existing OroCommerce instances you can install this bundle https://github.com/oroinc/german-localization
that provides an integration with wirecard, infinitepay and dpd.
The vat Id field is available there, but it is implemented as a part of infinitepay integration
https://github.com/oroinc/OroInfinitePayBundle. You can install it separately as well.
If you are not using infinitepay, to add a vat id field, you can copy the code from there to your customization,
https://github.com/oroinc/OroInfinitePayBundle/blob/master/Form/Type/VatIdType.php
https://github.com/oroinc/OroInfinitePayBundle/blob/master/Form/Extension/CustomerVatIdExtension.php
https://github.com/oroinc/OroInfinitePayBundle/blob/master/Validator/Constraints/CustomerRequireVatId.php
https://github.com/oroinc/OroInfinitePayBundle/blob/master/Validator/Constraints/CustomerRequireVatIdValidator.php

Prestashop 1.7 need tax included in total only, not in product price

I know enough about programming to tinker a little, but MVC models are still baffling to me. I need a way to have the checkout total include the cost of taxes, but I do not want the product price to include the price of taxes. The tax amount already shows as a line item, but when I use the "tax incl" method it changes the product price and gives me a total that does include tax. On the other hand if I use the "tax excl" method, the product price is correct but the total does not include the tax. Example pictures attached PS version 1.7.3.2
[Tax excl image] https://i.stack.imgur.com/aYlsE.png
[Tax incl image] https://i.stack.imgur.com/NWIta.png
I did following and it works for me in prestashop 1.7.5.0:
To do so, we must edit the file:
themes/classic/templates/checkout/_partials/cart-summary-totals.tpl
and add this code where you want to show the total of the cart:
{$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount}

Cannot validate a non-balanced entry error on validate supplier invoice OpenERP 7

I have faced the warning pop on validate the supplier invoice with OpenERP 7
1 - select supplier invoice and select supplier
2 - Add Product in invoice line
3 - select Other Info Tab and Add Payment Terms
4 - Validate the invoice
When trying to validate an invoice the application issues an error below OpenERP Warning :
"You cannot validate a non-balanced entry.
Make sure you have configured payment terms properly.
The latest payment term line should be of the "Balance" type."
Warning message raise only when there are debit and credit balance will not be matched.
I am also follwing the below article
https://bugs.launchpad.net/openobject-addons/+bug/506521
Our customer using the old base addons for accouting related module in OpenERP V7
Also apply so many other patch on my existing addons for openerp V7
but not finding any solution relavent with this issue
Any one have idea what are the stapes need to stop my warning popup . or Is there any preconfiguration needed to solve my issue

Number of decimals in prestashop 1.7 not working

I fixed the Number of decimals in the prestashop 1.7 backoffice to "3". But prices are always displayed with 2 decimals after point. It's a bug in prestashop 1.7, but nothing found in prestashop forums.
To set the amount of decimal digits to 3 in Prestashop, open:
root/translations/cldr/main--xx-XX--numbers
then change
"standard":"#,##0.00\u00a0\u00a4"
to
"standard":"#,##0.000\u00a0\u00a4"
Where xx-XX is language you're using. For example: en-US.

Prestashop: Producto with price 0 in category page

I have a prestashop 1.6 web.
I have this product, with a price of 19€. The product page is showing the correct price.
http://batavia.es/es/escuadra-y-cartabon-2395.html
But the price is 0 in the category page:
http://batavia.es/es/unisex-116158?p=2
I have this problem only with this product. I have checked the product in admin panel, and it seems correct. The product have not discounts or specific prices. I have debugged the php object, and it has the price attribute to 0.
Anything that I can try?
Thanks.
The product price can be fetched using the getPriceStatic() function in Product.php class file, you can try debugging this function for the product which is causing the issue.
You might be able to find the problem with that product.