Neal Wilson 9 years ago
parent
commit
c82365a8cf
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      config/Reports/dailyproductiondetail.xml

+ 14
- 2
config/Reports/dailyproductiondetail.xml View File

216
 						output.writeEmptyElement("td");
216
 						output.writeEmptyElement("td");
217
 						output.writeStartElement("td");
217
 						output.writeStartElement("td");
218
 						output.writeAttribute("colspan", "8");
218
 						output.writeAttribute("colspan", "8");
219
-						output.writeTextElement("em", query.value(9));
219
+                                                var noteArray = query.value(9).split("\n");
220
+                                                for(var i = 0; i < noteArray.length; i++) {
221
+                                                    output.writeStartElement("p");
222
+                                                    output.writeAttribute("style", "margin-top: 0; margin-bottom: 0");
223
+                                                    output.writeCharacters(noteArray[i]);
224
+                                                    output.writeEndElement();
225
+                                                }
220
 						output.writeEndElement();
226
 						output.writeEndElement();
221
 						output.writeEndElement();
227
 						output.writeEndElement();
222
 					}
228
 					}
305
                                         output.writeAttribute("colspan", "4");
311
                                         output.writeAttribute("colspan", "4");
306
                                         if(query.value(14)) {
312
                                         if(query.value(14)) {
307
                                             output.writeTextElement("strong", "Roast Specification Notes");
313
                                             output.writeTextElement("strong", "Roast Specification Notes");
308
-                                            output.writeTextElement("p", query.value(14));
314
+                                            var specArray = query.value(14).split("\n");
315
+                                            for(var i = 0; i < noteArray.length; i++) {
316
+                                                output.writeStartElement("p");
317
+                                                output.writeAttribute("style", "margin-top: 0; margin-bottom: 0");
318
+                                                output.writeCharacters(specArray[i]);
319
+                                                output.writeEndElement();
320
+                                            }                                            
309
                                         }
321
                                         }
310
                                         output.writeEndElement();
322
                                         output.writeEndElement();
311
 					output.writeEndElement();
323
 					output.writeEndElement();

Loading…
Cancel
Save