Paul van Tilburg
60e1889072
Fix missing root prefix calls for views
...
Because we override mab_done in StopTime::Mab, we override the functionality
in Camping::Mab that applies 'self /' on :href, :src and :action attributes
of tags. Thus, all kinds of links don't get a root/mount prefix.
2013-06-23 22:30:05 +02:00
167c8d1b99
Also order unbilled tasks descending by date in the time_entries view
2013-06-22 12:58:23 +02:00
Paul van Tilburg
abc35b774d
Show unbilled items in timeline by default; add dropdown
...
This reduces the need for pagination in the timeline (refs: #a9faa0).
2013-06-20 23:07:24 +02:00
Paul van Tilburg
2278b41d97
Redirect back to referer after creating/updating time entries (closes: #f08f36)
2013-06-20 22:39:00 +02:00
Paul van Tilburg
b6d3c628a1
Change default VAT rate to 21% (still overridable in the config)
2013-06-20 22:12:39 +02:00
Paul van Tilburg
c982ba5925
Move task information link from date to comment in the time_entries view
2013-06-20 22:08:01 +02:00
Paul van Tilburg
7a7a4471e1
Also bill new entries by default in the task_form view
2013-06-20 22:07:20 +02:00
Paul van Tilburg
07b655c8db
Set default content type to include charset=utf-8
2013-06-20 22:06:52 +02:00
Paul van Tilburg
6634eeae55
Change view headers; add useful contextual information
2013-06-20 22:06:28 +02:00
Paul van Tilburg
2dca39e38d
Move container divs to the a single container div in the layout view
2013-06-20 21:15:52 +02:00
Paul van Tilburg
b19a0dfee3
Enable responsive Bootstrap CSS
2013-06-20 21:15:06 +02:00
Paul van Tilburg
42b771ba16
Use a condensed form in the company_form view
2013-06-16 23:42:54 +02:00
Paul van Tilburg
b5cfa7606a
Remove already solved FIXME
2013-06-16 23:38:35 +02:00
Paul van Tilburg
ba5fd086b5
Also color customer names based on invoice status in the overview view
2013-06-16 23:38:22 +02:00
Paul van Tilburg
d359b76209
Color invoice list rows based on due status (refs: #b4b365)
...
What remains is to remove the hardcoding of 30 days. This should be moved
to the config and Customer model (and then also be used in the template).
2013-06-16 23:29:33 +02:00
Paul van Tilburg
dfd189d341
Add past_due methods to the Invoice model
2013-06-16 23:29:01 +02:00
Paul van Tilburg
f7c0ffff15
Add a day if the end time is before the start time (closes: #d96685)
2013-06-16 22:58:15 +02:00
Paul van Tilburg
10218e6fe5
Check task and time entry checkboxes by default in #invoice_select_form (closes: #4fdf84)
2013-06-16 22:48:38 +02:00
Paul van Tilburg
05b2fff118
Change #clone into #dup, needed for AR >= 3.1!
2013-06-16 22:48:38 +02:00
Paul van Tilburg
f034196469
Show OK icon for billing status in time_entries view
2013-06-16 22:48:38 +02:00
1d8842ad36
Small Ruby1.8-compatibility fix
2013-06-16 21:30:24 +02:00
Paul van Tilburg
7244e2be64
Transform all views to use Bootstrap
2013-06-16 20:27:11 +02:00
Paul van Tilburg
b7b660ffc5
Modify StopTime#Mab#mab_done to transform underscores to dashes in classes
2013-06-16 20:25:12 +02:00
Paul van Tilburg
800dd3106f
Adapt StopTime::Mab#mab_done to follow Mab 0.0.3 API changes
2013-06-16 15:17:13 +02:00
Paul van Tilburg
aa79757af4
Tweak column definitions so that they work with HTML5 and Mab 0.0.3
2013-06-16 15:11:25 +02:00
Paul van Tilburg
5301819105
Fix the way the DATE_FORMATS are set to suit AR3.2 (closes: #9dfc93)
2013-06-16 15:00:05 +02:00
Paul van Tilburg
8b943d788c
Make the VAT rate of a task editable via the form, default to global VAT rate
...
This is the last commit needed to support VAT rates per tasks (closes: #e7b5a7).
2012-09-28 16:19:35 +02:00
Paul van Tilburg
b45bb356ef
Add VAT rate specific summaries to the template and invoice_form view
2012-09-28 12:00:42 +02:00
Paul van Tilburg
537b0d47ea
Modify Invoice#total_amount to take different VAT rates into account
2012-09-28 11:59:59 +02:00
Paul van Tilburg
cd29a51680
Add Invoice#vat_summary to return a VAT summary grouped by VAT rate
2012-09-28 11:59:59 +02:00
Paul van Tilburg
b7f74e23ec
Extend Task#summary to also return the VAT
2012-09-28 11:59:59 +02:00
Paul van Tilburg
808b09f91f
Add vat_rate field to the Task model
2012-09-28 11:59:49 +02:00
Paul van Tilburg
52e23a927a
Merge branch 'support/ruby1.9' into development
2012-06-06 11:43:21 +02:00
Paul van Tilburg
3b54b93504
Added support for Ruby 1.9
2012-06-06 11:28:59 +02:00
Paul van Tilburg
9df0a55e4b
Small Mab compatibility fix
2012-05-21 17:45:29 +02:00
Paul van Tilburg
8ce00648f3
Remove the double doctype, fix indentation
2012-05-21 17:45:29 +02:00
Paul van Tilburg
b25226ac7e
Port the Markaby method override support to Mab
2012-05-21 17:45:29 +02:00
Paul van Tilburg
aa9f0e9dc0
Leave the form method override stuff for now
2012-05-21 17:44:40 +02:00
Paul van Tilburg
968ec1ab99
More Mab compability: different doctype and text escaping
2012-05-21 17:42:28 +02:00
Paul van Tilburg
b47f837613
Fix up some hacks that generate errors when used with Mab
2012-05-21 17:41:53 +02:00
Paul van Tilburg
482e7eabeb
Actively load active record
2012-05-21 17:41:15 +02:00
Paul van Tilburg
5c364e1d10
Small cleanup for the block override that works with recent Mab
2012-05-21 17:40:52 +02:00
Paul van Tilburg
29ad270f0f
Remove the double doctype, fix indentation
2012-05-21 17:40:52 +02:00
Paul van Tilburg
f1b5f5168b
Port the Markaby method override support to Mab
2012-05-21 17:40:52 +02:00
Paul van Tilburg
3c62004056
Updated views to use the instance vars and no longer rely on Markaby's method_missing
2012-05-21 17:40:52 +02:00
Paul van Tilburg
51f0bdfa9c
Leave the form method override stuff for now
2012-05-21 17:40:52 +02:00
Paul van Tilburg
d41b70f0d8
Actually load Mab instead of Markaby
2012-05-21 17:40:52 +02:00
Paul van Tilburg
d3129a11c1
More Mab compability: different doctype and text escaping
2012-05-21 17:40:52 +02:00
Paul van Tilburg
3a824c2026
Fix up some hacks that generate errors when used with Mab
2012-05-21 17:40:52 +02:00
Paul van Tilburg
419d08a6eb
Actively load active record
2012-05-21 17:40:20 +02:00
Paul van Tilburg
53ec809f08
No longer disable billed tasks for editing in the customer form
2012-01-31 22:52:13 +01:00
Paul van Tilburg
bf1d0c633d
Add the bill number to billed tasks in the time entry form (closes: #b1b255)
2012-01-31 22:51:31 +01:00
Paul van Tilburg
ff503f89d5
Mab is not supported yet in master
2012-01-31 22:49:15 +01:00
Paul van Tilburg
5b1953ee40
Really fix the form method override stuff
2012-01-25 12:26:13 +01:00
Paul van Tilburg
15b9b84cc4
Fix form method override for PUT/DELETE support
2012-01-25 11:31:58 +01:00
Paul van Tilburg
9879bb3a47
Fixed syntax error in input arguments
2012-01-24 17:11:49 +01:00
Paul van Tilburg
f731ddee4e
Determine and set the request format before calling the controllers
2012-01-20 00:36:19 +01:00
Paul van Tilburg
45da051bf0
Prepare for PUT/DELETE support in forms and controllers
2012-01-20 00:35:44 +01:00
Paul van Tilburg
69bf1bd735
Tweaked the registered time colum layout (treat it as an exception)
2012-01-09 17:38:30 +01:00
Paul van Tilburg
22299c2d6e
Show the total amount in invoices list
2012-01-09 17:38:06 +01:00
Paul van Tilburg
606b3a4d88
Tweaked style and layout of the invoice form view
2012-01-09 17:14:54 +01:00
Paul van Tilburg
7cd58f019e
Tweaked table layout (mainly customers and timeline view)
2012-01-09 17:14:30 +01:00
Paul van Tilburg
ea9cb0e39c
Fixed firefox rendering issue in the overview (repeated columns)
2012-01-09 17:13:16 +01:00
Paul van Tilburg
18451546c0
Support editing of company info revisions (refs: #ba1a26)
2012-01-09 15:56:40 +01:00
Paul van Tilburg
fb20d2825f
Create a revision of the company info when it has related invoices (refs: #ba1a26)
2012-01-09 15:52:09 +01:00
Paul van Tilburg
016cb0b21d
Added company info revisioning in the models (refs: #ba1a26)
...
* Extended CompanyInfo with an "original" association with the previous
revision (in case revisions can be removed in the future).
* Created a belongs_to relation of Invoice with CompanyInfo and an
has_many reverse relation.
2012-01-09 15:48:20 +01:00
Paul van Tilburg
f85ca3f34f
Order the tasks in the customer_form view by name and invoice ID
2012-01-06 16:32:19 +01:00
ea5884f97a
Show bill information for billed time entries (and link the invoice)
2012-01-03 17:38:54 +01:00
8e3ebc709a
Set the invoices billed flags in the CustomersNInvoices controller
2012-01-03 17:38:14 +01:00
2dc1e964e4
Improved handling of template errors
2012-01-03 16:56:51 +01:00
00e5aa2902
Adapted forms and the invoice template to accommodate more financial info
...
* Allow for setting and updating the financial contact of a customer
and show in invoices when set (closes: #9d4c2e).
* Allow for setting and updating bank information (IBAN, BIC, name)
and use it in the template (closes: #a11265).
2012-01-03 16:51:07 +01:00
feb0dc71c1
Add financial info to the CompanyInfo and Customer models and database
2012-01-03 16:49:14 +01:00
80cead274b
Handle empty time entry comments in the invoice form view
2012-01-02 16:15:35 +01:00
f11ddbbd53
Simplified the configuration code base
...
* Merged the Config mix-in module with the main StopTime module.
* Renamed Models::Config#load to initialize, remove the old initialize.
2012-01-02 15:59:06 +01:00
99370625ec
Actually give access to the global configuration
2012-01-02 15:13:33 +01:00
32de91327f
Fixed missing default configuration problem
2012-01-02 15:13:18 +01:00
4d2e2bb217
The task form should also list billed tasks
2012-01-02 14:58:36 +01:00
768d2d55f6
Allow for modification of the invoice comment (refs: #69f890)
2012-01-02 14:05:03 +01:00
0abad65328
Show the list of contained time entries for tasks with an hourly rate
2012-01-02 14:04:43 +01:00
57943f913e
Added links to billed tasks from an invoice (refs: #69f890)
2012-01-02 14:04:09 +01:00
0ba447524d
Adjust the task form for showing invoice information for billed task (refs: #69f890)
2012-01-02 14:00:56 +01:00
cc0bb4a371
Adjust the title time_entries view based on whether the task is billed
2012-01-02 13:59:43 +01:00
91cb9d42b2
Only treat fixed cost tasks of the selected tasks (closes: #21f52e)
2012-01-02 13:58:47 +01:00
d488c5f3be
Really fixed config file location; added some type checking
2012-01-02 13:03:45 +01:00
217985afc8
Fixed default config file location
2012-01-02 12:52:28 +01:00
643520e577
Merge branch 'master' of git.luon.net:users/paul/stoptime
2012-01-02 12:47:42 +01:00
6b05536d91
Show the spent time for fixed cost tasks in the invoice
2012-01-02 12:46:47 +01:00
c8ced1777c
Use the new configuration throughout the views, controllers and templates (closes #21e3ae)
2011-12-23 21:17:44 +01:00
71ee97c34c
Added the Stoptime::Config module and Config model to hold the configuration
2011-12-23 21:17:02 +01:00
c62a7f36d0
Also show the customer in the timeline (reverting earlier removal)
2011-12-22 16:34:37 +01:00
1ed1cef49a
Compact controller code using the new Customer#shortest_name method
2011-12-22 16:33:57 +01:00
48490991cc
Added Customer#shortest_name
2011-12-22 16:32:47 +01:00
4860aec9ca
Use the time_entries partial view to show time entries for a task (closes #e966ae)
2011-12-12 17:10:18 +01:00
d6af1a7319
Modified time_entries to view to be (ab)used as partial view
2011-12-12 17:09:35 +01:00
d38f5dc5fd
Added missing documentation for Controllers::Index#get
2011-12-10 21:13:26 +01:00
3570cbb3f4
Rename Views#invoice to invoice_form for consistency
2011-12-10 21:08:48 +01:00
cb0b014640
Mark partial views as private
2011-12-10 21:05:58 +01:00
32cea1211d
Fixed regression problem of entries not being marked for billing anymore
2011-12-10 17:07:10 +01:00
79e9190956
Small fixes for the invoice dir changes
2011-12-10 16:58:38 +01:00
a32cb00846
Merge branch 'master' of git.luon.net:users/paul/stoptime
2011-12-10 16:57:21 +01:00