Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17975,6 +17975,9 @@ components:
example: epc1a2f3farmk
comment_type:
type: string
enum:
- LOST_RECEIPT_REASON
- POLICY_VIOLATION_REASON
description: Type of the policy comment
comment_text:
type: string
Expand Down Expand Up @@ -28179,6 +28182,12 @@ components:
If it is set to true, then a warning is shown to the employee, whenever he attempts to create an expense that violates this policy rule.
default: false
example: true
policy_violation_reason_required:
type: boolean
description: |
If it is set to true, then entering a policy violation reason becomes mandatory for expenses violating this policy rule.
default: false
example: false
action_make_unreportable:
type: boolean
description: |
Expand Down Expand Up @@ -28295,6 +28304,7 @@ components:
- employee_titles_op
- action_flag
- action_show_warning
- policy_violation_reason_required
- action_make_unreportable
- description
default: true
Expand Down Expand Up @@ -28638,6 +28648,13 @@ components:
If it is set to true, then a warning is shown to the employee, whenever he attempts to create an expense that violates this policy rule.
default: false
example: true
policy_violation_reason_required:
type: boolean
description: |
If it is set to true, then entering a policy violation reason becomes mandatory for expenses violating this policy rule. <br>
_Note: This can be true only when `action_show_warning` is true._
default: false
example: false
action_make_unreportable:
type: boolean
description: |
Expand Down Expand Up @@ -28733,6 +28750,11 @@ components:
description: |
A true value here means that policy calculation suggests showing a warning when the user attempts to create an expense that violates this expense policy rule.
example: true
policy_violation_reason_required:
type: boolean
description: |
A true value here means that entering a policy violation reason is mandatory for this policy rule.
example: false
action_make_unreportable:
type: boolean
nullable: false
Expand Down
8 changes: 8 additions & 0 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5521,6 +5521,9 @@ components:
example: epc1a2f3farmk
comment_type:
type: string
enum:
- LOST_RECEIPT_REASON
- POLICY_VIOLATION_REASON
description: Type of the policy comment
comment_text:
type: string
Expand Down Expand Up @@ -8371,6 +8374,11 @@ components:
description: |
A true value here means that policy calculation suggests showing a warning when the user attempts to create an expense that violates this expense policy rule.
example: true
policy_violation_reason_required:
type: boolean
description: |
A true value here means that entering a policy violation reason is mandatory for this policy rule.
example: false
action_make_unreportable:
type: boolean
nullable: false
Expand Down
8 changes: 8 additions & 0 deletions reference/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,11 @@ components:
description: |
A true value here means that policy calculation suggests showing a warning when the user attempts to create an expense that violates this expense policy rule.
example: true
policy_violation_reason_required:
type: boolean
description: |
A true value here means that entering a policy violation reason is mandatory for this policy rule.
example: false
action_make_unreportable:
type: boolean
nullable: false
Expand Down Expand Up @@ -2209,6 +2214,9 @@ components:
example: epc1a2f3farmk
comment_type:
type: string
enum:
- LOST_RECEIPT_REASON
- POLICY_VIOLATION_REASON
description: Type of the policy comment
comment_text:
type: string
Expand Down
14 changes: 14 additions & 0 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8719,6 +8719,9 @@ components:
example: epc1a2f3farmk
comment_type:
type: string
enum:
- LOST_RECEIPT_REASON
- POLICY_VIOLATION_REASON
description: Type of the policy comment
comment_text:
type: string
Expand Down Expand Up @@ -16484,6 +16487,12 @@ components:
If it is set to true, then a warning is shown to the employee, whenever he attempts to create an expense that violates this policy rule.
default: false
example: true
policy_violation_reason_required:
type: boolean
description: |
If it is set to true, then entering a policy violation reason becomes mandatory for expenses violating this policy rule.
default: false
example: false
action_make_unreportable:
type: boolean
description: |
Expand Down Expand Up @@ -16572,6 +16581,11 @@ components:
description: |
A true value here means that policy calculation suggests showing a warning when the user attempts to create an expense that violates this expense policy rule.
example: true
policy_violation_reason_required:
type: boolean
description: |
A true value here means that entering a policy violation reason is mandatory for this policy rule.
example: false
action_make_unreportable:
type: boolean
nullable: false
Expand Down
3 changes: 3 additions & 0 deletions src/components/schemas/expense.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,9 @@ expense_policy_comment_out_embed:
example: epc1a2f3farmk
comment_type:
type: string
enum:
- LOST_RECEIPT_REASON
- POLICY_VIOLATION_REASON
description: Type of the policy comment
comment_text:
type: string
Expand Down
14 changes: 14 additions & 0 deletions src/components/schemas/expense_policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ expense_policy_in:
- employee_titles_op
- action_flag
- action_show_warning
- policy_violation_reason_required
- action_make_unreportable
- description
default: True
Expand Down Expand Up @@ -374,6 +375,13 @@ expense_policy_in:
If it is set to true, then a warning is shown to the employee, whenever he attempts to create an expense that violates this policy rule.
default: False
example: True
policy_violation_reason_required:
type: boolean
description: |
If it is set to true, then entering a policy violation reason becomes mandatory for expenses violating this policy rule. <br>
_Note: This can be true only when `action_show_warning` is true._
default: False
example: False
action_make_unreportable:
type: boolean
description: |
Expand Down Expand Up @@ -789,6 +797,12 @@ expense_policy_out:
If it is set to true, then a warning is shown to the employee, whenever he attempts to create an expense that violates this policy rule.
default: False
example: True
policy_violation_reason_required:
type: boolean
description: |
If it is set to true, then entering a policy violation reason becomes mandatory for expenses violating this policy rule.
default: False
example: False
action_make_unreportable:
type: boolean
description: |
Expand Down
5 changes: 5 additions & 0 deletions src/components/schemas/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ expense_policy_rule_embed:
description: |
A true value here means that policy calculation suggests showing a warning when the user attempts to create an expense that violates this expense policy rule.
example: True
policy_violation_reason_required:
type: boolean
description: |
A true value here means that entering a policy violation reason is mandatory for this policy rule.
example: false
action_make_unreportable:
type: boolean
nullable: false
Expand Down
Loading