Commit 7db1c2ec authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Only display unpaid invoices at main view of invoices list

parent 2c9a08ff
......@@ -116,7 +116,8 @@
return RSVP.all([
gadget.getDeclaredGadget('form_list'),
gadget.getSetting("listbox_lines_limit", 20),
gadget.getTranslationList(translation_list)
gadget.getTranslationList(translation_list),
gadget.getSetting('hateoas_url')
]);
})
.push(function (result) {
......@@ -143,11 +144,10 @@
"key": "slap_invoice_listbox",
"lines": lines_limit,
"list_method": "AccountingTransactionModule_getUnpaidInvoiceList",
"list_method_template": result[1] + "ERP5Document_getHateoas?mode=search&" +
"list_method=AccountingTransactionModule_getUnpaidInvoiceList&relative_url=" +
gadget.state.jio_key + "{&query,select_list*,limit*,sort_on*,local_roles*}",
"list_method_template": result[3] + "ERP5Document_getHateoas?mode=search&" +
"list_method=AccountingTransactionModule_getUnpaidInvoiceList" +
"&relative_url=accounting_module{&query,select_list*,limit*,sort_on*,local_roles*}",
"query": "urn:jio:allDocs?query=",
"portal_type": [],
"search_column_list": column_list,
"sort_column_list": column_list,
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1001.59414.5078.17476</string> </value>
<value> <string>1004.6631.33059.11776</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1659068942.39</float>
<float>1667590790.81</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