SQLResult[] results;
if (dateReturn!=null) {
dateR = df.format(dateReturn);
String query = " INSERT INTO #__{vm}_order_history ( order_id , order_status_code , date_added , customer_notified , comments ) "
+" VALUES ( '"+orderID+"', 'D', '"+dateR+"', '0', 'Date return'); ";
SQLRequest sqlr = new SQLRequest(wsLogin,query);
try {
results = queriesProxy.executeSQLQuery(sqlr);
} catch (IOException ioe) {
ioe.printStackTrace();
returnvalue = false;
}
}
String query2 = " UPDATE #__{vm}_order_history SET date_added = '"+dateC+"' WHERE order_status_code = 'P' AND order_status_history_id ="+orderID+"; ";
String query3 = " UPDATE #__{vm}_orders SET cdate=UNIX_TIMESTAMP('"+dateC+"') WHERE order_id = "+orderID+";";
SQLRequest sqlr2 = new SQLRequest(wsLogin,query2);
SQLRequest sqlr3 = new SQLRequest(wsLogin,query3);
try {
results = queriesProxy.executeSQLQuery(sqlr2);
results = queriesProxy.executeSQLQuery(sqlr3);