提交内容:大写金额写入代码

时间:2025-06-20 17:44
提交人:邹江涛
This commit is contained in:
zoujiangtao 2025-06-20 17:58:34 +08:00
parent cdbbfd3da2
commit 962cc68ddb
1 changed files with 9 additions and 0 deletions

View File

@ -4,10 +4,13 @@ import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.dataentity.entity.DynamicObjectCollection;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.args.AfterOperationArgs;
import kd.bos.i18n.mservice.I18nServiceHelper;
import kd.bos.i18n.mservice.utils.AmountConvertResult;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import java.math.BigDecimal;
import java.util.Date;
import kd.bos.servicehelper.operation.SaveServiceHelper;
@ -27,6 +30,12 @@ public class PaymentSlipAssociationFixed extends AbstractOperationServicePlugIn
// 付款单
DynamicObject fkDynamicObject = BusinessDataServiceHelper.loadSingle(dataEntity.getPkValue(), dataEntity.getDynamicObjectType());
BigDecimal actpayamt = fkDynamicObject.getBigDecimal("actpayamt");
AmountConvertResult result = I18nServiceHelper.amountConvertUppercase("ZH", "CNY", actpayamt.toString(), "false");
if (result.isSuccess()) {
fkDynamicObject.set("actpayamt", result.getResult());
}
String shkdBusinessname = dataEntity.getString("shkd_businessname");//来源系统
if (dataEntity.get("settletnumber") != null) {