ItEr40S05ValidacionEProbasFuncionaisItEr39S05: Fixing up and down on order elements
This commit is contained in:
parent
62e61bd087
commit
8441b7cbe9
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ public class OrderLineGroupManipulator implements IOrderLineGroup {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void up(OrderElement orderElement) {
|
||||
public void down(OrderElement orderElement) {
|
||||
int position = orderElements.indexOf(orderElement);
|
||||
if (position < orderElements.size() - 1) {
|
||||
orderElements.remove(position);
|
||||
|
|
@ -100,7 +100,7 @@ public class OrderLineGroupManipulator implements IOrderLineGroup {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void down(OrderElement orderElement) {
|
||||
public void up(OrderElement orderElement) {
|
||||
int position = orderElements.indexOf(orderElement);
|
||||
if (position > 0) {
|
||||
orderElements.remove(position);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue