|
|
@@ -2661,8 +2661,8 @@ public class Order extends Controller {
|
|
|
|
|
|
if (agentrows.isNotEmpty()) {
|
|
|
if (agentrows.get(0).getBoolean("submitautocheck")) {
|
|
|
- Rows orderRows = dbConnect.runSqlQuery("select * from sa_order where sa_orderid="+sa_orderid+" where ifnull(remarks,'')!=''");
|
|
|
- Rows orderdetailsRows = dbConnect.runSqlQuery("select * from sa_orderitems where sa_orderid="+sa_orderid+" where ifnull(remarks,'')!=''");
|
|
|
+ Rows orderRows = dbConnect.runSqlQuery("select * from sa_order where sa_orderid="+sa_orderid+" and ifnull(remarks,'')!=''");
|
|
|
+ Rows orderdetailsRows = dbConnect.runSqlQuery("select * from sa_orderitems where sa_orderid="+sa_orderid+" and ifnull(remarks,'')!=''");
|
|
|
if(amount.compareTo(BigDecimal.ZERO)>0){
|
|
|
if(orderRows.isEmpty() && orderdetailsRows.isEmpty()){
|
|
|
check();
|