|
|
|
@ -524,28 +524,28 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
|
count++; |
|
|
|
|
log.info("count++{}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
//发票状态不能认证
|
|
|
|
|
String invoiceStatus="07"; |
|
|
|
|
if ( pageList.get(i).getInvoiceStatus() != null && !invoiceStatus.contains(pageList.get(i).getInvoiceStatus()) |
|
|
|
|
|| pageList.get(i).getInvoiceAmount() != null && pageList.get(i).getInvoiceAmount().compareTo(new BigDecimal(0)) < 0 |
|
|
|
|
|| pageList.get(i).getTaxAmount() != null && pageList.get(i).getTaxAmount().compareTo(new BigDecimal(0)) < 0) { |
|
|
|
|
|
|
|
|
|
currentTax = currentTax.subtract(pageList.get(i).getTaxAmount()); |
|
|
|
|
hjje = hjje.subtract(pageList.get(i).getInvoiceAmount()); |
|
|
|
|
count--; |
|
|
|
|
log.info("count--{}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
// String invoiceStatus="07";
|
|
|
|
|
// if ( pageList.get(i).getInvoiceStatus() != null && !invoiceStatus.contains(pageList.get(i).getInvoiceStatus())
|
|
|
|
|
// || pageList.get(i).getInvoiceAmount() != null && pageList.get(i).getInvoiceAmount().compareTo(new BigDecimal(0)) < 0
|
|
|
|
|
// || pageList.get(i).getTaxAmount() != null && pageList.get(i).getTaxAmount().compareTo(new BigDecimal(0)) < 0) {
|
|
|
|
|
//
|
|
|
|
|
// currentTax = currentTax.subtract(pageList.get(i).getTaxAmount());
|
|
|
|
|
// hjje = hjje.subtract(pageList.get(i).getInvoiceAmount());
|
|
|
|
|
// count--;
|
|
|
|
|
// log.info("count--{}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje);
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
//发票税号一申请抵扣统计
|
|
|
|
|
if (!gfshList1.contains(pageList.get(i).getGfTaxNo())) { |
|
|
|
|
//该发票税号已申请抵扣统计
|
|
|
|
|
log.info("申请统计的购方税号为{}",pageList.get(i).getGfTaxNo()); |
|
|
|
|
currentTax = currentTax.subtract(pageList.get(i).getTaxAmount()); |
|
|
|
|
hjje = hjje.subtract(pageList.get(i).getInvoiceAmount()); |
|
|
|
|
count--; |
|
|
|
|
log.info("已申请抵扣统计 count-- ==={}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
// if (!gfshList1.contains(pageList.get(i).getGfTaxNo())) {
|
|
|
|
|
// //该发票税号已申请抵扣统计
|
|
|
|
|
// log.info("申请统计的购方税号为{}",pageList.get(i).getGfTaxNo());
|
|
|
|
|
// currentTax = currentTax.subtract(pageList.get(i).getTaxAmount());
|
|
|
|
|
// hjje = hjje.subtract(pageList.get(i).getInvoiceAmount());
|
|
|
|
|
// count--;
|
|
|
|
|
// log.info("已申请抵扣统计 count-- ==={}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje);
|
|
|
|
|
//
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
BaseSggxCxRespVO vo = getBaseSggxCxRespVO(pageList.get(i), count, taxnoList, businessList); |
|
|
|
|
|
|
|
|
|
// log.info("智能勾选查询返回对象VO {}",vo);
|
|
|
|
@ -573,30 +573,6 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
|
count++; |
|
|
|
|
log.info("最小排序count++{}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
|
|
|
|
|
//发票状态不能认证
|
|
|
|
|
String invoiceStatus="07"; |
|
|
|
|
if ( collect.get(j).getInvoiceStatus() != null && !invoiceStatus.contains(collect.get(j).getInvoiceStatus()) |
|
|
|
|
|| collect.get(j).getInvoiceAmount() != null && collect.get(j).getInvoiceAmount().compareTo(new BigDecimal(0)) < 0 |
|
|
|
|
|| collect.get(j).getTaxAmount() != null && collect.get(j).getTaxAmount().compareTo(new BigDecimal(0)) < 0) { |
|
|
|
|
|
|
|
|
|
currentTax = currentTax.subtract(collect.get(j).getTaxAmount()); |
|
|
|
|
hjje = hjje.subtract(collect.get(j).getInvoiceAmount()); |
|
|
|
|
count--; |
|
|
|
|
log.info("最小排序count--{}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
//发票税号一申请抵扣统计
|
|
|
|
|
if (!gfshList1.contains(collect.get(j).getGfTaxNo())) { |
|
|
|
|
//该发票税号已申请抵扣统计
|
|
|
|
|
currentTax = currentTax.subtract(collect.get(j).getTaxAmount()); |
|
|
|
|
hjje = hjje.subtract(collect.get(j).getInvoiceAmount()); |
|
|
|
|
count--; |
|
|
|
|
log.info("申请统计的购方税号为{}",collect.get(j).getGfTaxNo()); |
|
|
|
|
log.info("最小排序已申请抵扣统计 count-- ==={}"+count+",currentTax==》"+currentTax+",hjje===>"+hjje); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BaseSggxCxRespVO vo = getBaseSggxCxRespVO(collect.get(j), count, taxnoList, businessList); |
|
|
|
|
log.info("returnList添加vo"); |
|
|
|
|
returnList.add(vo); |
|
|
|
|