i am trying to fetch value of “qty_after_transaction” from “tabStock Ledger Entry” table in custom script. But is there any possibility to get that value with the help of custom script. Because i searched andf found following method
in which it is clearly mentioned that i should pass doctype name as parameter and there is no doctype named “Stock Ledger Entry”. Stock Ledger Entry is actually form.
// your code here
var stockQty=frappe.db.get_single_value(“Stock Ledger Entry”, “qty_after_transaction”)
frm.set_value("batch_stock", stockQty); }