[Stoq-devel] [Bug 3441] O valor correto enviado ao contas a pagar é o do recebimento da nota fiscal
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Wed Jun 27 13:06:23 BRT 2007
http://bugs.async.com.br/show_bug.cgi?id=3441
Johan Dahlin <jdahlin at async.com.br> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4196|review?(jdahlin at async.com.br|review-
Flag|) |
--- Comment #4 from Johan Dahlin <jdahlin at async.com.br> 2007-06-27 13:06:22 BRT ---
(From update of attachment 4196)
>Index: stoqlib/domain/test/test_receiving.py
>===================================================================
>--- stoqlib/domain/test/test_receiving.py (revisão 6750)
>+++ stoqlib/domain/test/test_receiving.py (cópia de trabalho)
>@@ -25,6 +25,7 @@
> from kiwi.datatypes import currency
>
> from stoqlib.database.exceptions import IntegrityError
>+from stoqlib.domain.interfaces import IPaymentGroup
> from stoqlib.domain.test.domaintest import DomainTest
> """ This module test all class in stoq/domain/receiving.py """
>
>@@ -77,6 +78,15 @@
> self.assertRaises(ValueError, order.confirm)
> self.assertRaises(ValueError, order.confirm)
>
>+ order.purchase.increase_quantity_received(order_item.sellable, 8)
>+ group = IPaymentGroup(order.purchase)
>+ for payment in group.get_items():
>+ self.assertEqual(payment.value,
>+ (order.get_tota()/group.installments_number))
>+ self.assertEqual(payment.base_value,
>+ (order.get_tota()/group.installments_number))
Precisa refazer, não tem um metodo que chama ge_tota(), eg esse codigo não
foi executada.
Precisa testar invoice_total também eu acho.
--
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