|
|
@@ -42,7 +42,9 @@ public class XSCK extends BasicBill {
|
|
|
}
|
|
|
BigDecimal discountamount = accountbalancerows.get(0).getBigDecimal("discountamount");
|
|
|
if (billRow.getBigDecimal("paydiscountamount").compareTo(discountamount) > 0) {
|
|
|
- throw new YosException("优惠金额不能大于可用优惠金额");
|
|
|
+ if(rb==1){
|
|
|
+ throw new YosException("优惠金额不能大于可用优惠金额");
|
|
|
+ }
|
|
|
}
|
|
|
if(billRow.getString("sourceobject").equals("tpartreimbursement")){
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(controller, "sa_tpartreimbursementdetail", "sa_tpartreimbursementdetailid","isverified","qty","sa_orderitemsid");
|