Donate Share

]project-open[ - Service Management

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

"Preliminary Costs" the row "Expenses" empty

  1. 2008-11-03 15:43:32 UTC
    Hi all.

    Can I know why in "Project summary" I have in "Preliminary Costs" the row "Expenses" empty ?

    I found in "/web/projop/packages/intranet-cost/tcl/intranet-cost-procs.tcl" this rows.


    append prelim_cost_html "</tr>\n<tr>\n<td>[lang::message::lookup "" intranet-cost.Expenses "Expenses"]</td>\n"

    append prelim_cost_html "<td align=right>

    <!-- $subtotals([im_cost_type_expense_report]) $default_currency -->


    Why this row is commented ?
  2. 2008-11-12 16:02:29 UTC
    Dear Enrico,
    before I digg further into the code:

    a) Did you track any expenses for this project?
    b) Did you already update your system to the most recent version?
    See http://sourceforge.net/forum/forum.php?thread_id=1862803&forum_id=295937 if not ...

    Klaus


  3. 2008-11-17 10:55:25 UTC
    Hi.

    Yes I have some expenses for this project, and I have uptated my ]PO[ installation.

    Thank you

    enrico
  4. 2008-11-26 16:47:21 UTC
    Hi Enrico,

    You're right, there is no "preliminary expenses" costs in ]po[ so far.

    Maybe we should remove that field from the finance view, because it really doesn't make sense. We've added it there for "symmetry" reasons.

    The field really refers to a kind of budget for expenses, but that's usually included in the normal budget.

    Cheers!
    Frank
  5. 2008-11-27 08:47:36 UTC
    Hi.

    I changed the code in file /web/projop/packages/intranet-cost/tcl/intranet-cost-procs.tcl



    set spese_prel [db_string spese_preliminari "select sum(amount) from im_costs where cost_id in (select expense_id from im_expenses where expense_id in (select cost_id from im_costs where project_id= $project_id) and invoice_id is null)" -default 0]
    set lung [string length $spese_prel ]
    if {$lung == 0} {
    set spese_prel 0
    }

    In your opinion is right?
    Thank you


    Enrico
  6. 2008-11-27 08:53:25 UTC
    I also chenged the variable name to see the $spese_prel variable in Preliminary Costs.


    enrico
  7. 2008-11-27 09:45:25 UTC
    I thought of excluding the sum of expenses those expenses that are billable, in such a way as to have only the actual expenses not reimbursable by the customer. Considering the rate of reimbursement.

    enrico
  8. 2008-11-27 16:16:46 UTC
    Hi Enrico,

    Looks OK so far. However, we won't be able to include this in our "standard distro" yet.

    Thanks a lot!
    Frank
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.