PwsAttachmentNote

Overview


This structure represents a note within an expense document folder. Expense document folders are primarily intended to hold expense document attachments (e.g. receipts). However, it is possible to store notes in a folder, typically as stand-ins for missing receipts. Notes can also be associated with physical attachments, but this structure specifically is used to represent a stand-alone note. As with receipts, notes can be associated with the entire expense document, or with one or more individual cost cards.

Format


PwsAttachmentNote
  • PwsAttachmentNote
    • AttachmentNoteId: Int32
    • AttachmentNoteUid: Int64
    • DocumentData: PwsDocumentDataElement
    • EditDeleteFlag: Boolean
    • EditDeletePermissionFlag: Boolean
    • ReceiptLockedFlag: Boolean

Elements


Element

Data Type

Description

Sample Data

AttachmentNoteId

Int32

The receipt attachment note Id is a unique identifier for a receipt attachment note. For internal use only. 


AttachmentNoteUid

Int64

The receipt attachment note Uid is a unique and immutable identifier for a receipt attachment note

1152921504607351899

DocumentData

PwsDocumentDataElement

This structure contains the complete set of information about the data items within a document. This structure will identify the cost cards to which the note is linked, if any.


EditDeleteFlag

Boolean

If set to 'true', the receipt attachment note can be edited or deleted. This is essentially 'true' if EditDeletePermissionFlag is 'true' and ReceiptLockedFlag is 'false'.

true

EditDeletePermissionFlag

Boolean

If set to 'true', the authenticated user has permission to edit or delete the receipt attachment note.

true 

ReceiptLockedFlag

Boolean

If set to 'true', the receipt attachment note is locked and cannot be edited or deleted.

false 

Usage Example(s)


Example 01
                  <a:PwsAttachmentNote>
                     <AttachmentNoteId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <AttachmentNoteUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607351899</AttachmentNoteUid>
                     <a:DocumentData>
                        <a:DataItems>
                           <a:PwsDocumentDataItems>
                              <a:AssociatedItemIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                                 <b:ItemId i:nil="true"/>
                                 <b:ItemType>CCD</b:ItemType>
                                 <b:ItemUid>1152921504614515296</b:ItemUid>
                                 <b:ReferenceType i:nil="true"/>
                              </a:AssociatedItemIdentity>
                              <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>Feb 27 2018</b:Value>
                                       <b:Values/>
                                    </b:PwsValue>
                                    <b:PwsValue>
                                       <b:ColumnType>V</b:ColumnType>
                                       <b:Tag>Expense Type</b:Tag>
                                       <b:Value>Travel</b:Value>
                                       <b:Values/>
                                    </b:PwsValue>
                                    <b:PwsValue>
                                       <b:ColumnType>M</b:ColumnType>
                                       <b:Tag>Disbursed Amount</b:Tag>
                                       <b:Value>500.00</b:Value>
                                       <b:Values/>
                                    </b:PwsValue>
                                    <b:PwsValue>
                                       <b:ColumnType>V</b:ColumnType>
                                       <b:Tag>Disbursed Currency Code</b:Tag>
                                       <b:Value>USD</b:Value>
                                       <b:Values/>
                                    </b:PwsValue>
                                 </a:Values>
                              </a:Data>
                           </a:PwsDocumentDataItems>
                        </a:DataItems>
                        <a:DocumentDataDetail>
                           <a:AssociatedItemIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                              <b:ItemId i:nil="true"/>
                              <b:ItemType>ED</b:ItemType>
                              <b:ItemUid>1152921504607683575</b:ItemUid>
                              <b:ReferenceType i:nil="true"/>
                           </a:AssociatedItemIdentity>
                           <a:Associations>
                              <a:PwsDocumentAssociation>
                                 <a:AssociatedItemIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                                    <b:ItemId i:nil="true"/>
                                    <b:ItemType>CCD</b:ItemType>
                                    <b:ItemUid>1152921504614515296</b:ItemUid>
                                    <b:ReferenceType i:nil="true"/>
                                 </a:AssociatedItemIdentity>
                                 <a:ReferenceNumber i:nil="true"/>
                                 <a:ReferenceNumberClearFlag>false</a:ReferenceNumberClearFlag>
                              </a:PwsDocumentAssociation>
                           </a:Associations>
                           <a:Notes>This receipt was lost, a copy has been requested.</a:Notes>
                        </a:DocumentDataDetail>
                     </a:DocumentData>
                     <a:EditDeleteFlag>true</a:EditDeleteFlag>
                     <a:EditDeletePermissionFlag>true</a:EditDeletePermissionFlag>
                     <a:ReceiptLockedFlag>false</a:ReceiptLockedFlag>
                  </a:PwsAttachmentNote>