Skip to content

Commit

Permalink
Update product.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 authored Jul 1, 2024
1 parent 3a74b37 commit 07dbd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/class/product.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Copyright (C) 2016-2024 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2017 Gustavo Novaro
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
* Copyright (C) 2023 Benjamin if ($newprice === 0 || $newprice !== '') {Falière <benjamin.faliere@altairis.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -2380,7 +2380,7 @@ public function updatePrice($newprice, $newpricebase, $user, $newvat = null, $ne
return -1;
}

if ($newprice !== '' || $newprice === 0) {
if ($newprice === 0 || $newprice !== '') {
if ($newpricebase == 'TTC') {
$price_ttc = price2num($newprice, 'MU');
$price = (float) price2num($newprice) / (1 + ((float) $newvat / 100));
Expand Down

0 comments on commit 07dbd56

Please sign in to comment.