KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
121828
:
Save cost (hourly and overtiem rate ) in resour...
P
roduct
:
kplato
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2006-02-12 13:42
Last Changed:
2006-02-13 16:01:29
Version: Koffice (using KDE KDE 3.5.1) Installed from: Gentoo Packages Compiler: gcc 3.4.4 gentoo 3.4.4-r1 OS: Linux 1- open resource setting 2- add a resource 3- set cost 4- save the project 5- close the project 6- reopen the project 7- open reseouce setting and select the last insert resource Result: The cost setting load the default Aspected result: The right cost saved
Comment
#1
Dag Andersen 2006-02-13 15:51:19
SVN commit 509044 by danders: Save/load resource cost and units. CCBUG: 121828 M +9 -0 kptresource.cc --- trunk/koffice/kplato/kptresource.cc #509043:509044 @@ -28,6 +28,8 @@ #include "kptschedule.h" #include <kdebug.h> +#include <kglobal.h> +#include <klocale.h> namespace KPlato { @@ -346,12 +348,16 @@ m_email = element.attribute("email"); setType(element.attribute("type")); m_calendar = findCalendar(element.attribute("calendar-id")); + m_units = element.attribute("units").toInt(); s = element.attribute("available-from"); if (s != "") m_availableFrom = QDateTime::fromString(s); s = element.attribute("available-until"); if (s != "") m_availableUntil = QDateTime::fromString(s); + + cost.normalRate = KGlobal::locale()->readMoney(element.attribute("normal-rate")); + cost.overtimeRate = KGlobal::locale()->readMoney(element.attribute("overtime-rate")); return true; } @@ -367,8 +373,11 @@ me.setAttribute("initials", m_initials); me.setAttribute("email", m_email); me.setAttribute("type", typeToString()); + me.setAttribute("units", m_units); me.setAttribute("available-from", m_availableFrom.toString()); me.setAttribute("available-until", m_availableUntil.toString()); + me.setAttribute("normal-rate", KGlobal::locale()->formatMoney(cost.normalRate)); + me.setAttribute("overtime-rate", KGlobal::locale()->formatMoney(cost.overtimeRate)); } bool Resource::isAvailable(Task *task) {
Comment
#2
Dag Andersen 2006-02-13 16:01:29
*** Bug has been marked as fixed ***.
P
latform
:
Gentoo Packages
O
S
:
Linux
K
eywords
:
People
Reporter
:
Lorenzo Sicilia
Assigned To
:
Dag Andersen
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In