|
|
@@ -246,7 +246,7 @@ public class saorder extends BaseSaorder {
|
|
|
double fdetailamount = detailpao.getDouble("famount");
|
|
|
double fmjamount = detailpao.getDouble("fmjamount");
|
|
|
double fdetailflamount = Math.mul(Math.div(Math.sub(fdetailamount, fmjamount), ftotalamount), fuseflamount, 2);
|
|
|
- detailpao.setValue("fflamount", fdetailflamount);
|
|
|
+ detailpao.setValue("fflamount", fdetailflamount,2L);
|
|
|
frowflamount = Math.add(frowflamount, fdetailflamount);
|
|
|
|
|
|
lastdetailpao = detailpao;
|
|
|
@@ -260,7 +260,7 @@ public class saorder extends BaseSaorder {
|
|
|
double yu = Math.sub(frowflamount, fuseflamount);
|
|
|
|
|
|
if (yu != 0) {
|
|
|
- lastdetailpao.setValue("fflamount", Math.sub(lastdetailpao.getDouble("fflamount"), yu));
|
|
|
+ lastdetailpao.setValue("fflamount", Math.sub(lastdetailpao.getDouble("fflamount"), yu),2L);
|
|
|
}
|
|
|
}
|
|
|
}
|