--
-- cashsmaller/2
--
create or replace function cashsmaller(
  money,
  money
) returns money as $$
cashsmaller$$ language plpgsql;