Skip to content

Commit

Permalink
🚑️ fix: Set supplier's invoice number only
Browse files Browse the repository at this point in the history
Workday has two fields for invoice number, we want to set suppliers invoice number and not the invoice number field. This allows Workday to generate the invoice number, but keep the original invoice number for bookkeeping and processing
  • Loading branch information
kiloreven committed Jan 5, 2024
1 parent 91eb76c commit 651b62f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oda_wd_client/service/resource_management/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def pydantic_supplier_invoice_to_workday(
invoice_data.Submit = invoice.submit
invoice_data.Locked_in_Workday = invoice.locked_in_workday

invoice_data.Invoice_Number = invoice.invoice_number
# We want to let workday set the invoice number, but keep the invoice's number for supplier's invoice number
invoice_data.Invoice_Number = None
invoice_data.Suppliers_Invoice_Number = invoice.invoice_number
invoice_data.Company_Reference = invoice.company.wd_object(client)
invoice_data.Currency_Reference = invoice.currency.wd_object(client)
Expand Down

0 comments on commit 651b62f

Please sign in to comment.