cur_frm.set_query("shipment", function() {
return {
"filters": ["shipment", "date", ">", String(moment().format('YYYY-MM-DD'))]
}
});
I’m trying to filter a link by date (only future dates) and it can’t resolve it. My error reads:
1064, u'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'>, 2018-01-29 from `tabShipment` where `tabShipment`.`name` and locate("", `tabS\' at line 1')
Ideally, I’d like to do a between
statement for the dates but I’m not quite sure how to make that work.