固定资产接口0.2
This commit is contained in:
parent
ae0c658e08
commit
4647ad692a
|
@ -51,7 +51,14 @@ public class SaveFaAssetCardApiSavePlugin implements ApiSavePlugin {
|
|||
// 资产数量
|
||||
Integer assetamount = (Integer) temp1.get("assetamount");
|
||||
// 财务分录
|
||||
finentry = ((List<Map<String, Object>>)temp1.get("finentry")).get(0);
|
||||
finentryList = (List<Map<String, Object>>) temp1.get("finentry");
|
||||
if(finentryList == null){
|
||||
finentry = new HashMap<String, Object>();
|
||||
finentry.put("fin_originalval", temp1.get("price"));
|
||||
} else {
|
||||
finentry = finentryList.get(0);
|
||||
}
|
||||
|
||||
finentry.put("seq", 1); // seq
|
||||
// 财务分录.预计寿命 默认1
|
||||
finentry.put("fin_preusingamount", BigDecimal.ONE);
|
||||
|
@ -82,6 +89,7 @@ public class SaveFaAssetCardApiSavePlugin implements ApiSavePlugin {
|
|||
temp2.put("finentry", finentryList);
|
||||
// 资产数量. 默认1(接口因为需求定义为int,系统默认BigDecimal类型,否则按String类型处理)
|
||||
temp2.put("assetamount", 1);
|
||||
temp2.remove("price");
|
||||
reqData2.add(temp2);
|
||||
originalval3 = originalval3.add(originalval2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue