|
|
quantity: a.quantity + Convert(b.quantity, b.unit, a.unit, m.name as Measure)
|
|
quantity: a.quantity + Convert(b.quantity, b.unit, a.unit, m.name as Measure)
|
|
|
throw Error(`cannot sum this units: ${b.unit, a.unit}`)
|
|
throw Error(`cannot sum this units: ${b.unit, a.unit}`)
|