Life cycle costing result
This method retursn the total life cycle costing (LCC) result.
$$ q^T * s $$
Rest API | GET result/{result-id}/total-costs |
JSON-RPC | result/total-costs |
Snake case | result.get_total_costs |
Camel case | result.getTotalCosts |
Return type | CostValue |
Examples
TypeScript IPC
const totals = await result.getTotalCosts();
const code = totals.currency?.refUnit;
console.log(`total costs: ${totals.amount} ${code}`);
// total costs: 60 USD