应收款管理中无法取消核销操作,使用自动核销二次,在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。