I have a custom module and opportunity module, i need to add the line items in the custom module.
Please help me how to i add the line items.
That is not something easily accomplished. I donāt know of any code examples either. Youād have to invent something. Maybe try replicating whatās done in the quotes module.
Cool! I didnāt see that one! (not sure what version the poster is working in, but that will only work in 7)
Hello
i try to add the line_items in vardefs file of the my module but still the function of the display_lines not called .
āline_itemsā =>
array(
ārequiredā => false,
ānameā => āline_itemsā,
āvnameā => āLBL_LINE_ITEMSā,
ātypeā => āfunctionā,
āsourceā => ānon-dbā,
āmassupdateā => 0,
āimportableā => āfalseā,
āduplicate_mergeā => ādisabledā,
āduplicate_merge_dom_valueā => 0,
āauditedā => false,
āreportableā => false,
āfunctionā =>
array(
ānameā => ādisplay_linesā,
āreturnsā => āhtmlā,
āincludeā => āmodules/AOS_Products_Quotes/Line_Items.phpā
),
),
Does anyone have any idea about the line item issue with the custom module?
Hello
i got the solution for the custom module line item,
We need to change the layout mode of the module from config/services/module/module_routing.yaml
record: false
after this changes we are able to log the line item function in the custom module.