Printing Custom Field

I logged this through support "  [WN-SUP09271] How to print a custom field" but Umair asked me to post here.
We cannot get a custom field to print on a custom Sales Invoice
We created a field of type Small Text called ozserial_sale
The field prints on Standard Sales Invoice but not our custom
I have tried calling it doc.ozserial_sale, I only get the literal of doc.serial_sale printing
Umair suggested script

<tr>
<td><b>Field Name</b></td>
<td><script>doc.ozserial_sale)</script></td>
<tr>

This just printed blank.

Is there a script that needs to be run to fetch the field?
Thanks for help 
John
Print attached



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/568981c9-87c9-47a7-b408-a016ac265882%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On 09-Sep-2014, at 11:39 am, John Wellar <jw...@gmail.com> wrote:

I logged this through support "  [WN-SUP09271] How to print a custom field" but Umair asked me to post here.
We cannot get a custom field to print on a custom Sales Invoice
We created a field of type Small Text called ozserial_sale
The field prints on Standard Sales Invoice but not our custom
I have tried calling it doc.ozserial_sale, I only get the literal of doc.serial_sale printing
Umair suggested script

<tr>
<td><b>Field Name</b></td>
<td><script>doc.ozserial_sale)</script></td>

Is there an extra bracket in the above line?

<tr>

This just printed blank.

Is there a script that needs to be run to fetch the field?
Thanks for help 
John
Print attached



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/568981c9-87c9-47a7-b408-a016ac265882%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

    <Invoice Fromat No Ser Print.txt>



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/739B6CF1-0239-481F-B591-3D4061FCE080%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.

I never noticed that. Will try

On 09/09/2014 6:42 pm, "Rushabh Mehta" <rm...@gmail.com> wrote:

On 09-Sep-2014, at 11:39 am, John Wellar <jw...@gmail.com> wrote:

I logged this through support " [WN-SUP09271] How to print a custom field" but Umair asked me to post here.
We cannot get a custom field to print on a custom Sales Invoice
We created a field of type Small Text called ozserial_sale
The field prints on Standard Sales Invoice but not our custom
I have tried calling it doc.ozserial_sale, I only get the literal of doc.serial_sale printing
Umair suggested script

<tr>
<td><b>Field Name</b></td>
<td><script>doc.ozserial_sale)</script></td>

Is there an extra bracket in the above line?

<tr>

This just printed blank.

Is there a script that needs to be run to fetch the field?
Thanks for help
John
Print attached



Note:



If you are posting an issue,


  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/568981c9-87c9-47a7-b408-a016ac265882%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

    <Invoice Fromat No Ser Print.txt>



Note:



If you are posting an issue,


  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to a topic in the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/2BsHvHBeYwQ/unsubscribe.

    To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/739B6CF1-0239-481F-B591-3D4061FCE080%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAxHS8Vt1EHCwtw7-EOkD81B%2Bd2cxFDGgGa%3DoLiEKXSw3yENRQ%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.