Commit 872157d4 authored by Julien Muchembled's avatar Julien Muchembled

Update testDeliveryBuilderToSupportMultipleLines WRT changes in...

Update testDeliveryBuilderToSupportMultipleLines WRT changes in TestPackingListMixin._solveDivergence

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 438237e5
......@@ -200,21 +200,17 @@ return context.getPortalObject().portal_catalog(portal_type='Sale Invoice Transa
delivery_builder = getattr(self.portal.portal_deliveries, self.delivery_builder_id)
delivery_builder.delivery_cell_separate_order = ('calculateAddQuantity',)
def stepAdoptPrevisionPackingListQuantity(self,sequence=None, sequence_list=None):
document = sequence.get('packing_list')
self._solveDivergence(document, 'quantity', 'adopt')
stepAdoptPrevisionPackingListQuantity = \
TestSaleInvoiceMixin.stepAdoptPrevisionQuantity
def stepAcceptDecisionPackingListQuantity(self,sequence=None, sequence_list=None):
document = sequence.get('packing_list')
self._solveDivergence(document, 'quantity', 'accept')
stepAcceptDecisionPackingListQuantity = \
TestSaleInvoiceMixin.stepAcceptDecisionQuantity
def stepAdoptPrevisionInvoiceQuantity(self,sequence=None, sequence_list=None):
document = sequence.get('invoice')
self._solveDivergence(document, 'quantity', 'adopt')
stepAdoptPrevisionInvoiceQuantity = \
TestSaleInvoiceMixin.stepAdoptPrevisionQuantityInvoice
def stepAcceptDecisionInvoiceQuantity(self,sequence=None, sequence_list=None):
document = sequence.get('invoice')
self._solveDivergence(document, 'quantity', 'accept')
stepAcceptDecisionInvoiceQuantity = \
TestSaleInvoiceMixin.stepAcceptDecisionQuantityInvoice
class TestNestedLine(TestNestedLineMixin, ERP5TypeTestCase):
......
......@@ -938,6 +938,11 @@ class TestInvoiceMixin(TestPackingListMixin):
self._solveDivergence(invoice, 'start_date', 'Unify Solver',
value=invoice.getStartDate())
def stepAdoptPrevisionQuantityInvoice(self,sequence=None, sequence_list=None):
invoice = sequence.get('invoice')
self.portal.pdb()
self._solveDivergence(invoice, 'quantity', 'Adopt Solver')
def stepAcceptDecisionQuantityInvoice(self,sequence=None, sequence_list=None):
invoice = sequence.get('invoice')
self._solveDivergence(invoice, 'quantity', 'Accept Solver')
......
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