invoice_new takes debit_new which is converted into product (program handles the conversion this way better than product=> debit). Fix Date.current.day broke at midnight - Time.now worked so switching over.