Batch Number Variable

Is there a variable for batch numbers linked to a product to be able to be inserted into vaccination certificates?  Certificates are printed at check out at finalisation of account by which time the little bottle is in the bin, not easily retrievable and the next client is already in consult.

Yuri.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Batch Number Variable

This is supported. In an OpenOffice template, you can use a User Field e.g.:

  • Name: batch
  • Value: [openvpms:get(., 'invoiceItem.source.batch.entity.name')]

See the attached example for its use.

 

Note that the template must be attached to the vaccination product so that the certificate is generated when the vaccination is invoiced. This links the certificate to the invoice item, enabling the batch to be located.

 

AttachmentSize
Sample Vaccination Certificate.odt 18.75 KB

Re: Batch Number Variable

Excellent! worked perfectly thanks Tim.

Ummm..... is batch expiry date available as well?

Re: Batch Number Variable

I've updated the example above to include the manufacturer and batch expiry date.

Re: Batch Number Variable

Perfect!  Wonderful, thank you very much.

Yuri.

Re: Batch Number Variable

I've updated the page at https://www.openvpms.org/document-merging-open-office-writer to add fields for batch number, batch expiry date and batch product manufacturer.

HTH.

Syndicate content