Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traducir PDF Generado por la herramienta #20

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</div>
<h2 class="text-center">{{ _("STATEMENTS OF ACCOUNTS") }}</h2>
<div>
<h5 style="float: left;">{{ _("Customer: ") }} <b>{{filters.party[0] }}</b></h5>
<h5 style="float: left;">{{ _("Customer") }}:<b> {{filters.party[0] }}</b></h5>
<h5 style="float: right;">
{{ _("Date: ") }}
<b>{{ frappe.format(filters.from_date, 'Date')}}
{{ _("Date") }}:
<b> {{ frappe.format(filters.from_date, 'Date')}}
{{ _("to") }}
{{ frappe.format(filters.to_date, 'Date')}}</b>
</h5>
Expand All @@ -41,7 +41,7 @@ <h5 style="float: right;">
<tr>
{% if(row.posting_date) %}
<td>{{ frappe.format(row.posting_date, 'Date') }}</td>
<td>{{ row.voucher_type }}
<td>{{ _(row.voucher_type) }}
<br>{{ row.voucher_no }}</td>
<td>
{% if not (filters.party or filters.account) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ frappe.ui.form.on('Process Statement Of Accounts', {
},
refresh: function(frm){
if(!frm.doc.__islocal) {
frm.add_custom_button('Send Emails',function(){
frm.add_custom_button(__('Send Emails'),function(){
frappe.call({
method: "erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_emails",
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"fieldname": "help_text",
"fieldtype": "HTML",
"label": "Help Text",
"options": "<br>\n<h4>Note</h4>\n<ul>\n<li>\nYou can use <a href=\"https://jinja.palletsprojects.com/en/2.11.x/\" target=\"_blank\">Jinja tags</a> in <b>Subject</b> and <b>Body</b> fields for dynamic values.\n</li><li>\n All fields in this doctype are available under the <b>doc</b> object and all fields for the customer to whom the mail will go to is available under the <b>customer</b> object.\n</li></ul>\n<h4> Examples</h4>\n<!-- {% raw %} -->\n<ul>\n <li><b>Subject</b>:<br><br><pre><code>Statement Of Accounts for {{ customer.name }}</code></pre><br></li>\n <li><b>Body</b>: <br><br>\n<pre><code>Hello {{ customer.name }},<br>PFA your Statement Of Accounts from {{ doc.from_date }} to {{ doc.to_date }}.</code> </pre></li>\n</ul>\n<!-- {% endraw %} -->"
"options": "<br>\n<h4>Nota</h4>\n<ul>\n<li>\nSe puede utilizar <a href=\"https://jinja.palletsprojects.com/en/2.11.x/\" target=\"_blank\">etiquetas Jinja</a> en el <b>Asunto</b> y <b>Cuerpo</b> para insertar valores din\u00e1micos.\n</li><li>\n Todos los campos de este doctype est\u00e1n disponibles bajo el objeto doc, y todos los campos del Cliente al cual se env\u00eda el correo est\u00e1n disponibles dentro del objeto <b>customer</b>.\n</li></ul>\n<h4> Ejemplo</h4>\n<!-- {% raw %} -->\n<ul>\n <li><b>Asunto</b>:<br><br><pre><code>Estado de cuentas de {{ customer.name }}</code></pre><br></li>\n <li><b>Cuerpo</b>: <br><br>\n<pre><code>Hola {{ customer.name }},<br>Su estado de cuentas desde {{ doc.from_date }} hasta {{ doc.to_date }}.</code> </pre></li>\n</ul>\n<!-- {% endraw %} -->"
},
{
"fieldname": "subject",
Expand All @@ -287,7 +287,7 @@
}
],
"links": [],
"modified": "2021-09-06 21:00:45.732505",
"modified": "2021-11-16 09:22:30.606688",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Process Statement Of Accounts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
class ProcessStatementOfAccounts(Document):
def validate(self):
if not self.subject:
self.subject = 'Statement Of Accounts for {{ customer.name }}'
self.subject = _('Statement Of Accounts for {{ customer.name }}')
if not self.body:
self.body = 'Hello {{ customer.name }},<br>PFA your Statement Of Accounts from {{ doc.from_date }} to {{ doc.to_date }}.'
self.body = 'Hola {{ customer.name }},<br>Su estado de cuentas desde {{ doc.from_date }} hasta {{ doc.to_date }}.'
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este lo hice traducible como el subject y le agregué la traducción de varias manera pero no hubo forma que agarre viaje, el subject si.


validate_template(self.subject)
validate_template(self.body)
Expand Down
10 changes: 6 additions & 4 deletions erpnext/translations/es.csv
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ A Positive,A Positivo,
"A Product or a Service that is bought, sold or kept in stock.","Un producto o un servicio que se compra, se vende o se mantiene en stock.",
A condition for a Shipping Rule,Una condición para una regla de envío,
A customer is already linked to this Member,Un cliente ya está vinculado a este miembro,
A customer must have primary contact email.,A customer must have primary contact email.,
A customer must have primary contact email.,El cliente debe tener un correo electrónico de contacto principal.,
A customer with the same name already exists,Ya existe un cliente con el mismo nombre,
A friendly reminder of an important date for our team.,A friendly reminder of an important date for our team.,
A link to all the Locations in which the Crop is growing,Un enlace a todas las ubicaciones en las que crece la cosecha,
Expand Down Expand Up @@ -7913,7 +7913,7 @@ SMS Center,Centro SMS,
SMS Log,Registros SMS,
"SMS not sent, please check SMS Settings","SMS no enviado, compruebe la configuración de SMS",
SO Qty,Cant. OV,
STATEMENTS OF ACCOUNTS,STATEMENTS OF ACCOUNTS,
STATEMENTS OF ACCOUNTS,ESTADOS DE CUENTA,
STO-ITEM-.YYYY.-,STO-ITEM-.YYYY.-,
STO-PICK-.YYYY.-,STO-PICK-.YYYY.-,
SUP-.YYYY.-,SUP-.YYYY.-,
Expand Down Expand Up @@ -10768,6 +10768,8 @@ New Lead (Last 1 Month),Iniciativas de los últimos 30 días,
New Opportunity (Last 1 Month),Oportunidades de los últimos 30 días,
Won Opportunity (Last 1 Month),Oportunidades perdidas de los últimos 30 días,
Open Opportunity,Oportunidades Abiertas,
"<div class='text-muted text-center'>No Matching Vouchers Found</div>","<div class='text-muted text-center'>No se encontraron comprobantes para comparar</div>"
"<div class='text-muted text-center'>No Matching Vouchers Found</div>","<div class='text-muted text-center'>No se encontraron comprobantes para comparar</div>",
Territory Wise,Por territorio,
Amount to Bill,Importe a facturar,
Amount to Bill,Importe a facturar,
Send Emails,Enviar Correos Electrónicos,
Statement Of Accounts for {{ customer.name }},Estado de cuentas de {{ customer.name }},