Neal Wilson 7 years ago
parent
commit
8f0a9eede9

+ 2
- 0
config/Reports/auco.xml View File

71
                 output.writeTextElement("title", TTR("useandcostreport", "Recent Use and Cost by Origin"));
71
                 output.writeTextElement("title", TTR("useandcostreport", "Recent Use and Cost by Origin"));
72
                 output.writeEndElement();
72
                 output.writeEndElement();
73
                 output.writeStartElement("body");
73
                 output.writeStartElement("body");
74
+                var cdt = new Date(Date.now());
75
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
74
                 output.writeTextElement("h1", TTR("useandcostreport", "Average Use and Cost by Origin ") + startDate + " - " + endDate);
76
                 output.writeTextElement("h1", TTR("useandcostreport", "Average Use and Cost by Origin ") + startDate + " - " + endDate);
75
                 switch(unitBox.currentIndex)
77
                 switch(unitBox.currentIndex)
76
                 {
78
                 {

+ 2
- 0
config/Reports/chart.xml View File

71
                 output.writeTextElement("title", TTR("pytdprodcomp", "Previous Year Production Comparison"));
71
                 output.writeTextElement("title", TTR("pytdprodcomp", "Previous Year Production Comparison"));
72
                 output.writeEndElement();
72
                 output.writeEndElement();
73
                 output.writeStartElement("body");
73
                 output.writeStartElement("body");
74
+                var cdt = new Date(Date.now());
75
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
74
                 output.writeTextElement("h1", TTR("pytdprodcomp", "Previous Year Production Comparison"));
76
                 output.writeTextElement("h1", TTR("pytdprodcomp", "Previous Year Production Comparison"));
75
                 output.writeTextElement("p", TTR("pytdprodcomp", "This report provides an itemized and overall comparison of roasted coffee production for the dates specified with those dates in the previous year. A chart of this data along with percent change and rolling average of the percent change is also produced."));
77
                 output.writeTextElement("p", TTR("pytdprodcomp", "This report provides an itemized and overall comparison of roasted coffee production for the dates specified with those dates in the previous year. A chart of this data along with percent change and rolling average of the percent change is also produced."));
76
                 output.writeStartElement("table");
78
                 output.writeStartElement("table");

+ 2
- 0
config/Reports/cogr.xml View File

42
                 output.writeTextElement("title", TTR("greencost", "Cost of Green Coffee for Roasted Coffee"));
42
                 output.writeTextElement("title", TTR("greencost", "Cost of Green Coffee for Roasted Coffee"));
43
                 output.writeEndElement();
43
                 output.writeEndElement();
44
                 output.writeStartElement("body");
44
                 output.writeStartElement("body");
45
+                var cdt = new Date(Date.now());
46
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
45
                 var unit = (unitBox.currentIndex == 0 ? TTR("greencost", "Kg") : 
47
                 var unit = (unitBox.currentIndex == 0 ? TTR("greencost", "Kg") : 
46
                     TTR("greencost", "Lb"));
48
                     TTR("greencost", "Lb"));
47
                 output.writeTextElement("h1", TTR("greencost", "Cost of Green Coffee for Roasted Coffee"));
49
                 output.writeTextElement("h1", TTR("greencost", "Cost of Green Coffee for Roasted Coffee"));

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

52
 				output.writeTextElement("title", TTR("dailyproduction", "Daily Production Report"));
52
 				output.writeTextElement("title", TTR("dailyproduction", "Daily Production Report"));
53
 				output.writeEndElement();
53
 				output.writeEndElement();
54
 				output.writeStartElement("body");
54
 				output.writeStartElement("body");
55
+                var cdt = new Date(Date.now());
56
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
55
 				var dateString = "" + dateField.year() + "-" + dateField.month() + "-" + dateField.day();
57
 				var dateString = "" + dateField.year() + "-" + dateField.month() + "-" + dateField.day();
56
 				output.writeTextElement("h1", TTR("dailyproduction", "Daily Production Report: ") + dateString);
58
 				output.writeTextElement("h1", TTR("dailyproduction", "Daily Production Report: ") + dateString);
57
 				output.writeTextElement("h2", TTR("dailyproduction", "Batches Roasted"));
59
 				output.writeTextElement("h2", TTR("dailyproduction", "Batches Roasted"));

+ 2
- 0
config/Reports/fypurchase.xml View File

53
 				output.writeTextElement("title", TTR("fypurchase", "Coffee Purchase Previous Years Comparison"));
53
 				output.writeTextElement("title", TTR("fypurchase", "Coffee Purchase Previous Years Comparison"));
54
 				output.writeEndElement();
54
 				output.writeEndElement();
55
 				output.writeStartElement("body");
55
 				output.writeStartElement("body");
56
+                var cdt = new Date(Date.now());
57
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
56
 				output.writeTextElement("h1", TTR("fypurchase", "Coffee Purchase Previous Years Comparison"));
58
 				output.writeTextElement("h1", TTR("fypurchase", "Coffee Purchase Previous Years Comparison"));
57
 				output.writeStartElement("table");
59
 				output.writeStartElement("table");
58
 				output.writeAttribute("style", "page-break-after: auto; text-align: left");
60
 				output.writeAttribute("style", "page-break-after: auto; text-align: left");

+ 2
- 0
config/Reports/greenforroasted.xml View File

63
                 output.writeTextElement("title", TTR("greenforroasted", "Green Coffees Used for Roasted Coffees"));
63
                 output.writeTextElement("title", TTR("greenforroasted", "Green Coffees Used for Roasted Coffees"));
64
                 output.writeEndElement(); //head
64
                 output.writeEndElement(); //head
65
                 output.writeStartElement("body");
65
                 output.writeStartElement("body");
66
+                var cdt = new Date(Date.now());
67
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
66
                 output.writeTextElement("h1", TTR("greenforroasted", "Green Coffees Used for Roasted Coffees ") + startDate + "-" + endDate);
68
                 output.writeTextElement("h1", TTR("greenforroasted", "Green Coffees Used for Roasted Coffees ") + startDate + "-" + endDate);
67
                 output.writeStartElement("ul");
69
                 output.writeStartElement("ul");
68
                 var query = new QSqlQuery();
70
                 var query = new QSqlQuery();

+ 2
- 0
config/Reports/greensales.xml View File

54
 				output.writeTextElement("title", TTR("greensales", "Green Coffee Sales"));
54
 				output.writeTextElement("title", TTR("greensales", "Green Coffee Sales"));
55
 				output.writeEndElement();
55
 				output.writeEndElement();
56
 				output.writeStartElement("body");
56
 				output.writeStartElement("body");
57
+                var cdt = new Date(Date.now());
58
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
57
 				var dateRange = dateSelect.currentRange();
59
 				var dateRange = dateSelect.currentRange();
58
 				var startDate = dateRange[0];
60
 				var startDate = dateRange[0];
59
 				var endDate = dateRange[dateRange.length - 1];
61
 				var endDate = dateRange[dateRange.length - 1];

+ 2
- 0
config/Reports/historyreport.xml View File

161
                 output.writeTextElement("title", TTR("batchreport", "Batch Log"));
161
                 output.writeTextElement("title", TTR("batchreport", "Batch Log"));
162
                 output.writeEndElement();
162
                 output.writeEndElement();
163
                 output.writeStartElement("body");
163
                 output.writeStartElement("body");
164
+                var cdt = new Date(Date.now());
165
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
164
                 output.writeStartElement("table");
166
                 output.writeStartElement("table");
165
                 output.writeAttribute("style", "page-break-after: auto; text-align: left");
167
                 output.writeAttribute("style", "page-break-after: auto; text-align: left");
166
                 output.writeAttribute("rules", "groups");
168
                 output.writeAttribute("rules", "groups");

+ 2
- 0
config/Reports/invchange.xml View File

53
 				output.writeTextElement("title", TTR("invchange", "Inventory Change Summary"));
53
 				output.writeTextElement("title", TTR("invchange", "Inventory Change Summary"));
54
 				output.writeEndElement();
54
 				output.writeEndElement();
55
 				output.writeStartElement("body");
55
 				output.writeStartElement("body");
56
+                var cdt = new Date(Date.now());
57
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
56
 				var dateRange = dateSelect.currentRange();
58
 				var dateRange = dateSelect.currentRange();
57
 				var startDate = dateRange[0];
59
 				var startDate = dateRange[0];
58
 				var endDate = dateRange[dateRange.length - 1];
60
 				var endDate = dateRange[dateRange.length - 1];

+ 2
- 0
config/Reports/inventory.xml View File

53
                 output.writeTextElement("title", TTR("inventoryreport", "Current Inventory and Availability Projection"));
53
                 output.writeTextElement("title", TTR("inventoryreport", "Current Inventory and Availability Projection"));
54
                 output.writeEndElement();
54
                 output.writeEndElement();
55
                 output.writeStartElement("body");
55
                 output.writeStartElement("body");
56
+                var cdt = new Date(Date.now());
57
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
56
                 output.writeTextElement("h1", TTR("inventoryreport", "Current Inventory and Availability Projection"));
58
                 output.writeTextElement("h1", TTR("inventoryreport", "Current Inventory and Availability Projection"));
57
                 output.writeTextElement("p", TTR("inventoryreport", "This is a report showing how much of each coffee is available, the cost of that coffee, the daily rate of use for that coffee, and the date the coffee will be gone if use continues at the current rate."));
59
                 output.writeTextElement("p", TTR("inventoryreport", "This is a report showing how much of each coffee is available, the cost of that coffee, the daily rate of use for that coffee, and the date the coffee will be gone if use continues at the current rate."));
58
                 output.writeStartElement("table");
60
                 output.writeStartElement("table");

+ 2
- 0
config/Reports/invoices.xml View File

71
                 output.writeTextElement("title", TTR("invoicereport", "Invoices"));
71
                 output.writeTextElement("title", TTR("invoicereport", "Invoices"));
72
                 output.writeEndElement();
72
                 output.writeEndElement();
73
                 output.writeStartElement("body");
73
                 output.writeStartElement("body");
74
+                var cdt = new Date(Date.now());
75
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
74
                 output.writeTextElement("h1", TTR("invoicereport", "Invoices ") + startDate + " - " + endDate);
76
                 output.writeTextElement("h1", TTR("invoicereport", "Invoices ") + startDate + " - " + endDate);
75
                 output.writeStartElement("table");
77
                 output.writeStartElement("table");
76
                 output.writeAttribute("style", "page-break-after: auto; text-align: left");
78
                 output.writeAttribute("style", "page-break-after: auto; text-align: left");

+ 2
- 0
config/Reports/itemtransactions.xml View File

83
                 output.writeEndElement(); // style
83
                 output.writeEndElement(); // style
84
                 output.writeEndElement();
84
                 output.writeEndElement();
85
                 output.writeStartElement("body");
85
                 output.writeStartElement("body");
86
+                var cdt = new Date(Date.now());
87
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
86
                 output.writeTextElement("h1", TTR("item_transactions", "Item Transactions:"));
88
                 output.writeTextElement("h1", TTR("item_transactions", "Item Transactions:"));
87
                 output.writeStartElement("table");
89
                 output.writeStartElement("table");
88
                 output.writeStartElement("tr");
90
                 output.writeStartElement("tr");

+ 2
- 0
config/Reports/lossplots.xml View File

65
 output.writeTextElement("style", ".box {font: 10px sans-serif;} .whisker {font: 10px sans-serif;} .axis {font: 12px sans-serif;} .axis path {fill: none; stroke: #000; shape-rendering: crispEdges;} .axis line {fill: none; stroke: #000; shape-rendering: crispEdges;} .x.axis path {fill: none; stroke: #000; shape-rendering: crispEdges;}");
65
 output.writeTextElement("style", ".box {font: 10px sans-serif;} .whisker {font: 10px sans-serif;} .axis {font: 12px sans-serif;} .axis path {fill: none; stroke: #000; shape-rendering: crispEdges;} .axis line {fill: none; stroke: #000; shape-rendering: crispEdges;} .x.axis path {fill: none; stroke: #000; shape-rendering: crispEdges;}");
66
 output.writeEndElement(); //head
66
 output.writeEndElement(); //head
67
 output.writeStartElement("body");
67
 output.writeStartElement("body");
68
+var cdt = new Date(Date.now());
69
+output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
68
 function position(value, min, max) {
70
 function position(value, min, max) {
69
     return 300 - (((Number(value)-Number(min))/(Number(max)-Number(min)))*300);
71
     return 300 - (((Number(value)-Number(min))/(Number(max)-Number(min)))*300);
70
 }
72
 }

+ 2
- 0
config/Reports/monthcompare.xml View File

39
                 output.writeTextElement("title", TTR("pytdprodcomp", "Previous Year Production Comparison By Month"));
39
                 output.writeTextElement("title", TTR("pytdprodcomp", "Previous Year Production Comparison By Month"));
40
                 output.writeEndElement();
40
                 output.writeEndElement();
41
                 output.writeStartElement("body");
41
                 output.writeStartElement("body");
42
+                var cdt = new Date(Date.now());
43
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
42
                 output.writeTextElement("h1", TTR("pytdprodcomp", "Previous Year Production Comparison By Month"));
44
                 output.writeTextElement("h1", TTR("pytdprodcomp", "Previous Year Production Comparison By Month"));
43
                 switch(unitBox.currentIndex)
45
                 switch(unitBox.currentIndex)
44
                 {
46
                 {

+ 2
- 0
config/Reports/productionsummary.xml View File

75
                 output.writeTextElement("title", TTR("dailyproduction", "Production Summary"));
75
                 output.writeTextElement("title", TTR("dailyproduction", "Production Summary"));
76
                 output.writeEndElement();
76
                 output.writeEndElement();
77
                 output.writeStartElement("body");
77
                 output.writeStartElement("body");
78
+                var cdt = new Date(Date.now());
79
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
78
                 var dateRange = dateSelect.currentRange();
80
                 var dateRange = dateSelect.currentRange();
79
                 var startDate = dateRange[0];
81
                 var startDate = dateRange[0];
80
                 var endDate = dateRange[dateRange.length - 1];
82
                 var endDate = dateRange[dateRange.length - 1];

+ 2
- 0
config/Reports/reminders.xml View File

139
                 output.writeTextElement("title", TTR("remindersreport", "Reminders"));
139
                 output.writeTextElement("title", TTR("remindersreport", "Reminders"));
140
                 output.writeEndElement();
140
                 output.writeEndElement();
141
                 output.writeStartElement("body");
141
                 output.writeStartElement("body");
142
+                var cdt = new Date(Date.now());
143
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
142
                 output.writeTextElement("h1", TTR("remindersreport", "Reminders"));
144
                 output.writeTextElement("h1", TTR("remindersreport", "Reminders"));
143
                 output.writeStartElement("a");
145
                 output.writeStartElement("a");
144
                 output.writeAttribute("href", "typica://script/0");
146
                 output.writeAttribute("href", "typica://script/0");

+ 2
- 0
config/Reports/rwacp.xml View File

77
                 output.writeTextElement("title", TTR("productionreport", "Recent Average Coffee Production"));
77
                 output.writeTextElement("title", TTR("productionreport", "Recent Average Coffee Production"));
78
                 output.writeEndElement();
78
                 output.writeEndElement();
79
                 output.writeStartElement("body");
79
                 output.writeStartElement("body");
80
+                var cdt = new Date(Date.now());
81
+                output.writeTextElement("p", cdt.toLocaleDateString(TTR("reports", "en-US")) + " " + cdt.toLocaleTimeString(TTR("reports", "en-US")));
80
                 output.writeTextElement("h1", TTR("productionreport", "Recent Average Coffee Production"));
82
                 output.writeTextElement("h1", TTR("productionreport", "Recent Average Coffee Production"));
81
                 switch(unitBox.currentIndex)
83
                 switch(unitBox.currentIndex)
82
                 {
84
                 {

Loading…
Cancel
Save