History
As a user I need to change the state of some documents. I expect that some documents might have the two states:
- draft: all new documents are creating with this state
- accepted: documents could be accepted, it influences on future possibility and behaviour
- declined: documents declined, it influences on future possibility and behaviour
This functionality is provided for the following documents:
- material requirement
- work plan
- cost calculation
- production counting
Action & flow
Logging
Each state changing should be logged with informations who and when the action executedIssue: http://issues.qcadoo.org/browse/QCADOOMES-430
Action & flow
- After entering the initial data the document is in draft state
- In the draft state we should be able do download a preview PDF
- In the draft state we can click the "Generate and download PDF" button. This generates the report and downloads the PDF in one action.
- After the generation we can Accept or Decline the document.
Notes
- as you can see from the diagram we removed the Generate button and Download PDF; it should be combined in one 'Generate and download PDF'
- every document should have 4 non-editable fields:
- Generated by
- Generation date
- Accepted/Declined by
- Acceptation/Declination date
- Generated reports cannot be edited