|
@@ -116,10 +116,16 @@ public class InventoryFormApply extends BaseEntity {
|
|
|
private BigDecimal PayMoney;
|
|
|
|
|
|
public BigDecimal getCurrentMeterTotal() {
|
|
|
- return new BigDecimal(currentMeterTotal.stripTrailingZeros().toPlainString());
|
|
|
+ if (currentMeterTotal == null){
|
|
|
+ return null;
|
|
|
+ }else {
|
|
|
+ return new BigDecimal(currentMeterTotal.stripTrailingZeros().toPlainString());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void setCurrentMeterTotal(BigDecimal currentMeterTotal) {
|
|
|
- this.currentMeterTotal = new BigDecimal(currentMeterTotal.stripTrailingZeros().toPlainString());
|
|
|
+ if (currentMeterTotal != null) {
|
|
|
+ this.currentMeterTotal = new BigDecimal(currentMeterTotal.stripTrailingZeros().toPlainString());
|
|
|
+ }
|
|
|
}
|
|
|
}
|