Skip to main content

🏢 Intercompany Module (ic_*)

Modul Intercompany digunakan untuk mengelola entitas dalam grup dan transaksi antar entitas (mis. penjualan antar company holding).

1. Module Purpose

  • Mendefinisikan entitas intercompany dalam satu tenant.
  • Menyimpan transaksi intercompany (IC transaction).

2. Tables & Structure


3. Key Fields & Relationships

3.1 ic_entity

  • Fields: tenant_id, company_id, code, name, type (holding, subsidiary, branch_entity).
  • FK: tenant_idcore_tenant.id, company_idcore_company.id.

3.2 ic_tx

  • Fields: tenant_id, from_entity_id, to_entity_id, tx_date, amount, currency, description, status.
  • FK: from_entity_id, to_entity_idic_entity.id.

4. Business Flows

4.1 Billing Intercompany

  1. Company A menjual barang/jasa ke Company B (keduanya dalam satu tenant).
  2. Transaksi tercatat di ic_tx sebagai intercompany transaction.
  3. GL masing-masing company tetap tercatat di gl_entry + gl_line dengan COA khusus IC.

5. Example Reports (SQL)

Contoh SELECT untuk laporan intercompany.

5.1 Ringkasan Transaksi Intercompany per Pasangan Entity

5.2 Outstanding IC Transactions