AP不能建立會計分錄

2021-06-17 16:35:33 字數 1007 閱讀 1067

發票匹配

使用select *

from ap_ae_headers_all a

where a.accounting_event_id in

(select aea.accounting_event_id

from ap_accounting_events_all aea

where aea.event_status_code = 'created')

找到了出問題的發票

檢視該發票的行狀態:

select *

from ap_ae_lines_all a

where a.ae_header_id in

(select b.ae_header_id

from ap_ae_headers_all b, ap_accounting_events_all c

where b.accounting_event_id = c.accounting_event_id

and c.source_table = 'ap_invoices'

and c.source_id = 14160)

檢視ap_accounting_events_all表中event_status_code欄位的狀態後,發現該行狀態與應用中的狀態不匹配(應用中的狀態是已建立會計分錄,但event_status_code欄位的狀態不為accounted

所以使用以下指令碼更改其狀態:

update ap_accounting_events_all a

set a.event_status_code ='accounted'

where a.accounting_event_id =18950

and a.source_id = 14160

問題解決,但提交「應付款管理系統會計核算流程」請求,傳送總賬時出錯,估計和以上操作有關,具體以後觀察

實用會計分錄

1.註冊資本 借 銀行存款 貸 實收資本 2.從銀行提取現金 借 現金 貸 銀行存款 3.開張證件的費用 借 管理費用 辦公費 貸 現金 4.購進辦公用的裝置 借 固定資產 貸 現金 每月攤分 借 管理費用 折舊費 銷售費用 折舊費 貸 累計折舊 5.裝修的支出 借 待攤費用 貸 現金 每月攤分 借...

銀行會計分錄

2 會計科目 3 賬號分類 4 記賬方法 會計核算的要素是會計所要反映和監督的具體內容,包括資產 負債 所有者權益 收入 費用和潤。資產 負債和所有者權益是反映銀行財務狀況的會計要素。資產是指由於過去的交易或事項引起的,銀行擁有或者控制的,能帶來示來經濟利益的經濟資源。負債是指由於過去的交易或事項所...

會計分錄的借和貸

如何辨別會計分錄中的借和貸 資產 成本 費用 負債 所有者權益 收入 等式左邊的借增貸減。等式右邊的借減貸增。資產類 成本類 費用類科目,借為增加 貸為減少。負債類 權益類 收入類科目,借為減少 貸為增加。帳戶結構包括下列幾種 1 資產帳戶結構 借方 反映資產增加 貸方 反映資產減少 2 負債和所有...