|
@@ -1522,7 +1522,7 @@ public class Order extends Controller {
|
|
|
for (Object object : accountclassinfos) {
|
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
if (Accountbalance.judgeBalance(this, pay_enterpriseid, jsonObject.getLong("sa_accountclassid"), jsonObject.getBigDecimal("amount"))) {
|
|
|
- CashbillEntity entity = getCashbillEntity(jsonObject.getBigDecimal("amount"), sa_orderid, "订单提交", sonum, "由" + sonum + "订单提交时," + jsonObject.getString("accountname") + "账户自动支出产生");
|
|
|
+ CashbillEntity entity = getCashbillEntity(jsonObject.getBigDecimal("amount"), sa_orderid, "订单提交", sonum, "由订单号" + sonum + "提交时生成");
|
|
|
//
|
|
|
if (accountclassrowsMap.containsKey(jsonObject.getString("sa_accountclassid")) && accountclassrowsMap.get(jsonObject.getString("sa_accountclassid")).isNotEmpty()) {
|
|
|
jsonObject.put("balance", accountclassrowsMap.get(jsonObject.getString("sa_accountclassid")).get(0).getBigDecimal("balance").subtract(jsonObject.getBigDecimal("amount")));
|
|
@@ -1537,7 +1537,7 @@ public class Order extends Controller {
|
|
|
}
|
|
|
} else {
|
|
|
if (Accountbalance.judgeBalance(this, pay_enterpriseid, sa_accountclassid, amount)) {
|
|
|
- CashbillEntity entity = getCashbillEntity(amount, sa_orderid, "订单提交", sonum, "由" + sonum + "订单提交时自动产生");
|
|
|
+ CashbillEntity entity = getCashbillEntity(amount, sa_orderid, "订单提交", sonum, "由订单号" + sonum + "提交时生成");
|
|
|
sqlList.addAll(Accountbalance.createCashbillPay(this, pay_enterpriseid, sa_accountclassid, entity, true));
|
|
|
} else {
|
|
|
return getErrReturnObject().setErrMsg("账户余额不足,还差" + Accountbalance.InsufficientBalance(this, pay_enterpriseid, sa_accountclassid, amount) + "元!").toString();
|
|
@@ -1712,7 +1712,7 @@ public class Order extends Controller {
|
|
|
for (Object object : accountclassinfos) {
|
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
if (Accountbalance.judgeBalance(this, pay_enterpriseid, jsonObject.getLong("sa_accountclassid"), jsonObject.getBigDecimal("amount"))) {
|
|
|
- CashbillEntity entity = getCashbillEntity(jsonObject.getBigDecimal("amount"), sa_orderid, "订单审核", sonum, "由" + sonum + "订单审核时," + jsonObject.getString("accountname") + "账户自动支出产生");
|
|
|
+ CashbillEntity entity = getCashbillEntity(jsonObject.getBigDecimal("amount"), sa_orderid, "订单审核", sonum, "由订单号" + sonum + "审核时生成");
|
|
|
jsonObject.put("balance", jsonObject.getBigDecimalValue("balance").subtract(jsonObject.getBigDecimal("amount")));
|
|
|
sqlList.addAll(Accountbalance.createCashbillPay(this, pay_enterpriseid, jsonObject.getLong("sa_accountclassid"), entity, true));
|
|
|
} else {
|
|
@@ -1721,7 +1721,7 @@ public class Order extends Controller {
|
|
|
}
|
|
|
} else {
|
|
|
if (Accountbalance.judgeBalance(this, pay_enterpriseid, sa_accountclassid, amount)) {
|
|
|
- CashbillEntity entity = getCashbillEntity(amount, sa_orderid, "订单审核", sonum, "由" + sonum + "订单审核时自动产生");
|
|
|
+ CashbillEntity entity = getCashbillEntity(amount, sa_orderid, "订单审核", sonum, "由订单号" + sonum + "审核时生成");
|
|
|
sqlList.addAll(Accountbalance.createCashbillPay(this, pay_enterpriseid, sa_accountclassid, entity, true));
|
|
|
} else {
|
|
|
return getErrReturnObject().setErrMsg("账户余额不足,还差" + Accountbalance.InsufficientBalance(this, pay_enterpriseid, sa_accountclassid, amount) + "元!").toString();
|
|
@@ -2025,7 +2025,7 @@ public class Order extends Controller {
|
|
|
// sqlList.addAll(Accountbalance.createCashbillPay(this, pay_enterpriseid, sa_accountclassid, entity, true));
|
|
|
// }
|
|
|
|
|
|
- sqlList.addAll(returnPayBill(row, "订单退回", sonum, "由" + sonum + "订单退回时自动产生"));
|
|
|
+ sqlList.addAll(returnPayBill(row, "订单退回", sonum, "由订单号" + sonum + "退回时生成"));
|
|
|
|
|
|
String message = "您的订单【" + sonum + "】已退回,退款金额为【" + amount + "】 已转入到您的资金账户";
|
|
|
|
|
@@ -2097,7 +2097,7 @@ public class Order extends Controller {
|
|
|
}
|
|
|
|
|
|
|
|
|
- sqlList.addAll(returnPayBill(row, "订单撤回", sonum, "由" + sonum + "订单撤回时自动产生"));
|
|
|
+ sqlList.addAll(returnPayBill(row, "订单撤回", sonum, "由订单号" + sonum + "撤回时生成"));
|
|
|
|
|
|
String message = "您的订单【" + sonum + "】 金额为【" + amount + "】 已撤回!";
|
|
|
|
|
@@ -3224,7 +3224,7 @@ public class Order extends Controller {
|
|
|
entity.setSourcenote(orderRow.get(0).getString("sonum"));
|
|
|
entity.setOwnerid(sa_orderid);
|
|
|
entity.setOwnertable("sa_order");
|
|
|
- entity.setRemarks("由" + orderRow.get(0).getString("sonum") + "订单手工关闭时自动产生");
|
|
|
+ entity.setRemarks("由订单号" + orderRow.get(0).getString("sonum") + "手工关闭时生成");
|
|
|
entity.setType("普通费用");
|
|
|
entity.setTypemx("订单关闭退款");
|
|
|
sqlList.addAll(Accountbalance.createCashbillPay(this, sys_enterpriseid, orderaccountclassinfo.getLongValue("sa_accountclassid"), entity, true));
|