RSM InTime provides a SOAP Web Service Interface that allows two-way flow of information to external systems. This enables automated and efficient transfer of data to and from your other systems reducing effort and duplication.
...
updateTimesheet() method will create a new Timesheet or update an existing one if it exists in Draft status. The Timesheet will be saved with Draft status. The Timesheet object you supply to this method must contain all the necessary data which includes a valid Placement reference, the Period End date and one or more Shifts. Each Shift must reference a valid Rate from the Placement, the Time worker or a Decimal value and the Date on which it was worked. It will normally be necessary to retrieve the details of the Placement the Timesheet relates to in order to correctly complete all the required fields.
submitTimesheet() would then be called to submit the Timesheet for approval once it has all the necessary time (Shifts) added to it.
rejectTimesheet() or approveTimesheet() are then used to process the approval.
revertTimesheet() can also be used to revert a Submitted or Approved status Timesheet if required. This has exactly the same result as reverting a Timesheet though the RSM InTime UI.
Single Sign On
getSingleSignOnToken() can be used to log in to RSM InTime using an existing RSM InTime User account. This method returns a token that you can then append to any valid RSM InTime URL and it will allow you to retrieve the page as if you were logged into the system directly. This means you can embed RSM InTime pages within another web site or retrieve other data.
An example SSO token would look like this:
QS5TbWl0aDoxNjk0NzY3NDI5NTM0Ojg0OThkMGY1ZTQzMzdlYzI0YjRiZjU3YzZhNDg4MDI4
So appending an SSO token for an Admin user to a URL for the summary of a Worker could look like this:
http://demo.in-time.co.uk/summary/worker?id=1&ticket=QS5TbWl0aDoxNjk0NzY3NDI5NTM0Ojg0OThkMGY1ZTQzMzdlYzI0YjRiZjU3YzZhNDg4MDI4
For the Summary screens only you can append "&embed=true" to the URL to hide the menu and footers. This does not apply to other InTime screens.
IMPORTANT: Note that once you have accessed InTime with an SSO token you are logged into InTime as that user and navigation and access rights are determined exactly as if you logged into InTime directly as that user.
Other methods
The interface also provides various other methods. Some examples:
getMissingTimesheetsForPlacement() identifies any periods within the specified range that do not contain an approved timesheet. The response will include a status that indicates if it is Missing, Draft or Submitted.
getAllPayElements() returns a list of all Pay Elements present in the system.
getURLForContractorsPayslip() retrieves the URL to viewing a workers Payslips. *InPay Linked systems only
Getting started
The RSM InTime Web Service uses the Simple Object Access Protocol (SOAP) interface as opposed to REST. This is a stricter protocol than REST which means you can only call the defined methods available and the return types will be in a fixed format. Normally you would start by building "stub" code against the WSDL file that defines the interface.
LATEST WSDL Version: https://your_system_url.com/services/IntimeServiceV3_8?wsdl
Java Example
This example was written using the WSDL file for version 3.2 of the web services on our demo system:
https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl
Various tools are available for building the stub code. wsdl2java in the axis 2 package works well for java development:
From the command line run:
/axis2-1.6.2/bin/wsdl2java.sh -or -uri "https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl"
This will produce the following files:
/src/uk/co/in_time/IntimeServiceV3_2Stub.java
/src/uk/co/in_time/IntimeServiceV3_2CallbackHandler.java
/src/uk/co/in_time/IntimeServiceV3_2IntimeWebServiceException.java
Include and reference these files in your application and you will be able to make calls to the Web Services. Some examples are given below.
It is important to enclose your web service calls in try / catch blocks as Exceptions are used as the mechanism for feeding back any issues. For example if you attempt to create a placement without providing an External ID, an exception will be returned from the Web Service call with an appropriate message.
Client Code - Pseudocode examples
RETRIEVING ENTITY DATA FROM A FRONTEND SYSTEM:
...
#Get placements and associated data from frontend system that you require in InTIME
#Consultant
def cons = getConsultantsByExternalID(consultantId);
if(cons>1)"Error"
def con = cons.first();
if(con==null)con = new Consutlant();
con*PopulateFields*
createOrUpdateConsutlant(con);
#Manager Client
def mclients = getClientsByExternalID(mclientId);
if(mclients>1)"Error"
def mclient = mclients.first();
if(mclient==null)mclient = new Client();
mclient*PopulateFields*
createOrUpdateClient(mclient);
#Manager
def mans = getManagersByExternalID(managerId);
if(mans>1)"Error"
def man = mans.first();
if(man==null)man = new Manager();
man.client = mclient
man*PopulateFields*
createOrUpdateManager(man);
#Provider
def provs = getProvidersByExternalID(providerId);
if(provs>1)"Error"
def prov = provs.first();
if(prov==null)prov = new Provider();
prov*PopulateFields*
createOrUpdateProvider(prov);
#Worker
def wkrs = getWorkersByExternalID(workerId);
if(wkrs>1)"Error"
def wkr = wkrs.first();
if(wkr==null)wkr = new Worker();
if(prov!=null)wkr.provider = prov
wkr*PopulateFields*
createOrUpdateWorker(wkr);
#Billing Client
def bclients = getClientsByExternalID(bclientId);
if(pclients>1)"Error"
def bclient = bclients.first();
if(bclient==null)bclient = new Client();
bclient*PopulateFields*
createOrUpdateClient(bclient);
#Placement
def plac = getPlacementByExternalID(placementId);
if(plac==null)plac = new Placement();
plac.consultant = con
plac.client = bclient
plac.manager = man
plac.worker = wkr
plac*PopulateFields*
createOrUpdatePlacement(plc);
RETRIEVING UPDATES FROM RSM InTime:
...
def entityList = getModifiedItemsWithRefCode(java.lang.String token, java.util.Calendar since)
for(entityList){
if(entity.getType()=="Worker")*Read full Worker and action as required*
if(entity.getType()=="Placement")*Read full Placement and action as required*
if(entity.getType()=="Timesheet")*Read full Timesheet and action as required*
if(entity.getType()=="ExpenseItem")*Read full Expense Item and action as required*
if(entity.getType()=="Client")*Read full Client and action as required*
if(entity.getType()=="LtdCoProvider")*Read full Ltd Company Provider and action as required*
if(entity.getType()=="Consultant")*Read full Consultant and action as required*
if(entity.getType()=="Manager")*Read full Manager and action as required*
if(entity.getType()=="LtdCoUser")*Read full Ltd Company User and action as required*
if(entity.getType()=="Reckoning")*Read full Invoice, Credit Note or Advice Note and action as required*
if(entity.getType()=="ContractDocument")*Read full Contract Document and action as required*
if(entity.getType()=="PurchaseOrder")*Read full Purchase Order and action as required*
if(entity.getType()=="PaymentBatch")*Read full Payment Batch and action as required*
if(entity.getType()=="Project")*Read full Project and action as required (WS V2.9+)*
}
RETRIEVING INVOICE LINKS:
...
def entityList = getModifiedItemsWithRefCodeByType(java.lang.String token, java.util.Calendar since, java.lang.String "Reckoning")
for(entityList:entity){
def entityRefCode = entity.getRefCode()
def downloadlink = "https://<SERVER URL>/reckoning/collectInvoice?refCode="+entityRefCode
Call(downloadlink)
}
RETRIEVING INVOICES TO EXPORT:
...
As of 3.12 there is a "hidden" parameter. This creates the timesheet but keeps it hidden from the UI so it can not be affected by UI processes. This can be used to create a timesheet that should only be invoiced via the web services for example. Hidden timesheets can be updated via this method while they are still in draft status but you must set the hidden parameter of the method call to true. You can unhide the timesheet by changing the "hidden" property of the timesheet to false. Hidden timesheets still have to be approved before they can be invoiced/exported - the forceApproveTimesheet can be used for this which bypasses the approval route. Hidden timesheets are automatically unhidden when first invoiced on either the Sales or Purchase side.
submitTimesheet() would then be called to submit the Timesheet for approval once it has all the necessary time (Shifts) added to it.
rejectTimesheet() or approveTimesheet() are then used to process the approval.
revertTimesheet() can also be used to revert a Submitted or Approved status Timesheet if required. This has exactly the same result as reverting a Timesheet though the RSM InTime UI.
Invoicing
As of 3.12 you can generate invoices using the generateInvoices( ) method. This method requires a SearchCriteria parameter which is used to filter the items to be invoiced. This needs to be populated with appropriate criteria to select only the items you wish to invoice.
Warning: if no criteria are specified all invoiceable items in the system will be invoiced!
It is possible to specify a list of specific timesheet IDs or ExpenseItem IDs that you wish to invoice using SearchCriteria.timesheetIDs or SearchCriteria.expenseItemIDs.
You must specify the type of invoices you wish to generate from: ClientInvoice, SelfBillInvoice or AdviceNote.
You can not credit invoices using this method. However, invoicing net negative items will result in a Credit Note rather than an Invoice.
To invoice "Hidden" timesheets, set the SearchCriteria.includeHidden property to true.
Examples:
request.setInvoiceType("ClientInvoice");
searchCriteria.setIncludeTimesheets(true);
searchCriteria.setIncludeHidden(true);
long[] tsIds = new long[2];
tsIds[0] = 123L;
tsIds[1] = 456L;
searchCriteria.setTimesheetIDs(tsIds);
searchCriteria.setIncludeExpenses(false);
searchCriteria.setExpenseItemIDFrom(3001L);
searchCriteria.setExpenseItemIDTo(3009L);
request.setSearchCriteria(searchCriteria);
Calendar invDate = Calendar.getInstance();
invDate.set(2024,10,1,0,0,0);
request.setInvoiceDate(invDate);
As of 3.12 you can uploadSupplierInvoice() to an AdviceNote and accept it via acceptSupplierInvoice()
Single Sign On
getSingleSignOnToken() can be used to log in to RSM InTime using an existing RSM InTime User account. This method returns a token that you can then append to any valid RSM InTime URL and it will allow you to retrieve the page as if you were logged into the system directly. This means you can embed RSM InTime pages within another web site or retrieve other data.
An example SSO token would look like this:
QS5TbWl0aDoxNjk0NzY3NDI5NTM0Ojg0OThkMGY1ZTQzMzdlYzI0YjRiZjU3YzZhNDg4MDI4
So appending an SSO token for an Admin user to a URL for the summary of a Worker could look like this:
http://demo.in-time.co.uk/summary/worker?id=1&ticket=QS5TbWl0aDoxNjk0NzY3NDI5NTM0Ojg0OThkMGY1ZTQzMzdlYzI0YjRiZjU3YzZhNDg4MDI4
For the Summary screens only you can append "&embed=true" to the URL to hide the menu and footers. This does not apply to other InTime screens.
IMPORTANT: Note that once you have accessed InTime with an SSO token you are logged into InTime as that user and navigation and access rights are determined exactly as if you logged into InTime directly as that user.
Other methods
The interface also provides various other methods. Some examples:
getMissingTimesheetsForPlacement() identifies any periods within the specified range that do not contain an approved timesheet. The response will include a status that indicates if it is Missing, Draft or Submitted.
getAllPayElements() returns a list of all Pay Elements present in the system.
getURLForContractorsPayslip() retrieves the URL to viewing a workers Payslips. *InPay Linked systems only
Getting started
The RSM InTime Web Service uses the Simple Object Access Protocol (SOAP) interface as opposed to REST. This is a stricter protocol than REST which means you can only call the defined methods available and the return types will be in a fixed format. Normally you would start by building "stub" code against the WSDL file that defines the interface.
LATEST WSDL Version: https://your_system_url.com/services/IntimeServiceV3_8?wsdl
Java Example
This example was written using the WSDL file for version 3.2 of the web services on our demo system:
https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl
Various tools are available for building the stub code. wsdl2java in the axis 2 package works well for java development:
From the command line run:
/axis2-1.6.2/bin/wsdl2java.sh -or -uri "https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl"
This will produce the following files:
/src/uk/co/in_time/IntimeServiceV3_2Stub.java
/src/uk/co/in_time/IntimeServiceV3_2CallbackHandler.java
/src/uk/co/in_time/IntimeServiceV3_2IntimeWebServiceException.java
Include and reference these files in your application and you will be able to make calls to the Web Services. Some examples are given below.
It is important to enclose your web service calls in try / catch blocks as Exceptions are used as the mechanism for feeding back any issues. For example if you attempt to create a placement without providing an External ID, an exception will be returned from the Web Service call with an appropriate message.
Client Code - Pseudocode examples
RETRIEVING ENTITY DATA FROM A FRONTEND SYSTEM:
#Get placements and associated data from frontend system that you require in InTIME#Consultant |
---|
RETRIEVING UPDATES FROM RSM InTime:
def entityList = getModifiedItemsWithRefCode(java.lang.String token, java.util.Calendar since, java.lang.String "Reckoning" |
---|
Read a Placement
try { IntimeServiceV3_2Stub.GetPlacementByExternalId request=new IntimeServiceV3_2Stub.GetPlacementByExternalId(); request.setId("WEB-PLC-001"); request.setToken(ticket); //from authenticate call GetPlacementByExternalIdResponse placementResponse=stub.getPlacementByExternalId(request); Placement placement=placementResponse.get_return(); if (placement != null) { System.out.println("Read Placement with External Id: " + placement.getExternalId() + " Internal Id: " + placement.getId()); System.out.println("RefCode: " + placement.getRefCode()); System.out.println("Worker:" + placement.getWorker().getExternalId() + " " + placement.getWorker().getLastname()); System.out.println("Consultant: " + placement.getConsultant().getExternalId() + " " + placement.getConsultant().getLastname()); System.out.println("Manager: " + placement.getManager().getExternalId() + " " + placement.getManager().getLastname()); System.out.println("Client: " + placement.getClient().getExternalId() + " " + placement.getClient().getName()) def entityRefCode = entity.getRefCode() |
---|
RETRIEVING TIMESHEETS:
...
def entityList = getModifiedItemsWithRefCodeByType(java.lang.String token, java.util.Calendar since, java.lang.String "Timesheet")
for(entity:entityList){
def entityRefCode = entity.getRefCode()
def timesheet = getTimesheetByRefCode(java.lang.String token, java.lang.String entityRefCode)
for(shift:timesheet.getShifts(){
def date = new Date(shift.getDay())
def start = new Date(shift.getStartTime())
def start = new Date(shift.getEndTime())
def start = new Date(shift.getMealBreak())
def hours = new Date(shift.getHours())
def hoursDecimal = shift.getDecimal()
def rateName = shift.getRateName()
def ratePay = getRate().getPay()
def rateCharge = getRate().getCharge()
//PUT INFORMATION COLLECTED HERE WHERE YOU WANT TO PUT IT
}
}
UPDATING FINANCIAL TAG VALUES:
...
def fiancialTags = ws.getAllFinancialTags
def requiredTg
for(fiancialTags:TagCategory tg){
if(tg.name == "financialName")requiredTg = tg
}
def tagValues = requiredTg.getTagCategoryValues()
def requiredValue = "tagValue"
def matched = false
for(tagValues:TagCategoryValue tcv){
if(tcv==requiredValue)matched=true
}
if(!matched){
def tv = new TagCategoryValue()
tv.setValue(requiredValue)
tagValues.add(tv)
requiredTg.setTagCategoryValues(tagValues)
ws.createOrUpdateFinancialTag(requiredTg)
}
UPDATING FINANCIAL TAG VALUES:
...
def plc = getPlacementByExternalId(token,xxxxx) – xxxx being unique placement Ref
def onCostConfig = new OnCost()
onCostConfig.description = “xxxx” //Must match existing OnCosts Config
def placementOnCost = new OnCostsInstance()
placementOnCost.onCost = onCostConfig
placementOnCost.amount = xxxx //As required
def exists = false
for(def currentOnCostInstance:placement.purchaseOnCosts){
if(currentOnCostInstance.onCost.description == “xxxx”)exists=true //Match description above
}
if(!exists) plc.purchaseOnCosts.add(placementOnCost)
createOrUpdatePlacement(plc)
Java Code
Authenticate
try {
//Create an instance of the stub
IntimeServiceV3_2Stub stub = new IntimeServiceV3_2Stub("https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl");
//Get an authentication token
IntimeServiceV3_2Stub.Authenticate auth=new IntimeServiceV3_2Stub.Authenticate();
auth.setAgencyRefCode("<supplied_credentials>");
auth.setUsername("<supplied_credentials>");
auth.setPassword("<supplied_credentials>");
IntimeServiceV3_2Stub.AuthenticateResponse authResp=stub.authenticate(auth);
String ticket=authResp.get_return();
System.out.println("Authentication token:" + ticket);
//Use this authentication token (ticket) to pass in to any of the other WebService calls
} catch (java.lang.Exception e) {
System.out.println("Exception occurred: " + e);
}
if(entity.getType()=="Worker")*Read full Worker and action as required* |
---|
RETRIEVING INVOICE LINKS:
def entityList = getModifiedItemsWithRefCodeByType(java.lang.String token, java.util.Calendar since, java.lang.String "Reckoning") |
---|
RETRIEVING INVOICES TO EXPORT:
def needRatePayElementCode = false //Not usually needed but if required change to true |
---|
RETRIEVING TIMESHEETS:
def entityList = getModifiedItemsWithRefCodeByType(java.lang.String token, java.util.Calendar since, java.lang.String "Timesheet") |
---|
UPDATING FINANCIAL TAG VALUES:
def fiancialTags = ws.getAllFinancialTags |
---|
UPDATING ONCOSTS ON A PLACEMENT (example below is purchase oncosts but same for sales):
def plc = getPlacementByExternalId(token,xxxxx) – xxxx being unique placement Ref |
---|
Java Code
Authenticate
try { //Create an instance of the stub IntimeServiceV3_2Stub stub = new IntimeServiceV3_2Stub("https://demo.in-time.co.uk/services/IntimeServiceV3_2?wsdl"); //Get an authentication token IntimeServiceV3_2Stub.Authenticate auth=new IntimeServiceV3_2Stub.Authenticate(); auth.setAgencyRefCode("<supplied_credentials>"); auth.setUsername("<supplied_credentials>"); auth.setPassword("<supplied_credentials>"); IntimeServiceV3_2Stub.AuthenticateResponse authResp=stub.authenticate(auth); String ticket=authResp.get_return(); System.out.println(" StartAuthentication token:" + placement.getStart().getTime());if (placement.getEnd() != null)ticket); //Use this authentication token (ticket) to pass in to any of the other WebService calls } catch (java.lang.Exception e) { System.out.println(" EndException occurred: " + placement.getEnd().getTime())e); } System.out.println("Created: " + placement.getCreated().getTime()); System.out.println("Modified: " + placement.getModified().getTime()); System.out.println("TimesheetDateCalculatorName: " + placement.getTimesheetDateCalculatorName()); |
---|
Read a Placement
try { IntimeServiceV3_2Stub.GetPlacementByExternalId request=new IntimeServiceV3_2Stub.GetPlacementByExternalId(); request.setId("WEB-PLC-001"); request.setToken(ticket); //from authenticate call GetPlacementByExternalIdResponse placementResponse=stub.getPlacementByExternalId(request); Placement placement=placementResponse.get_return(); if (placement != null) { System.out.println("Timesheeet Approval RouteRead Placement with External Id: " + placement.getTimesheetApprovalRoutegetExternalId() );System.out.println("Chargeable Expense Approval Route+ " Internal Id: " + placement.getChargeableExpenseApprovalRoutegetId()); System.out.println("Non-Chargeable Expense Approval RouteRefCode: " + placement.getNonChargeableExpenseApprovalRoutegetRefCode()); System.out.println("ContractedHoursWorker:" + placement.getContractedHoursgetWorker());System.out.println("JobDescription :.getExternalId() + " " + placement.getJobDescriptiongetWorker().getLastname()); System.out.println("JobTitleConsultant: " + placement.getJobTitlegetConsultant());System.out.println("NoCommunications: .getExternalId() + " " + placement.getNoCommunicationsgetConsultant().getLastname()); System.out.println("PurchaseOrderNumManager: " + placement.getPurchaseOrderNumgetManager()).getExternalId() + " " + placement.getManager().getLastname()); System.out.println("SalesProjectClient: " + placement.getSalesProjectgetClient());System.out.println("PurchaseBranch: .getExternalId() + " " + placement.getClient().getPurchaseBranchgetName()); System.out.println("CurrencyForChargeStart: " + placement.getCurrencyForChargegetStart().getTime()); if (placement.getEnd() != null) { System.out.println(" CurrencyForPayExpensesEnd: " + placement.getEnd(). getCurrencyForPayExpensesgetTime()); } System.out.println("CurrencyForPayTimesheetsCreated: " + placement.getCreated().getCurrencyForPayTimesheetsgetTime()); System.out.println("PermModified: " + placement.getPermgetModified().getTime()); System.out.println("TimesheetEmailApprovalTimesheetDateCalculatorName: " + placement.getTimesheetEmailApprovalgetTimesheetDateCalculatorName()); System.out.println("Timesheet layoutTimesheeet Approval Route: " + placement.getLayoutgetTimesheetApprovalRoute()); System.out.println("Internal Agency CommentsChargeable Expense Approval Route: " + placement.getInternalAgencyCommentsgetChargeableExpenseApprovalRoute()); System.out.println("Holiday Accural RateNon-Chargeable Expense Approval Route: " + placement.getHolidayAccuralRategetNonChargeableExpenseApprovalRoute()); System.out.println("Expenses TemplateContractedHours: " + placement.getExpenseTemplategetContractedHours()); System.out.println("Charge Tax Code OverrideJobDescription :" + placement.getChargeTaxCodeOverridegetJobDescription()); System.out.println("Self Bill Tax Code OverrideJobTitle: " + placement.getSelfBillTaxCodeOverridegetJobTitle()); System.out.println("PAYEDeductionsOnLtdNoCommunications: " + placement.getPAYEDeductionsOnLtdgetNoCommunications()); if (placement.getInvoiceContactOverride() != null) { Contact contact = placement.getInvoiceContactOverride(); Address address = contact.getAddress(System.out.println("PurchaseOrderNum: " + placement.getPurchaseOrderNum()); System.out.println(" Placement charge invoice contact overrideSalesProject: " + placement.getSalesProject()); System.out.println(" FirstnamePurchaseBranch: " + contactplacement. getFirstnamegetPurchaseBranch()); System.out.println(" LastnameCurrencyForCharge: " + contactplacement. getLastnamegetCurrencyForCharge()); System.out.println(" EmailCurrencyForPayExpenses: " + contactplacement. getEmailgetCurrencyForPayExpenses()); System.out.println(" PhoneCurrencyForPayTimesheets: " + contactplacement. getPhonegetCurrencyForPayTimesheets()); System.out.println(" FaxPerm: " + contactplacement. getFaxgetPerm()); System.out.println(" MobileTimesheetEmailApproval: " + contactplacement. getMobilegetTimesheetEmailApproval()); System.out.println(" AddressTimesheet layout: " + placement.getLayout()); System.out.println(" Line 1Internal Agency Comments: " + addressplacement. getLine1getInternalAgencyComments()); System.out.println(" Line 2Holiday Accural Rate: " + addressplacement. getLine2getHolidayAccuralRate()); System.out.println(" TownExpenses Template: " + addressplacement. getTowngetExpenseTemplate()); System.out.println(" CountyCharge Tax Code Override: " + addressplacement. getCountygetChargeTaxCodeOverride()); System.out.println(" PostcodeSelf Bill Tax Code Override: " + addressplacement. getPostcodegetSelfBillTaxCodeOverride()); System.out.println(" CountryPAYEDeductionsOnLtd: " + address.getCountry());System.out.println(" Country Code:" + address.getCountryCodeplacement.getPAYEDeductionsOnLtd()); } if (placement.getRatesgetInvoiceContactOverride() != null) { for (Rate rate : Contact contact = placement.getRatesgetInvoiceContactOverride()) {; Address address = contact.getAddress(); System.out.println(" Rate NamePlacement charge invoice contact override: " + rate.getName() ); System.out.println(" PayFirstname: " + ratecontact. getPaygetFirstname()); System.out.println(" ChargeLastname: " + ratecontact. getChargegetLastname()); System.out.println(" PriorityEmail: " + ratecontact. getPriorityOrdergetEmail()); System.out.println(" IDPhone: " + ratecontact. getIdgetPhone()); System.out.println(" PeriodFax: " + ratecontact. getPeriodgetFax()); System.out.println(" PeriodDurationMobile: " + ratecontact. getPeriodDurationgetMobile()); System.out.println(" SelectableByWorkersAddress:" + rate.getSelectableByWorkers() ); System.out.println(" TimePatternLine 1:" + rateaddress. getTimePatterngetLine1()); System.out.println(" TimesheetFieldsLine 2:" + rateaddress. getTimesheetFieldsgetLine2()); System.out.println(" PayElementCodeTown:" + rateaddress. getPayElementCodegetTown()); System.out.println(" PayableCounty:" + rateaddress. getPayablegetCounty()); System.out.println(" ChargeablePostcode: " + rateaddress. getChargeablegetPostcode()); System.out.println(" TaxableCountry:" + rateaddress. getTaxablegetCountry()); System.out.println(" RefCodeCountry Code:" + rateaddress. getRefCodegetCountryCode()); } } if (placement.getSplitCommissionsgetRates() != null) { for (SplitCommission split Rate rate : placement.getSplitCommissionsgetRates()) { System.out.println("\nCommission UserIDRate Name:" + splitrate.getUserIdgetName()+" Percentage)); System.out.println("Pay:" + splitrate.getWeightgetPay()); } } if (placement.getAlternativeManagers() != null) { for (User altMan : placement.getAlternativeManagers()) {System.out.println("Charge:" + rate.getCharge()); System.out.println("Priority:" + rate.getPriorityOrder()); System.out.println("Alternative ManagerID:" + altManrate.getFirstnamegetId() + " ); System.out.println("Period:" + altManrate.getLastnamegetPeriod()); System.out.println("External IdPeriodDuration:" + altManrate.getExternalIdgetPeriodDuration() + " Internal ID); System.out.println("SelectableByWorkers:" + altManrate.getIdgetSelectableByWorkers()); } } } } catch (java.lang.Exception e) {System.out.println("TimePattern:" + rate.getTimePattern()); System.out.println(" Exception occurredTimesheetFields:" + e);} |
---|
Read a Timesheet including any invoices
try { IntimeServiceV3_2Stub.GetTimesheetById request=new IntimeServiceV3_2Stub.GetTimesheetById(rate.getTimesheetFields()); request.setId(<timesheet_id>); request.setToken(ticket); //from authenticate call GetTimesheetByIdResponse timesheetResp=stub.getTimesheetById(request); Timesheet timesheet = timesheetResp.get_return(System.out.println("PayElementCode:" + rate.getPayElementCode()); System.out.println(" Read Timesheet IDPayable:" + timesheetrate. getIdgetPayable()); System.out.println(" StatusChargeable:" + timesheetrate. getStatusgetChargeable()); System.out.println(" PlacementTaxable:" + timesheetrate. getPlacementIdgetTaxable()); if (timesheet.getPeriodEndDate() != null)System.out.println(" End DateRefCode:" + timesheetrate. getPeriodEndDategetRefCode()); } } if ( timesheetplacement. getCreatedgetSplitCommissions() != null) { for (SplitCommission split : placement.getSplitCommissions()) { System.out.println(" Created\nCommission UserID:"+ timesheetsplit. getCreatedgetUserId() .getTime+" Percentage:"+split.getWeight()); } } if ( timesheetplacement. getModifiedgetAlternativeManagers() != null) { for (User altMan : placement.getAlternativeManagers()) { System.out.println(" ModifiedAlternative Manager:" + timesheetaltMan. getModifiedgetFirstname() + " " + altMan. getTimegetLastname()); if (timesheet.getSubmitted() != null)System.out.println(" SubmittedExternal Id: " + timesheetaltMan. getSubmittedgetExternalId() .getTime+ " Internal ID:" + altMan.getId()); if (timesheet.getApproved() != null)} } } } catch (java.lang.Exception e) { System.out.println("ApprovedException occurred: " + timesheet.getApproved().getTime());System.out.println("timesheetPay: " + timesheet.getTimesheetPay())e); } |
---|
Read a Timesheet including any invoices
try { IntimeServiceV3_2Stub.GetTimesheetById request=new IntimeServiceV3_2Stub.GetTimesheetById(); request.setId(<timesheet_id>); request.setToken(ticket); //from authenticate call GetTimesheetByIdResponse timesheetResp=stub.getTimesheetById(request); Timesheet timesheet = timesheetResp.get_return(); System.out.println("timesheetChargeRead Timesheet ID:" + timesheet.getTimesheetChargegetId()); System.out.println("ERNIStatus:" + timesheet.getErnigetStatus()); System.out.println("PensionPlacement:" + timesheet.getPensiongetPlacementId()); if (timesheet.getPeriodEndDate() != null) System.out.println("HolidayEnd Date:" + timesheet.getHolidaygetPeriodEndDate()); if (timesheet.getCreated() != null) System.out.println("getFullyInvoicedCreated:" + timesheet.getCreated().getFullyInvoicedgetTime());System.out. println("getPurchaseWrittenOff: " + if (timesheet.getPurchaseWrittenOffgetModified() != null) ; System.out.println("getSalesWrittenOffModified:" + timesheet.getSalesWrittenOffgetModified().getTime()); System.out.println("Worker:" + if (timesheet.getWorkerIdgetSubmitted() != null) ; System.out.println("AdjustsSubmitted:" + timesheet.getAdjustsRefCodegetSubmitted().getTime());//Shifts if (timesheet.getShiftsgetApproved() != null && timesheet.getShifts().length > 0) { for (Shift shift : timesheet.getShifts()) {) System.out.println("Approved:" + timesheet.getApproved().getTime()); System.out.println(" Shift IDtimesheetPay: " + shifttimesheet. getIdgetTimesheetPay()); System.out.println(" hourstimesheetCharge: " + shifttimesheet. getHoursgetTimesheetCharge()); System.out.println(" DecimalERNI: " + shifttimesheet. getDecimalgetErni()); System.out.println(" DayPension: " + new Date(shift.getDaytimesheet.getPension()) + " (; System.out.println("Holiday: " + shifttimesheet. getDaygetHoliday() + ") "); System.out.println(" POgetFullyInvoiced: " + shifttimesheet. getPurchaseOrderNumbergetFullyInvoiced()); System.out.println(" StartgetPurchaseWrittenOff: " + new Date(shift.getStartTime()) +" (" + shift.getStartTime()+ ")"timesheet.getPurchaseWrittenOff()); System.out.println(" Rate NamegetSalesWrittenOff: " + shifttimesheet. getRateNamegetSalesWrittenOff()); System.out.println(" Rate PayWorker:" + shifttimesheet. getRategetWorkerId() .getPay() ); System.out.println(" Rate ChargeAdjusts:" + shifttimesheet. getRategetAdjustsRefCode() .getCharge()); }} //Associated Invoices & creditsShifts if (timesheet.getInvoiceInfogetShifts() != null) { && timesheet.getShifts().length > 0) { for (InvoiceInfo invoice Shift shift : timesheet.getInvoiceInfogetShifts()) { System.out.println("Invoice NumberShift ID:"+ invoiceshift.getInvoiceNumbergetId()); System.out.println("Invoice datehours:"+ invoiceshift.getInvoiceDategetHours().getTime()); System.out.println("Invoice TypeDecimal:"+ invoiceshift.getInvoiceDescriptiongetDecimal()); System.out.println("Invoice GUIDDay:" + invoice.getInvoiceGUID() new Date(shift.getDay()) + " (" + shift.getDay()+ ")"); System.out.println("Invoice NetPO:" + invoiceshift.getNetgetPurchaseOrderNumber()); System.out.println("Invoice Gross:" + invoice.getGross()Start:"+new Date(shift.getStartTime()) +" (" + shift.getStartTime()+ ")"); System.out.println("Invoice VATRate Name:"+ invoiceshift.getVatgetRateName()); System.out.println("Invoice CurrencyRate Pay:"+ invoice.getCurrencyshift.getRate().getPay());if (invoice.getExported System.out.println("Rate Charge:"+shift.getRate().getCharge()); } } //Associated Invoices & credits if (timesheet.getInvoiceInfo() != null) { for (InvoiceInfo invoice : timesheet.getInvoiceInfo()){ System.out.println("Invoice Number:" + invoice.getInvoiceNumber()); System.out.println(" ExportedInvoice date:" + invoice. getExportedgetInvoiceDate().getTime()); } } } } catch (Exception e) {System.out.println("Invoice Type:" + invoice.getInvoiceDescription()); System.out.println(" Exception occurredInvoice GUID:" + einvoice.getInvoiceGUID()); } |
---|
Create or update a Worker
try { //Attempt to read the worker first as it may already exist IntimeServiceV3_2Stub.GetWorkerByExternalId getWorkerRequest=new IntimeServiceV3_2Stub.GetWorkerByExternalId(); getWorkerRequest.setId("WEB-WKR01"); getWorkerRequest.setToken(ticket); //from authenticate call GetWorkerByExternalIdResponse workerResponse=stub.getWorkerByExternalId(getWorkerRequest); Worker worker=workerResponse.get_return(); if (worker == null) { //Worker did not exist worker.setExternalId("WEB-WKR01"); } //set or update any fields as required worker.setFirstname("Ltd"); worker.setLastname("Worker"); worker.setEmail("System.out.println("Invoice Net:" + invoice.getNet()); System.out.println("Invoice Gross:" + invoice.getGross()); System.out.println("Invoice VAT:" + invoice.getVat()); System.out.println("Invoice Currency:" + invoice.getCurrency()); if (invoice.getExported() != null) { System.out.println("Exported date:" + invoice.getExported().getTime()); } } } } catch (Exception e) { System.out.println("Exception occurred: " + e); } |
---|
Create or update a Worker
try { //Attempt to read the worker first as it may already exist IntimeServiceV3_2Stub.GetWorkerByExternalId getWorkerRequest=new IntimeServiceV3_2Stub.GetWorkerByExternalId(); getWorkerRequest.setId("WEB-WKR01"); getWorkerRequest.setToken(ticket); //from authenticate call GetWorkerByExternalIdResponse workerResponse=stub.getWorkerByExternalId(getWorkerRequest); Worker worker=workerResponse.get_return(); if (worker == null) { //Worker did not exist worker.setExternalId("WEB-WKR01"); } //set or update any fields as required worker.setFirstname("Ltd"); worker.setLastname("Worker"); worker.setEmail("x@x.com"); worker.setTitle("Mrs"); worker.setWorkerType("ltd"); worker.setGender("F"); worker.setSelfBilling(false); worker.setAccountsReference("ACC_REF"); worker.setPaymentFrequency("Monthly"); String[] wConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","worker" }; worker.setConsolidation(wConsolidation); String[] wGrouping = new String[] { "sheet-rate" }; worker.setGrouping(wGrouping); Calendar cal = Calendar.getInstance(java.util.TimeZone.getTimeZone("GMT")); cal.set(1980, 0, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); worker.setDateOfBirth(cal); Calendar cal2 = Calendar.getInstance(java.util.TimeZone.getTimeZone("GMT")); cal2.set(2017, 0, 1, 0, 0, 0); cal2.set(Calendar.MILLISECOND, 0); worker.setDateOfJoining(cal2); IntimeServiceV3_2Stub.Address address = new IntimeServiceV3_2Stub.Address(); address.setLine1("Address1"); address.setLine2("Add2"); address.setTown("Town"); address.setCounty("County"); address.setCountry("UK"); address.setPostcode("AB1 2CD"); address.setCountryCode("GB"); worker.setAddress(address); BankAccount bank = new BankAccount(); bank.setAccountName("Ltd Wkr"); bank.setAccountNumber("12345678"); bank.setBank("bank"); bank.setSortCode("11-22-33"); worker.setBankAccount(bank); Company ltdCompany = new Company(); ltdCompany.setName("Ltd Co Name"); ltdCompany.setCompanyNo("123456789"); ltdCompany.setCompanyVatNo("1234567890"); ltdCompany.setVatCode("T0"); worker.setLimitedCompany(ltdCompany); IntimeServiceV3_2Stub.CreateOrUpdateWorker request = new IntimeServiceV3_2Stub.CreateOrUpdateWorker(); request.setToken(ticket); //from authenticate call request.setWorker(worker); IntimeServiceV3_2Stub.CreateOrUpdateWorkerResponse result=stub.createOrUpdateWorker(request); if (result != null) { System.out.println("Created/updated Worker with ID:" + result.get_return()); } } catch (java.lang.Exception e) { System.out.println("Exception occurred: " + e); } |
---|
...
Version 3.0 as of this version the situation is simplified. There is no LtdCompanyContact object on the worker. The Limited Company Contact details (name, email, address) should be read and updated via the LimitedCompany.InvoiceContact object. All the following fields can only be read from and updated from the Worker base object: AccountsRef, VATCode, DefaultPaymentCurrency, NominalCode, ExpensesNominalCode, Consolidation and Grouping. Note: Both Worker and LimitedCompany objects have timesheetsOnInvoices field - the one specified in the LimitedCompany will take precedence over Worker.
Constants
Whilst using the RSM InTime Web Services, some fields have expected values from a range of constants. These are detailed below.
...
Comment
...
InvoiceContact object. All the following fields can only be read from and updated from the Worker base object: AccountsRef, VATCode, DefaultPaymentCurrency, NominalCode, ExpensesNominalCode, Consolidation and Grouping. Note: Both Worker and LimitedCompany objects have timesheetsOnInvoices field - the one specified in the LimitedCompany will take precedence over Worker.
Constants
Whilst using the RSM InTime Web Services, some fields have expected values from a range of constants. These are detailed below.
Field | Constant | Comment | Notes |
---|---|---|---|
Client | |||
invoicePeriod | 0 | Weekly | |
1 | Two-Weekly | ||
2 | Four-Weekly | ||
3 | Calendar Monthly | ||
4 | 4-4-5 | ||
5 | Other | ||
InvoiceDeliveryMethod (howSendInvoices) | 0 | Post | Invoice delivery method |
1 | |||
2 | Fax | ||
3 | Not sent | ||
timesheetsOnInvoices | 0 | Timesheets On Invoices | |
1 | Timesheets Not On Invoices | ||
paperOnInvoices | -1 | Agency Default | |
0 | No Attachments | ||
1 | Attach Paper Timesheets | ||
2 | Attach Expense Group Paper | ||
4 | Attach Expense Receipts Paper | ||
<sum of the above> | Attach the appropriate paper | For example, 5 to attach timesheets and receipts | |
consolidation | Code Required String[] cConsolidation = new String[] { "charge-payment-term","destination","source","charge-currency","sales-tax-code","client" }; | Everything Goes On One Invoice | |
Code Required String[] cConsolidation = new String[] { "charge-payment-term","destination","source","charge-currency","sales-tax-code","client","sheet-type" }; | Expenses Go On On Invoice And Expenses Go On Another | ||
Code Required String[] cConsolidation = new String[] { "charge-payment-term","destination","source","charge-currency","sales-tax-code","client","placement" }; | Each Placement is Invoiced Separately | ||
Code Required String[] cConsolidation = new String[] { "charge-payment-term","destination","source","charge-currency","sales-tax-code","client","sheet" }; | Each Timesheet Or Expense Item Is Invoiced Separately | ||
Code Required String[] cConsolidation = new String[] { "charge-payment-term","destination","source","charge-currency","sales-tax-code","client",”worker” }; | Each Candidate Is Invoiced Separately | ||
grouping | Code Required String[] cGrouping = new String[] { "sheet-rate" }; client.setGrouping(cGrouping); | Sheet Rate | |
Worker | |||
workerType | paye | For PAYE Workers | |
ltd | For Ltd Company Workers | ||
external-contractor | For Non Ltd Company Workers | ||
cis | For CIS Workers | ||
umb | For Workers operating through an Umbrella | You must also reference the umbrella against the worker, otherwise the worker will appear as LTD. | |
ir35 | For workers inside scope of IR35 (deemed) | ||
cisBusinessType | SoleTrader | ||
Company | |||
Trust | |||
Partnership | |||
cisPercentage | 0 | ||
20 | |||
30 | |||
paymentFrequency | weekly | ||
monthly | |||
<InPay Payroll Name> | If InPay connected, for PAYE workers, use the InPay Payroll Name | ||
limitedCompany.timesheetsOnInvoices | 0 | Timesheets On Invoices | |
1 | Timesheets Not On Invoices | ||
limitedCompany.paperOnInvoices | -1 | Agency Default | |
0 | No Attachments | ||
1 | Attach Paper Timesheets | ||
2 | Attach Expense Group Paper | ||
4 | Attach Expense Receipts Paper | ||
<sum of the above> | Attach the appropriate paper | For example, 5 to attach timesheets and receipts | |
gender | M | ||
F | |||
limitedCompany.invoicePeriod | 0 | Weekly | |
1 | Two-Weekly | ||
2 | Four-Weekly | ||
3 | Calendar Monthly | ||
4 | 4-4-5 | ||
5 | Other |
Payment Method | bacs | NOT CASE SENSITIVE | |
cheque | NOT CASE SENSITIVE | ||
cash | NOT CASE SENSITIVE | ||
chaps | NOT CASE SENSITIVE | ||
ach | NOT CASE SENSITIVE | ||
international | NOT CASE SENSITIVE | ||
building society | NOT CASE SENSITIVE | ||
sendLtdCompanyTimesheets | 0 | Do not send a copy of the timesheets to the worker or provider | |
1 | Only send a copy of timesheets to the worker's ltd company email address | ||
2 | Send a copy of timesheets to the worker's provider if they have one, otherwise send it to the worker | ||
3 | Send copies to both the worker and provider | ||
consolidation | Code Required String[] |
wConsolidation = new String[] { |
"destination","source"," |
pay-currency"," |
purchase-tax-code"," |
worker" }; |
worker.setConsolidation( |
wConsolidation); | Everything Goes On One Invoice | |
Code Required String[] |
wConsolidation = new String[] { |
" |
destination","source"," |
pay-currency"," |
purchase-tax-code"," |
worker","sheet-type" }; |
worker.setConsolidation( |
wConsolidation); | Expenses Go On On Invoice And Expenses Go On Another | |
Code Required String[] |
client.setConsolidation(cConsolidation);
Each Placement is Invoiced Separately
Code Required
String[] cConsolidationwConsolidation = new String[] { |
" |
destination","source"," |
pay-currency"," |
purchase-tax-code"," |
worker"," |
placement" }; |
worker.setConsolidation( |
wConsolidation); | Each |
Placement is Invoiced Separately | |
Code Required String[] |
wConsolidation = new String[] { " |
destination","source"," |
pay-currency"," |
purchase-tax-code"," |
worker", |
"sheet" }; |
worker.setConsolidation( |
wConsolidation); | Each |
Timesheet Or Expense Item Is Invoiced Separately | |||
grouping | Code Required String[] |
wGrouping = new String[ |
client.setGrouping(cGrouping);
limitedCompany.timesheetsOnInvoices
Do not send a copy of the timesheets to the worker or provider
Code Required
String[] wConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","worker" };
worker.setConsolidation(wConsolidation);
Everything Goes On One Invoice
Code Required
String[] wConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","worker","sheet-type" };
worker.setConsolidation(wConsolidation);
Expenses Go On On Invoice And Expenses Go On Another
Code Required
String[] wConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","worker","placement" };
worker.setConsolidation(wConsolidation);
Each Placement is Invoiced Separately
Code Required
String[] wConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","worker","sheet" };
worker.setConsolidation(wConsolidation);
Each Timesheet Or Expense Item Is Invoiced Separately
Code Required
String[] wGrouping = new String[] { "sheet","sheet-rate" };
worker.setGrouping(wGrouping);
] { "sheet","sheet-rate" }; worker.setGrouping(wGrouping); | Sheet Rate | ||
statementA | StatementA | Example: "ANN NN" | |
statementD | Always N | N | |
engagementType | None/N,A,B,C,D,E,F,Z | ||
Placement | |||
layout | standard | See Maintaining Placements | |
calendar | |||
timesheetDateCalculator | Usual: weekly (Default: Monday - Sunday) monthly (Calendar: 1st - 28/29/30/31th) Others: weekly_tue-mon weekly_wed-tue weekly_thurs-wed weekly_fri-thurs weekly_sat-fri weekly_sun-sat two-weekly two-weekly_tue-mon two-weekly_wed-tue two-weekly_thurs-wed two-weekly_fri-thurs two-weekly_sat-fri two-weekly_sun-sat two-weekly_timeplan four-weekly half-monthly-16th monthly2nd monthly3rd monthly4th monthly5th monthly6th monthly7th monthly8th monthly9th monthly10th monthly11th monthly12th monthly13th monthly14th monthly15th monthly16th monthly17th monthly18th monthly19th monthly20th monthly21st monthly22th monthly23th monthly24th monthly25th monthly26th monthly27th monthly28th half-monthly-15th four-four-five four-four-five-lastFri-old four-four-five-lastFri weekly-split four-four-five-2ndLastFri weekly_tue-mon-split weekly_wed-tue-split weekly_thurs-wed-split weekly_fri-thurs-split weekly_sat-fri-split weekly_sun-sat-split two-weekly-split two-weekly-alt four-weekly-split two-weekly-split-alt | See Maintaining Placements | |
Rates | |||
period | 60 / H | For hourly rates entered in hours format (hours only or start, break, finish). | |
1440 / F | For fixed rates of a specified duration entered in decimal format (decimal or tickbox) | ||
periodDuration | <any integer> | The duration in minutes for the fixed rate (e.g. 60 for hourly rates, 480 for a daily rates (if daily rate it worth 8 hours)). | |
timePattern | default | Will use the selected default time pattern | |
<any string> | The string should match the name of a time pattern in the system | ||
timesheetFields | START_FINISH_BREAK | Enter start, break, finish | Only when period above is 60 |
HOURS | Enter hours only | Only when period above is 60 | |
DECIMAL | Enter time as a decimal | Only when period above is 1440 | |
DAY | Tickbox only (equivalent to entering decimals as 1.00) | Only when period above is 1440 | |
InvoiceAdjustmentSettings (Company / Worker) | |||
AdjustBy | 0 | Fixed Amount | |
1 | Percentage | ||
AdjustPer | 0 | Per Worker | |
1 | Per Timesheet | ||
2 | Per Invoice | ||
AdjustType | 0 | Addition | |
1 | Deduction | ||
ExpenseType | |||
EntryMethod | 0 | Gross value | Populate the GrossValue and optionally the VatAmount field on an ExpenseItem with this entry method |
1 | Net Value | Populate the NetValue field on an ExpenseItem with this entry method | |
2 | Units and Unit net | Populate the Unit and UnitNet fields on an ExpenseItem with this entry method. E.g. Set Unit = 30 and UnitNet = 0.45 to claim 30 miles at 45p per mile. | |
3 | Units and Net | Populate the Unit and Net Value fields on an ExpenseItem with this entry method. | |
Timesheet | |||
Status | getTimesheetStatus() | getStatus() | |
-1 | DELETED | ||
1 | INCOMPLETE | ||
2 | SUBMITTED | ||
3 | APPROVED | ||
5 | COMPLETED | ||
-2 | MISSING | ||
-3 | REVERTED | ||
InvoiceInfo (Invoice) | |||
Invoice Type | getInvoiceDescription() | ||
Advice Note | |||
Client Invoice | |||
Client Credit Note | |||
Self Bill Invoice | |||
Self Bill Credit Note | |||
Supplier Invoice | |||
Supplier Credit Note | |||
Provider | |||
consolidation | Code Required String[] pConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","ltd-co-provider" }; | Everything Goes On One Invoice | |
Code Required String[] pConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","ltd-co-provider","sheet-type" }; | Expenses Go On On Invoice And Expenses Go On Another | ||
Code Required String[] pConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","ltd-co-provider","placement" }; | Each Placement is Invoiced Separately | ||
Code Required String[] pConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","ltd-co-provider","sheet" }; | Each Timesheet Or Expense Item Is Invoiced Separately | ||
Code Required String[] pConsolidation = new String[] { "destination","source","pay-currency","purchase-tax-code","ltd-co-provider",”worker” }; | Each Candidate Is Invoiced Separately | ||
grouping | Code Required String[] pGrouping = new String[] { "sheet-rate" }; provider.setGrouping(pGrouping); | Sheet Rate | |
invoicePeriod | 0 | Weekly | |
1 | Two-Weekly | ||
2 | Four-Weekly | ||
3 | Calendar Monthly | ||
4 | 4-4-5 | ||
5 | Other | ||
timesheetsOnInvoices | 0 | Timesheets On Invoices | |
1 | Timesheets Not On Invoices | ||
paperOnInvoices | -1 | Agency Default | |
0 | No Attachments | ||
1 | Attach Paper Timesheets | ||
2 | Attach Expense Group Paper | ||
4 | Attach Expense Receipts Paper | ||
<sum of the above> | Attach the appropriate paper | For example, 5 to attach timesheets and receipts |