Manuais
PHC GO Funções SDK - SDKExpenses
 

SDKExpenses

This class contains functions that allow the approval/disapproval of Expenses, as well as the payment or cancellation, of their payment.
 
 

Approve

 

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) 

        

 

Disapprove

 

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) 

        

 

Pay

 

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) 

        

 

CancelPay

 

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)