We're updating the issue view to help you get more done. 

Update party.customerperson to latest functions

Description

The party.customerperson archetype uses:

  • a tortuous derived expression for the name node, that was created before the expr functions were added:

    1 concat(/details/companyName,substring(concat(/details/lastName,',',/details/firstName),0,number(not(/details/companyName))*string-length(concat(/details/lastName,',',/details/firstName))+1))
  • multi-line format for the description node
    This displays a single-line in the UI, as the new-line is ignored.

These should be updated to:

  • expr:ifempty(/details/companyName, concat(/details/lastName,',',/details/firstName))

  • concat(party:getBillingAddress(., true()),' - ',party:getHomeTelephone(.))

respectively.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.9

Priority

Trivial