Merge pull request #420 from eReuse/bugfix/4206-donalo-incoming
Bugfix/4206 donalo incoming
This commit is contained in:
commit
3606f9dee6
|
@ -4,7 +4,7 @@ const Api = {
|
||||||
* @returns get lots
|
* @returns get lots
|
||||||
*/
|
*/
|
||||||
async get_lots() {
|
async get_lots() {
|
||||||
const request = await this.doRequest(`${API_URLS.lots}?type=temporary`, "GET", null);
|
const request = await this.doRequest(`${API_URLS.lots}`, "GET", null);
|
||||||
if (request != undefined) return request.items;
|
if (request != undefined) return request.items;
|
||||||
throw request;
|
throw request;
|
||||||
},
|
},
|
||||||
|
|
|
@ -665,7 +665,7 @@ async function processSelectedDevices() {
|
||||||
});
|
});
|
||||||
|
|
||||||
listHTML.html("");
|
listHTML.html("");
|
||||||
const lot_temporary = lots.filter(lot => !lot.transfer);
|
const lot_temporary = lots.filter(lot => !lot.transfer && !lot.trade);
|
||||||
appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, "Temporary");
|
appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, "Temporary");
|
||||||
|
|
||||||
const lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == "Incoming");
|
const lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == "Incoming");
|
||||||
|
|
|
@ -627,7 +627,7 @@ async function processSelectedDevices() {
|
||||||
})
|
})
|
||||||
|
|
||||||
listHTML.html("");
|
listHTML.html("");
|
||||||
const lot_temporary = lots.filter(lot => !lot.transfer);
|
const lot_temporary = lots.filter(lot => !lot.transfer && !lot.trade);
|
||||||
appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, "Temporary");
|
appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, "Temporary");
|
||||||
|
|
||||||
const lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == "Incoming");
|
const lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == "Incoming");
|
||||||
|
|
Reference in New Issue