The “Document Register” custom document type has a “Currency” field with the required numerical data.
Even so, I can’t create a Number Card with SUM aggregation for custom app because there is no option to select in the “Aggregate function Based On” list field.
Would you please advise where the problem could be?
per the above program logic, for Currency field to be among the aggregate based on fields list, the options need to be set, refer to 2 currency fields from Purchase Order.
{
“fieldname”: “base_rounded_total”,
“fieldtype”: “Currency”,
“label”: “Rounded Total (Company Currency)”,
“options”: “Company:company:default_currency”,
},
{
“fieldname”: “grand_total”,
“fieldtype”: “Currency”,
“options”: “currency”,
},
It seems Currency is not treated as “number”. I also have the same problem.
One solution I think is to make custom field with number fieldtype, fetch from currency field, use this custom field to the card number.