fix amount due = after discount - paid bug