-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If VATIsNotUsed = true, Add value to CustomerAbsoluteDiscount gives error. #29306
Comments
ADD: societe.class.php: |
that is one method. I was thinking of, this change
but I don't know which is correct? |
this works as well
|
@mikko80 I wonder if it should be a string or a float?
|
yeah, being a float works too
|
@mikko80 maybe the best thing would be to set the rate to 0 when one has selected not to use sales tax? |
@JonBendtsen Yes. I think also the best is 0 It works regardless of the user's language and the abbreviation used for VAT. Maybe this is better solution? |
I am not sure I used that variable, what I did was, because I am using Dolibarr solely for a non profit dance organisation |
@JonBendtsen Hmm. What php/doli version you tested? |
Primarily 19, but some files are from develop |
@mikko80 Your fix seems to be merged, so I suppose this issue can be closed? |
FIX V20 Update societe.class.php FIX#29306 #30939 |
Bug
If VATIsNotUsed = true, Adding value to CustomerAbsoluteDiscount not working. It gives error.
Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /societe/class/societe.class.php:2435 Stack trace: #0 /comm/remx.php(182): Societe->set_remise_except('80', Object(User), 'Testi', '', '0', 'HT') #1 {main} thrown in /societe/class/societe.class.php on line 2435
Dolibarr Version
19.0.1
Environment PHP
8.2.16
Environment Database
10.3.39-MariaDB, mysqli (mysqlnd 8.2.16)
Steps to reproduce the behavior and expected behavior
In invoices or third party try to add absolute discount values.
Attached files
No response
The text was updated successfully, but these errors were encountered: