Skip to content

Commit

Permalink
feat: Allow mileage calculated fields in POST /<roles/expenses> (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirtiGautam authored Dec 20, 2024
1 parent f22916c commit 7ccf133
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4335,6 +4335,14 @@ components:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down
8 changes: 8 additions & 0 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2553,6 +2553,14 @@ components:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down
8 changes: 8 additions & 0 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,14 @@ components:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down
24 changes: 24 additions & 0 deletions src/components/schemas/expense.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,14 @@ spender_expense_in:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down Expand Up @@ -1038,6 +1046,14 @@ admin_expense_in:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down Expand Up @@ -1169,6 +1185,14 @@ approver_expense_in:
type: boolean
nullable: true
description: Flag stating whether this was a round trip or not.
mileage_calculated_distance:
type: number
nullable: true
description: Distance computed by Fyle in mileage expenses.
mileage_calculated_amount:
type: number
nullable: true
description: Amount computed by Fyle in mileage expenses.
commute_details_id:
type: integer
nullable: true
Expand Down

0 comments on commit 7ccf133

Please sign in to comment.