由于同一单据中

XSAYMA00040259

出现了同一批号不同批次的同一品种B200416 没有得到数量限制导致数量出现负数

现进行更新

update sphwph set shl=shl+700 where spid='SPH00003434' and hw='HWI00000002' and pici='JHAYMA00010167_3'

update sphwph set shl=shl-700 where spid='SPH00003434' and hw='HWI00000002' and pici='JHAYMA00010223_2'