Fix translate public/js/controllers/stock_controller.js

This commit is contained in:
Bárbara Perretti 2013-10-15 17:29:57 -03:00
parent a1a8907e78
commit acc7061ca7

View File

@ -7,7 +7,7 @@ erpnext.stock.StockController = wn.ui.form.Controller.extend({
show_stock_ledger: function() {
var me = this;
if(this.frm.doc.docstatus===1) {
this.frm.add_custom_button("Stock Ledger", function() {
this.frm.add_custom_button(wn._("Stock Ledger"), function() {
wn.route_options = {
voucher_no: me.frm.doc.name,
from_date: me.frm.doc.posting_date,
@ -21,7 +21,7 @@ erpnext.stock.StockController = wn.ui.form.Controller.extend({
show_general_ledger: function() {
var me = this;
if(this.frm.doc.docstatus===1 && cint(wn.defaults.get_default("auto_accounting_for_stock"))) {
cur_frm.add_custom_button('Accounting Ledger', function() {
cur_frm.add_custom_button(wn._('Accounting Ledger'), function() {
wn.route_options = {
"voucher_no": me.frm.doc.name,
"from_date": me.frm.doc.posting_date,