Improve the paid amount calculation logic, to subtract the refund invoice amount, not adding