Continuing the discussion from Display of total number of records in List View :
Continuing the discussion from Calculate Custom fields :
i have to coded like this but no output any one advie to calculate this total
cur_frm.add_fetch("budgeted_amount", "purchased_amount", "excess_amount");
frappe.ui.form.on("budgeted_amount", "purchased_amount", function(frm, doctype, name) {
cur_frm.cscript.custom_validate = function(doc) {
var budgeted_amount=budgeted_amount;
var purchased_amount=purchased_amount;
var excess_amount=0;
doc.excess_amount=purchased_amount-budgeted_amount;
doc.budgeted_amount=budgeted_amount;
doc.purchased_amount=purchased_amount;
}
});
Continuing the discussion from Calculate Custom fields :
i have to coded like this but no output any one advie to calculate this total
cur_frm.add_fetch("budgeted_amount", "purchased_amount", "excess_amount");
frappe.ui.form.on("budgeted_amount", "purchased_amount", function(frm, doctype, name) {
cur_frm.cscript.custom_validate = function(doc) {
var budgeted_amount=budgeted_amount;
var purchased_amount=purchased_amount;
var excess_amount=0;
doc.excess_amount=purchased_amount-budgeted_amount;
doc.budgeted_amount=budgeted_amount;
doc.purchased_amount=purchased_amount;
}
});
Continuing the discussion from Calculate Custom fields :
@Senthil_Kumar check this script, also you can see browser console for error log
frappe.ui.form.on("Task", "budgeted_amount", function(frm) {
calculate_excess_amount(frm);
});
frappe.ui.form.on("Task", "purchased_amount", function(frm) {
calculate_excess_amount(frm);
});
var calculate_excess_amount = function(frm) {
var excess_amount = flt(frm.doc.purchased_amount) - flt(frm.doc.budgeted_amount);
frm.set_value("excess_amount", excess_amount);
}
thank you so much its working Continuing the discussion from Calculate Custom fields :
hoo !! i try to stop supplier name duplication and supplier serial is not work…what shout i do…
Go to customize form, select supplier in form type.
In Supplier Name field, check Unique check box.
So your supplier name will be unique.
To set supplier by naming series,
Go to Buying > Setup > Buying Setting : select Supplier Naming By - Naming Series
1 Like
i have to select the check list view in budget amount field box nut am not able to see not in project task and project table
frappe.ui.form.on(“Expense Claim”, “Task”, function(frm) {
calculate_paid_amount(frm);
});
var calculate_paid_amount = function(frm) {
var paid_amount = cur_frm.add_fetch(‘flt(frm.doc.task)’,‘total_expense_claim’,‘total_expense_claim’);
frm.set_value(“paid_amount”, paid_amount);
}
i have try this code its not working ,
I have to planned to show new expense claim in the last expence claim of that particular task any one hepl me please
how can link tha task clime amount in expence claim can you help me
hai !
i have to edit email Digest templets and nee to new tasks list of the day
can you help me please