diff --git a/reference/admin.yaml b/reference/admin.yaml
index a54b53492..c2b46d809 100644
--- a/reference/admin.yaml
+++ b/reference/admin.yaml
@@ -10030,6 +10030,33 @@ components:
description: |
This represents the description of the expense policy rule.
example: Receipt is mandatory for expense above $50
+ expense_without_receipt_allowed:
+ type: boolean
+ description: |
+ If this is set to false, then for all such expenses that doesn't have receipt, this policy rule will be violated.
+ **Note: If this field is set to false i.e. receipts are mandatory, only following conditions & actions are allowed =>**
+ - expense_category_ids
+ - expense_category_ids_op
+ - expense_project_ids
+ - expense_project_ids_op
+ - expense_cost_center_ids
+ - expense_cost_center_ids_op
+ - expense_limit_type (only `INIDIVIDUAL` type is allowed)
+ - expense_currency
+ - expense_amount_max
+ - employee_department_ids
+ - employee_department_ids_op
+ - employee_locations
+ - employee_user_ids
+ - employee_user_ids_op
+ - employee_titles
+ - employee_titles_op
+ - action_flag
+ - action_show_warning
+ - action_make_unreportable
+ - description
+ default: true
+ example: true
expense_limit_type:
oneOf:
- $ref: '#/components/schemas/expense_policy_limit_type'
@@ -10203,12 +10230,6 @@ components:
If this is set to false, then for all such expenses that are created on holidays, this policy rule will be violated.
default: true
example: true
- expense_without_receipt_allowed:
- type: boolean
- description: |
- If this is set to false, then for all such expenses that doesn't have receipt, this policy rule will be violated.
- default: true
- example: true
expense_spent_at_max:
allOf:
- $ref: '#/components/schemas/timestamptz_pst'
diff --git a/src/components/schemas/expense_policies.yaml b/src/components/schemas/expense_policies.yaml
index d913278a9..100502f74 100644
--- a/src/components/schemas/expense_policies.yaml
+++ b/src/components/schemas/expense_policies.yaml
@@ -19,6 +19,33 @@ expense_policy_in:
description: |
This represents the description of the expense policy rule.
example: Receipt is mandatory for expense above $50
+ expense_without_receipt_allowed:
+ type: boolean
+ description: |
+ If this is set to false, then for all such expenses that doesn't have receipt, this policy rule will be violated.
+ **Note: If this field is set to false i.e. receipts are mandatory, only following conditions & actions are allowed =>**
+ - expense_category_ids
+ - expense_category_ids_op
+ - expense_project_ids
+ - expense_project_ids_op
+ - expense_cost_center_ids
+ - expense_cost_center_ids_op
+ - expense_limit_type (only `INIDIVIDUAL` type is allowed)
+ - expense_currency
+ - expense_amount_max
+ - employee_department_ids
+ - employee_department_ids_op
+ - employee_locations
+ - employee_user_ids
+ - employee_user_ids_op
+ - employee_titles
+ - employee_titles_op
+ - action_flag
+ - action_show_warning
+ - action_make_unreportable
+ - description
+ default: True
+ example: True
expense_limit_type:
oneOf:
- $ref: ./fields.yaml#/expense_policy_limit_type
@@ -186,12 +213,6 @@ expense_policy_in:
If this is set to false, then for all such expenses that are created on holidays, this policy rule will be violated.
default: True
example: True
- expense_without_receipt_allowed:
- type: boolean
- description: |
- If this is set to false, then for all such expenses that doesn't have receipt, this policy rule will be violated.
- default: True
- example: True
expense_spent_at_max:
allOf:
- $ref: './fields.yaml#/timestamptz_pst'