Commit f35c0127 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Since r34722, source should be source_administration of the input movement (or...

Since r34722, source should be source_administration of the input movement (or its order's source). Same for destination.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34728 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b90aa1d6
......@@ -605,8 +605,10 @@ class TestInvoiceMixin(TestPackingListMixin,
portal_type=self.invoice_portal_type)
self.assertEquals(len(related_invoice_list), 1)
invoice = related_invoice_list[0]
self.assertEquals(packing_list.getSource(), invoice.getSource())
self.assertEquals(packing_list.getDestination(), invoice.getDestination())
self.assertEquals(packing_list.getSourceAdministration(),
invoice.getSource())
self.assertEquals(packing_list.getDestinationAdministration(),
invoice.getDestination())
self.assertEquals(packing_list.getDestinationSection(), \
invoice.getDestinationSection())
self.assertEquals(packing_list.getSourceSection(), \
......
......@@ -1964,8 +1964,10 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
portal_type=self.invoice_portal_type)
self.assertEquals(len(related_invoice_list), 1)
invoice = related_invoice_list[0]
self.assertEquals(packing_list.getSource(), invoice.getSource())
self.assertEquals(packing_list.getDestination(), invoice.getDestination())
self.assertEquals(packing_list.getSourceAdministration(),
invoice.getSource())
self.assertEquals(packing_list.getDestinationAdministration(),
invoice.getDestination())
self.assertEquals(packing_list.getDestinationSection(), \
invoice.getDestinationSection())
self.assertEquals(packing_list.getSourceSection(), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment