Skip to content

Commit

Permalink
Fix refreshContractsTree method in Hydra v5
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed May 29, 2019
1 parent a0f11dd commit badecdc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,12 @@ trait Contract {
return dissolveContract(docId: docId, endDate: endDate, checkInvoices: checkInvoices)
}

Boolean refreshContractsTree() {
Boolean refreshContractsTree(String method = 'C') {
try {
logger.info("Refreshing contracts tree")
hid.execute('UTILS_PKG_S.REFRESH_MATERIALIZED_VIEW', [
vch_VC_VIEW_NAME : 'SD_MV_CONTRACTS_TREE'
vch_VC_VIEW_NAME : 'SD_MV_CONTRACTS_TREE',
vch_C_METHOD : method
])
logger.info(" Contracts tree was refreshed successfully!")
return true
Expand Down

0 comments on commit badecdc

Please sign in to comment.