优化销售发票接口返回信息及换算率处理
This commit is contained in:
parent
7a4aef3ff1
commit
4e6619bb3d
|
@ -145,7 +145,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
|||
// 发票的全部信息都返回给合同平台
|
||||
desc.put("vos", saleInvoiceVO);
|
||||
}
|
||||
return ResultMessageUtil.toJSON(desc, "0");
|
||||
return ResultMessageUtil.toJSON(desc, "操作成功");
|
||||
} catch (Exception e) {
|
||||
return ResultMessageUtil.exceptionToJSON(e);
|
||||
}
|
||||
|
@ -246,6 +246,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
|||
itemDetails.put("pk_group", "00");// 集团
|
||||
itemDetails.put("pk_org", originalJson.getJSONObject("billhead").getString("pk_org"));// 开票组织
|
||||
itemDetails.put("cunitid", item.getString("castunitid"));// 主单位
|
||||
itemDetails.put("vchangerate", value2.getOrDefault("vchangerate", "1/1"));// 换算率
|
||||
|
||||
// double nastnum = Double.parseDouble(item.getString("nastnum"));//数量
|
||||
// double nqtorigtaxprice = Double.parseDouble(item.getString("nqtorigtaxprice"));//含税单价
|
||||
|
@ -392,7 +393,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
|||
private static Map<String, Object> getSaleorderVo(String csourcebillbidStr) throws BusinessException {
|
||||
IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
||||
String sql = " select s.vbillcode,s.csaleorderid, s.corigcurrencyid," +
|
||||
" sb.csaleorderbid,sb.crowno,sb.blargessflag,sb.nexchangerate," +
|
||||
" sb.csaleorderbid,sb.crowno,sb.blargessflag,sb.nexchangerate,sb.vchangerate" +
|
||||
" bdc.code currencycode" +
|
||||
" from so_saleorder_b sb" +
|
||||
" inner join so_saleorder s on sb.csaleorderid=s.csaleorderid" +
|
||||
|
|
Loading…
Reference in New Issue