parent
							
								
									a4ab06b57d
								
							
						
					
					
						commit
						2ea5f0077d
					
				|  | @ -240,6 +240,7 @@ public class SappzFormPlugin extends AbstractFormPlugin { | |||
| 
 | ||||
|                                 String uuid = it_list.getString("XBLNR"); | ||||
|                                 this.getModel().setValue("shjh_uuid", uuid, i);//单据号 | ||||
|                                 this.getModel().setValue("shjh_bktxt", it_list.getString("BKTXT"), i);//凭证抬头文本 | ||||
|                                 /** | ||||
|                                  * 员工借款单	A | ||||
|                                  * 通用报销单	B | ||||
|  | @ -701,6 +702,9 @@ public class SappzFormPlugin extends AbstractFormPlugin { | |||
|                         //凭证类型 | ||||
|                         DynamicObject shjh_pztype = (DynamicObject) this.getModel().getValue("shjh_pztype", selectRow); | ||||
|                         ap_payapply.set("shjh_documenttype", shjh_pztype); | ||||
|                         //凭证抬头文本 | ||||
|                         String shjh_bktxt = (String) this.getModel().getValue("shjh_bktxt", selectRow); | ||||
|                         ap_payapply.set("shjh_voucherheadertext", shjh_bktxt); | ||||
|                         //SAP凭证来源 | ||||
|                         //单据号 | ||||
|                         String uuid = (String) this.getModel().getValue("shjh_uuid", selectRow); | ||||
|  |  | |||
|  | @ -0,0 +1,15 @@ | |||
| package shjh.jhzj7.fi.fi.plugin.form; | ||||
| 
 | ||||
| import kd.bos.form.events.AfterDoOperationEventArgs; | ||||
| import kd.bos.form.plugin.AbstractFormPlugin; | ||||
| 
 | ||||
| public class VoucherFormPlugin extends AbstractFormPlugin { | ||||
| 
 | ||||
|     @Override | ||||
|     public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) { | ||||
|         super.afterDoOperation(afterDoOperationEventArgs); | ||||
|         if (afterDoOperationEventArgs.getOperateKey().equals("voucheruncheck")) { | ||||
|             this.getView().invokeOperation("refresh"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | @ -351,6 +351,10 @@ public class QuerySapCreatePayApplyTask extends AbstractTask { | |||
|             //表头申请金额 | ||||
|             ap_payapply.set("applyamount", amount); | ||||
| 
 | ||||
|             //凭证抬头文本 | ||||
|             String shjh_bktxt = it_list.getString("BKTXT"); | ||||
|             ap_payapply.set("shjh_voucherheadertext", shjh_bktxt); | ||||
| 
 | ||||
|             //付款类型:取值范围:对公付款、对私付款;SAP:科目编号1221020200 对私付款。费控:劳务人员报销单 对私付款。其他均赋值为对公付款。 | ||||
|             if ("1221020200".equals(accountingsubject)) { | ||||
|                 QFilter Q9 = new QFilter("name", QCP.equals, "对私付款"); | ||||
|  |  | |||
|  | @ -551,7 +551,9 @@ public class ApplyAdjustBillControler { | |||
|         } | ||||
|         String uuid = it_list.getString("XBLNR");//单据号 | ||||
|         ap_payapply.set("shjh_fkdjbh", uuid); | ||||
| 
 | ||||
|         //凭证抬头文本 | ||||
|         String shjh_bktxt = it_list.getString("BKTXT"); | ||||
|         ap_payapply.set("shjh_voucherheadertext", shjh_bktxt); | ||||
|         //部门 | ||||
|         String department = it_list.getString("ZREQ_DEPT"); | ||||
|         QFilter q8 = new QFilter("number", QCP.equals, department); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue