Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

v0.7.0

Compare
Choose a tag to compare
@arsley arsley released this 04 Apr 05:32
· 6 commits to master since this release
333ab79

Feature

🎉 invoice command to create invoice

... with updating default config of wtconf.json.

This command will do these things:

  • create invoice from template that you set in wtconf.json
  • replace magic variables by referenceing your working

Here is magic variables you can use in template :

  • ##COMPANY## : company you want to send invoice
  • ##WORKTIME## : all working time on current term (H, e.g. 48)
  • ##ACTUALWORKTIME## : all working time on current term (H:M, e.g. 48:32)
  • ##SALARYPERHOUR## : salary per hour
  • ##SALARY## : salary (worktime × salary)
  • ##TAXRATE## : tax rate
  • ##TAX## : tax (salary × tax rate)
  • ##SALARYWITHTAX## : salary with tax (salary + tax)
  • ##WORKTABLE## : working table (see below)
# worktable example

    \hline
    日付 & 曜日 & 内容 & 出勤 & 退勤 & 休憩 & 労働時間 \\ \hline\hline
    12月31日 & 日 & comment & 10:00 & 19:00 & 1:00 & 8:00 \\ \hline
    12月31日 & 日 & comment & 10:00 & 19:00 & 1:00 & 8:00 \\ \hline
...