brotherton-erpnext/erpnext/docs/current/models/accounts/c_form.html
2015-12-10 17:58:12 +05:30

436 lines
9.2 KiB
HTML

<!-- title: C-Form -->
<div class="dev-header">
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
Version 6.x.x</a>
<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>
</div>
<p><b>Table Name:</b> <code>tabC-Form</code></p>
<h3>Fields</h3>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 5%">Sr</th>
<th style="width: 25%">Fieldname</th>
<th style="width: 20%">Type</th>
<th style="width: 25%">Label</th>
<th style="width: 25%">Options</th>
</tr>
</thead>
<tbody>
<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>
<a href="https://frappe.github.io/erpnext/current/models/selling/customer">Customer</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/setup/company">Company</a>
</td>
</tr>
<tr >
<td>8</td>
<td class="danger" title="Mandatory"><code>fiscal_year</code></td>
<td >
Link</td>
<td >
Fiscal Year
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/accounts/fiscal_year">Fiscal Year</a>
</td>
</tr>
<tr >
<td>9</td>
<td ><code>quarter</code></td>
<td >
Select</td>
<td >
Quarter
</td>
<td>
<pre>
I
II
III
IV</pre>
</td>
</tr>
<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>
<a href="https://frappe.github.io/erpnext/current/models/accounts/c_form_invoice_detail">C-Form Invoice Detail</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/accounts/c_form">C-Form</a>
</td>
</tr>
</tbody>
</table>
<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>
</div>
<div style="padding-left: 30px;">
<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>
</div>
<br>
<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
</code></pre>
</div>
<br>
<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>
</div>
<br>
<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
</code></pre>
</div>
<br>
<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>
</div>
<br>
<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>
</div>
<br>
<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</p>
</div>
<br>
</div>
<hr>
<h4>Linked In:</h4>
<ul>
<li>
<a href="https://frappe.github.io/erpnext/current/models/accounts/c_form">C-Form</a>
</li>
<li>
<a href="https://frappe.github.io/erpnext/current/models/accounts/sales_invoice">Sales Invoice</a>
</li>
</ul>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->