Arabic Reporting and Documents

Hi all,


I’m try to discover Reporting and Documents in ERPNext … and want to know some things


I try to create my own Print Format … and i already created it ad it is work … i notice that that is method print_item_table responsible for creating Document main table

<script>
    si_std = {
print_item_table: function() {
var table = print_table(
            ‘Purchase Order’,
doc.name,
        ‘po_details’,
‘Purchase Order Item’,
[// Here specify the table columns to be displayed
          ‘qty’,
          ‘description’,
‘item_name’,
‘item_code’,
                                        ‘stock_uom’,
                    ‘SR’

],
[// Here specify the labels of column headings
‘الكمية’,
‘الوصف’,
‘اسم المنتج’,
‘كود المنتج’,
                    ‘الوحده’,
                    ‘م’
],
[// Here specify the column widths
‘5%’,
              ‘32%’,
‘9%’,
‘9%’,
‘6%’
]
);
// This code takes care of page breaks
if(table.appendChild) {
out = table.innerHTML;
} else {
out = ‘’;
for(var i=0; i < (table.length-1); i++) {
out += table[i].innerHTML + 
‘<div style = “page-break-after: always;” <br> class = “page_break”></div><br> <div class=“page-settings”></div>’;
}
out += table[table.length-1].innerHTML;
}
return out;
},
};
</script>
<BODY LANG=“en-US” DIR=“LTR”>
<script>si_std.print_item_table()</script>
</BODY>

it works but the ‘SR’ not appear when i move it from the begin of table … just appear when ‘SR’ is the first column 

and could you tell me what is the “blue text” refer to??



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     
https://github.com/webnotes/wnframework/blob/master/public/js/wn/print/print_table.js#L204

Please use "grep" - right now its the best way to find the code.


On 05-Aug-2013, at 4:29 PM, OS_Dev <en...@gmail.com> wrote:

Hi all,

I'm try to discover Reporting and Documents in ERPNext .. and want to know some things


I try to create my own Print Format ... and i already created it ad it is work .. i notice that that is method print_item_table responsible for creating Document main table

<script>
    si_std = {
print_item_table: function() {
var table = print_table(
            'Purchase Order',
doc.name,
        'po_details',
'Purchase Order Item',
[// Here specify the table columns to be displayed
          'qty',
          'description',
'item_name',
'item_code',
                                        'stock_uom',
                    'SR'

],
[// Here specify the labels of column headings
'الكمية',
'الوصف',
'اسم المنتج',
'كود المنتج',
                    'الوحده',
                    'م'
],
[// Here specify the column widths
'5%',
              '32%',
'9%',
'9%',
'6%'
]
);
// This code takes care of page breaks
if(table.appendChild) {
out = table.innerHTML;
} else {
out = '';
for(var i=0; i < (table.length-1); i++) {
out += table[i].innerHTML + 
'<div style = "page-break-after: always;" \
class = "page_break"></div>\
<div class="page-settings"></div>';
}
out += table[table.length-1].innerHTML;
}
return out;
},
};
</script>
<BODY LANG="en-US" DIR="LTR">
<script>si_std.print_item_table()</script>
</BODY>

it works but the 'SR' not appear when i move it from the begin of table .. just appear when 'SR' is the first column 

and could you tell me what is the "blue text" refer to??



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     

ok thanks , will try to use it 


and what about SR column 

it works but the ‘SR’ not appear when i move it from the beginning of table … just appear when ‘SR’ is the first column 



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     

hi any one here 

On Monday, August 5, 2013 2:10:26 PM UTC+2, OS_Dev wrote:

ok thanks , will try to use it 

and what about SR column 

it works but the ‘SR’ not appear when i move it from the beginning of table … just appear when ‘SR’ is the first column 



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     
Sorry what is your question? Did you try reading the code?


On 07-Aug-2013, at 1:38 PM, OS_Dev <en...@gmail.com> wrote:

hi any one here 

On Monday, August 5, 2013 2:10:26 PM UTC+2, OS_Dev wrote:
ok thanks , will try to use it 

and what about SR column 

it works but the 'SR' not appear when i move it from the beginning of table .. just appear when 'SR' is the first column 



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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

     

     
yes i did it .. and it is so strange to fixed the index column to be in left using this line

https://github.com/webnotes/wnframework/blob/master/public/js/wn/print/print_table.js#L121

i try now to change it to depends on column label or fieldname

if(me.head_labels[ci] == "SR" ||me.head_labels[ci] == "Sr" || me.head_labels[ci] == '\u0645')

OR

if(fieldname == "SR" ||fieldname == "Sr" || fieldname == '\u0645')

but still dt work
On Wednesday, August 7, 2013 12:32:45 PM UTC+2, rushabh wrote:
Sorry what is your question? Did you try reading the code?


On 07-Aug-2013, at 1:38 PM, OS_Dev <en...@gmail.com> wrote:

hi any one here 

On Monday, August 5, 2013 2:10:26 PM UTC+2, OS_Dev wrote:
ok thanks , will try to use it 

and what about SR column 

it works but the 'SR' not appear when i move it from the beginning of table .. just appear when 'SR' is the first column 




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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.

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