Skip to main content
Quartyl
Reportsprofessional

Generating the Final Document: On-Demand Engagement Details

On-demand final document generation: the engagement popup, the wording it offers from the study, the build, the Word and PDF deliverables, and what a rebuild changes.

Quartyl Team

The Word master report is generated on demand, never inside the analysis run. A study’s workflow – review, sign-off, archiving – runs on its own clock; the document is built whenever the sign-off authority needs it, from the study’s settled record. Building it writes the resulting files onto the study and advances the workflow by exactly the leg whose deliverable now exists: a study at In Review takes the canonical step to Document Generated, and a rebuild from Document Generated moves nothing (What the run does – and does not – change). The chain is strictly ordered – analysis → review → benchmarking report → master report – so each step has to happen on its own action. This page is the flow: who triggers it, what the popup collects, and what happens between clicking Generate and the files being on the study.

Who can trigger it

  • Roles. The final-document action belongs to the Partner and the Firm Admin – the roles that sign the report off. For anyone else the action is not offered at all.
  • From where. The study’s results detail view: the Generate Final Document action opens the engagement popup for that study. The action is hidden while a build for that study is still running, so the UI cannot stack two builds on one record. Once the study’s generation budget is spent (see The generation budget) the action stays visible and disabled, with the count printed on it – the budget is what stopped the study, and hiding the button would read as a permissions problem.
  • The state gate. A formal master report is only built once the analysis has landed in review with its results on the record: In Review (the first build) or Document Generated (a rebuild). Anything earlier – Draft, Study Initialized, Processing – has no settled result set: the request is refused with a message that the document can only be generated once the analysis has reached review, because the document must not stand in for an analysis that has not finished. A Rejected or Failed study has to be re-submitted first. And Signed Off / Archived are refused too: the signer attested to a specific document, so replacing it under a study that reads “final and signed” would leave an attestation attached to a report the signer never saw.
  • The data gate. The study must have benchmarking results on the record; a study without them is refused with the same kind of message – run the analysis before generating a final document. Document builds are their own kind of work, and where every build is busy the request is refused with a note to retry shortly rather than held behind the work already running. The sign-off workflow itself is in Partner sign-off; this build is the leg that precedes it, and the deliverable it stores is what puts the study at Document Generated.

The engagement popup

The benchmarking data itself is read off the study as saved – its settled results and its parameters. So is most of the prose, in two different ways. The purpose of the study and the description of the controlled transactions are the firm’s standing wording, identical on every report, with only the values the study carries written into it – the taxpayer, the financial year and the jurisdiction. The industry and the FAR wording are derived from the options the study was created with (jurisdiction, nature of business, functions, method, comparable set), and the analysis run drafts the Industry Overview opening and the FAR paragraph for this entity. The standing wording arrives written into your form, because wording you sign has to be wording you can read and correct; the study-derived prose is not pushed in – those boxes open empty, which means “print what this study produces”, and the wording sits behind a Fill with AI button instead, disappearing when the analysis run drafted nothing. What is left to type is the engagement identity and the tested party’s own description, which no study carries.

Either way the rule is one-directional: a field is sent only when you moved it. What you leave alone the build reads back off the study, so a preview that went stale – or a paragraph written before a reviewer override changed the comparable set – cannot freeze into the document as a settled answer.

You provide – the report cannot infer any of these, and it says so when one is missing:

Field Required Where it lands
Prepared By Yes The cover’s “Prepared by”. A real field, not a defaulted one: a blank value is refused
Prepared For No The cover’s “Prepared for” (defaults to the tested party entity)
Report Date No The cover’s “Date of report”. Validated as a calendar date (YYYY-MM-DD, the date picker’s format); left blank it resolves to the day the build runs
Company Overview No Chapter 2, The Tested Party. Written by you, never read off the study: what the study holds is a jurisdiction, a business line and a functional profile, not the client’s own account of itself. Left blank, the chapter prints the profile the study records
Database Used No Chapter 5, the search narrative – the line renders only when supplied
Group Companies No Chapter 2, The Group – a table of entity / jurisdiction / relationship / business, up to 50 rows, each needing a name
Shareholding No Chapter 2, Shareholding Pattern – a table of shareholder / relationship / holding / jurisdiction, up to 50 rows, each needing a shareholder name; the same rows draw the ownership chart

Written in, so you can read it. The short lines and the firm’s standing paragraphs arrive stated in the form – Reset puts that wording back if you change it:

Field Arrives as Where it lands
Comparable Years The fiscal years the accepted comparable data covers Chapter 1 (reporting period) and Chapter 5, the search summary
Regions Searched The geographies the study was screened against Chapter 5, the search narrative
Database Used The database the wizard selected for this study Chapter 5, the search narrative
Purpose of Study The firm’s standing purpose statement, with this study’s taxpayer, financial year and jurisdiction written in Chapter 1, the Taxpayer section
Transaction Description The firm’s standing description of the controlled transactions, including the six transaction categories as a list, with the same three values written in Chapter 1, the controlled-transaction section

Changing either standing paragraph is the point of showing it: delete the transaction categories this engagement has none of, or fit the purpose to what the client actually asked for. Leaving one as it arrived, or clearing it, sends nothing – and the build prints the same wording again.

Paragraphs this study writes for itself. Each opens empty and prints the wording below if you leave it that way. Fill puts that paragraph in the box so you can read or change it; the same button then reads Restore and takes it back.

Field What an empty box prints Where it lands
Industry Overview The paragraph the analysis run drafted for this entity, or the matched industry module’s opening when there is no draft Chapter 3, its opening section – the curated sections below it still print
Functions, Assets and Risks The paragraph the analysis run drafted from the study’s FAR, or the engine’s own framing when there is no draft Chapter 4, above the FAR matrix

Every field that carries prose also has an Expand control: a report paragraph does not fit in a box, so it opens in a window of its own, and closing that window keeps what it holds in the field it came from.

Two honesty rules come with that:

  • Nothing is invented, and an assumption is labelled. A field the study cannot answer stays empty, and the popup says so rather than guessing. When no industry module matches the study’s own description, the field is labelled as the general baseline instead of being presented as sector research; when nothing in the recorded nature of business matches a transaction template, the field is labelled as the assumed default and the report itself says so – a note under the controlled-transaction section and a “Basis of that nature” line in the transaction annexure – because that template also decides which compliance obligations were resolved, so it is a statement the deliverable carries, not just a placeholder; and the FAR field shows the allocations the chapter will print, with the characterization basis under it, so you can see what the paragraph rests on.
  • The Industry Overview is not a paragraph you can quietly overwrite. Chapter 3 is a structured chapter (its own sections and value-chain figure). The box only ever carries its opening description, so putting the drafted paragraph in the box changes nothing – the chapter still prints below it – while typing your own paragraph replaces the whole chapter with what you write. The popup therefore asks you to confirm the replacement before it will generate – “Keep the chapter” puts the study’s wording back in one click, and clearing the box hands the chapter back to the study at any time.

No derived field is sent back unless you changed it – and a paragraph you only Filled, without editing it, counts as unchanged. The build re-derives from the study whatever the submission leaves out – the comparable-years and regions-searched lines and the drafted narrative among them – from the same helpers that wrote the wording into the box in the first place, so a study whose selection later changes cannot be documented by a stale sentence pasted in earlier, the reporting period Chapter 1 states always matches the year columns Chapter 5 computes from the accepted comparables, and a paragraph nobody moved is re-drafted rather than frozen against a run that would word it differently.

The wording the popup reads before you submit supplies those study-derived lines and the text the Fill buttons offer; it spends nothing: reading it starts no build and does not count against the study’s generation budget, and it answers the same role and workflow gates as the build, so a popup that opens is a popup that could be submitted. It also reports whether this study has a drafted Industry or FAR paragraph at all, so a button is never offered for a draft that does not exist. Only Prepared By gates the submit, apart from a pending Chapter 3 replacement, which has to be confirmed or cancelled first. Leaving either corporate-background schedule empty is its own statement – the chapter prints that the detail is not recorded in the study data rather than an empty table. A schedule row that names nobody is dropped before the build starts, so an abandoned half-row cannot fail the whole generation.

The five narrative fields are capped at 16,000 characters each – the same limit the build enforces – and both the box and its expanded window count them live, so a too-long narrative is caught while typing rather than by a refused submission. A line break you type in one of them is a line break in both deliverables.

What you type is kept as a per-study draft in the browser: close the popup mid-entry – deliberately or by accident – and the next open for that study restores it, with the dialog asking before discarding unsaved entries. The draft stores what only you can answer in full, and a study-derived field only when you actually moved it away from the study’s wording – the report’s own paragraphs are never copied into browser storage, so a reopened popup re-reads the study and applies just your corrections, with the standing wording written back in and the derived paragraphs opening empty again unless you changed them. A saved draft outranks the wording the study offers, a Fill is not typing (nothing was departed from), and text the expanded window handed back is. The draft is cleared when a build starts. It never leaves the device: nothing is saved centrally, and another user on another machine will not see it.

What happens on submit

  1. The check. Submitting first asks whether this study may be built at all: the role, that the study exists and is yours to see, its state, whether its results have landed, whether the generation budget still has room (the message names the count), and whether a build is free to take the work. A study that fails any of these is refused with a message naming the reason, and nothing starts.
  2. The build starts in the background. A generation record is created for the study – carrying the file it will produce, named Transfer-Pricing Report-{entity}.docx – and the popup closes. Document builds are their own kind of work, so a report never holds up a benchmarking run. The study itself is untouched at submit: the generation record carries the progress, not the study.
  3. The build. It re-checks the workflow state before writing anything, against the same rules the submit uses – a request that waited too long, or one sent twice, must not produce a document either. A study whose analysis has not landed in review fails with a message that review has to come first, and a signed study fails with a message that sign-off is complete; neither stores anything. It then checks the retention window on the study’s raw dump (see The retention edge), and rebuilds the report from the study’s saved parameters and saved results, merged with the engagement fields and the narrative overrides. Two reconciliations happen here, both so the document matches the record a reviewer settled on: the accept/reject overrides recorded during review are applied to a build-only copy of the results, and the jurisdiction’s rules are resolved as of the financial year end, so a prior-year study is documented against the law in force then. The report engine then builds the report once – seven numbered chapters and twelve annexures as a single piece of content with no file format baked into it – and renders both files from that content. Before either file is written, a consistency gate blocks a report that would contradict itself: a method the study’s own profit level indicator cannot compute, a conclusion at odds with the margin against the applied range, or an adjustment whose sign and stated direction disagree. The method/indicator check also runs at submit, so an impossible document is refused before any build exists. It is all deterministic – no AI step.
  4. The two files. The finished Word document is stored and linked to the study. Only then is the branded PDF built – from that same record, so the two deliverables cannot disagree on a number or on the range methodology – and linked alongside it. The PDF leg is best-effort by design: the Word report is already safe by that point, so a PDF failure is noted on the build’s summary and the study is left without a PDF. No PDF means “no PDF available for this study”, not a failed generation.
  5. The completion. The build finishes with both filenames on its summary – the Word report, and the PDF when it was produced – and the study page picks the result up. Then the one forward step this build is allowed to take: In Review → Document Generated, written as its own audit entry and its own activity-feed event, so the audit trail claims a deliverable only once that deliverable exists. A rebuild from Document Generated moves nothing – a rebuild changes files, not where the study is. The Excel workbook is not built here: it is the review phase’s own deliverable, regenerated in place while the study sits In Review, and it never moves the state.
  6. The failure. A failed build is marked failed with the reason. The study’s state, its data and its previously generated files are untouched – the last good document stays the document of record until a generation replaces it.

What the run does – and does not – change

This is the design boundary that keeps the document useful.

  • Each leg is recorded only when its deliverable exists. A build from In Review advances the study to Document Generated, because that is the meaning of the state, and the build writes its own audit entry for the step. A rebuild from Document Generated moves no state at all: the document is replaced, the study stays where it is. Nothing is claimed for a file that does not exist – if a leg fails, the reason shows on the build.
  • Generation runs alongside the workflow. Review, overrides and sign-off continue while the document builds. The build changes no review action and records none – it writes the linked files, the deliverables above, and the state those deliverables mean.
  • Regeneration is safe up to sign-off, and stops there. While a study sits at In Review or Document Generated, a correction to the engagement details can be rebuilt as many times as the budget allows; each run stores new files and the study links the latest ones, and those are the current documents of record. Once the study is signed off, no rebuild is offered: the attestation is to the document that was signed.
  • Two separate downloads. The Word and PDF files are downloaded independently, so a study whose PDF leg failed still serves its Word report: the page says no PDF is available and offers regeneration, rather than failing the Word download with it.
  • Contrast with the Excel workbook. The workbook is the review phase’s own deliverable – its first build happens on its own when the analysis lands in review and the reviewer regenerates it after overriding comparables, with no state change at any round – and it stays the primary benchmarking deliverable. The Word (and PDF) document is the next leg of the chain: the same record, rendered into the narrative form, on the authority’s schedule.

The retention edge

The build works from the study’s saved record plus its raw dump. If the dump has passed the firm’s retention window by the time the build runs, it fails with a clear message that the dump has expired rather than building a degraded document – the remedy is to re-run the study (a fresh run captures a fresh dump) and regenerate.

The generation budget

Each study gets five client-facing rebuilds, checked at the one place that starts a build – so a page working from a stale count cannot step around the limit. The count is the record of what has been built, not a second tally kept alongside it: that record is the answer to “how many have we run?”, and a second counter would be a second answer to the same question. It therefore includes builds that failed. The study carries both numbers – the runs spent and the allowance – so the action can print the figure that is enforced, 2/5, instead of the page guessing it.

FAQ

Can I generate the document more than once? Yes, up to the study’s generation budget – five builds. Each submission is a new build producing new stored files, and the study links the latest generation, so regenerate after correcting an engagement detail rather than editing the document. The count is the record of what was built, not a flag: it includes builds that failed, because starting one is what spends it, and the action prints the running total (2/5) so nothing is spent by surprise. When the budget is gone the request is refused and the files already produced stay downloadable; raising the per-study limit is not something a firm can do itself, so raise it with your Quartyl contact.

Does generating the document change the study’s state? Not when you press Generate, and only forward from the build: a study at In Review moves to Document Generated, the one step this build takes. A study still at Draft, Study Initialized or Processing is refused before anything is built – its analysis has to land in review first, and the document cannot stand in for that. Regenerating from Document Generated changes nothing about the state, only the linked files; from Signed Off or Archived there is no rebuild to change anything.

I generated a document and there is no PDF – did it fail? Check the build’s summary. If the Word report is listed and the PDF is noted as failed, the Word report built and stored correctly and the PDF leg alone failed; the build is still completed, and the study simply has no PDF on it. Regenerate to try the PDF again. The PDF is not a shortened report: it renders the same seven chapters and the same Annexures A–L from the same content, so any difference in length between the two files is typography, not omitted analysis. See Word and PDF: one document, two renderings.

Does the platform file the document anywhere? No. It builds, stores and links the deliverables for download; filing and submission are outside the platform.

The build failed – what should I check first? Its failure reason: a message that the dump has expired means the retention window closed on the raw dump (re-run the study); anything else is a generation fault to report, and the study and its earlier reports are unaffected either way.

See it working in your workspace

Sign in to run the steps above on a real study – or book a demo and we will walk the workflow end to end.

Related docs

Book a Demo

Tell us what you'd like benchmarked

We'll confirm a 30-minute screen-share slot within one business day.

We reply within one business day. Your details are used only to arrange the demo – never shared or sold.