brotherton-erpnext/erpnext/docs/current/models/accounts/c_form.md

9.3 KiB

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

Fields

    <tr >
        <td>1</td>
        <td ><code>column_break0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>2</td>
        <td class="danger" title="Mandatory"><code>naming_series</code></td>
        <td >
            Select</td>
        <td >
            Series
            
        </td>
        <td>
            <pre>C-FORM-</pre>
        </td>
    </tr>
    
    <tr >
        <td>3</td>
        <td class="danger" title="Mandatory"><code>c_form_no</code></td>
        <td >
            Data</td>
        <td >
            C-Form No
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>4</td>
        <td class="danger" title="Mandatory"><code>received_date</code></td>
        <td >
            Date</td>
        <td >
            Received Date
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>5</td>
        <td class="danger" title="Mandatory"><code>customer</code></td>
        <td >
            Link</td>
        <td >
            Customer
            
        </td>
        <td>

Customer

        </td>
    </tr>
    
    <tr >
        <td>6</td>
        <td ><code>column_break1</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>7</td>
        <td ><code>company</code></td>
        <td >
            Link</td>
        <td >
            Company
            
        </td>
        <td>

Company

        </td>
    </tr>
    
    <tr >
        <td>8</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>9</td>
        <td ><code>quarter</code></td>
        <td >
            Select</td>
        <td >
            Quarter
            
        </td>
        <td>
            <pre>

I II III IV

    <tr >
        <td>10</td>
        <td class="danger" title="Mandatory"><code>total_amount</code></td>
        <td >
            Currency</td>
        <td >
            Total Amount
            
        </td>
        <td>
            <pre>Company:company:default_currency</pre>
        </td>
    </tr>
    
    <tr >
        <td>11</td>
        <td class="danger" title="Mandatory"><code>state</code></td>
        <td >
            Data</td>
        <td >
            State
            
        </td>
        <td></td>
    </tr>
    
    <tr class="info">
        <td>12</td>
        <td ><code>section_break0</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>13</td>
        <td ><code>invoices</code></td>
        <td >
            Table</td>
        <td >
            Invoices
            
        </td>
        <td>

C-Form Invoice Detail

        </td>
    </tr>
    
    <tr >
        <td>14</td>
        <td ><code>total_invoiced_amount</code></td>
        <td >
            Currency</td>
        <td >
            Total Invoiced Amount
            
        </td>
        <td>
            <pre>Company:company:default_currency</pre>
        </td>
    </tr>
    
    <tr >
        <td>15</td>
        <td ><code>amended_from</code></td>
        <td >
            Link</td>
        <td >
            Amended From
            
        </td>
        <td>

C-Form

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






    
<h3 style="font-weight: normal;">Class <b>CForm</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="before_cancel" href="#before_cancel" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>before_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="get_invoice_details" href="#get_invoice_details" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>get_invoice_details</b>
    <i class="text-muted">(self, invoice_no)</i>
</p>
<div class="docs-attr-desc"><pre><code>Pull details from invoices for referrence


<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="on_update" href="#on_update" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_update</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><pre><code>Update C-Form No on invoices


<p class="docs-attr-name">
    <a name="set_cform_in_sales_invoices" href="#set_cform_in_sales_invoices" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>set_cform_in_sales_invoices</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="set_total_invoiced_amount" href="#set_total_invoiced_amount" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>set_total_invoiced_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="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>Validate invoice that c-form is applicable

and no other c-form is received for that


</div>
<hr>






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

C-Form

        <li>

Sales Invoice

    </ul>