Announcement

Collapse
No announcement yet.

Fill Quote itemList through Hook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fill Quote itemList through Hook

    Hi,

    How would I be able to fill Quote's itemList field through php Hooks? Is it fine to just fill some jsonArray data through 'set' method of the Entity?

    The reason is I want to automate the Quote creation through a logic. Normally, the frontend is the one autofilling data for the Quote's itemList, how bout in the backend side?

    Thanks!

  • #2
    read application/Espo/Modules/Advanced/Repositories/Quote.php

    your hook will be run in parent::beforeSave($entity, $options); and parent::afterSave($entity, $options);

    you can also override Quote Repository
    Last edited by tanya; 05-08-2018, 10:14 AM.

    Comment

    Working...
    X