|
@@ -37,8 +37,9 @@ public class VoucherAdd {
|
|
|
// voucher.put("fiscal_year","2021");//凭证所属的会计年度,不填写取当前年
|
|
|
// voucher.put("accounting_period","1");//所属的会计期间,不填写取当前月份
|
|
|
voucher.put("date", DateUtils.format(new Date()));//制单日期
|
|
|
- voucher.put("enter","DingDing_"+map.get("申请人"));//制单人名称
|
|
|
- voucher.put("cashier",map.get("出纳"));//出纳名称
|
|
|
+// voucher.put("enter","DingDing_"+map.get("申请人"));//制单人名称
|
|
|
+ voucher.put("enter","autoDingDing");//制单人名称
|
|
|
+// voucher.put("cashier",map.get("出纳"));//出纳名称
|
|
|
|
|
|
Map<String,Object> credit = new HashMap<>(); //voucher > credit
|
|
|
List<Map<String,Object>> entryCredit = new ArrayList<>(); //voucher > credit > entryCredit
|
|
@@ -56,10 +57,10 @@ public class VoucherAdd {
|
|
|
// entryCreditMap.put("document_date","2021-09-18");
|
|
|
// entryCreditMap.put("document_id","321654");
|
|
|
// entryCreditMap.put("exchange_rate2","0");
|
|
|
- entryCreditMap.put("abstract",map.get("事由"));
|
|
|
+ entryCreditMap.put("abstract",map.get("abstract"));
|
|
|
entryCreditMap.put("account_code","1001");
|
|
|
// entryCreditMap.put("entry_id","0");//
|
|
|
- entryCreditMap.put("natural_credit_currency",map.get("申请金额(元)"));//本币贷方发生额*与本币借方发生额不能同时为空
|
|
|
+ entryCreditMap.put("natural_credit_currency",map.get("naturalCurrency"));//本币贷方发生额*与本币借方发生额不能同时为空
|
|
|
// entryCreditMap.put("primary_credit_amount","0");//
|
|
|
entryCredit.add(entryCreditMap);
|
|
|
credit.put("entry",entryCredit);
|
|
@@ -78,14 +79,14 @@ public class VoucherAdd {
|
|
|
//
|
|
|
// entryDebitMap.put("auxiliary",new HashMap<String,Object>());
|
|
|
// entryDebitMap.put("settlement","8");
|
|
|
- entryDebitMap.put("abstract",map.get("事由"));
|
|
|
+ entryDebitMap.put("abstract",map.get("abstract"));
|
|
|
// entryDebitMap.put("debit_quantity","0");
|
|
|
// entryDebitMap.put("document_date","2021-09-18");
|
|
|
// entryDebitMap.put("document_id","123456");
|
|
|
// entryDebitMap.put("exchange_rate2","0");
|
|
|
entryDebitMap.put("account_code","1001");
|
|
|
//
|
|
|
- entryDebitMap.put("natural_debit_currency",map.get("申请金额(元)"));//本币贷方发生额*与本币借方发生额不能同时为空
|
|
|
+ entryDebitMap.put("natural_debit_currency",map.get("naturalCurrency"));//本币贷方发生额*与本币借方发生额不能同时为空
|
|
|
// entryDebitMap.put("primary_debit_amount","0");//
|
|
|
// entryDebitMap.put("entry_id","0");//
|
|
|
entryDebit.add(entryDebitMap);
|