2011-10-19 09:35:26 +00:00
|
|
|
[
|
2012-12-11 09:50:53 +00:00
|
|
|
{
|
|
|
|
"creation": "2011-12-21 11:08:55",
|
2013-08-16 10:47:34 +00:00
|
|
|
"docstatus": 0,
|
2013-08-29 13:51:03 +00:00
|
|
|
"modified": "2013-08-29 17:40:19",
|
2012-12-11 09:50:53 +00:00
|
|
|
"modified_by": "Administrator",
|
2013-08-16 10:47:34 +00:00
|
|
|
"owner": "Administrator"
|
2012-12-11 09:50:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"doc_type": "Sales Invoice",
|
|
|
|
"doctype": "Print Format",
|
2013-08-29 13:51:03 +00:00
|
|
|
"html": "<html>\n<head>\n<!--Item Table, Totals and Other Charges-->\n<script>\nfunction get_print_format() {\n\tvar oc = getchildren('Sales Invoice Item', doc.name, 'entries');\n\tvar rows = '<table width=\"100%\" cellpadding=\"0\" class=\"cart\">\\\n <tr>\\\n <td colspan=\"3\">------------------------------------------------------</td>\\\n </tr>\\\n <tr>\\\n <td width=\"60%\" align=\"left\">ITEM CODE/DESC.</td>\\\n <td width=\"10%\" align=\"right\">QTY</td>\\\n <td width=\"30%\" align=\"right\">RATE</td>\\\n </tr>\\\n <tr>\\\n <td colspan=\"3\">------------------------------------------------------</td>\\\n </tr>';\n\tfor (var x=0; x<oc.length; x++) {\n\t\trows += '<tr>\\\n <td align=\"left\">' + oc[x].item_code + '<br>' + oc[x].item_name + '</td>\\\n <td align=\"right\" style=\"vertical-align:top;\">' + oc[x].qty + '</td>\\\n <td align=\"right\"><strong>' + format_currency(oc[x].export_amount) + '</strong><br>' + format_currency(oc[x].ref_rate) + '</td>\\\n </tr>';\n\t}\n rows += '<tr>\\\n <td colspan=\"3\">------------------------------------------------------</td>\\\n </tr>\\\n <tr>\\\n <td colspan=\"2\" align=\"right\">Net Total</td>\\\n <td align=\"right\">' + format_currency(doc.net_total_export) + '</td>\\\n </tr>';\n if (doc.other_charges_total_export != 0) {\n var taxes = wn.model.get_children(\"Sales Taxes and Charges\", doc.name, \"other_charges\", \"Sales Invoice\");\n\t\t$.each(taxes, function(i, d) {\n\t\t\trows += '<tr>\\\n \t\t\t\t<td colspan=\"2\" align=\"right\">' + d.description + '</td>\\\n \t\t\t\t<td style=\"text-align: right;\">' + format_currency(d.tax_amount) + '</td>\\\n \t\t\t<tr>';\n\t\t});\n }\n rows += '<tr>\\\n <td colspan=\"2\" align=\"right\" style=\"vertical-align:middle;\">Grand Total</td>\\\n <td align=\"right\">==============<br>' + format_currency(doc.grand_total_export) + '<br>==============</td>\\\n </tr>\\\n <tr>\\\n <td align=\"center\" colspan=\"3\">Thank You. Please visit again.</td>\\\n </tr>\\\n </table>';\n\treturn rows;\n}\n</script>\n<style>\n table, tr, td, div {\n font-family: Monospace;\n line-height: 200%;\n }\n h1, h2, h3, h4, h5, h6 {\n text-align: center;\n }\n\t@media screen {\n\t\tbody {\n\t\t\twidth: 4in;\n\t\t}\n\t}\n</style>\n</head>\n\n<body>\n<table width=\"100%\" cellpadding=\"4\">\n <tr>\n <td align=\"left\">RECEIPT NO: <script>doc.name</script></td>\n <td align=\"right\">DATE: <script>date.str_to_user(doc.posting_date)</script></td>\n </tr>\n <tr>\n <td>M/s <script>doc.customer</script></td>\n </tr>\n</table>\n<!--Item Table & Totals-->\n<div><script>get_print_format();</script></div>\n</body>\n</html>\n",
|
2013-08-16 10:47:34 +00:00
|
|
|
"module": "Accounts",
|
|
|
|
"name": "__common__",
|
|
|
|
"print_format_type": "Client",
|
2012-12-11 09:50:53 +00:00
|
|
|
"standard": "Yes"
|
|
|
|
},
|
|
|
|
{
|
2013-08-16 10:47:34 +00:00
|
|
|
"doctype": "Print Format",
|
|
|
|
"name": "POS Invoice"
|
2012-12-11 09:50:53 +00:00
|
|
|
}
|
2011-10-19 09:35:26 +00:00
|
|
|
]
|