Suitecrm - Printing issues on pdf template (quote module)

Job ID: 31926164

Budget: €25 – €60 EUR

Suitecrm version: 7.10.7

Dears,
I need a suitecrm expert to solve 2 urgent issues. Please find below some explanations + check uploaded files.
Thx for you interest.
Best regards.

Issue 1

We have created custom product line items in the quote module. I currently have several pdf models connected to this module. One of them must print according to certain rules:

- Name of the pdf model: "Fiche métrage_test2"
- As is:
In each group created in a quote can be several products / services. When I print as pdf, each custom line
items fields are printed for each product lines in a group. Moreover when service line does not exist in a
group, the variable name $aos_services_quotes_name is also printed on the pdf document.

- To be (requirements)
For each group, custom line items has to be printed ONLY FOR THE FIRST PRODUCT. For the others in a same
group, custom line items must not show (see doc in attachment).

If variable $aos_services_quotes_name does not exist in a quote, it must not be printed on the pdf.

Issue 2

We have created a custom calculated field in the quote module called {prix_c}.

- Name of the pdf model: "01.Devis OK"
- As is:
When printing as pdf, this custum fields appears as 0,00.
If an admin user updates the quote then the correct value appears on the pdf document.
If a normal user (not admin) updates the quote, {prix_c} still appears as 0,00 on the pdf document.

- To be (requirements)
solve the problem so that the correct value is always reproduced on the pdf document.
Related categories: PHP JavaScript CRM MySQL SugarCRM