Can anyone please correct me the code

 if (selections && selections.length > 0) {
                        $.each(selections, function (i,items) {
                            frm.add_child("items", {
                                item_code:items 	
                            });
                            customer : items.customer;
                            console.log(items);
                        });
                        frm.refresh_field("items");
                        $(".modal").modal("hide");
                    }

My need is to get fields from the selected document from the multidialog box