I have already created an extra field which is going to be used in the Vendor proposal’s document.
The extra field works like a charm. Now I wonder if there’s a way to move the extra field on screen to be the first one in the left column, just above the “Discounts” field (Descuentos in my Screenshot).
First of all, you need to create a new module. Then create a file in your class folder. Usually named actions_myobjectname.class.php. Then you have to identify the hook you want to use. You can go to the core file. if is a customer invoice, customer order, supplier order, etc. You to go to card.php file and search for initHook(). There is the name of the hook. Like invoicedcard is for customer invoices.
then in your file /custom/mymodule/core/modMymodule.class.php find the like hooks in _construct method. Like this:
Thanks for the example. But I can’t understand. Only part of the code in your response is highlighted as code. Is that the only part that I need to implement?
Do I have to implement all the code starting from “public function formObject…”?
I am sorry. I couldn’t understand what to implement.
Each time I click the pencil icon beside the module description file named: ubicaprovcf/core/modules/modUbicaprovcf.class.php, I am sent to the specific line 121 in the code.