I make upgrade on V12.0.4, but when i want to add some product in vendor invoice with 18% VAT, i get this error "Unknown column ‘18ДДВ’ in ‘field list’ " - actually it not accept Cyrillic font.
Hi @martin54
I think you issue seems to be very close than this one:
you can have a quick workaround changing VAT codes in dictionnary and avoiding in it “_” and “-” characters.
If you want, you could try also my patch …
@martin54
you can see that this instruction (with my patch)
in function price2num in htdocs/core/lib/functions.lib.php
$amount = preg_replace(’/[a-zA-Z/\*()<>_-]/’, ‘’, $amount);
is dedicated to eliminate all no-numerical charaters in the argument.
I fear that it does not work for cyrillic characters… My patch is not perfect and I didn’t think to that eventuality.
So I suggest you, if your constants contains some, to change your TVA constants for pure latin characters (a-z A-Z) to try.
I found new problem after make changes on functions.lib.php.
When i create customer order i can’t use decimals for unit price (etc. 4,1) i must use rounded number (etc. 4).
I back the default code and it works, but it not works with Cyrillic characters VAT.
So, for me it works and normally I didn’t touch to decimal in my patch because only non numeric strings are concerned in it and I think quantities are directly numeric in the current case.