Add role_invoices
This new role allows users to create invoices without role_finance. Users can then only modify their own created invoices until somebody with the role_finance sets the paid_on value.
This commit is contained in:
parent
273969ac90
commit
1315103a7d
20 changed files with 73 additions and 20 deletions
|
|
@ -15,7 +15,8 @@
|
|||
= f.association :supplier, hint: false
|
||||
= f.input :number
|
||||
= f.input :date, as: :date_picker
|
||||
= f.input :paid_on, as: :date_picker
|
||||
- if current_user.role_finance?
|
||||
= f.input :paid_on, as: :date_picker
|
||||
= f.input :amount, as: :string
|
||||
= f.input :deposit, as: :string
|
||||
= f.input :deposit_credit, as: :string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue