mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
Agriculture module corrections (#13438)
* Agriculture module corrections * Update ternary_plot.js
This commit is contained in:
committed by
Nabin Hait
parent
c825e914d1
commit
6860036b01
@@ -15,8 +15,8 @@ frappe.ui.form.on('Soil Texture', {
|
||||
},
|
||||
onload: function(frm) {
|
||||
if (frm.doc.soil_texture_criteria == undefined) frm.call('load_contents');
|
||||
if (this.ternary_plot) return;
|
||||
this.ternary_plot = new agriculture.TernaryPlot({
|
||||
if (frm.doc.ternary_plot) return;
|
||||
frm.doc.ternary_plot = new agriculture.TernaryPlot({
|
||||
parent: frm.get_field("ternary_plot").$wrapper,
|
||||
clay: frm.doc.clay_composition,
|
||||
sand: frm.doc.sand_composition,
|
||||
|
||||
Reference in New Issue
Block a user