| | |
| | | vo.setShippedAmount(outboundAmount); |
| | | BigDecimal contractAmounts = vo.getContractAmounts() == null ? BigDecimal.ZERO : vo.getContractAmounts(); |
| | | BigDecimal unshippedAmount = contractAmounts.subtract(outboundAmount); |
| | | if (unshippedAmount.compareTo(BigDecimal.ZERO) < 0) { |
| | | if (unshippedAmount.compareTo(BigDecimal.ONE) < 0) { |
| | | unshippedAmount = BigDecimal.ZERO; |
| | | } |
| | | vo.setUnshippedAmount(unshippedAmount); |
| | |
| | | vo.setShippedAmount(outboundAmount); |
| | | BigDecimal contractAmount = vo.getContractAmount() == null ? BigDecimal.ZERO : vo.getContractAmount(); |
| | | BigDecimal unshippedAmount = contractAmount.subtract(outboundAmount); |
| | | if (unshippedAmount.compareTo(BigDecimal.ZERO) < 0) { |
| | | if (unshippedAmount.compareTo(BigDecimal.ONE) < 0) { |
| | | unshippedAmount = BigDecimal.ZERO; |
| | | } |
| | | vo.setUnshippedAmount(unshippedAmount); |