|
|
@@ -1358,9 +1358,10 @@ public class saorder extends BaseSaorder {
|
|
|
if (!getPaoSet("saorderdetail_close").isEmpty()) {
|
|
|
throw new P2AppException("", "已存在关闭的行,不可反审核");
|
|
|
}
|
|
|
- if(saorderdetail.sum("fwriteoffamount")!=0){
|
|
|
+ if (saorderdetail.sum("fwriteoffamount") != 0) {
|
|
|
throw new P2AppException("", "核销金额不为0,不可反审核");
|
|
|
- } if(saorderdetail.sum("finvoiceamount")!=0){
|
|
|
+ }
|
|
|
+ if (saorderdetail.sum("finvoiceamount") != 0) {
|
|
|
throw new P2AppException("", "开票金额不为0,不可反审核");
|
|
|
}
|
|
|
}
|
|
|
@@ -1409,6 +1410,12 @@ public class saorder extends BaseSaorder {
|
|
|
if (!getPaoSet("saorderdetail_close").isEmpty()) {
|
|
|
throw new P2AppException("", "已存在关闭的行,不可反审核");
|
|
|
}
|
|
|
+ if (saorderdetail.sum("fwriteoffamount") != 0) {
|
|
|
+ throw new P2AppException("", "核销金额不为0,不可反审核");
|
|
|
+ }
|
|
|
+ if (saorderdetail.sum("finvoiceamount") != 0) {
|
|
|
+ throw new P2AppException("", "开票金额不为0,不可反审核");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|