|
@@ -38,6 +38,7 @@ public class VoucherAdd {
|
|
|
|
|
|
Map<String,Object> jsonBodyMap = new HashMap<>();
|
|
|
Map<String,Object> voucher = new HashMap<>();
|
|
|
+ String sqr = map.get("申请人").toString();
|
|
|
|
|
|
voucher.put("voucher_type","记");
|
|
|
|
|
@@ -111,7 +112,7 @@ public class VoucherAdd {
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
|
|
|
|
|
|
- entryDebitMap.put("abstract",map.get("abstract"));
|
|
|
+ entryDebitMap.put("abstract",sqr+"/"+map.get("abstract"));
|
|
|
|
|
|
|
|
|
|
|
@@ -166,6 +167,7 @@ public class VoucherAdd {
|
|
|
List<Map<String,Object>> entryDebit = new ArrayList<>();
|
|
|
|
|
|
String bm = map.get("申请人所属部门").toString();
|
|
|
+ String sqr = map.get("申请人").toString();
|
|
|
|
|
|
if(map.get("其他报销科目") != null){
|
|
|
JSONArray jsonArray = JSONArray.fromObject(map.get("其他报销科目").toString());
|
|
@@ -183,7 +185,7 @@ public class VoucherAdd {
|
|
|
account_code = getCode(bm,bxKm);
|
|
|
}
|
|
|
|
|
|
- String mingC = bxKm;
|
|
|
+ String mingC = "-";
|
|
|
if(object.get("名称") != null){
|
|
|
mingC = object.get("名称").toString();
|
|
|
}
|
|
@@ -203,7 +205,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",mingC+"/税额");
|
|
|
+ entryDebitMap.put("abstract",sqr+"/其他报销/"+bxKm+"/"+mingC+"/税额");
|
|
|
|
|
|
String seCode = getCodeSE(bxKm);
|
|
|
entryDebitMap.put("account_code",seCode);
|
|
@@ -236,7 +238,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",mingC);
|
|
|
+ entryDebitMap.put("abstract",sqr+"/其他报销/"+bxKm+"/"+mingC);
|
|
|
|
|
|
entryDebitMap.put("account_code",account_code);
|
|
|
entryDebitMap.put("natural_debit_currency",jinE.multiply(sl));
|
|
@@ -264,7 +266,7 @@ public class VoucherAdd {
|
|
|
account_code = getCode(bm,bxKm);
|
|
|
}
|
|
|
|
|
|
- String mingC = bxKm;
|
|
|
+ String mingC = "-";
|
|
|
if(object.get("名称") != null){
|
|
|
mingC = object.get("名称").toString();
|
|
|
}
|
|
@@ -284,7 +286,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",mingC+"/税额");
|
|
|
+ entryDebitMap.put("abstract",sqr+"/差旅报销/"+bxKm+"/"+mingC+"/税额");
|
|
|
|
|
|
String seCode = getCodeSE(bxKm);
|
|
|
entryDebitMap.put("account_code",seCode);
|
|
@@ -308,7 +310,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",mingC+"/税额");
|
|
|
+ entryDebitMap.put("abstract",sqr+"/差旅报销/"+bxKm+"/"+mingC+"/税额");
|
|
|
String seCode = getCodeSE(bxKm);
|
|
|
entryDebitMap.put("account_code",seCode);
|
|
|
|
|
@@ -334,7 +336,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",mingC);
|
|
|
+ entryDebitMap.put("abstract",sqr+"/差旅报销/"+bxKm+"/"+mingC);
|
|
|
|
|
|
entryDebitMap.put("account_code",account_code);
|
|
|
entryDebitMap.put("natural_debit_currency",jinE.multiply(sl));
|
|
@@ -375,7 +377,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",bxKm+"/税额");
|
|
|
+ entryDebitMap.put("abstract",sqr+"/私车公用/"+bxKm+"/税额");
|
|
|
|
|
|
String seCode = getCodeSE(bxKm);
|
|
|
entryDebitMap.put("account_code",seCode);
|
|
@@ -399,7 +401,7 @@ public class VoucherAdd {
|
|
|
auxiliaryDebit.put("item_id","YFYYYY00001-99");
|
|
|
}
|
|
|
entryDebitMap.put("auxiliary",auxiliaryDebit);
|
|
|
- entryDebitMap.put("abstract",bxKm);
|
|
|
+ entryDebitMap.put("abstract",sqr+"/私车公用/"+bxKm);
|
|
|
|
|
|
entryDebitMap.put("account_code",account_code);
|
|
|
entryDebitMap.put("natural_debit_currency",jinE.multiply(sl));
|
|
@@ -741,10 +743,10 @@ public class VoucherAdd {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- BigDecimal se = new BigDecimal("0.0");
|
|
|
- if(se.compareTo(new BigDecimal("0")) == 0){
|
|
|
- System.out.println(getCode("营销设计中心-销售部","邮寄/物流"));
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+ System.out.println(getCode("营销设计中心-项目部","油费"));
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|