Is is possible to add a column to standard print format?
I have a custom field in “sales invoice item” and I want to show it in a separate column. Is this possible in standard print format or do I have to create a new invoice format?
regards,
Atif
umair
November 14, 2014, 4:48am
#2
Atif,
This is possible from Customize Form.
https://erpnext.com/kb/customize/make-field-visible-in-print-format
In Customize Form, select Document Type = Sales Invoice Item
Hope this helps.
I tried this Umair. I added a new column “scheme” but it donot shows up as a column? How can I show new field as a column?
rmehta
November 14, 2014, 9:35am
#4
Create a custom print format and re-write this:
{% var visible_columns = row.get_visible_columns(["item_code", "qty", "rate", "amount",
"stock_uom", "uom", "discount_percentage", "warehouse"]); %}
{% if(!doc) { %}
<div class="row">
<div class="col-sm-6 col-xs-8">{%= __("Items") %}</div>
<div class="col-sm-2 hidden-xs text-right">{%= __("Qty") %}</div>
<div class="col-sm-2 hidden-xs text-right">{%= __("Rate") %}</div>
<div class="col-sm-2 col-xs-4 text-right">{%= __("Amount") %}</div>
</div>
{% } else { %}
{% var visible_column_fieldnames = $.map(visible_columns, function(x, i) {return x.fieldname}); %}
<div class="row">
<div class="col-sm-6 col-xs-8">
{% if(doc.warehouse) {
var color = "grey",
title = "Warehouse",
actual_qty = (frm.doc.doctype==="Sales Order"
? doc.projected_qty : doc.actual_qty);
if(flt(frm.doc.per_delivered) < 100
This file has been truncated. show original