Commit 5840e8ce authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix up displayed date and reference on the invoice list

    Invoice Number is added to make easier to user track which invoice is which.
parent e0fb870b
......@@ -25,10 +25,11 @@
if (result.data.rows[i].value.hasOwnProperty("start_date")) {
value = new Date(result.data.rows[i].value.start_date);
result.data.rows[i].value.start_date = {
"field_gadget_param": {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
date_only: 1,
date_only: true,
description: "The Date",
editable: 0,
hidden: 0,
......@@ -37,8 +38,9 @@
key: "date",
required: 0,
timezone_style: 0,
title: "Status Date",
title: "Date",
type: "DateTimeField"
}
};
}
......@@ -105,7 +107,8 @@
"Currency",
"Payment",
"Download",
"Invoices"
"Invoices",
"Reference"
];
return new RSVP.Queue()
......@@ -118,6 +121,7 @@
})
.push(function (result) {
var column_list = [
['reference', result[2][6]],
['start_date', result[2][0]],
['total_price', result[2][1]],
['resource_reference', result[2][2]],
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>991.36496.17865.938</string> </value>
<value> <string>992.9642.18182.11008</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1619144094.17</float>
<float>1621359340.83</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment