提前部分结清调整

This commit is contained in:
zzk 2022-04-25 17:59:16 +08:00
parent 399e282fd8
commit fa39c3d962

View File

@ -1,5 +1,6 @@
package com.tenwa.voucher.CreateVoucherProcess;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import com.amarsoft.are.jbo.BizObject;
@ -23,9 +24,6 @@ public class CarRatio extends CommonHandler {
}
protected void initDisplayForEdit(BizObject bo) throws Exception {
double por = bo.getAttribute("retainfield2").getDouble();
por = por*100;
retainfield2 = String.valueOf(por)+"%";
bo.setAttributeValue("retainfield2", retainfield2);
bo.setAttributeValue("retainfield2", BigDecimal.valueOf(bo.getAttribute("retainfield2").getDouble()).multiply(BigDecimal.valueOf(100)).setScale(2).toString()+"%");
}
}