ekmungai / eloquent-ifrs

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

Relating Custom Models to accounting example Track products with SKU or Suppliers by id #59

Closed elbakly closed 2 years ago

elbakly commented 3 years ago

Hi Edward, Awesome job and great effort,

I have a question on what is the purpose of entities here? and if it is used for custom Model relations , then can you provide example of how to relate to a specific record in supplier for example in Credit Purchase transaction.

If you don't have an answer , then let me propose a solution and we can work it together

ekmungai commented 3 years ago

Hi @elbakly,

I'm not sure I quite follow your question, but an entity is intended to represent the business unit/company whose accounts are being managed by the package. I'm afraid I'm not familiar with the SKU acronym, but as far as tracking products is concerned I intentionally left it out so as to give developers the maximum flexibility on how to account for them. For an example of the supplier transaction, you can take a look at the Examples section of the documentation here.

Cheers.

elbakly commented 3 years ago

Hi @ekmungai Thank you for the prompt reply, You have replied both questions, SKU is Stock Keeping Unit details.