summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2017-03-21 09:55:04 +0100
committerJérome Maes <jem@openerp.com>2017-05-04 16:15:42 +0200
commit227f8ab116186f93967840274086b78ac67697f8 (patch)
treefb872feba590e7ba9d71521d3b48d83d9f44ba2f /addons/web/static/src/js/views/basic/basic_model.js
parent12866bd6145d45b0bf726a7387327deed02613c1 (diff)
[IMP] sale_timesheet: introduce timesheet revenue
This commit introduces the concept of timesheet revenue, aka how much the timesheet bring back money. If the timesheet is not invoiced yet, the computed revenue is theorical, based on the billable type (if your product is Time and Material, or Fixed Price). The formulae use at the timesheet line creation is If product on delivered quantity: timesheet hours * (SO Line Price) * (1- discount), elif product on ordered quantities & create task: min ( timesheet hours * (SO Line unit price) * (1- discount), TOTAL SO - TOTAL INVOICED - sum(timesheet revenues with invoice_id=False) ) else: (non billable case) 0 When the timesheet is invoiced, the revenue is recomputed based on the prorata of the invoice amount : prorata of number of hours for 'time and material' product, prorata of the theorical revenue for 'fixed price' product. The timesheet revenue is expressed in the currency of the company (Monetary field, based on the company_currency_id field of account.analytic.line) to ease reporting. This feature normally can handle multi currency (different currency from SO, INV, and analytic account).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions