ekmungai / eloquent-ifrs

Eloquent Double Entry Accounting with a focus on IFRS Compliant Reporting
MIT License
334 stars 68 forks source link

Transaction update #111

Open collationhub opened 2 years ago

collationhub commented 2 years ago

Hi Edward I have completed created the transactions but is it possible for update the transaction api. If is it possible then all entries is changes are necessary or not in these tables "ifrs_line_items" and "ifrs_ledgers" in the database? Regards Mukesh

ekmungai commented 2 years ago

Hi Mukesh,

By design, once a transaction has been posted to the ledger it cannot be edited. This is a requirement of bookkeeping best practice. To make changes you must create a reversing transaction and then make a new one.

Regards, Edward

collationhub commented 2 years ago

Thanks for the reply edward i really appriciate it.

it means the ifrs_line_itmes and "ifrs_ledgers" table data is not update in the database.

# I have created the transcation base in the account_id/account_type. But some trancation created with same account type

example:-

  1. $clientInvoice = ClientInvoice::create([ 'account_id' => $clientAccount->id,

  2. $cashPurchase = CashPurchase::create([ 'account_id' => $clientAccount->id,

  3. $clientReceipt = ClientReceipt::create([ 'account_id' => $clientAccount->id,

    then edward how to these trancation create with different-different account_type?

    Regards, Mukesh

collationhub commented 2 years ago

Hi Edward, In the "ifrs transition" table the column name same for every transaction, can i create just 1 common API for every transactions type build. if transaction type send as a parameter? https://ekmungai.github.io/ifrs-docs/v4docs/transactions/

ekmungai commented 2 years ago

Hi Mukesh, I'm afraid I don't quite follow your question.