Overview
This web service inserts or updates a single expense document based on a detailed expense document structure (PwsExpenseDocumentDetail). The service returns the identity (PwsClientRef) of the client that has been inserted or updated. The caller can optionally request that the full client detail (PwsClientElement) be included in the response.
Request Format
Panel | ||
---|---|---|
| ||
|
Request Elements
...
Element
...
Data Type
...
Required?
...
Default
...
Description
...
Sample Data
...
RequestId
...
Int32
...
No
...
Click here for more information.
...
SessionTicket
...
String
...
Yes
...
Click here for more information.
...
AdministratorComments
...
String
...
No
...
Administrator comments to be stored with the expense document upon save
...
ApproverIdentities
...
...
No
...
Projector users who have the ability to approve this expense document
...
DeleteCostCards
...
...
No
...
Key fields identifying the cost cards that should be deleted from the expense document
...
DeleteReceipts
...
...
No
...
Key fields identifying the receipts that should be deleted from the expense documents
...
ExcludeCreditCostCardsFlag
...
Boolean
...
No
...
true
...
If set to 'true', credit cost cards will be excluded from the expense document
...
ExpenseDocument
...
...
On Insert: Yes
On Update: No
...
The detailed expense document information to be inserted or updated
...
ExpenseDocumentIdentity
...
...
On Insert: No
On Update: Yes
...
The unique keys used to identify the expense document
...
FullDetailFlag
...
Boolean
...
No
...
false
...
If set to 'true', include full detailed expense document element in response
...
InsertReceiptsIfNotFoundOnUpdateFlag
...
Boolean
...
No
...
false
...
If set to 'true' and an existing expense document is being updated, receipts identified in this web service will be inserted
...
ResourceIdentity
...
...
On Insert: Yes (for expense documents only)
On Update: No
...
The resource associated with the expense document
...
RetrieveCostCardsFlag
...
Boolean
...
No
...
false
...
If set to 'true', the cost cards on the referenced expense document will be included in the response
...
RetrieveReceiptsFlag
...
Boolean
...
No
...
false
...
If set to 'true', the receipts on the referenced expense document will be included in the response
...
SaveCostCards
...
...
No
...
The detailed cost card information for the cost card(s) to be inserted or updated
...
SaveReceipts
...
...
No
...
The detailed receipt information for the reciept(s) to be inserted or updated
...
SendNotificationEmailFlag
...
Boolean
...
No
...
false
...
If set to 'true', a notification email will be sent to all the users who are able to approve the expense document
...
SubmissionComments
...
String
...
No
...
The comments that will be sent to the approvers upon submission
...
SubmitFlag
...
Boolean
...
No
...
false
...
If set to 'true', all the cost cards on the expense document will be submitted
...
UpdateReceiptsIfFoundOnInsertFlag
...
Boolean
...
No
...
false
...
If set to 'true' and an expenes document is being inserted, receipts identified in this web service will be inserted/updated
...
ExpenseDocumentTimestamp
...
String
...
No
...
This is a Base64 encoded timestamp utilized for expense document locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsSaveExpenseDocument (or a prior call to PwsSaveExpenseDocument). This will cause the request to fail if any change has been made between invocations of PwsGetExpenseDocument and PwsSaveExpenseDocument.
...
PreserveCostCardStatusFlag
...
Boolean
...
deprecated
...
** This field has been deprecated
Request Usage Example(s)
...
language | xml |
---|---|
title | Example 01 - Expense Document |
collapse | true |
...
Overview
This web service inserts or updates a single expense document based on a detailed expense document structure (PwsExpenseDocumentDetail). The service returns the identity (PwsExpenseDocumentRef) of the expense document that has been inserted or updated. The caller can optionally request that the full expense document detail (PwsExpenseDocumentElement) be included in the response.
Request Format
Panel | ||
---|---|---|
| ||
|
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | ||
SessionTicket | String | Yes | Click here for more information. | AfzlAZe2idqL1YMlz4UgWg== | |
AdministratorComments | String (4000) | No | Administrator comments to be stored with the expense document upon save. | ||
ApproverIdentities | No | Projector users who should be notified of the submission. Applies only when submitting the expense document. | |||
DeleteCostCards | No | Key fields identifying the cost cards that should be deleted from the expense document. | |||
DeleteReceipts | No | Key fields identifying the receipts that should be deleted from the expense document. | |||
ExcludeCreditCostCardsFlag | Boolean | No | true | If set to 'true', credit cost cards will be excluded from the expense document in the response. Applies only when FullDetailFlag is 'true'. | true |
ExpenseDocument | On Insert: Yes On Update: No | The detailed expense document information to be inserted or updated. | |||
ExpenseDocumentIdentity | On Insert: No On Update: No | The unique keys used to identify the expense document. This may be used when submitting an expense document without making any changes. | |||
FullDetailFlag | Boolean | No | false | If set to 'true', include full detailed expense document element in response. | true |
InsertReceiptsIfNotFoundOnUpdateFlag | Boolean | No | false | If set to 'true' and an existing expense document is being updated, receipts identified in this web service will be inserted if they are not found. | false |
ResourceIdentity | No | *** this field has been deprecated *** | |||
RetrieveCostCardsFlag | Boolean | No | false | If set to 'true', the cost cards on the referenced expense document will be included in the response. Applies only when FullDetailFlag is 'true'. | true |
RetrieveReceiptsFlag | Boolean | No | false | If set to 'true', the receipts on the referenced expense document will be included in the response. Applies only when FullDetailFlag is 'true'. | true |
SaveCostCards | No | The detailed cost card information for the cost card(s) to be inserted or updated. | |||
SaveReceipts | No | The detailed receipt information for the reciept(s) to be inserted or updated. | |||
SendNotificationEmailFlag | Boolean | No | false | If set to 'true', a notification email will be sent to all the users who are identified in ApproverIdentities. | true |
SubmissionComments | String (4000) | No | The comments that will be sent to the approvers upon submission | Submitted | |
SubmitFlag | Boolean | No | false | If set to 'true', all the cost cards on the expense document will be submitted after any changes have been saved. | true |
UpdateReceiptsIfFoundOnInsertFlag | Boolean | deprecated | ** This field has been deprecated ** | true | |
ExpenseDocumentTimestamp | String | No | This is a Base64 encoded timestamp utilized for expense document locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsGetExpenseDocument (or a prior call to PwsSaveExpenseDocument). This will cause the request to fail if any change has been made between invocations of PwsGetExpenseDocument and PwsSaveExpenseDocument. | ||
PreserveCostCardStatusFlag | Boolean | deprecated | ** This field has been deprecated ** |
Request Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/"> <soapenv:Header/> <soapenv:Body> <pws:PwsSaveExpenseDocument> <tim<pws:Vendor>serviceRequest> <req:SessionTicket>AcdrvYuS1YjvT27fonW7Cw==</req:SessionTicket> <com:VendorNumber>Beth Brown</com:VendorNumber> <tim:ExcludeCreditCostCardsFlag>true</tim:ExcludeCreditCostCardsFlag> <com:ExpenseReportPayeeFlag>true</com:ExpenseReportPayeeFlag><tim:ExpenseDocument> <com:InactiveFlag>false</com:InactiveFlag><tim:CashAdvanceReturnAmount>1.00</tim:CashAdvanceReturnAmount> <tim:DocumentName>Expense Document <com:ResourceVendorFlag>true</com:ResourceVendorFlag>A</tim:DocumentName> <tim:DocumentType>E</tim:DocumentType> <com:VendorInvoicePayeeFlag>false</com:VendorInvoicePayeeFlag> <tim:LocationIdentity> <com:SubcontractorInvoicePayeeFlag>false<LocationName>USA</com:SubcontractorInvoicePayeeFlag>LocationName> </tim:Vendor>LocationIdentity> <tim:SubcontractorInvoiceReferenceNumberClearFlag>false</tim:SubcontractorInvoiceReferenceNumberClearFlag>ResourceIdentity> <tim<com:VendorInvoiceReferenceNumberClearFlag>false<ResourceReferenceSystemId>E125</tim:VendorInvoiceReferenceNumberClearFlag>com:ResourceReferenceSystemId> </tim:ExpenseDocument>ResourceIdentity> <tim:FullDetailFlag>true</tim:FullDetailFlag>VendorIdentity> <tim<com:InsertReceiptsIfNotFoundOnUpdateFlag>false<VendorNumber>Beth Brown</tim:InsertReceiptsIfNotFoundOnUpdateFlag>com:VendorNumber> <tim</tim:ResourceIdentity>VendorIdentity> <com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId><tim:Vendor> </tim:ResourceIdentity> <com:VendorNumber>Beth Brown</com:VendorNumber> <tim:RetrieveCostCardsFlag>false</tim:RetrieveCostCardsFlag> <tim<com:RetrieveReceiptsFlag>false<ExpenseReportPayeeFlag>true</timcom:RetrieveReceiptsFlag>ExpenseReportPayeeFlag> <tim:SaveCostCards> <com:InactiveFlag>false</com:InactiveFlag> <tim:PwsCostCardDetail> <com:ResourceVendorFlag>true</com:ResourceVendorFlag> <tim:Description>Breakfast</tim:Description> <com:VendorInvoicePayeeFlag>false</com:VendorInvoicePayeeFlag> <tim<com:DescriptionClearFlag>false<SubcontractorInvoicePayeeFlag>false</timcom:DescriptionClearFlag>SubcontractorInvoicePayeeFlag> </tim:Vendor> <tim:ExpenseTypeIdentity> <tim:SubcontractorInvoiceReferenceNumberClearFlag>false</tim:SubcontractorInvoiceReferenceNumberClearFlag> <com:ExpenseTypeName>Meals</com:ExpenseTypeName> <tim:VendorInvoiceReferenceNumberClearFlag>false</tim:VendorInvoiceReferenceNumberClearFlag> </tim:ExpenseTypeIdentity> ExpenseDocument> <tim:IncurredAmount>7.99<FullDetailFlag>true</tim:IncurredAmount> FullDetailFlag> <tim:IncurredDate>2018-02-06T00:00:00.000Z<InsertReceiptsIfNotFoundOnUpdateFlag>false</tim:IncurredDate>InsertReceiptsIfNotFoundOnUpdateFlag> <tim:IncurredOpsCurrencyIdentity> ResourceIdentity> <com:OpsCurrencyCode>USD<ResourceReferenceSystemId>E125</com:OpsCurrencyCode>ResourceReferenceSystemId> </tim:IncurredOpsCurrencyIdentity> ResourceIdentity> <tim:IncurredVatAmount>0<RetrieveCostCardsFlag>false</tim:IncurredVatAmount> RetrieveCostCardsFlag> <tim:LocationClearFlag>false<RetrieveReceiptsFlag>false</tim:LocationClearFlag> RetrieveReceiptsFlag> <tim:LocationIdentity>SaveCostCards> <com:LocationName>USA</com:LocationName><tim:PwsCostCardDetail> <<tim:Description>Breakfast</tim:LocationIdentity>Description> <tim:NonBillableFlag>false<DescriptionClearFlag>false</tim:NonBillableFlag>DescriptionClearFlag> <tim:OverrideClientAmountClearFlag>false</tim:OverrideClientAmountClearFlag>ExpenseTypeIdentity> <tim<com:PayeeVendorClearFlag>false<ExpenseTypeName>Meals</timcom:PayeeVendorClearFlag>ExpenseTypeName> <tim</tim:PayeeVendorIdentity>ExpenseTypeIdentity> <com:VendorNumber>Beth Brown</com:VendorNumber><tim:IncurredAmount>7.99</tim:IncurredAmount> <<tim:IncurredDate>2018-02-06T00:00:00.000Z</tim:PayeeVendorIdentity>IncurredDate> <tim:ProjectIdentity>IncurredOpsCurrencyIdentity> <com:ProjectCode>P001407-001<OpsCurrencyCode>USD</com:ProjectCode>OpsCurrencyCode> </tim:ProjectIdentity>IncurredOpsCurrencyIdentity> <tim:ResourceClearFlag>false<IncurredVatAmount>0</tim:ResourceClearFlag>IncurredVatAmount> <tim:LocationClearFlag>false</tim:ResourceIdentity>LocationClearFlag> <tim:LocationIdentity> <com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId> <<com:LocationName>USA</timcom:ResourceIdentity>LocationName> <tim:TotalAmountDisbursedCurrency>7.99<</tim:TotalAmountDisbursedCurrency>LocationIdentity> <tim:Udf1ClearFlag>false<NonBillableFlag>false</tim:Udf1ClearFlag>NonBillableFlag> <tim:Udf2ClearFlag>false<OverrideClientAmountClearFlag>false</tim:Udf2ClearFlag>OverrideClientAmountClearFlag> <tim:ExternalGroupingIdentifierClearFlag>false<PayeeVendorClearFlag>false</tim:ExternalGroupingIdentifierClearFlag>PayeeVendorClearFlag> </tim:PwsCostCardDetail> <tim:PayeeVendorIdentity> </tim:SaveCostCards> <tim:SendNotificationEmailFlag>true</tim:SendNotificationEmailFlag><com:VendorNumber>Beth Brown</com:VendorNumber> <tim:SubmissionComments>Submitted<</tim:SubmissionComments>PayeeVendorIdentity> <tim:SubmitFlag>true</tim:SubmitFlag>ProjectIdentity> <tim<com:UpdateReceiptsIfFoundOnInsertFlag>false<ProjectCode>P001407-001</timcom:UpdateReceiptsIfFoundOnInsertFlag>ProjectCode> </pws:serviceRequest> </pws:PwsSaveExpenseDocument>tim:ProjectIdentity> </soapenv:Body> </soapenv:Envelope> <tim:ResourceClearFlag>false</tim:ResourceClearFlag> <tim:ResourceIdentity> <com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId> </tim:ResourceIdentity> <tim:TotalAmountDisbursedCurrency>7.99</tim:TotalAmountDisbursedCurrency> <tim:Udf1ClearFlag>false</tim:Udf1ClearFlag> <tim:Udf2ClearFlag>false</tim:Udf2ClearFlag> <tim:ExternalGroupingIdentifierClearFlag>false</tim:ExternalGroupingIdentifierClearFlag> </tim:PwsCostCardDetail> </tim:SaveCostCards> <tim:SendNotificationEmailFlag>true</tim:SendNotificationEmailFlag> <tim:SubmissionComments>Submitted</tim:SubmissionComments> <tim:SubmitFlag>true</tim:SubmitFlag> </pws:serviceRequest> </pws:PwsSaveExpenseDocument> </soapenv:Body> </soapenv:Envelope> |
Response Format
Panel | ||
---|---|---|
| ||
|
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information. | 0 |
Status | Click here for more information. | ||
ServerTimestampUtc | DateTime | Click here for more information. | 2018-02-06T17:51:24.722311Z |
CostCardResults | The error details for any failed cost card inserts or updates. | ||
ExpenseDocument | The details of the expense document (NULL if FullDetailFlag is 'false'). | ||
ExpenseDocumentIdentity | The key fields of the expense document. | ||
ReceiptResults | The error details for any failed receipt inserts or updates. | ||
SaveSucceededFlag | Boolean | If set to 'true', the expense document was successfully saved. The service may successfully save changes to an expense document, but fail during submission. | true |
Response Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsSaveExpenseDocumentResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsSaveExpenseDocumentResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-02-06T17:51:24.722311Z</ServerTimestampUtc>
<a:CostCardResults i:nil="true"/>
<a:ExpenseDocument>
<a:AllowAttachReceiptsToCcFlag>true</a:AllowAttachReceiptsToCcFlag>
<a:AllowAttachReceiptsToEdFlag>true</a:AllowAttachReceiptsToEdFlag>
<a:CostCards/>
<a:DisbursedCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:CurrencyCode>USD</b:CurrencyCode>
<b:CurrencyId i:nil="true"/>
<b:CurrencyUid>1152921504606851838</b:CurrencyUid>
</a:DisbursedCurrencyIdentity>
<a:DocumentCount>0</a:DocumentCount>
<a:ExpenseDocumentDetail>
<DocumentNumber xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">ER00695</DocumentNumber>
<ExpenseDocumentId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ExpenseDocumentUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607683542</ExpenseDocumentUid>
<a:CashAdvanceReturnAmount>1</a:CashAdvanceReturnAmount>
<a:CostCenterIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:CostCenterId i:nil="true"/>
<b:CostCenterName>Section B</b:CostCenterName>
<b:CostCenterNumber>Section B</b:CostCenterNumber>
<b:CostCenterUid>1152921504606884477</b:CostCenterUid>
</a:CostCenterIdentity>
<a:DocumentName>Expense Document A</a:DocumentName>
<a:DocumentType>E</a:DocumentType>
<a:LocationIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:LocationId i:nil="true"/>
<b:LocationName>USA</b:LocationName>
<b:LocationUid>1152921504606855985</b:LocationUid>
</a:LocationIdentity>
<a:ResourceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:ResourceDisplayName>Beth Brown</b:ResourceDisplayName>
<b:ResourceId i:nil="true"/>
<b:ResourceReferenceSystemId>E125</b:ResourceReferenceSystemId>
<b:ResourceUid>1152921504607111786</b:ResourceUid>
</a:ResourceIdentity>
<a:VendorIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:VendorId i:nil="true"/>
<b:VendorName>Beth Brown</b:VendorName>
<b:VendorUid>1152921504607055834</b:VendorUid>
<b:VendorNumber>Beth Brown</b:VendorNumber>
</a:VendorIdentity>
<a:VendorInvoiceDate i:nil="true"/>
<a:VendorInvoiceReferenceNumber i:nil="true"/>
<a:Vendor xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:VendorId i:nil="true"/>
<b:VendorName>Beth Brown</b:VendorName>
<b:VendorUid>1152921504607055834</b:VendorUid>
<b:VendorNumber>Beth Brown</b:VendorNumber>
<b:ExpenseReportPayeeFlag>true</b:ExpenseReportPayeeFlag>
<b:InactiveFlag>false</b:InactiveFlag>
<b:ResourceVendorFlag>true</b:ResourceVendorFlag>
<b:VendorInvoicePayeeFlag>false</b:VendorInvoicePayeeFlag>
<b:SubcontractorInvoicePayeeFlag>true</b:SubcontractorInvoicePayeeFlag>
</a:Vendor>
<a:SubcontractorInvoiceDate i:nil="true"/>
<a:SubcontractorInvoiceReferenceNumber i:nil="true"/>
<a:NewDocumentNumber i:nil="true"/>
<a:SubcontractorInvoiceReferenceNumberClearFlag>false</a:SubcontractorInvoiceReferenceNumberClearFlag>
<a:Timestamp>AAAAAA62H8c=</a:Timestamp>
<a:VendorInvoiceReferenceNumberClearFlag>false</a:VendorInvoiceReferenceNumberClearFlag>
</a:ExpenseDocumentDetail>
<a:ExpenseDocumentVatFlag>false</a:ExpenseDocumentVatFlag>
<a:Invoices/>
<a:Locations xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<a:LockedFlag>false</a:LockedFlag>
<a:NoteCount>0</a:NoteCount>
<a:PayeeVendors xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:PwsVendorSummary>
<b:VendorId i:nil="true"/>
<b:VendorName>Beth Brown</b:VendorName>
<b:VendorUid>1152921504607055834</b:VendorUid>
<b:VendorNumber>Beth Brown</b:VendorNumber>
<b:ExpenseReportPayeeFlag>true</b:ExpenseReportPayeeFlag>
<b:InactiveFlag>false</b:InactiveFlag>
<b:ResourceVendorFlag>true</b:ResourceVendorFlag>
<b:VendorInvoicePayeeFlag>false</b:VendorInvoicePayeeFlag>
<b:SubcontractorInvoicePayeeFlag>true</b:SubcontractorInvoicePayeeFlag>
</b:PwsVendorSummary>
</a:PayeeVendors>
<a:Projects>
<a:PwsExpenseEntryProject>
<ProjectCode xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">P001407-001</ProjectCode>
<ProjectId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ProjectUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607413030</ProjectUid>
<a:BookedResourcesOnlyFlag>false</a:BookedResourcesOnlyFlag>
<a:EarliestRoleStartDate>2018-01-01T00:00:00Z</a:EarliestRoleStartDate>
<a:EngagementDescriptor>
<EngagementCode xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">E001407</EngagementCode>
<EngagementId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<EngagementUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607325242</EngagementUid>
<a:ClientDescriptor>
<ClientId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ClientNumber xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">PR-PSA</ClientNumber>
<ClientUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504606961482</ClientUid>
<a:ClientName>Projector PSA</a:ClientName>
<a:ParentClientDescriptor i:nil="true"/>
</a:ClientDescriptor>
<a:EngagementManager xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:UserDisplayName>Jack Spratt</b:UserDisplayName>
<b:UserId i:nil="true"/>
<b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
<b:UserUid>1152921504607112369</b:UserUid>
<b:EmailAddress>jack@revcorp.bb</b:EmailAddress>
<b:FirstName>Jack</b:FirstName>
<b:LastName>Spratt</b:LastName>
<b:MiddleName i:nil="true"/>
</a:EngagementManager>
<a:EngagementName>Engagement A</a:EngagementName>
<a:EngagementTypeDescriptor>
<EngagementTypeId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<EngagementTypeName xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">Billable - Time and Materials</EngagementTypeName>
<EngagementTypeShortName xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">TandM</EngagementTypeShortName>
<EngagementTypeUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504606863884</EngagementTypeUid>
<a:BillableFlag>true</a:BillableFlag>
</a:EngagementTypeDescriptor>
<a:EngagementCurrencyDecimalDigits>2</a:EngagementCurrencyDecimalDigits>
<a:EngagementCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:CurrencyCode>USD</b:CurrencyCode>
<b:CurrencyId i:nil="true"/>
<b:CurrencyUid>1152921504606851838</b:CurrencyUid>
</a:EngagementCurrencyIdentity>
</a:EngagementDescriptor>
<a:LatestRoleEndDate i:nil="true"/>
<a:LocationIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:LocationId i:nil="true"/>
<b:LocationName>USA</b:LocationName>
<b:LocationUid>1152921504606855985</b:LocationUid>
</a:LocationIdentity>
<a:OpenForCostFlag>true</a:OpenForCostFlag>
<a:ProjectCloseDate i:nil="true"/>
<a:ProjectDescription i:nil="true"/>
<a:ProjectManager xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:UserDisplayName>Jack Spratt</b:UserDisplayName>
<b:UserId i:nil="true"/>
<b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
<b:UserUid>1152921504607112369</b:UserUid>
<b:EmailAddress>jack@revcorp.bb</b:EmailAddress>
<b:FirstName>Jack</b:FirstName>
<b:LastName>Spratt</b:LastName>
<b:MiddleName i:nil="true"/>
</a:ProjectManager>
<a:ProjectName>Project A</a:ProjectName>
<a:ProjectOpenDate>2018-01-01T00:00:00Z</a:ProjectOpenDate>
<a:ProjectStageIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:ProjectStageId i:nil="true"/>
<b:ProjectStageName>Delivery</b:ProjectStageName>
<b:ProjectStageShortName>Delivery</b:ProjectStageShortName>
<b:ProjectStageUid>1152921504606853304</b:ProjectStageUid>
</a:ProjectStageIdentity>
<a:RoleCount>1</a:RoleCount>
<a:Udf1InactiveFlag>false</a:Udf1InactiveFlag>
<a:Udf1Values xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<a:Udf2InactiveFlag>false</a:Udf2InactiveFlag>
<a:Udf2Values xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<a:AllowBookingFlag>true</a:AllowBookingFlag>
<a:Udf1DefaultValue i:nil="true"/>
<a:Udf2DefaultValue i:nil="true"/>
<a:ExpenseTypeIdentities xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:PwsExpenseTypeRef>
<b:ExpenseTypeId i:nil="true"/>
<b:ExpenseTypeName>Meals</b:ExpenseTypeName>
<b:ExpenseTypeUid>1152921504606878415</b:ExpenseTypeUid>
</b:PwsExpenseTypeRef>
<b:PwsExpenseTypeRef>
<b:ExpenseTypeId i:nil="true"/>
<b:ExpenseTypeName>Other/Misc Billable</b:ExpenseTypeName>
<b:ExpenseTypeUid>1152921504606879705</b:ExpenseTypeUid>
</b:PwsExpenseTypeRef>
<b:PwsExpenseTypeRef>
<b:ExpenseTypeId i:nil="true"/>
<b:ExpenseTypeName>Meals and Entertainment</b:ExpenseTypeName>
<b:ExpenseTypeUid>1152921504606881279</b:ExpenseTypeUid>
</b:PwsExpenseTypeRef>
<b:PwsExpenseTypeRef>
<b:ExpenseTypeId i:nil="true"/>
<b:ExpenseTypeName>Travel</b:ExpenseTypeName>
<b:ExpenseTypeUid>1152921504606881280</b:ExpenseTypeUid>
</b:PwsExpenseTypeRef>
</a:ExpenseTypeIdentities>
</a:PwsExpenseEntryProject>
</a:Projects>
<a:Receipts/>
<a:TitleIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:DepartmentIdentity>
<b:DepartmentId i:nil="true"/>
<b:DepartmentName>Administrative Team</b:DepartmentName>
<b:DepartmentUid>1152921504606854346</b:DepartmentUid>
</b:DepartmentIdentity>
<b:TitleId i:nil="true"/>
<b:TitleName>Level 2</b:TitleName>
<b:TitleUid>1152921504606876426</b:TitleUid>
</a:TitleIdentity>
<a:Vouchers/>
<a:AllowCloneFlag>true</a:AllowCloneFlag>
<a:AllowDeleteFlag>true</a:AllowDeleteFlag>
<a:Category>S</a:Category>
<a:CreatedByUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:UserDisplayName>Beth Brown</b:UserDisplayName>
<b:UserId i:nil="true"/>
<b:UserReferenceSystemId>E125</b:UserReferenceSystemId>
<b:UserUid>1152921504607112693</b:UserUid>
<b:EmailAddress>beth@revcorp.bb</b:EmailAddress>
<b:FirstName>Beth</b:FirstName>
<b:LastName>Brown</b:LastName>
<b:MiddleName i:nil="true"/>
</a:CreatedByUser>
<a:CreatedTimestamp>2018-02-06T17:51:25.43Z</a:CreatedTimestamp>
<a:LastUpdatedByUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:UserDisplayName>Beth Brown</b:UserDisplayName>
<b:UserId i:nil="true"/>
<b:UserReferenceSystemId>E125</b:UserReferenceSystemId>
<b:UserUid>1152921504607112693</b:UserUid>
<b:EmailAddress>beth@revcorp.bb</b:EmailAddress>
<b:FirstName>Beth</b:FirstName>
<b:LastName>Brown</b:LastName>
<b:MiddleName i:nil="true"/>
</a:LastUpdatedByUser>
<a:LastUpdatedTimestamp>2018-02-06T17:51:25.43Z</a:LastUpdatedTimestamp>
<a:PaymentVoucherItems>
<a:PwsPaymentVoucherItem>
<a:Amount>7.99</a:Amount>
<a:EffectiveStatus>S</a:EffectiveStatus>
<a:ItemCount>1</a:ItemCount>
<a:PaymentVoucher i:nil="true"/>
<a:ProjectSummary i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
</a:PwsPaymentVoucherItem>
</a:PaymentVoucherItems>
<a:Status>S</a:Status>
<a:DisbursedCurrencyDecimalDigits>2</a:DisbursedCurrencyDecimalDigits>
<a:MileageUom>M</a:MileageUom>
<a:ExpenseDocumentLockedFlag>false</a:ExpenseDocumentLockedFlag>
<a:ApprovalWorkflowStatus>S</a:ApprovalWorkflowStatus>
<a:CostCardTotalDisbursedAmount>7.99</a:CostCardTotalDisbursedAmount>
<a:DeleteExpenseDocumentUnavailableReason i:nil="true"/>
<a:DueToOtherPayeesAmount>0</a:DueToOtherPayeesAmount>
<a:InvoiceWorkflowStatus>N</a:InvoiceWorkflowStatus>
<a:MaintainExpenseDocumentUnavailableReason i:nil="true"/>
<a:PaymentWorkflowStatus>N</a:PaymentWorkflowStatus>
<a:ViewInExpenseEntryFlag>true</a:ViewInExpenseEntryFlag>
</a:ExpenseDocument>
<a:ExpenseDocumentIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:DocumentNumber>ER00695</b:DocumentNumber>
<b:ExpenseDocumentId i:nil="true"/>
<b:ExpenseDocumentUid>1152921504607683542</b:ExpenseDocumentUid>
</a:ExpenseDocumentIdentity>
<a:ReceiptResults i:nil="true"/>
<a:SaveSucceededFlag>true</a:SaveSucceededFlag>
</PwsSaveExpenseDocumentResult>
</PwsSaveExpenseDocumentResponse>
</s:Body>
</s:Envelope> |
PwsSaveExpenseDocument - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
137 | CostCardDescriptionTruncated | The specified cost card description exceeded the maximum length of 4000 characters and was truncated. |
138 | ExpenseDocumentNameTruncated | The specified expense document name exceeded the maximum length of 50 characters and was truncated. |
19001 | CostCardErrors | One or more cost cards could not be saved. The expense document was not created. Check CostCardResults for specific errors. |
19004 | ExpenseDocumentNotSpecifiedForRetrieve | No expense document was specified for retrieval. |
19015 | ExpenseDocumentNotSpecifiedForSave | No expense document was specified for saving. |
19021 | ExpenseDocumentOrDisbursingCostCenterRequired | Must specify either an expense document or a disbursing cost center for retrieving approvers. |
19034 | InvalidValueForExpenseDocumentType | The value specified for expense document type is invalid. Value values are E for Expense Report, V for Vendor Invoice and S for Soft Card Batch. |
19039 | ExpenseDocumentNotSpecifiedForSaveReceipt | Expense document identity is required. |
19073 | ExpenseDocumentIdentityRequired | An expense document identity must be specified. |
65195 | ReceiptsMayNotBeAssociatedWithEntireExpenseDocument | Account is configured not to allow receipts to be attached to an entire expense document. |
65196 | ReceiptsMayNotBeAssociatedWithIndividualCostCards | Account is configured not to allow receipts to be attached to individual cost cards. |
65197 | NoPermissionToSubmitOneOrMoreCostCards | You do not have permission to submit one or more cost cards. |
65468 | SpecifiedReceiptDoesNotBelogToSpecifiedExpenseDocument | Receipt/expense document mismatch |
65470 | SpecifiedCostCardDoesNotBelongToSpecifiedExpenseDocument | Cost card/expense document mismatch |
65476 | FullyApprovedExpenseDocumentsMayNotBeUpdated | Expense document is fully approved and can no longer be modified |
65481 | CannotRemoveLockedReceipt | Receipt is locked and cannot be removed |
65487 | LocationInactiveOrNotEnabledForCostCards | Specified location is inactive or not enabled for cost cards. |
65489 | CostCardRefInvalid | CostCardRef is required |
65491 | CostCardNotFound | CostCard not found |
65492 | ExpenseDocumentRefInvalid | ExpenseDocumentRef is required |
65494 | ExpenseDocumentNotFound | Expense document not found |
65495 | ExpenseDocumentHasBeenUpdatedByAnotherUser | Expense document has been changed. |
65502 | ReceiptRefInvalid | ReceiptRef is required |
65504 | ReceiptNotFound | Receipt not found |
65506 | MemoryNotSupportForThisTypeOfExpenseDocument | Memory is supported only for expense report expense documents |
65547 | DisbursingCostCenterMayNotBeChangedOnExistingExpenseDocuments | Disbursing cost center may not be changed on existing expense documents |
65554 | DocumentNumberIsRequiredForNewExpenseDocuments | Document number is required for new expense documents because account is configured to use manual expense document numbering (document type =%s) |
65556 | SpecifiedExpenseDocumentNumberAlreadyInUse | Specified document number already in use |
65562 | EntireExpenseReportFlagIsRequiredForNewReceipts | Entire expense report flag is required when attaching a new receipt |
65563 | ReceiptMayNotBeTransferredBetweenExpenseDocuments | Receipt may not be transferred between expense documents |
65564 | ReceiptMayNotBeAssociatedWithADifferentDocument | Receipt may not be associated with a different document |
65565 | SpecifiedReceiptHasBeenDeleted | Specified receipt has been deleted |
65567 | ReceiptsCannotBeAddedOrUpdatedForExpenseDocument | Expense document is locked for addition/update of receipts associated with entire document |
65568 | DocumentNotFoundInUserReceiptPoolFolder | Document not found in user receipt pool folder |
65570 | LockedReceiptCannotBeModified | Receipt is locked and cannot be modified |
65572 | ReceiptsAttachedToLockedCostCardCannotBeChangedOrRemoved | Cost card is locked, and receipts associated with it cannot be changed or removed |
65610 | RemainingCashAdvanceExceedsTotalOfFreeResourcePaidCostCards | The remaining cash advance amount (the portion of the cash advance amount not already allocated to payment vouchers) may not exceed the total disbursed amount among all cost cards on this expense document not already on payment vouchers. |
65622 | CannotCreateSubcontractorInvoiceCardsChanged | Unable to create subcontractor invoice because one or more included time cards has changed. |
65630 | GivenCurrencyNotSameAsReportCurrency | The specified currency does not match the expense document's disbursed currency. |
65648 | SpecifiedDocumentNotOfSpecifiedType | Specified document type and expense document do not match. |
65649 | DisbCostCenterDiffersFromEdCostCenter | The specified disbursing cost center and expense document do not match. |
65650 | ExpDocOrCostCtrReqdForViSc | Either an expense document or cost center must be specified for vendor invoices and soft cost batches. |
65651 | ExpDocOrRrscReqdForExpenseReport | Either expense document or resource must be specified for expense reports. |
65745 | SpecifiedSubcontractorInvoiceNumberAlreadyInUse | Specified expense document number is already in use. |
65761 | DuplicateExpenseDocumentSpecified | Duplicate expense document specified. |
65764 | NoPermissionToSaveCostCard | You do not have permission to save this cost card. |
65765 | InvalidValueForOverrideClientAmount | Override client amount cannot be set to a non-zero amount for expense report or subcontractor invoice cost cards. |
65766 | CannotChangeResourceForSiCostCards | Resource cannot be changed on subcontractor invoice cost cards. |
65767 | VendorExpenseReportCompanyMismatch | Vendor cost center and expense report cost center must be in the same company. |
65772 | SubcontractorInvoiceDateMustBeSpecified | Subcontractor invoice date must be specified on subcontractor invoices. |
65773 | SubcontractorInvoiceDateCannotBeSpecified | Subcontractor invoice date may only be specified on subcontractor invoices. |
65774 | SubcontractorInvoiceReferenceNumberCannotBeSpecified | Subcontractor invoice reference number may only be specified on subcontractor invoices. |
65775 | CanOnlyAssociatedExpenseReportsWithResource | Only expense report expense documents can be associated with a resource. |
65776 | ExpenseReportResourceCannotBeChanged | An expense report resource cannot be changed after expense document creation. |
65777 | ExpenseReportVendorCannotBeChanged | Vendor cannot be changed on existing expense reports. |
65778 | SubcontractorInvoiceVendorCannotBeChanged | Vendor cannot be changed on existing subcontractor invoices. |
65779 | SubcontractorInvoiceVendorMustBeSpecified | Vendor must be specified for new subcontractor invoices. |
65780 | SpecifiedSubcontractorInvoiceVendorInvalid | Vendor on subcontractor invoice must be enabled as a subcontractor invoice payee. |
65781 | ExpenseReportResourceVendorMismatch | Vendor on expense report must match the resource expense report vendor. |
65782 | SpecifiedExpenseReportVendorInvalid | Vendor on expense report must be enabled as an expense report payee. |
65783 | SpecifiedExpenseDocumentVendorInvalid | Vendor is inactive. |
65784 | ExpenseReportPayeeVendorCostCenterMismatch | Non-resource payee expense report cost center, if specified, must match payee vendor cost center. |
65785 | SubcontractorInvoiceVendorCostCenterMismatch | Subcontractor invoice cost center, if specified, must match vendor cost center. |
65786 | NoPermissionToMaintainReceipts | You do not have permission to maintain receipts on this expense document. |
65787 | NoPermissionToViewCostCard | You do not have permission to view this cost card. |
65788 | CannotRetrieveReceiptsWithoutCostCards | Cannot retrieve receipts without cost cards. |
65796 | SiCostsCannotBeChangedToPassthrough | Costs on subcontractor invoices cannot be changed to a passthrough expense type. |
65797 | AtLeastOneCardNotFromSpecifiedExpenseDocument | At least one cost card is not from specified expense document. |
65798 | VatAmountMayNotExceedTotalAmountOnDac | VAT amount may not exceed total amount. |
65799 | DisbursedAndVatAmountsDifferingSigns | Base amount and VAT amount must have the same sign. |
65800 | DisbursedAndClientAmountsDifferingSigns | Base amount and client amount must have the same sign. |
65801 | VatAmountMayNotExceedTotalAmountOnSave | VAT amount may not exceed total amount. |
65802 | CostCardMarkupPercentageOutOfRange | Markup percentage may not be less than -100%. |
65803 | DisbursedAndClientAmountsDifferingSignsOnWc | Adjustment would create one or more cost cards with disbursed and client amounts with opposing signs. |
65804 | SubcontractorInvoiceExpected | Specified expense document is not a subcontractor invoice. |
65805 | NoPermissionToMaintainSubcontractorInvoice | You do not have permission to maintain this subcontractor invoice. |
65819 | ResourceMayOnlyBeSpecifiedForExpenseReports | A resource identity may only be specified when retrieving approvers for an expense report. |
65820 | ExpenseDocumentRefOrResourceRefRequiredForExpenseReports | Please specify either an expense document identity or a resource identity, or both. When retrieving approvers for an expense report. |
65821 | CannotSpecifyOverrideClientAmountOnSubcontractorInvoiceCosts | Override client amount cannot be specified for subcontractor invoice cost cards. |
65822 | VendorsInvoiceNumberAlreadyInUse | Specified vendor's invoice number is already in use. |
65824 | PassthroughExpensesNotAllowedOnSubcontractorInvoices | Pass-through expense types cannot be used on subcontractor invoices. |
65825 | VATAmountAndTotalAmountSignMismatch | VAT and total amounts in incurred and disbursed currencies must all share a common sign. |
65826 | OverrideClientAmountAndDisbursedAmountSignMismatch | Override client and base amounts must share a common sign. |
65827 | CannotUnsubmitCostCardApClosed | This cost card cannot be unsubmitted because its accounting period is closed. |