蓝字销售发票保存接口-计税金额调整
This commit is contained in:
		
							parent
							
								
									399bc55d04
								
							
						
					
					
						commit
						077fca594d
					
				|  | @ -337,7 +337,7 @@ public class IAPISaleInvMaitainImpl { | |||
|                 otherJson.put("nexchangerate", nexchangerate); | ||||
| 
 | ||||
|                 // 输入参数:从你的 item 获取各个字段 | ||||
|                 BigDecimal nastnum = new BigDecimal(item.getString("nnum")); // 数量 | ||||
|                 /*BigDecimal nastnum = new BigDecimal(item.getString("nnum")); // 数量 | ||||
|                 nastnum = nastnum.setScale(4, RoundingMode.HALF_UP); | ||||
|                 BigDecimal nqtorigtaxprice = new BigDecimal(item.getString("nqtorigtaxprice")); // 含税单价 | ||||
|                 nqtorigtaxprice = nqtorigtaxprice.setScale(4, RoundingMode.HALF_UP); | ||||
|  | @ -374,7 +374,7 @@ public class IAPISaleInvMaitainImpl { | |||
|                 // 本币价税合计 价税合计*汇率 | ||||
|                 BigDecimal ntaxmny = norigtaxmny.multiply(nexchangerate).setScale(2, RoundingMode.HALF_UP); | ||||
|                 // 税额 | ||||
|                 ntax = ntaxmny.subtract(nmny).setScale(2, RoundingMode.HALF_UP); | ||||
|                 ntax = ntaxmny.subtract(nmny).setScale(2, RoundingMode.HALF_UP);*/ | ||||
| 
 | ||||
|                 UFDouble nnum = new UFDouble(item.getString("nnum"));// 主数量 | ||||
| 
 | ||||
|  | @ -388,7 +388,7 @@ public class IAPISaleInvMaitainImpl { | |||
|                 // itemDetails.put("norignetprice", norignetprice);// 主无税净价 | ||||
|                 // itemDetails.put("nqtorigtaxprice", nqtorigtaxprice);// 含税单价 | ||||
|                 // itemDetails.put("ntax", ntax);// 税额 | ||||
|                 // itemDetails.put("ncaltaxmny", ncaltaxmny);// 计税金额 | ||||
|                 itemDetails.put("ncaltaxmny", new UFDouble(item.getString("nmny")));// 计税金额 | ||||
|                 // itemDetails.put("norigtaxnetprice", norigtaxnetprice);// 主含税净价 | ||||
|                 // itemDetails.put("nnetprice", nnetprice);// 主本币无税净价 | ||||
|                 // itemDetails.put("ntaxmny", ntaxmny);// 本币价税合计 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue