Add Line Item to Custom Module Just Like Quote Line Item

Hello All,

We are using Sugarcrm 8.2 Ent Edition

We require a below functionality 

There is a custom module and we need to add line item panel on record view 

Does anyone have any reference or any code that we can attach line item to module 

  • Hello Rahul

    Subpanel may represent line items for the record

    Adding new module with Module builder and relating it n-1 to the custom module mentioned above might provide desired functionality.

    If nessesary, the subpanel could be configured with Studio 

    Best,

    Dmytro

    Best Regards,
    Dmytro Chupylka

    integroscrm.com
    We make work in Sugar CRM system faster, more convenient and efficient

  • Hello Dmytro

    Client is asking that he wants quote line item like thing 

    When he create the record he should be able to add multiple line items just like quote.

    The custom module name is Machine and the line item module is Parts

    So when he want to create an new machine he should be able to add parts for that machine also he want the calculation of sum of all the parts and display as total amount on the bottom of the parts panel as the cost for that Machine.

  • Hi,

    Can you check and go through this link once, it may useful for your requirement.

  • Hello Rahul,

    You can get the sum of all related parts cost into Machine Parts panel by using the Sugar Logic. You can use rollupSum function in Studio and calculate the cost of all parts. You should write this formula in Machine's module Cost field. rollupSum returns the sum of values of the field in records related by Link.

    Hope this information helps you Slight smile

    Thanks,

    Poojitha!!

  • Thanks Poojitha I will try this.

  • Hello Dhanalaskhmi,

    I will check this out and let let you know thank you :)