Summary | Make the deliverables billable/non-billable |
Queue | Hermes |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | gnuwings (at) gmail (dot) com |
Created | 04/04/2007 (6687 days ago) |
Due | |
Updated | 10/18/2007 (6490 days ago) |
Assigned | |
Resolved | 10/18/2007 (6490 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
For ensuring backward compatibility, we made changes based on the
configuration variable $conf[time][choose_ifbillable],ie if this
variable is enabled ,time slice is billable/non-billable ,otherwise
jobtype can be billable/non-billable.
I would like to know which changes are need to be done on conf.xml?
billable, and committed. Your patch didn't include the changes to
conf.xml though, can you please provide them?
New Attachment: 2007-10-15_add_jobtype_billable.sql
2007-10-15_add_jobtype_billable.sql
New Attachment: jobtype_patch-1.txt
attached a new patch file for your reference.
In case sql upgrade file,I have changed it to prefered sql syntax and
it will be attached in next message.
I will post the patch after resolving sql compatibility issues and
other stuffs related to coding.
- The sql upgrade script is for mysql. Please see
docs/CODING_STANDARDS for preferred sql syntax, and other upgrade
scripts for examples.
- The default value of a "boolean" field type is already "false", no
need to explicitly specify that.
- Use "empty($var)" instead of "$var == false" especially for
configuration values.
- Add the end of the patch to Driver/sql.php you casted the rate to
int and the billable flag to float, it should be the opposite.
New Attachment: 2007-10-12_add_jobtype_billable.sql
Please find the attachment 2007-10-12_add_jobtype_billable.sql file (
likely to put on scripts/upgrades )
New Attachment: jobtype_new_patch.txt
Please find the attached patch file ,in this patch i tried to
implement all of your suggestions.
I have also attached (as a new comment)
2007-10-12_add_jobtype_billable.sql file it contains sql queries for
upgrade.
State ⇒ Feedback
- Please create unified diffs
- Don't comment code out, if has to go, delete it
- Don't keep debug code in the patches.
- The applications' sql files only contain the sql statements
necessary for the initial installation. If you have to change the sql
schema, simply do so in the base sql file, and provide upgrade sql
statements in separate sql scripts that go into
scripts/upgrades/2007-01-01-some_script_name.sql
New Attachment: jobtype_patch.txt
http://lists.horde.org/archives/dev/Week-of-Mon-20070917/022030.html
I am submitting the first patch for adding billable/non-billable
option in Jobtype
billable, since deliverables are rather arbitrary as they can be
tasks, whatever. So it'd take a lot of metadata and tracking. Not that
it'd be impossible if that's what people need.
hermes. As a first step, we would like to fix some of the requests
here. I would like to know which of the following is the best strategy
: Is it good to make the deliverables billable/non-billable or make
the job type billable/non-billable? Please provide your inputs.
Priority ⇒ 1. Low
State ⇒ New
Queue ⇒ Hermes
Summary ⇒ Make the deliverables billable/non-billable
Type ⇒ Enhancement
Billable and Non-billable. Currently employees are given the option to
mark a specific time as billable/non-billable. This may not be ideal,
because the lower level employees may mark some of the
non-billable(Eg. Employee Leave, Vacation, etc..) hours as billable.
This will also increase the security of the application.