• Alexandre Boeglin's avatar
    * OrderCell.py: isMovement is now a function, depends on whether parent · 6086c131
    Alexandre Boeglin authored
      contains lines.
      getTotalPrice, getTotalQuantity return 0.0 if the current object is not
      considered a movement.
    
    * DeliveryLine.py (manage_afterAdd, manage_beforeDelete): when adding or
      removing a line from a line, reindex the parent, as its "isMovement" value
      might change.
    
    * OrderLine.py: _getTotalPrice, getTotalQuantity support hierarchical orders.
    
    * testOrder: test_19b_getTotalQuantityAndPrice verifies that isMovement,
      getTotalPrice, getTotalQuantity support hierarchical orders.
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19922 20353a03-c40f-0410-a6d1-a30d3c3de9de
    6086c131
testOrder.py 86.2 KB