发票拼接def4移动到BIP接口表头
This commit is contained in:
parent
64ac6380f7
commit
11da2eb59b
|
@ -420,7 +420,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
//items.put("taxcodeid","");//税码编码 应该不用传;联调再看;
|
||||
if(isnotext){
|
||||
//费用登记单的处理方式
|
||||
this.setExpenseRegTaxFields(payrequestinfo,items,eventName);
|
||||
this.setExpenseRegTaxFields(payrequestinfo,items,eventName,payData);
|
||||
// BigDecimal rate = payrequestinfo.getBigDecimal("taxrate");//税率
|
||||
// if(rate == null){
|
||||
// items.put("taxrate","0");//税率
|
||||
|
@ -439,7 +439,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
// }
|
||||
}else{
|
||||
//付款申请单的处理方式
|
||||
this.setPayApplyTaxFields(payrequestinfo,items,eventName,bcsqje);
|
||||
this.setPayApplyTaxFields(payrequestinfo,items,eventName,bcsqje,payData);
|
||||
// BigDecimal invoicetax = payrequestinfo.getBigDecimal("invoicetax");//发票的税额
|
||||
// if(invoicetax == null || invoicetax.compareTo(BigDecimal.ZERO) == 0){
|
||||
// items.put("taxrate","0");//税率
|
||||
|
@ -645,7 +645,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
* @param payRequestInfo 费用登记||费用申请 数据
|
||||
* @param items json
|
||||
*/
|
||||
private void setExpenseRegTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName){
|
||||
private void setExpenseRegTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,JSONObject payData){
|
||||
//发票分录
|
||||
DynamicObjectCollection invoiceEntry = payRequestInfo.getDynamicObjectCollection("invoiceentry");
|
||||
//无发票
|
||||
|
@ -777,7 +777,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
if (def4Value.length() > 200) {
|
||||
def4Value = def4Value.substring(0, 200);
|
||||
}
|
||||
items.put("def4", def4Value);
|
||||
payData.put("def4", def4Value);
|
||||
}
|
||||
|
||||
if("unaudit".equals(eventName)){
|
||||
|
@ -794,7 +794,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
* @param payRequestInfo 费用登记||费用申请 数据
|
||||
* @param items json
|
||||
*/
|
||||
private void setPayApplyTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,BigDecimal bcsqje){
|
||||
private void setPayApplyTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,BigDecimal bcsqje,JSONObject payData){
|
||||
//发票分录
|
||||
DynamicObjectCollection invoiceEntry = payRequestInfo.getDynamicObjectCollection("invoiceentry");
|
||||
//无发票
|
||||
|
@ -930,7 +930,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
if (def4Value.length() > 200) {
|
||||
def4Value = def4Value.substring(0, 200);
|
||||
}
|
||||
items.put("def4", def4Value);
|
||||
payData.put("def4", def4Value);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue