Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1928

Update party.customerperson to latest functions

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects versions: 1.9
    • Fix versions: 2.0
    • Components: Archetypes
    • Labels:
      None
    • Sprint:

      Description

      The party.customerperson archetype uses:

      • a tortuous derived expression for the name node, that was created before the expr functions were added:
        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.

        Attachments

          Activity

              People

              • Assignee:
                Tim Anderson
                Reporter:
                Tim Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h

                    Who's Looking?