| | |
| | | import com.ruoyi.project.system.mapper.SysUserMapper; |
| | | import com.ruoyi.purchase.dto.InvoicePurchaseDto; |
| | | import com.ruoyi.purchase.dto.InvoicePurchaseReportDto; |
| | | import com.ruoyi.purchase.dto.VatDto; |
| | | import com.ruoyi.purchase.mapper.InvoicePurchaseMapper; |
| | | import com.ruoyi.purchase.mapper.PurchaseLedgerMapper; |
| | | import com.ruoyi.purchase.pojo.InvoicePurchase; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<InvoicePurchase> listVat(Page page, InvoicePurchase invoicePurchase) { |
| | | invoicePurchaseMapper.listVat(page, invoicePurchase); |
| | | return null; |
| | | public IPage<VatDto> listVat(Page page, String month) { |
| | | IPage<VatDto> vatDtos = invoicePurchaseMapper.listVat(page,month); |
| | | vatDtos.getRecords().forEach(vatDto -> { |
| | | vatDto.setTaxAmount(vatDto.getJTaxAmount().subtract(vatDto.getXTaxAmount())); |
| | | }); |
| | | return vatDtos; |
| | | } |
| | | } |