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,7 +216,13 @@
216 216
 						output.writeEmptyElement("td");
217 217
 						output.writeStartElement("td");
218 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 226
 						output.writeEndElement();
221 227
 						output.writeEndElement();
222 228
 					}
@@ -305,7 +311,13 @@
305 311
                                         output.writeAttribute("colspan", "4");
306 312
                                         if(query.value(14)) {
307 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 322
                                         output.writeEndElement();
311 323
 					output.writeEndElement();

Loading…
Cancel
Save