Try ERPNext Buy Support Partners Foundation

Missing ) error in fetching child table value

frappe.ui.form.on(‘Fuel Purchases’, ‘vehicle’, function(frm) {
frappe.model.with_doc(“Vehicle”, frm.doc.vehicle, function() {
var tabletransfer = frappe.model.get_doc(“Vehicle”, frm.doc.vehicle);
$.each(tabletransfer.Vehicle Capacity List, function(index, row){

alert(‘holaaaa’);
})
});
});

Above is the code of Custom Script
Where Fuel Purchases is Current Doctype (TARGET DOCTYPE)
vehicle is the TRIGGER
Vehicle Capacilty List is A Child Table (From Source Doctype)
Vehicle is (SOURCE DOCTYPE)