also for table files use script
var df = frappe.meta.get_docfield(āTable Doctype Nameā,āFIELDNAMEā, cur_frm.doc.name);
df. fieldtype = āCurrencyā;
If you want to change precision, then from system setting you can change precision.
How can I change default currency?
Ex: total_claimed_amount, field type is Currency and USD as default. I want to change it depend on currency I choose.
Value $ 800, if you choose currency MMK, it will change to MMK 800.
before it worked
cur_frm.set_df_property(ātotal_claimed_amountā,ādefaultā, āMMKā);
refresh_field(āfield_nameā);
Shouldnāt be TABLE Doctype NAME => LINK DOCTYPE NAME (Table option link name) , i tried the code which make me always hit error if i include Table Nameā¦ work fine when i put Link Doctype Name~
This solution also not sufficient, i used it but did not able to solve my problem it works but for the current row, after save and refresh all the options will be cleared,
We can use stander property setter to achieve this
Just loop through the child table record and add following code.