Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(orderMin.compareTo(BigDecimal.ZERO) > 0 ){
- if( QtyRequisition.compareTo(orderMin) > 0){
- if(QtyOrdered.compareTo(QtyRequisition.multiply(pembanding)) > 0 ){
- msg = "Product atas " + mOrderLine.getProduct().getValue() + " melebihi MOQ dan 5% dari requisition || LINE NO:"+mOrderLine.getLine();
- throw new AdempiereException(msg);
- }
- }else if (QtyOrdered.compareTo(orderMin) > 0){
- msg = "Product atas " + mOrderLine.getProduct().getValue() + " melebihi MOQ || LINE NO:"+mOrderLine.getLine();
- throw new AdempiereException(msg);
- }
- }
- else {
- if(QtyRequisition.multiply(pembanding).compareTo(QtyOrdered) < 0 ){
- msg = "Product atas " + mOrderLine.getProduct().getValue() + " melebihi MOQ dan 5% dari requisition || LINE NO:"+mOrderLine.getLine();
- throw new AdempiereException(msg);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement