存货核算-出库核算报错

栏目:eas cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-22浏览:1

存货核算-出库核算报错

问题描述:

先进先出法,存货核算出库核算报错

Caused by: java.lang.NullPointerException

java.lang.NullPointerException

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew.synCostMoveInPrice(FIFOCalculateNew.java:580)

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew.calculateCost(FIFOCalculateNew.java:544)

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew.fifoCalculate(FIFOCalculateNew.java:367)

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew.access$200(FIFOCalculateNew.java:61)

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew$CalculateThreadForFIFO.asynCalculate(FIFOCalculateNew.java:1211)

at com.kingdee.eas.scm.cal.app.calculate.FIFOCalculateNew$CalculateThreadForFIFO.run(FIFOCalculateNew.java:1189)


解决方案:

出现异常是由于先进先出法核算的物料,调拨出库单期间在调拨入库单期间之后(即先调拨入库在当前会计期间,调拨出库在以后会计期间),导致出库核算时由于取不到调拨出库成本导致调拨入库成本核算反写出错,该问题8.5版本,可以更新补丁PT157562处理(或更新供应链最新补丁),也通过以下脚本查询对应的单据修改至同一期处理。

SELECT C.FNUMBER,A.FNUMBER ,A.FBIZDATE,A.FYEAR,A.FPERIOD,OP.FNUMBER,OP.FBIZDATE,OP.FYEAR,OP.FPERIOD,M.FNUMBER

 FROM T_IM_MOVEISSUEBILL A

INNER JOIN T_IM_MOVEISSUEBILLENTRY N ON N.FPARENTID=A.FID

LEFT JOIN T_IM_MOVEINWAREHSBILLENTRY P ON P.FSTOCKTRANSBILLENTRYID=N.FSTOCKTRANSBILLENTRYID

INNER JOIN T_IM_MOVEINWAREHSBILL OP ON p.FPARENTID=OP.FID

INNER JOIN T_BD_MATERIAL M ON M.FID=N.FMATERIALID

INNER JOIN T_ORG_COMPANY C ON N.FCOMPANYORGUNITID=C.FID

WHERE A.FBASESTATUS=4 AND OP.FBASESTATUS=4 

AND ((A.FYEAR=OP.FYEAR  AND A.FPERIOD > OP.FPERIOD) or (A.FYEAR>OP.FYEAR ))

ORDER BY C.FNUMBER


存货核算-出库核算报错

问题描述:先进先出法,存货核算出库核算报错Caused by: java.lang.NullPointerExceptionjava.lang.NullPointerExceptionat com.kingdee...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息