SDKExpenses
This class contains functions that allow the approval/disapproval of Expenses, as well as the payment or cancellation, of their payment.
Description
Function that approves an expense.
Return Function
PhcResult.
Parameters
value |
Description |
Type |
ExpensesVO |
Expense |
ExpenseVO |
Example
dim expense as ExpensesVO = SDKBPM.GetPayload(as ExpensesVO)
dim result as PHCResult = SDK.SDKExpenses.Approve(expense)
Description
Function that disapproves an expense.
Return Function
PhcResult.
Parameters
value |
Description |
Type |
ExpensesVO |
Expense |
ExpenseVO |
Example
dim expense as ExpensesVO = SDKBPM.GetPayload(as ExpensesVO)
dim result as PHCResult = SDK.SDKExpenses.Disapprove(expense)
Description
Function that marks an expense as paid.
Return Function
PhcResult.
Parameters
value |
Description |
Type |
ExpensesVO |
Expense |
ExpenseVO |
Example
dim expense as ExpensesVO = SDKBPM.GetPayload(as ExpensesVO)
dim result as PHCResult = SDK.SDKExpenses.Pay(expense)
Description
Function that cancels the payment of an expense.
Return Function
PhcResult.
Parameters
value |
Description |
Type |
ExpensesVO |
Expense |
ExpenseVO |
Example
dim expense as ExpensesVO = SDKBPM.GetPayload(as ExpensesVO)
dim result as PHCResult = SDK.SDKExpenses.CancelPay(expense)