|
|
|
@ -307,7 +307,7 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { |
|
|
|
|
detail.setTaxRate(detail.getTaxRateOfSap().multiply(new BigDecimal(100)).setScale(4,BigDecimal.ROUND_HALF_UP).stripTrailingZeros().toPlainString()); |
|
|
|
|
log.info("明细行数据:{}",JSONObject.toJSONString(detail)); |
|
|
|
|
BigDecimal totalAmount = new BigDecimal(detail.getDetailAmount()).add(new BigDecimal(detail.getTaxAmount())); |
|
|
|
|
zDatas.add(ZData.builder() |
|
|
|
|
ZData datas = ZData.builder() |
|
|
|
|
.ZBHSJE(detail.getDetailAmount()) |
|
|
|
|
.ZBHSJE_DIF("0") |
|
|
|
|
.ZBHSJE_Y(detail.getDetailAmount()) |
|
|
|
@ -329,7 +329,13 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { |
|
|
|
|
.ZHWMC(detail.getGoodsName()) |
|
|
|
|
.ZTID(zdata.getZTID()) |
|
|
|
|
.ZSM(TaxRateCodeEnum.getCode(detail.getTaxRate())) |
|
|
|
|
.build()); |
|
|
|
|
.build(); |
|
|
|
|
if (SNFplxEnum.QDPP.getFplxDm().equals(item.getInvoiceType()) || SNFplxEnum.QDZP.getFplxDm().equals(item.getInvoiceType())) { |
|
|
|
|
datas.setZFPDM(""); |
|
|
|
|
datas.setZFPHM(item.getEleInvoiceNo()); |
|
|
|
|
} |
|
|
|
|
zDatas.add(datas); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
String taxRate = ""; |
|
|
|
|
if (item.getDetailList().size() > 0) { |
|
|
|
|