Contracts - PDF Template

Hi Guys
Using Suite 7.7.7

I have a Contracts PDF template but I am unable to generate line items?

Variables I have tried:

$aos_products_quotes_product_qty

$aos_products_contracts_product_qty

$aos_products_contract_product_qty

But all of these do not generate the line item information when inside a Contract

Thanks in advanced

Did this work in a previous version?

Not that I am aware of

I remember there being a thread (cant find it now) on here about adding the PDF templates to contracts a few versions back that has been added to Suite

I use contracts with a number of clients and had an email to say they had noticed the button PrintPDF and wanted to be able to generate their contract information

When creating a PDF template you can select Contract

There isn’t a sample PDF template for a Contract and don’t believe the reference variables for line items has been added?

Thanks

Super late here… but I wanted to add a sample contract to my system.

I had to edit/add a line in the language file at like 85 or so. take a pick:`

AOS_PDF_Templates/language/en_us.lang.php

and of course, add a fresh file for the contract sample

/modules/AOS_PDF_Templates/samples

I had to also do a “Admin->Repair-> Rebuild JS Compressed Files”

so the dropdown combo would show the “Contracts Sample” that was added on line 85 above. :slight_smile:

Still trying to figure out why the other drop downs don’t change when a Sample Contract is pulled up like the other sample behaviours… hmm and I was wondering why there is a “Empty First Entry” …

hmm.
:thinking:
`

You really shouldn’t be changing anything except under custom directory.

Your changes aren’t upgrade-safe - the next upgrade can replace these files you’re changing.

not to worry about the upgrade… I can live with rolling back my changes.

btwI did add custom folder/files in the custom locations because well I had too.

/custom/modules/AOS_PDF_Templates
/custom/modules/AOS_PDF_Templates/samples
/custom/modules/AOS_PDF_Templates/language

and in doing so while adding the changed files (i tried one at a time to see if things would “click” but no… no such luck. ) hmm. makes me wonder where the custom folder scan/replacement code is…

I really wonder why I can’t get the system to automatically change the two combos after the contract is selected (just out of convenience for the UI) as the other samples will update the other UI controls after selection… while the newly added Contracts Sample will not… It will load but Not update the other controls after refresh.

A really head scratcher here… :thinking:

Time passed…

I was able to fix a couple of minor things that just bothered me. I felt like once I get using this system I don’t want some little annoyances to bother me…

now when I hit the “Load Sample” dropdown and select a sample to work on, the UI will refresh with all the associated samples controls without a hitch. whoo hoo.

ohh and no more empty space in the “samples” combo either. whoo hooo