Commit e726a193 authored by Tatuya Kamada's avatar Tatuya Kamada

Modify Order_zSelectMovement to make Packing List enable to represent...

Modify Order_zSelectMovement  to make Packing List enable to represent Transfer of rights(ownership). To do this, remove a WHERE expression to exclude simulation movements that have same source and destination.
parent a9605686
......@@ -78,7 +78,6 @@ WHERE\n
<dtml-if where_expression>\n
AND <dtml-var where_expression> \n
</dtml-if>\n
AND simulation_movement.source_uid <> simulation_movement.destination_uid\n
AND simulation_movement.source_uid is not NULL\n
AND simulation_movement.destination_uid is not NULL\n
AND simulation_movement.uid = catalog.uid\n
......
2011-09-20 tatuya
* Modify Order_zSelectMovement to make Packing List enable to represent Transfer of rights(ownership). To do this, remove WHERE expression to exclude simulation movements that have same source and destination.
2011-09-15 tatuya
* Fix the issue that Sale Packing List wrongly has Root Applied Rule sometimes when it is created by Delivery Builder with a site which has many activity nodes.
......
1138
\ No newline at end of file
1139
\ No newline at end of file
......@@ -1768,6 +1768,64 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
self._testSubContentReindexing(container, [container_line,
container_cell])
def stepSetAssignmentOrderProfile(self,sequence=None, sequence_list=None, **kw):
"""
Configure an Assingnment Order.
This order represents that it transfers an ownership to somebody.
In this case, source and destination are not moving.
"""
organisation1 = sequence.get('organisation1')
organisation2 = sequence.get('organisation2')
project1 = sequence.get('project1')
project2 = sequence.get('project2')
order = sequence.get('order')
order.edit(source_value = organisation1,
source_section_value = organisation1,
source_payment_value = organisation1['bank'],
destination_value = organisation1, # set same organisation
destination_section_value = organisation2,
destination_payment_value = organisation2['bank'],
source_project_value = project1,
destination_project_value = project2 )
order.setPaymentConditionEfficiency(1.0)
self.failUnless('Site Error' not in order.view())
def testTransferOfOwnership(self, quiet=quiet):
"""
Test that Packing List has a capability to represent transfer of an
ownership(rights).
"""
sequence_list = SequenceList()
assignment_order_sequence = """
CreateOrganisation1
CreateOrganisation2
CreateOrganisation3
CreateProject1
CreateProject2
CreateOrder
CreateCurrency
SetOrderPriceCurrency
SetAssignmentOrderProfile
"""
sequence_string = assignment_order_sequence + """
CreateNotVariatedResource
Tic
CreateOrderLine
SetOrderLineResource
SetOrderLineDefaultValues
OrderOrder
Tic
ConfirmOrder
Tic
CheckOrderSimulation
CheckDeliveryBuilding
CheckPackingListIsNotDivergent
CheckOrderPackingList
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
quiet = 0
......
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