Skip to content

Commit

Permalink
Fix: [ bug Dolibarr#947 ] Can't create proposal lines with unit price…
Browse files Browse the repository at this point in the history
… = 0
  • Loading branch information
marcosgdf committed Jun 19, 2013
1 parent c92471d commit 676191c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ English Dolibarr ChangeLog

- Fix: [ bug #903 ] Fatal error: Call to undefined function dol_get_first_day() in htdocs/commande/liste.php
- Fix: [ bug #934 ] Error on proformat invoice creation (pgsql)
- Fix: [ bug #947 ] Can't create proposal lines with unit price = 0

***** ChangeLog for 3.3.2 compared to 3.3.1 *****

Expand Down
3 changes: 2 additions & 1 deletion htdocs/comm/propal.php
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Type")), 'errors');
$error++;
}
if ((empty($idprod) || GETPOST('usenewaddlineform')) && (!($price_ht != 0) || $price_ht == '')) // Unit price can be 0 but not ''. Also price can be negative for proposal.

if ((empty($idprod) || GETPOST('usenewaddlineform')) && $price_ht == '') // Unit price can be 0 but not ''. Also price can be negative for proposal.
{
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("UnitPriceHT")), 'errors');
$error++;
Expand Down

0 comments on commit 676191c

Please sign in to comment.