Invoice Items Weight

Hi

I am trying to add Patient details to the Invoice Items.  All other info OK but cant get Patient Weight to come up.  Keep getting invalid property.  I have used:

party:getPatientWeight(openvpms.get(., "target"))

$F{target.[party:getPatientWeight(.)]}

Can anyone help?

Thanks

Comment viewing options

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

Re: Invoice Items Weight

Cath: [Warning - I have not tested this]

From the help text we have as the example:

  • party:getPatientWeight(., openvpms:get(., "patient.entity"))

In the items jrxml the patient entity is in target.patient.entity so I suspect that setting the field as:

[party:getPatientWeight(.,"target.patient.entity"))]

might do the trick.

Regards, Tim G
 

Re: Invoice Items Weight

The weight functions take a single argument, either a patient or an act linked to a patient.

Try either:

  • [party:getPatientWeight(openvpms:get(., "target.patient.entity"))]
  • [party:getPatientWeight(openvpms:get(., "target"))]

The "target" retrieves the invoice item (an act.customerAccountInvoiceItem).

The "patient" retrieves the patient participation (a participation.patient).

The "entity" retrieves the patient (a party.patientpet).

 

 

Syndicate content