JSONArrayinvDtls=tbObj5.query("nocrea_receive_qty<>0 and ebeln='"+inv_code+"'and matnr='"+material_code+"'and werks='"+jo1.optString("factory_code")+"'","ebelp").getResultJSONArray(0);
JSONArrayinvDtls=wo_PurchaseOrderProc.query("nocrea_receive_qty<>0 and ebeln='"+inv_code+"'and matnr='"+material_code+"'and werks='"+jo1.optString("factory_code")+"'","ebelp").getResultJSONArray(0);
for(intn=0;n<invDtls.size();n++){
if(fact_qty>0){
@ -210,7 +210,7 @@ public class ReceiveAPIServiceImpl implements ReceiveAPIService {
fact_qty=fact_qty-nocrea_receive_qty;
}
ResultBeanrb3=tbObj5.update(jo);
ResultBeanrb3=wo_PurchaseOrderProc.update(jo);
if(!rb3.isSuccess()){
thrownewWDKException("更新采购订单接口表已生成收货单数量字段失败!");
}
@ -220,7 +220,7 @@ public class ReceiveAPIServiceImpl implements ReceiveAPIService {