Sample Trade In Credit Memo
This document can be create under
Trading → Sales → Fullscreen Cashsale
Customer → Credit Memo → Create
Giving example , the Credit Memo number is CM1003
select * from acc_credit_memo_index where pkid = 1003;
select * from acc_credit_memo_item where index_id = 1003;
select * from acc_credit_memo_stock where index_id = 1003;
To trace movement in / out of the item (Stock Movement)
select * from inv_stock_delta where doc_table = 'acc_credit_memo_stock' and doc_key in (select pkid from acc_credit_memo_stock where index_id = 1003);
To trace movement in / out of the serial number or batch and expiry (Trace Stock)
select * from inv_serial_number_delta where doc_table = 'acc_credit_memo_stock' and doc_key in (select pkid from acc_credit_memo_stock where index_id = 1003);
Record in Financial Report (Balance Sheet / Trial Balance / P&L / GL Listing
select * from acc_journal_transaction where doc_ref = 'acc_credit_memo_index' and doc_key = 1003;
select * from acc_journal_entry where journaltxnid in (select pkid from acc_journal_transaction where doc_ref = 'acc_credit_memo_index' and doc_key = 1003);
Record in AR / AP Transaction / Billing Statement / Historical AR / AP Balance
select * from acc_nominal_account_txn where foreign_table = 'acc_credit_memo_index' and foreign_key = 1003;
Settlement / CC-07 / Supplier Historical Transaction Aging Analysis
select * from acc_doclink where src_docref = 'acc_credit_memo_index' and src_docid = 1003;
select * from acc_doclink where tgt_docref = 'acc_credit_memo_index' and tgt_docid = 1003;
GST Report / Filing
select * from acc_tax_transaction where doc_index_ref = 'acc_credit_memo_index' and doc_index_key = 1003;
Private & Confidential