按规则生单增加资金组织过滤
This commit is contained in:
		
							parent
							
								
									c0efbb15c9
								
							
						
					
					
						commit
						4814dc9afa
					
				|  | @ -120,6 +120,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme | |||
|                          * 1)有就携带至收款单上2)系统中没有这个客户(1.如果开了取映射表按钮,就去映射表中找,找到即携带2.如果没开/没找到就取不明确客户)修改付款人类型改为客户 | ||||
|                          */ | ||||
|                         String oppunit = beiIntelpay.getString("oppunit");//收款入账中心的对方户名 | ||||
|                         Long companyId = beiIntelpay.getLong("company.id");//收款入账中心的资金组织id | ||||
|                         bill.set("shjh_dfhm", oppunit);//收款单备注字段 | ||||
|                         bill.set("payertype", "bd_customer");//付款人类型:客户 | ||||
|                         // 2025/6/18 优化: 先根据规则指定的付款人赋值 | ||||
|  | @ -136,6 +137,8 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme | |||
|                                 boolean shjhEGetcustomer = entry.getBoolean("shjh_e_getcustomer"); //取规则得映射表客户标记 | ||||
|                                 if (shjhEGetcustomer) { | ||||
|                                     QFilter qFilter = new QFilter("shjh_dfhm", QCP.equals, oppunit); | ||||
|                                     //新增收款入账中心-资金组织&&映射表组织过滤 | ||||
|                                     qFilter.and(new QFilter("shjh_org.id",QCP.equals,companyId)); | ||||
|                                     //对方户名与客户名称映射表 shjh_dfhmcust | ||||
|                                     DynamicObject shjhDfhmcust = BusinessDataServiceHelper.loadSingle("shjh_dfhmcust", qFilter.toArray()); | ||||
|                                     if (null != shjhDfhmcust) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue