This may help better explain my question ... This the excerpt from script where the value from the template. The lines in question are in bold. The Rate field in the template is a lookup with the result formatted as currency. The Rate field in the child (target) table is a currency field.
// Filter the template records to match the selected type & add the parent ID to the map
let types = typesRecords.map(c => ({
'child': [c],
'childName': c.getCellValue(childFieldInTemplate),
'templateTypes': c.getCellValue(templateType).map(x => x.id),
'templateOrder': c.getCellValue(templateOrder),
'templateQuantity': c.getCellValue('Quantity'),
'templateSubtasks': c.getCellValue('Subtasks'),
'templateModule': c.getCellValue('Module'),
'templateRate': c.getCellValue('Rate'),
'templateType': {name: c.getCellValueAsString('Type')}
})).filter(x => x.templateTypes.includes(parentType[0].id))
// Create the child records and sort them so that they are in order
let createRecords = types.map(c => ({
fields: {
[childNameInChild.name]: c.childName,
[parentFieldInChild.name]: [selectedEvent],
[childOrder.name]: c.templateOrder,
'Quantity': c.templateQuantity,
'Subtasks': c.templateSubtasks,
'Module': c.templateModule,
'Rate': c.templateRate,
'Type': c.templateType
}