brotherton-erpnext/erpnext/docs/current/models/hr/expense_claim.md

13 KiB

Version 6.x.x
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/hr/doctype/expense_claim"
	target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
<p><b>Table Name:</b> <code>tabExpense Claim</code></p>

Fields

    <tr >
        <td>1</td>
        <td class="danger" title="Mandatory"><code>naming_series</code></td>
        <td >
            Select</td>
        <td >
            Series
            
        </td>
        <td>
            <pre>EXP</pre>
        </td>
    </tr>
    
    <tr >
        <td>2</td>
        <td ><code>approval_status</code></td>
        <td >
            Select</td>
        <td >
            Approval Status
            
        </td>
        <td>
            <pre>Draft

Approved Rejected

    <tr >
        <td>3</td>
        <td ><code>exp_approver</code></td>
        <td >
            Link</td>
        <td >
            Approver
            <p class="text-muted small">
                A user with "Expense Approver" role</p>
        </td>
        <td>

User

        </td>
    </tr>
    
    <tr >
        <td>4</td>
        <td ><code>column_break0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>5</td>
        <td ><code>total_claimed_amount</code></td>
        <td >
            Currency</td>
        <td >
            Total Claimed Amount
            
        </td>
        <td>
            <pre>Company:company:default_currency</pre>
        </td>
    </tr>
    
    <tr >
        <td>6</td>
        <td ><code>total_sanctioned_amount</code></td>
        <td >
            Currency</td>
        <td >
            Total Sanctioned Amount
            
        </td>
        <td>
            <pre>Company:company:default_currency</pre>
        </td>
    </tr>
    
    <tr class="info">
        <td>7</td>
        <td ><code>expense_details</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>8</td>
        <td class="danger" title="Mandatory"><code>expenses</code></td>
        <td >
            Table</td>
        <td >
            Expenses
            
        </td>
        <td>

Expense Claim Detail

        </td>
    </tr>
    
    <tr class="info">
        <td>9</td>
        <td ><code>sb1</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td>
            <pre>Simple</pre>
        </td>
    </tr>
    
    <tr >
        <td>10</td>
        <td class="danger" title="Mandatory"><code>posting_date</code></td>
        <td >
            Date</td>
        <td >
            Posting Date
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>11</td>
        <td class="danger" title="Mandatory"><code>employee</code></td>
        <td >
            Link</td>
        <td >
            From Employee
            
        </td>
        <td>

Employee

        </td>
    </tr>
    
    <tr >
        <td>12</td>
        <td ><code>employee_name</code></td>
        <td >
            Data</td>
        <td >
            Employee Name
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>13</td>
        <td class="danger" title="Mandatory"><code>company</code></td>
        <td >
            Link</td>
        <td >
            Company
            
        </td>
        <td>

Company

        </td>
    </tr>
    
    <tr >
        <td>14</td>
        <td class="danger" title="Mandatory"><code>fiscal_year</code></td>
        <td >
            Link</td>
        <td >
            Fiscal Year
            
        </td>
        <td>

Fiscal Year

        </td>
    </tr>
    
    <tr >
        <td>15</td>
        <td ><code>cb1</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>16</td>
        <td ><code>total_amount_reimbursed</code></td>
        <td >
            Currency</td>
        <td >
            Total Amount Reimbursed
            
        </td>
        <td>
            <pre>Company:company:default_currency</pre>
        </td>
    </tr>
    
    <tr >
        <td>17</td>
        <td ><code>remark</code></td>
        <td >
            Small Text</td>
        <td >
            Remark
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>18</td>
        <td ><code>project</code></td>
        <td >
            Link</td>
        <td >
            Project
            
        </td>
        <td>

Project

        </td>
    </tr>
    
    <tr >
        <td>19</td>
        <td ><code>task</code></td>
        <td >
            Link</td>
        <td >
            Task
            
        </td>
        <td>

Task

        </td>
    </tr>
    
    <tr >
        <td>20</td>
        <td ><code>title</code></td>
        <td >
            Data</td>
        <td class="text-muted" title="Hidden">
            Title
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>21</td>
        <td ><code>email_id</code></td>
        <td >
            Data</td>
        <td class="text-muted" title="Hidden">
            Employees Email Id
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>22</td>
        <td ><code>amended_from</code></td>
        <td >
            Link</td>
        <td >
            Amended From
            
        </td>
        <td>

Expense Claim

        </td>
    </tr>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.hr.doctype.expense_claim.expense_claim</h4>






    
<h3 style="font-weight: normal;">Class <b>ExpenseClaim</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>

<div class="docs-attr-desc"><p></p>
<p class="docs-attr-name">
    <a name="calculate_total_amount" href="#calculate_total_amount" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>calculate_total_amount</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="get_feed" href="#get_feed" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>get_feed</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="on_cancel" href="#on_cancel" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_cancel</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="on_submit" href="#on_submit" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_submit</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="update_task" href="#update_task" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>update_task</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="update_task_and_project" href="#update_task_and_project" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>update_task_and_project</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate" href="#validate" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_expense_approver" href="#validate_expense_approver" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_expense_approver</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_sanctioned_amount" href="#validate_sanctioned_amount" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_sanctioned_amount</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

</div>
<hr>




    
<h3 style="font-weight: normal;">Class <b>InvalidExpenseApproverError</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.exceptions.ValidationError</i></h4>

<div class="docs-attr-desc"><p></p>
</div>
<hr>




    

<p><span class="label label-info">Public API</span>
    <br><code>/api/method/erpnext.hr.doctype.expense_claim.expense_claim.get_expense_approver</code>
</p>
<p class="docs-attr-name">
    <a name="erpnext.hr.doctype.expense_claim.expense_claim.get_expense_approver" href="#erpnext.hr.doctype.expense_claim.expense_claim.get_expense_approver" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.hr.doctype.expense_claim.expense_claim.<b>get_expense_approver</b>
    <i class="text-muted">(doctype, txt, searchfield, start, page_len, filters)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

    <h4>Linked In:</h4>
    <ul>
    
		
        <li>

Expense Claim

    </ul>