Generating SMTA with Easy-SMTA
This ticket adds support for generating the SMTA documents that accompany distribution of germplasm to external users. The SMTA is generated by ITPGRFA Easy-SMTA API and is based on the information of the selected OrderRequest
record when the mtaType
is either SMTA_SIGNED
or SMTA_SHRINK
. Note that click-wrap SMTA is not part of this ticket.
The SMTA document can be requested and generated as many times as it takes to produce the final version. The generated documents are not stored by Easy-SMTA, nor are they automatically reported to ITPGRFA.
When OrderRequest.mtaType
is either SMTA_SIGNED
or SMTA_SHRINK
a button labeled "Generate SMTA" is available to the user. It triggers an API call to GGCE to /api/v1/order/{id}/generate-smta.
GGCE API update
/api/v1/order/{id}/generate-smta endpoint loads and inspects that OrderRequest
exists and has the correct mtaType
. It then calls a new endpoint genesys-pgr/glis-client#36 in glis-client
library for generating the document with Easy-SMTA. It will respond with a PDF document which must be registered as a new OrderRequestAttach
and stored in the file repository.