Skip to content

Commit

Permalink
🚑 fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloreven committed Dec 14, 2023
1 parent 7f04448 commit 2f091f7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 9 additions & 3 deletions oda_wd_client/service/financial_management/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,15 @@ def get_tax_applicabilities(
def submit_accounting_journal(
self, journal: AccountingJournalData, auto_complete: bool = True
) -> sudsobject.Object:
accounting_journal_data_object = pydantic_accounting_journal_to_workday(journal, client=self)
business_process_parameters = get_business_process_parameters(auto_complete=auto_complete, client=self)
accounting_journal_data_object = pydantic_accounting_journal_to_workday(
journal, client=self
)
business_process_parameters = get_business_process_parameters(
auto_complete=auto_complete, client=self
)

return self._request(
"Submit_Accounting_Journal", Accounting_Journal_Data=accounting_journal_data_object, Business_Process_Parameters=business_process_parameters
"Submit_Accounting_Journal",
Accounting_Journal_Data=accounting_journal_data_object,
Business_Process_Parameters=business_process_parameters,
)
9 changes: 7 additions & 2 deletions oda_wd_client/service/financial_management/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ def pydantic_accounting_journal_to_workday(

return wd_accounting_journal

def get_business_process_parameters(auto_complete: bool, client: WorkdayClient) -> sudsobject.Object:
financials_business_process_parameters = client.factory("ns0:Financials_Business_Process_ParametersType")

def get_business_process_parameters(
auto_complete: bool, client: WorkdayClient
) -> sudsobject.Object:
financials_business_process_parameters = client.factory(
"ns0:Financials_Business_Process_ParametersType"
)
financials_business_process_parameters.Auto_Complete = auto_complete
return financials_business_process_parameters

0 comments on commit 2f091f7

Please sign in to comment.