Add /quotations rest api

Allow user get current month estimated cost. The output data
structure is the same with /invoices api.

Also remove the unused /costs api and rater module.

Change-Id: I582afa6cf7e5b86cc54db58ead501793e727bfd6
This commit is contained in:
Lingxian Kong
2017-04-28 15:11:35 +12:00
parent a0f8ebf3da
commit 2ff5b1518c
12 changed files with 377 additions and 359 deletions

View File

@@ -3,7 +3,7 @@
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
"default": "rule:admin_or_owner",
"rating:costs:get": "rule:context_is_admin",
"rating:measurements:get": "rule:context_is_admin",
"rating:invoices:get": "rule:context_is_admin",
"rating:quotations:get": "rule:context_is_admin",
}