付款申请拉取SAP界面列表调整。
缺失:供应商名称(文字) 银行名称(文字) 科目名称 付款条件代码 参照发票号 原因码名称(文字) --s
This commit is contained in:
		
							parent
							
								
									b857381c84
								
							
						
					
					
						commit
						dc40897283
					
				|  | @ -315,8 +315,27 @@ public class SappzFormPlugin extends AbstractFormPlugin { | |||
|                                 if (null != vouchertype) { | ||||
|                                     this.getModel().setValue("shjh_pztype", vouchertype, i);//凭证类型 | ||||
|                                 } | ||||
| 
 | ||||
| 
 | ||||
|                                 //供应商/客户名称 | ||||
|                                 String vname = it_list.getString("VNAME"); | ||||
|                                 if (vname == null || vname.isEmpty()) { | ||||
|                                     vname = it_list.getString("CNAME"); | ||||
|                                 } | ||||
|                                 this.getModel().setValue("shjh_suppliername", vname, i); | ||||
|                                 //银行名称 | ||||
|                                 String banka = it_list.getString("BANKA"); | ||||
|                                 this.getModel().setValue("shjh_yhname", banka, i); | ||||
|                                 //科目名称 | ||||
|                                 String txt50 = it_list.getString("TXT50"); | ||||
|                                 this.getModel().setValue("shjh_kmname", txt50, i); | ||||
|                                 //付款条件代码 | ||||
|                                 String zterm = it_list.getString("ZTERM"); | ||||
|                                 this.getModel().setValue("shjh_fktjdm", zterm, i); | ||||
|                                 //参考凭证号 | ||||
|                                 String xblnr = it_list.getString("XBLNR"); | ||||
|                                 this.getModel().setValue("shjh_czfph", xblnr, i); | ||||
|                                 //原因码名称 | ||||
|                                 String txt20 = it_list.getString("TXT20"); | ||||
|                                 this.getModel().setValue("shjh_yymname", txt20, i); | ||||
|                             } | ||||
|                             this.getView().updateView("shjh_entryentity"); | ||||
|                         } | ||||
|  | @ -797,14 +816,13 @@ public class SappzFormPlugin extends AbstractFormPlugin { | |||
|                         if (null != basedate) { | ||||
|                             ap_payapply.set("shjh_basedate", basedate); | ||||
|                         } | ||||
|                         //付款条件 | ||||
|                         String paymentterms = (String) this.getModel().getValue("shjh_paymentterms", selectRow); | ||||
|                         //付款条件代码 | ||||
|                         String paymentterms = (String) this.getModel().getValue("shjh_fktjdm", selectRow); | ||||
|                         ap_payapply.set("shjh_fktj", paymentterms); | ||||
|                         //参照发票号 | ||||
|                         String refertoinvoicenumber = (String) this.getModel().getValue("shjh_refertoinvoicenumber", selectRow); | ||||
|                         String refertoinvoicenumber = (String) this.getModel().getValue("shjh_czfph", selectRow); | ||||
|                         ap_payapply.set("shjh_czfph", refertoinvoicenumber); | ||||
| 
 | ||||
| 
 | ||||
| //                        ap_payapply.set("shjh_sapwhetherlocking",true); | ||||
| 
 | ||||
|                         //来源系统 | ||||
|  |  | |||
|  | @ -159,6 +159,8 @@ public class QuerySapCreatePayApplyTask extends AbstractTask { | |||
|             String procurementeam = it_list.getString("EKGRP");//采购组 | ||||
|             String isselfprocurment = it_list.getString("ZZXCG_FLAG");//是否自行采购 | ||||
|             String waers = it_list.getString("WAERS");//付款币别编号CNY,货币码 && 结算币别编号,货币码 | ||||
|             String paymentterms = it_list.getString("ZTERM");// 付款条件_付款条件代码 | ||||
|             String refertoinvoicenumber = it_list.getString("XBLNR");// 参照发票号 | ||||
| 
 | ||||
|             // 公司编号 bukrs | ||||
|             QFilter Q1 = new QFilter("number", QCP.equals, bukrs); | ||||
|  | @ -492,9 +494,9 @@ public class QuerySapCreatePayApplyTask extends AbstractTask { | |||
|             //基准日期 | ||||
|             ap_payapply.set("shjh_basedate", ZFBDTs); | ||||
|             //付款条件 | ||||
|             ap_payapply.set("shjh_fktj", ""); | ||||
|             ap_payapply.set("shjh_fktj", paymentterms); | ||||
|             //参照发票号 | ||||
|             ap_payapply.set("shjh_czfph", ""); | ||||
|             ap_payapply.set("shjh_czfph", refertoinvoicenumber); | ||||
|             //来源系统 | ||||
|             ap_payapply.set("shjh_sourcesystem", "A");//SAP | ||||
|             //到期日 | ||||
|  |  | |||
|  | @ -477,7 +477,7 @@ public class ApplyAdjustBillControler { | |||
|         String vouchernum = it_list.getString("BELNR");//外部系统编号_会计凭证编号 | ||||
|         String vouchertype = it_list.getString("BLART");// 凭证类型_凭证类型 | ||||
|         String paymentterms = it_list.getString("ZTERM");// 付款条件_付款条件代码 | ||||
|         String refertoinvoicenumber = "";// TODO:参照发票号 | ||||
|         String refertoinvoicenumber = it_list.getString("XBLNR");// 参照发票号 | ||||
| 
 | ||||
| 
 | ||||
|         // 防重校验 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue