付款单的sap凭证两个日期字段取值更新
This commit is contained in:
		
							parent
							
								
									9e53a8bc30
								
							
						
					
					
						commit
						e5a8003150
					
				|  | @ -1,6 +1,5 @@ | |||
| package shjh.jhzj7.fi.fi.plugin.operate; | ||||
| 
 | ||||
| import com.alibaba.fastjson.JSONObject; | ||||
| import kd.bos.dataentity.entity.DynamicObject; | ||||
| import kd.bos.dataentity.entity.DynamicObjectCollection; | ||||
| import kd.bos.entity.ExtendedDataEntity; | ||||
|  | @ -11,15 +10,11 @@ import kd.bos.entity.plugin.args.BeforeOperationArgs; | |||
| import kd.bos.entity.validate.AbstractValidator; | ||||
| import kd.bos.logging.Log; | ||||
| import kd.bos.logging.LogFactory; | ||||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||
| import kd.bos.servicehelper.operation.DeleteServiceHelper; | ||||
| import kd.bos.servicehelper.operation.SaveServiceHelper; | ||||
| import kd.sdk.plugin.Plugin; | ||||
| import kd.tmc.fbp.common.bean.BizBalanceModelBean; | ||||
| import kd.tmc.fbp.common.enums.TmcAppEnum; | ||||
| import kd.tmc.fbp.common.helper.TmcParameterHelper; | ||||
| import kd.tmc.fbp.service.model.BalanceModelService; | ||||
| import shjh.jhzj7.fi.fi.utils.domin.ResponseData; | ||||
| 
 | ||||
| import java.math.BigDecimal; | ||||
| 
 | ||||
|  |  | |||
|  | @ -109,7 +109,7 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl | |||
|     @Override | ||||
|     public void afterExecuteOperationTransaction(AfterOperationArgs e) { | ||||
|         super.afterExecuteOperationTransaction(e); | ||||
| 
 | ||||
|         SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd"); | ||||
|         String operationKey = e.getOperationKey(); | ||||
|         if ("pushsap".equals(operationKey)) { | ||||
|             DynamicObject[] dataEntities = e.getDataEntities(); | ||||
|  | @ -133,7 +133,7 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl | |||
|                 QFilter q1 = new QFilter("sourcebill", QCP.equals, bill.getPkValue()); | ||||
|                 QFilter q2 = new QFilter("billstatus",QCP.equals,"C"); | ||||
|                 DynamicObject gl_voucher = BusinessDataServiceHelper.loadSingle("gl_voucher", | ||||
|                         "id,description,shjh_fjz,sourcebill,entries,entries.account,entries.debitlocal," + | ||||
|                         "id,description,bizdate,bookeddate,shjh_fjz,sourcebill,entries,entries.account,entries.debitlocal," + | ||||
|                                 "entries.creditlocal,entries.entrydc,entries.edescription,vouchertype,entries.assgrp," + | ||||
|                                 "entries.debitori,entries.creditori", new QFilter[]{q1, q2}); | ||||
|                 if (null == gl_voucher) { | ||||
|  | @ -153,6 +153,14 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl | |||
|                 if(!JhzjUtils.isEmpty(gl_voucher.getString("description"))){ | ||||
|                     isHeader.put("BKTXT", gl_voucher.getString("description"));//凭证抬头文本-从金蝶凭证中获取 | ||||
|                 } | ||||
|                 //BUDAT 金蝶凭证记账日期  BLDAT 金蝶凭证业务日期 yxl 20250828 | ||||
|                 if(gl_voucher.getDate("bizdate") != null){ | ||||
|                     isHeader.put("BLDAT", dateformat.format(gl_voucher.getDate("bizdate")));//凭证日期 | ||||
|                 } | ||||
|                 if(gl_voucher.getDate("bookeddate") != null){ | ||||
|                     isHeader.put("BUDAT", dateformat.format(gl_voucher.getDate("bookeddate")));//过账日期 | ||||
|                 } | ||||
| 
 | ||||
|                 //票据信息 | ||||
|                 DynamicObjectCollection casDraftinfos = bill.getDynamicObjectCollection("cas_draftinfo"); | ||||
|                 if (!casDraftinfos.isEmpty()) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue