Invoice Items Weight
Submitted by Guest on Tue, 14/07/2015 - 18:08
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
Re: Invoice Items Weight
Cath: [Warning - I have not tested this]
From the help text we have as the example:
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:
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).