AP标准发票核销预付款,因预付款的税码没清零,核销时在发票分配中自动产生预付款的税行,使预付款金额大于发票金额,发票审批暂挂,后又入账,又做了冲销。
结果:
预付款发票已更改,标准发票已删除,请重新做。
请注意今后在做预付款发票时,要在分配中将税码删掉。
内部备注:
一。用APPS将预付款发票的税码删除,重新审批。
二。对标准发票操作如下:
从FORM可知发票的INVOICE_ID='25494',因已有部分行入帐
1 删除会计行
SELECT * FROM AP_AE_LINES_ALL AAL WHERE AAL.REFERENCE2='25494'
DELETE FROM AP_AE_LINES_ALL AAL WHERE AAL.REFERENCE2='25494'
DESC AP_AE_LINES_ALL AAL
2?删除会计行头
SELECT * FROM AP_AE_HEADERS_ALL AAH WHERE AAH.AE_HEADER_ID IN (36406,36407)
DESC AP_AE_HEADERS_ALL
3 删除发票事件表
SELECT * FROM AP_ACCOUNTING_EVENTS_ALL AEA WHERE AEA.SOURCE_ID='25494'
DESC AP_ACCOUNTING_EVENTS_ALL
4 删除发票分配行
SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL APDA WHERE APDA.INVOICE_ID='25494'
DESC AP_INVOICE_DISTRIBUTIONS_ALL
5 删除发票头
SELECT * FROM AP_INVOICES_ALL AI WHERE AI.INVOICE_ID='25494'
DESC AP_INVOICES_ALL
6.删除发票暂挂表
SELECT * FROM AP_HOLDS_ALL AH WHERE AH.INVOICE_ID ='25494'
DESC AP_HOLDS_ALL