src/EditProductExport.cpp

changeset 384
d68826df8b63
parent 373
b02aca4e926c
child 394
f41d02c129e5
--- a/src/EditProductExport.cpp	Sun Jul 31 16:29:05 2022 +0200
+++ b/src/EditProductExport.cpp	Sun Jul 31 20:23:27 2022 +0200
@@ -23,8 +23,8 @@
     qDebug() << "export";
 
     const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" });
-    const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" });
-    /*                                                    "Leaf Wet", "Cryo", "Extract" */
+    const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet",      "Pellet" });
+    /*                                                    "Leaf Wet", "Cryo", "CO2 extract", "Iso extract" */
     /*  We use more hop forms then beerxml knows about, so we send known names */
     /*  instead of what we internally use. */
 
@@ -127,6 +127,9 @@
 	xmlWriter->writeTextElement("BETA", QString::number(product->hops.at(i).beta, 'f', 1));
 	xmlWriter->writeTextElement("HSI", QString::number(product->hops.at(i).hsi, 'f', 1));
 	xmlWriter->writeTextElement("ORIGIN", product->hops.at(i).origin);
+	xmlWriter->writeTextElement("BMS_FORM", g_hop_forms[product->hops.at(i).form]);
+        xmlWriter->writeTextElement("BMS_UTILISATION", QString::number(product->hops.at(i).utilisation, 'f', 4));
+        xmlWriter->writeTextElement("BMS_BU_FACTOR", QString::number(product->hops.at(i).bu_factor, 'f', 1));
 	xmlWriter->writeEndElement();
     }
     xmlWriter->writeEndElement();	// HOPS

mercurial