Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This data structure includes the basic information about an item data that is associated with a document.   In the case of a receipt that is attached to a cost card, the data set is all about this cost cardCurrently, the only supported association is between a receipt and one or more cost cards. For each cost card that a receipt is associated with, this structure will contain basic information about the cost card, such as the incurred date, expense type and disbursed amount. To maintain the generic nature of this structure, these values are returned in the format of a list of name/value pairs

Format

Panel
titlePwsDocumentAssociationData
  • PwsDocumentAssociationData

Elements

Element

Data Type

Description

Sample Data

Values

PwsValue[]

Information of a particular value

A list of name/value pairs containing information about the associated entity (e.g. cost card). Please click here for more information.


Usage Example(s)


Code Block
languagexml
titleExample 01 - cost card with receipt attached
collapsetrue
                        <a:Data>
                           <a:Values xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Type</b:Tag>
                                 <b:Value>CostCard</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>D</b:ColumnType>
                                 <b:Tag>Incurred Date</b:Tag>
                                 <b:Value>Mar  1 2018</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Expense Type</b:Tag>
                                 <b:Value>Personal Auto Mileage</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>M</b:ColumnType>
                                 <b:Tag>Disbursed Amount</b:Tag>
                                 <b:Value>12.00</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Disbursed Currency Code</b:Tag>
                                 <b:Value>CAD</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                           </a:Values>
                        </a:Data>

...