Convert input into Calculator
Posted: 2022-10-05 16:52
I have a table called product and i have tried to enable the calculator on a decimal field called price. I have set up a product-dv.js file in the hiooks folder with following content:
-----
// single field, beautify + change icons + remove variation
new AppGiniField("vatid").dropdown().fix("search", "plus", true);
new AppGiniField("supplierid").dropdown().fix("search", "plus", true);
new AppGini.Components.Calculator("price", ",", 2);
----
new AppGiniField commands are working fine. new AppGini.Components.Calculator is not.
Any suggestions are welcome?
-----
// single field, beautify + change icons + remove variation
new AppGiniField("vatid").dropdown().fix("search", "plus", true);
new AppGiniField("supplierid").dropdown().fix("search", "plus", true);
new AppGini.Components.Calculator("price", ",", 2);
----
new AppGiniField commands are working fine. new AppGini.Components.Calculator is not.
Any suggestions are welcome?