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,20 +25,22 @@
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 = {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
date_only: 1,
description: "The Date",
editable: 0,
hidden: 0,
hidden_day_is_last_day: 0,
"default": value.toUTCString(),
key: "date",
required: 0,
timezone_style: 0,
title: "Status Date",
type: "DateTimeField"
"field_gadget_param": {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
date_only: true,
description: "The Date",
editable: 0,
hidden: 0,
hidden_day_is_last_day: 0,
"default": value.toUTCString(),
key: "date",
required: 0,
timezone_style: 0,
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