Skip to content

Commit

Permalink
include end date when cal for date range
Browse files Browse the repository at this point in the history
  • Loading branch information
md-arif-shaikh committed Apr 21, 2023
1 parent 3b900e9 commit 00ba02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion expenses.el
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,10 @@ Optional argument USER for user name."
(current date-from)
(total 0)
(total-string ""))
(when (get-buffer buffer-name)
(kill-buffer buffer-name))
(with-current-buffer (generate-new-buffer buffer-name)
(while (string< current date-to)
(while (or (string< current date-to) (string-equal current date-to))
(let ((amount (expenses--get-expense-for-day current user)))
(when amount
(insert (format "%s = %10s\n" (propertize current 'face 'expenses-face-date) amount))
Expand Down

0 comments on commit 00ba02d

Please sign in to comment.