I have custom hooks for my app
permission_query_conditions = {
“Sales Invoice”: “foundryapp.sample.get_invoice_based_permission_date”,
“Payment Entry”: “foundryapp.sample.get_payment_based_permission_date”,
“Purchase Invoice”: “foundryapp.sample.get_purchaseinv_based_permission_date”
}
all three does the same thing. So instead of writing three functions i want a generic function where i can write the logic based on doctype name.
Is there a way to achieve this
any pointers, help, support is appreciated
Thank You.