Fill Quote itemList through Hook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brianpunzalan
    Active Community Member
    • Aug 2017
    • 62

    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!
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #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...