invoice payment terms: fix bug
invoice payment terms: fix bug: a task in smol-software-harbor (Harbor dataset). Invoices issued in December with end-of-month terms ( eom N ) crash with ArgumentError: invalid date ( test eom fails). Fix the end-of-month computation in lib/terms.rb . Run for f in test/ test.rb; do ruby -Ilib "$f"…
The task
Invoices issued in December with end-of-month terms (`eom N`) crash with `ArgumentError: invalid date` (`test_eom` fails). Fix the end-of-month computation in `lib/terms.rb`. Run `for f in test/*_test.rb; do ruby -Ilib "$f" || exit 1; done`.
Part of efederici/smol-software-harbor.