|
|
@@ -123,6 +123,7 @@ public class stockbill extends Controller {
|
|
|
JSONObject jsonObject = (JSONObject)object;
|
|
|
String frownum = jsonObject.getString("frownum");
|
|
|
String fitemno = jsonObject.getString("fitemno");
|
|
|
+ System.err.println(frownum+":"+fitemno);
|
|
|
BigDecimal fqty = new BigDecimal(jsonObject.getString("fqty"));
|
|
|
fqty=fqty.compareTo(BigDecimal.ZERO)<0?fqty.negate():fqty;
|
|
|
//String fdetailstockno = jsonObject.getString("fstockno");
|
|
|
@@ -252,7 +253,7 @@ public class stockbill extends Controller {
|
|
|
/**
|
|
|
* 更新发货单数量
|
|
|
*/
|
|
|
- Rows stockbillrows =dbConnect.runSqlQuery("select st_stockbillid,status from st_stockbill where fbillnum='"+fbillnum+"' and siteid='lsa1986'");
|
|
|
+ Rows stockbillrows =dbConnect.runSqlQuery("select st_stockbillid,status from st_stockbill where billno='"+fbillnum+"' and siteid='lsa1986'");
|
|
|
ArrayList<String> sqldispatchitems =new ArrayList<>();
|
|
|
if(stockbillrows.isNotEmpty()){
|
|
|
Rows stockbilldetailrows =dbConnect.runSqlQuery("select sa_dispatch_itemsid,sum(qty) qty from st_stockbill_items where st_stockbillid = "+stockbillrows.get(0).getLong("st_stockbillid")+" and siteid='lsa1986' group by sa_dispatch_itemsid");
|