Fix translate payment_to_invoice_matching_tool.js

This commit is contained in:
Bárbara Perretti 2013-09-30 15:13:24 -03:00
parent dc6cab63dc
commit 568ce8653e

View File

@ -13,15 +13,15 @@ cur_frm.cscript.onload_post_render = function(doc) {
cur_frm.cscript.refresh = function(doc) { cur_frm.cscript.refresh = function(doc) {
cur_frm.set_intro(""); cur_frm.set_intro("");
if(!doc.voucher_no) { if(!doc.voucher_no) {
cur_frm.set_intro("Select the Invoice against which you want to allocate payments."); cur_frm.set_intro(wn._("Select the Invoice against which you want to allocate payments."));
} else { } else {
cur_frm.set_intro("Set allocated amount against each Payment Entry and click 'Allocate'."); cur_frm.set_intro(wn._("Set allocated amount against each Payment Entry and click 'Allocate'."));
} }
} }
cur_frm.fields_dict.voucher_no.get_query = function(doc) { cur_frm.fields_dict.voucher_no.get_query = function(doc) {
// TO-do: check for pos, it should not come // TO-do: check for pos, it should not come
if (!doc.account) msgprint("Please select Account first"); if (!doc.account) msgprint(wn._("Please select Account first"));
else { else {
return { return {
doctype: doc.voucher_type, doctype: doc.voucher_type,