Skip to content

feat : added product filtering in lead#282

Open
sappu-hub wants to merge 5 commits intov4_developfrom
versa_d4_1
Open

feat : added product filtering in lead#282
sappu-hub wants to merge 5 commits intov4_developfrom
versa_d4_1

Conversation

@sappu-hub
Copy link
Collaborator

Feature description

create lead.py and coded to filter to fetch only product

Solution description

created the filter to get only produts

Output

Screenshot from 2025-03-12 01-16-29

Areas affected and ensured

-New feature

Is there any existing behavior change of other features due to this code change?

-No

Was this feature tested on the browsers?

  • Chrome

@sappu-hub sappu-hub requested a review from MhmdSinanKT March 12, 2025 10:37
@MhmdSinanKT MhmdSinanKT changed the base branch from v2_develop to v4_develop March 12, 2025 10:37
Comment on lines 18 to 19
console.log("Lead form loaded - setting product filter");

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

console.log("Lead form loaded - setting product filter");

frm.fields_dict['material_details'].grid.get_field('product_item').get_query = function(doc, cdt, cdn) {
console.log("Product item field filter applied");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not push commented code

Comment on lines 148 to 153
doc_events = {
"Lead": {
"on_change": "versa_system.versa_system.custom_script.lead.get_only_products"
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants