|
@@ -240,7 +240,7 @@ public class stockbillitems extends Controller {
|
|
|
if(StringUtils.isBlank(rowscount.get(0).getString("name"))
|
|
if(StringUtils.isBlank(rowscount.get(0).getString("name"))
|
|
|
|| StringUtils.isBlank(rowscount.get(0).getString("phonenumber"))
|
|
|| StringUtils.isBlank(rowscount.get(0).getString("phonenumber"))
|
|
|
|| StringUtils.isBlank(rowscount.get(0).getString("address"))){
|
|
|| StringUtils.isBlank(rowscount.get(0).getString("address"))){
|
|
|
- Rows orderRows =dbConnect.runSqlQuery("select * from sa_order where sa+sa_orderid="+iteminfo.getLongValue("sa_orderid"));
|
|
|
|
|
|
|
+ Rows orderRows =dbConnect.runSqlQuery("select * from sa_order where sa_orderid="+iteminfo.getLongValue("sa_orderid"));
|
|
|
if(orderRows.isNotEmpty()){
|
|
if(orderRows.isNotEmpty()){
|
|
|
sqlList.add("update st_stockbill set name='"+orderRows.get(0).getString("contact")+"',phonenumber='"+orderRows.get(0).getString("phonenumber")+"',address='"+orderRows.get(0).getString("address")+"' where st_stockbillid="+st_stockbillid);
|
|
sqlList.add("update st_stockbill set name='"+orderRows.get(0).getString("contact")+"',phonenumber='"+orderRows.get(0).getString("phonenumber")+"',address='"+orderRows.get(0).getString("address")+"' where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|