Hook for Accounting and Bookkeeping module

  • Last Created On Dec 13, 2023
  • 243
0 0

1. The hook "after_expense_deleted"

Path: application/models/Expenses_model.php

Function: delete

Line: 469

Code: hooks()->do_action('after_expense_deleted', $id);

To remove non-existent expenses that still show up in reports, paste  "admin/accounting/remove_wrong_mapping?type=expense"  into your URL -> then press Enter.

2. The hook "delete_applied_credit"

Path: application/models/Credit_notes_model.php

Function: delete_applied_credit

Line: 553

Code: hooks()->do_action('after_applied_credit_deleted', ['id' => $id, 'credit_note_id' => $credit_id, 'invoice_id' => $invoice_id]);


To remove non-existent applied credits that still show up in reports, paste "/admin/accounting/remove_wrong_mapping?type=credit_note" into your URL -> then press Enter.

3. The hook "apply_credits"

Path: application/models/Credit_notes_model.php

Function: apply_credits

Line: 801

Code: hooks()->do_action('credits_applied', ['data' => $data, 'credit_note_id' => $id, 'credit_id' => $insert_id]);


Views: 243

Recent Articles

  • Manual check-in/check-out
    40
  • Updated features in version 1.0.2 – Serv...
    49
  • How to receive notification before produ...
    46
  • Create and Approve FAF Request
    159
  • Role as a Business Broker
    62

Popular Articles

  • Warehouse
    904
  • General Accounting Settings
    722
  • Item Settings
    721
  • Mapping Setup
    683
  • Inventory Receiving Voucher
    572