應收款管理中無法取消核銷操作,使用自動核銷二次,在AP_DETAIL表有多次相同記錄.這是怎么回事?

熱心網友

由于許多單據都核銷多了,例如:付款單0000000010,金額為500,但是核銷了兩次,每次都是500,導致余額為-500,其相應的發票也是,所以需要取消核銷,重新核銷,而取消核銷時報“使用null無效”,是因為ap_detail表中許多字段不應為null值,但卻為null值導致,應付取消核銷時也報同樣的錯誤執行下面語句即可 update ap_detail set idamount=0 where idamount is null update ap_detail set idamount_f=0 where idamount_f is null update ap_detail set idamount_s=0 where idamount_s is null update ap_detail set bprepay=0 where bprepay is null update ap_detail set icamount=0 where icamount is null update ap_detail set icamount_f=0 where icamount_f is null update ap_detail set icamount_s=0 where icamount_s is null。