started sales order print format (new style)
This commit is contained in:
parent
5cf3a6bcd2
commit
28804bfb62
@ -223,7 +223,8 @@
|
|||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Currency and Price List",
|
"label": "Currency and Price List",
|
||||||
"options": "icon-tag",
|
"options": "icon-tag",
|
||||||
"permlevel": 0
|
"permlevel": 0,
|
||||||
|
"print_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
@ -341,6 +342,16 @@
|
|||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_33a",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_33",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "net_total_export",
|
"fieldname": "net_total_export",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
@ -349,11 +360,6 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "column_break_33",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "net_total",
|
"fieldname": "net_total",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
@ -469,50 +475,6 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"print_hide": 1
|
"print_hide": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "grand_total_export",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"label": "Grand Total",
|
|
||||||
"oldfieldname": "grand_total_export",
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"options": "currency",
|
|
||||||
"permlevel": 0,
|
|
||||||
"print_hide": 0,
|
|
||||||
"read_only": 1,
|
|
||||||
"reqd": 0,
|
|
||||||
"width": "150px"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "rounded_total_export",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"label": "Rounded Total",
|
|
||||||
"oldfieldname": "rounded_total_export",
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"options": "currency",
|
|
||||||
"permlevel": 0,
|
|
||||||
"print_hide": 0,
|
|
||||||
"read_only": 1,
|
|
||||||
"width": "150px"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "in_words_export",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"label": "In Words",
|
|
||||||
"oldfieldname": "in_words_export",
|
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"permlevel": 0,
|
|
||||||
"print_hide": 0,
|
|
||||||
"read_only": 1,
|
|
||||||
"width": "200px"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "column_break3",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"oldfieldtype": "Column Break",
|
|
||||||
"permlevel": 0,
|
|
||||||
"print_hide": 1,
|
|
||||||
"width": "50%"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "grand_total",
|
"fieldname": "grand_total",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
@ -550,6 +512,50 @@
|
|||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
"width": "200px"
|
"width": "200px"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break3",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"oldfieldtype": "Column Break",
|
||||||
|
"permlevel": 0,
|
||||||
|
"print_hide": 1,
|
||||||
|
"width": "50%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "grand_total_export",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"label": "Grand Total",
|
||||||
|
"oldfieldname": "grand_total_export",
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"options": "currency",
|
||||||
|
"permlevel": 0,
|
||||||
|
"print_hide": 0,
|
||||||
|
"read_only": 1,
|
||||||
|
"reqd": 0,
|
||||||
|
"width": "150px"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "rounded_total_export",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"label": "Rounded Total",
|
||||||
|
"oldfieldname": "rounded_total_export",
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"options": "currency",
|
||||||
|
"permlevel": 0,
|
||||||
|
"print_hide": 0,
|
||||||
|
"read_only": 1,
|
||||||
|
"width": "150px"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "in_words_export",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "In Words",
|
||||||
|
"oldfieldname": "in_words_export",
|
||||||
|
"oldfieldtype": "Data",
|
||||||
|
"permlevel": 0,
|
||||||
|
"print_hide": 0,
|
||||||
|
"read_only": 1,
|
||||||
|
"width": "200px"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "terms_section_break",
|
"fieldname": "terms_section_break",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
@ -883,7 +889,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"modified": "2014-07-10 02:43:45.504009",
|
"modified": "2014-07-16 16:32:16.459587",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Sales Order",
|
"name": "Sales Order",
|
||||||
|
|||||||
@ -18,6 +18,10 @@ class SalesOrder(SellingController):
|
|||||||
person_tname = 'Target Detail'
|
person_tname = 'Target Detail'
|
||||||
partner_tname = 'Partner Target Detail'
|
partner_tname = 'Partner Target Detail'
|
||||||
territory_tname = 'Territory Target Detail'
|
territory_tname = 'Territory Target Detail'
|
||||||
|
table_print_templates = {
|
||||||
|
"sales_order_details": "templates/print_formats/includes/item_grid.html",
|
||||||
|
"other_charges": "templates/print_formats/includes/taxes.html",
|
||||||
|
}
|
||||||
|
|
||||||
def validate_mandatory(self):
|
def validate_mandatory(self):
|
||||||
# validate transaction date v/s delivery date
|
# validate transaction date v/s delivery date
|
||||||
|
|||||||
31
erpnext/templates/print_formats/includes/item_grid.html
Normal file
31
erpnext/templates/print_formats/includes/item_grid.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<table class="table table-bordered">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>Sr</th>
|
||||||
|
<th>Item Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Qty</th>
|
||||||
|
<th>UoM</th>
|
||||||
|
<th>Basic Rate</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
</tr>
|
||||||
|
{%- for row in data -%}
|
||||||
|
<tr>
|
||||||
|
<td style="width: 3%;">{{ row.idx }}</td>
|
||||||
|
<td style="width: 20%;">
|
||||||
|
{{ row.item_name }}
|
||||||
|
{% if row.item_code != row.item_name -%}
|
||||||
|
<br>Item Code: {{ row.item_code}}
|
||||||
|
{%- endif %}
|
||||||
|
</td>
|
||||||
|
<td style="width: 37%;">
|
||||||
|
<div style="border: 0px;">{{ row.description }}</div></td>
|
||||||
|
<td style="width: 5%; text-align: right;">{{ row.qty }}</td>
|
||||||
|
<td style="width: 5%;">{{ row.stock_uom }}</td>
|
||||||
|
<td style="width: 15%; text-align: right;">{{
|
||||||
|
format(row.rate, table_meta.get_field("rate"), doc) }}</td>
|
||||||
|
<td style="width: 15%; text-align: right;">{{ format(row.amount, table_meta.get_field("amount"), doc) }}</td>
|
||||||
|
</tr>
|
||||||
|
{%- endfor -%}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
17
erpnext/templates/print_formats/includes/taxes.html
Normal file
17
erpnext/templates/print_formats/includes/taxes.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6"></div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
{%- for charge in data -%}
|
||||||
|
{%- if not charge.included_in_print_rate -%}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 text-right">
|
||||||
|
<label>{{ charge.description }}</label></div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
{{ format(charge.tax_amount / doc.conversion_rate,
|
||||||
|
table_meta.get_field("tax_amount"), doc) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
x
Reference in New Issue
Block a user