Skip to content

Commit

Permalink
Removing commented out lines for: The API should assign order numbers to
Browse files Browse the repository at this point in the history
new orders - TRUNK-4163
  • Loading branch information
dkayiwa committed Dec 16, 2013
1 parent 82a1d30 commit 985baae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/src/main/java/org/openmrs/api/impl/OrderServiceImpl.java
Expand Up @@ -628,14 +628,12 @@ public List<Order> getOrdersByEncounter(Encounter encounter) {
*/
@Override
public synchronized String getNewOrderNumber() {
//synchronized (orderNumberCounter) {
if (orderNumberCounter < 0) {
// we've just started up, so we need to fetch this from the DAO
Integer temp = dao.getHighestOrderId();
orderNumberCounter = temp == null ? 0 : temp;
}
orderNumberCounter += 1;
return "ORD-" + orderNumberCounter;
//}
}
}

0 comments on commit 985baae

Please sign in to comment.