Changes to text css
This commit is contained in:
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
{
|
||||
"creation": "2025-06-25 10:11:15.922486",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Opportunity",
|
||||
"method": "rangeldigital.rangel_digital.number_card.my_open_tasks.my_open_tasks.get_number_card_data",
|
||||
"idx": 0,
|
||||
"is_public": 1,
|
||||
"is_standard": 1,
|
||||
"label": "My Open Tasks",
|
||||
"modified": "2025-06-25 12:19:53.088837",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Projects",
|
||||
"name": "My Open Tasks",
|
||||
"owner": "Administrator",
|
||||
"show_percentage_stats": 0,
|
||||
"stats_time_interval": "",
|
||||
"type": "Custom"
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_number_card_data():
|
||||
current_user = frappe.session.user
|
||||
|
||||
count = frappe.db.count(
|
||||
"Task",
|
||||
filters={
|
||||
"status": ["not in", ["Template", "Completed", "Cancelled"]],
|
||||
"_assign": ["like", f"%{current_user}%"]
|
||||
}
|
||||
)
|
||||
|
||||
return {
|
||||
"value": count,
|
||||
"fieldtype": "Int",
|
||||
"label": _("My Open Tasks")
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
{
|
||||
"aggregate_function_based_on": "base_total",
|
||||
"creation": "2025-06-21 20:17:15.922486",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Quotation",
|
||||
"dynamic_filters_json": "[[\"Opportunity\",\"company\",\"=\",\"frappe.defaults.get_user_default(\\\"Company\\\")\"]]",
|
||||
"filters_json": "[[\"Quotation\",\"status\",\"not in\",[\"Draft\",\"Lost\"],false]]",
|
||||
"function": "Sum",
|
||||
"idx": 0,
|
||||
"is_public": 1,
|
||||
"is_standard": 1,
|
||||
"label": "Pipeline Total",
|
||||
"modified": "2025-06-21 12:15:53.088837",
|
||||
"modified_by": "Administrator",
|
||||
"module": "CRM",
|
||||
"name": "Quotation Total",
|
||||
"owner": "Administrator",
|
||||
"show_percentage_stats": 0,
|
||||
"stats_time_interval": "",
|
||||
"type": "Document Type"
|
||||
}
|
||||
Reference in New Issue
Block a user