dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [bug #18620] credit nota fix


From: Franky Van Liedekerke
Subject: [Dolibarr-bugtrack] [bug #18620] credit nota fix
Date: Thu, 28 Dec 2006 20:58:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)

URL:
  <http://savannah.nongnu.org/bugs/?18620>

                 Summary: credit nota fix
                 Project: Dolibarr
            Submitted by: liedekef
            Submitted on: Thursday 28/12/06 at 20:58
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
        Operating System: None

    _______________________________________________________

Details:

When creating a credit nota for an invoice, the amount must be negative, but
in htdocs/compta/paiement.php there is a test:

  if ($totalpaiement <= 0)
    {
      $fiche_erreur_message = '<div
class="error">'.$langs->transnoentities('ErrorFieldRequired',$langs->trans('Amount')).'</div>';
      $error++;
    }

==> this if-statement should be:

  if ($totalpaiement == 0)

otherwise negative amounts are never accepted.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?18620>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]