Skip to content

Commit f4680e3

Browse files
committed
Enable alert when no PLUs exist in a department
1 parent 8bb2064 commit f4680e3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

quicktill/tillweb/templates/tillweb/department.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@
340340
paging: true,
341341
serverSide: true,
342342
});
343+
344+
plus_table.on('draw', function () {
345+
if (plus_table.page.info().recordsTotal == 0) {
346+
$("#no_plus_message").removeClass("d-none");
347+
}
348+
});
343349
}
344350

345351
function init_translines_table() {

0 commit comments

Comments
 (0)