<?php


function recalculate_tool_usage_charges($task_id)
{
    $result = get_recalculate_tool_usage_charges_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}


function recalculate_miscellaneous_project_costs($task_id)
{
    $result = get_recalculate_miscellaneous_project_costs_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_utility_bills($task_id)
{
    $result = get_recalculate_utility_bill_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_utility_bill_credit_notes($task_id)
{
    $result = get_recalculate_utility_bill_credit_note_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_supplier_transport_invoices($task_id)
{
    $result = get_supplier_transport_invoice_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_subcontractor_credit_notes($task_id)
{
    $result = get_subcontractor_credit_notes_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}


function recalculate_subcontractor_invoices($task_id)
{
    $result = get_subcontractor_invoice_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_task_cost_adjustments($task_id)
{
    $result = get_task_cost_adjustment_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_vehicle_running_chart_batch($task_id)
{
    $result = get_vehicle_running_chart_batch_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_material_return($task_id)
{
    $result = get_material_return_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_i_owe_you_expenses($task_id)
{
    $result = get_i_owe_you_expenses_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_purchase_requistion_issues($task_id)
{
    $result = get_purchase_requistion_issues_task_details($task_id);
    
    save_to_task_costs_rebuild($result);
}

function recalculate_grns($task_id)
{
    $result = get_grn_task_details($task_id);

    save_to_task_costs_rebuild($result);
}


function recalculate_stock_counts($task_id)
{
    
    $result = get_stock_count_task_details($task_id);

    save_to_task_costs_rebuild($result);
}



function recalculate_inventory_adjustments($type, $task_id)
{
    
    $result = get_inventory_adjustments_task_cost_details($type, $task_id);

    save_to_task_costs_rebuild($result);
}

function recalculate_material_issues($task_id)
{
    
    $result = get_material_issues_task_cost_details($task_id);

    save_to_task_costs_rebuild($result);
   
}





?>