[Stoq-devel] [Bug 3444] New: Ao fazer uma venda e conceder desconto em forma de valor negativo um erro é gerado

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Thu Jun 21 15:38:37 BRT 2007


http://bugs.async.com.br/show_bug.cgi?id=3444

           Summary: Ao fazer uma venda e conceder desconto em forma de valor
                    negativo um erro é gerado
           Product: Stoqlib
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: (unset)
          Priority: (unset)
         Component: Wizards
        AssignedTo: nobody at async.com.br
        ReportedBy: silvio at async.com.br
         QAContact: stoq-devel at async.com.br
            Blocks: 3332
   Estimated Hours: 0.0


Ao fazer uma venda e conceder desconto em forma de valor negativo um erro é
gerado. Existem duas opções de desconto, uma na forma percentual e outra na
forma monetária. Quando o desconto é cadastrado na forma % uma mensagem é
gerada não permitindo que a venda seja encerrada.

Porém quando temos concedemos desconto na forma monetária com valor negativo
a opção terminar fica habilitada gerando um erro ao clicar.

Traceback (most recent call last):
  File "/home/silvio/devel/trunk/kiwi/kiwi/ui/wizard.py", line 110, in
on_next_button__clicked
    self._change_step(self._current.next_step())
  File "/home/silvio/devel/trunk/stoqlib/stoqlib/gui/wizards/salewizard.py",
line 585, in next_step
    self.payment_group.set_method(int(PaymentMethodType.MONEY))
  File "/home/silvio/devel/trunk/stoqlib/stoqlib/domain/payment/group.py", line
199, in set_method
    self.default_method = method
  File "<string>", line 1, in <lambda>
  File "<string>", line 1, in <lambda>
  File "/home/silvio/devel/trunk/stoqlib/external/sqlobject/main.py", line
1066, in _SO_setValue
    self._connection._SO_update(
  File "/home/silvio/devel/trunk/stoqlib/external/sqlobject/dbconnection.py",
line 607, in _SO_update
    self.query("UPDATE %s SET %s WHERE %s = %s" %
  File "/home/silvio/devel/trunk/stoqlib/external/sqlobject/dbconnection.py",
line 799, in query
    return self._dbConnection._query(self._connection, s)
  File "/home/silvio/devel/trunk/stoqlib/external/sqlobject/dbconnection.py",
line 311, in _query
    self._executeRetry(conn, conn.cursor(), s)
  File "/home/silvio/devel/trunk/stoqlib/external/sqlobject/dbconnection.py",
line 306, in _executeRetry
    return cursor.execute(query)
ProgrammingError: current transaction is aborted, commands ignored until end of
transaction block


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Stoq-devel mailing list