fix:
贷记单生成增加字段赋值
This commit is contained in:
parent
ce0dfa7e31
commit
4395a22129
@ -10,9 +10,7 @@ import kd.bos.entity.operate.result.IOperateInfo;
|
|||||||
import kd.bos.entity.operate.result.OperationResult;
|
import kd.bos.entity.operate.result.OperationResult;
|
||||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||||
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
||||||
import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
|
|
||||||
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
|
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
|
||||||
import kd.bos.entity.validate.ValidateResultCollection;
|
|
||||||
import kd.bos.exception.KDBizException;
|
import kd.bos.exception.KDBizException;
|
||||||
import kd.bos.orm.query.QCP;
|
import kd.bos.orm.query.QCP;
|
||||||
import kd.bos.orm.query.QFilter;
|
import kd.bos.orm.query.QFilter;
|
||||||
@ -80,6 +78,8 @@ public class CreateCreditNoteBillOp extends AbstractOperationServicePlugIn imple
|
|||||||
debCredNote.set("yem_amount_sub",debCUseAmt);//配件资金池扣减金额
|
debCredNote.set("yem_amount_sub",debCUseAmt);//配件资金池扣减金额
|
||||||
debCredNote.set("yem_amountbase_sub",useRate.multiply(debCUseAmt));//配件资金池扣减金额本位币
|
debCredNote.set("yem_amountbase_sub",useRate.multiply(debCUseAmt));//配件资金池扣减金额本位币
|
||||||
|
|
||||||
|
debCredNote.set("yem_accessories", dataEntitie.getString("yem_accessories"));
|
||||||
|
debCredNote.set("yem_wholemachine", dataEntitie.getString("yem_wholemachine"));
|
||||||
DynamicObjectCollection destinations = debCredNote.getDynamicObjectCollection("yem_creditnotedes");
|
DynamicObjectCollection destinations = debCredNote.getDynamicObjectCollection("yem_creditnotedes");
|
||||||
DynamicObject addNew = destinations.addNew();
|
DynamicObject addNew = destinations.addNew();
|
||||||
addNew.set("yem_contractno_d",dataEntitie);//合同号
|
addNew.set("yem_contractno_d",dataEntitie);//合同号
|
||||||
|
@ -86,6 +86,8 @@ public class SaleOrdeAddGenerateOp extends AbstractOperationServicePlugIn {
|
|||||||
debcrednote.set("yem_sourcecreditno", DebCredUtils.getsourcecreditno(dataEntitie, accfunddetail.getDynamicObject("yem_debcredtype"),accfunddetail.getString("yem_debcred")));
|
debcrednote.set("yem_sourcecreditno", DebCredUtils.getsourcecreditno(dataEntitie, accfunddetail.getDynamicObject("yem_debcredtype"),accfunddetail.getString("yem_debcred")));
|
||||||
debcrednote.set("yem_sourcebillno", dataEntitie.getString("billno"));
|
debcrednote.set("yem_sourcebillno", dataEntitie.getString("billno"));
|
||||||
debcrednote.set("yem_source", dataEntitie.getString("billno"));
|
debcrednote.set("yem_source", dataEntitie.getString("billno"));
|
||||||
|
debcrednote.set("yem_accessories", dataEntitie.getString("yem_accessories"));
|
||||||
|
debcrednote.set("yem_wholemachine", dataEntitie.getString("yem_wholemachine"));
|
||||||
String products = "";
|
String products = "";
|
||||||
DynamicObject yem_bd_products = dataEntitie.getDynamicObject("yem_bd_products");
|
DynamicObject yem_bd_products = dataEntitie.getDynamicObject("yem_bd_products");
|
||||||
if (yem_bd_products != null) {
|
if (yem_bd_products != null) {
|
||||||
|
@ -570,6 +570,8 @@ public class DebCredUtils {
|
|||||||
debcrednote.set("yem_sourcecreditno", getsourcecreditno(dataEntitie, object, "B"));
|
debcrednote.set("yem_sourcecreditno", getsourcecreditno(dataEntitie, object, "B"));
|
||||||
debcrednote.set("yem_sourcebillno", dataEntitie.getString("billno"));
|
debcrednote.set("yem_sourcebillno", dataEntitie.getString("billno"));
|
||||||
debcrednote.set("yem_bd_products", dataEntitie.getDynamicObject("yem_bd_products"));
|
debcrednote.set("yem_bd_products", dataEntitie.getDynamicObject("yem_bd_products"));
|
||||||
|
debcrednote.set("yem_accessories", dataEntitie.getString("yem_accessories"));
|
||||||
|
debcrednote.set("yem_wholemachine", dataEntitie.getString("yem_wholemachine"));
|
||||||
debcrednote.set("yem_groupcusfields", dataEntitie.getDynamicObject("yem_customer").getDynamicObject("yem_groupcustomers"));
|
debcrednote.set("yem_groupcusfields", dataEntitie.getDynamicObject("yem_customer").getDynamicObject("yem_groupcustomers"));
|
||||||
DynamicObject yem_currency = dataEntitie.getDynamicObject("yem_givecurrency");
|
DynamicObject yem_currency = dataEntitie.getDynamicObject("yem_givecurrency");
|
||||||
DynamicObject yem_currencybase = OrderUtils.seelctDyn("bd_currency", "number", "CNY");
|
DynamicObject yem_currencybase = OrderUtils.seelctDyn("bd_currency", "number", "CNY");
|
||||||
@ -671,6 +673,8 @@ public class DebCredUtils {
|
|||||||
debcrednote.set("yem_quotation", "0");
|
debcrednote.set("yem_quotation", "0");
|
||||||
debcrednote.set("yem_source", billno);
|
debcrednote.set("yem_source", billno);
|
||||||
debcrednote.set("yem_partscredit", "C");
|
debcrednote.set("yem_partscredit", "C");
|
||||||
|
debcrednote.set("yem_accessories", dataEntitie.getString("yem_accessories"));
|
||||||
|
debcrednote.set("yem_wholemachine", dataEntitie.getString("yem_wholemachine"));
|
||||||
// BigDecimal yem_userate = dataEntitie.getBigDecimal("yem_exrate");
|
// BigDecimal yem_userate = dataEntitie.getBigDecimal("yem_exrate");
|
||||||
// if (yem_userate.compareTo(BigDecimal.ZERO) == 0) {
|
// if (yem_userate.compareTo(BigDecimal.ZERO) == 0) {
|
||||||
if (yem_currency != null && yem_currencybase != null && yem_exratetable != null) {
|
if (yem_currency != null && yem_currencybase != null && yem_exratetable != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user