From: Maxime Bourget Date: Mon, 3 Jun 2013 22:20:05 +0000 (+0100) Subject: Fix displayed required date X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e83dd263203cb4f16aec72e084825198b5e12259;hp=791f2f0482e01d5d152091edb5ef267300c91d26;p=order_line_extra.git Fix displayed required date --- diff --git a/includes/order_lines.inc b/includes/order_lines.inc index dc09a6b..891da68 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -196,7 +196,7 @@ function get_order_summary($location) { , sum(sub.amount) as amount , sum(greatest(least(sub.quantity, qoh.quantity - quantity_before), 0)) , sum(sub.amount*greatest(least(sub.quantity, qoh.quantity - quantity_before), 0)/sub.quantity) - , `min(required_date)` + , min(`min(required_date)`) , group_concat(distinct order_comment separator ';') as order_comment , group_concat(distinct detail_comment separator ';') as detail_comment FROM $sub sub