# \#Code

**URL:** https://www.dolibarr.org/forum/tag/code/28.md

[Latest](https://www.dolibarr.org/forum/latest.md) · [Categories](https://www.dolibarr.org/forum/categories.md) · [Tags](https://www.dolibarr.org/forum/tags.md)

---

## [Make $object-\>fetchObjectLinked() ignore entity](https://www.dolibarr.org/forum/t/make-object-fetchobjectlinked-ignore-entity/21392)

<div class="topic-metadata">

**Author:** [@cfoellmann](https://www.dolibarr.org/forum/u/cfoellmann)\
**Replies:** 1\
**Last updated:** [October 28, 2024, 3:48pm UTC](https://www.dolibarr.org/forum/t/make-object-fetchobjectlinked-ignore-entity/21392 "2024-10-28T15:48:12Z")

</div>

Hi, I am going insane. I just sank half a day in this problem. I want to make the LinkedObjectBlock of a custom element type I created able to link to elements in all entities. We use multicompany. And I am willing to …

---

## [Is there any way to hide best buying price for a certain user? (I need user to see stocks without seeing buying prices)](https://www.dolibarr.org/forum/t/is-there-any-way-to-hide-best-buying-price-for-a-certain-user-i-need-user-to-see-stocks-without-seeing-buying-prices/21911)

<div class="topic-metadata">

**Author:** [@mmamin](https://www.dolibarr.org/forum/u/mmamin)\
**Replies:** 24\
**Last updated:** [July 24, 2023, 2:53pm UTC](https://www.dolibarr.org/forum/t/is-there-any-way-to-hide-best-buying-price-for-a-certain-user-i-need-user-to-see-stocks-without-seeing-buying-prices/21911 "2023-07-24T14:53:04Z")

</div>

Hello, is there any way to hide best buying price for a certain user? (I need user to see stocks without seeing buying prices)

---

## [Create Multiple Select dropdown / Reuse Categories Component](https://www.dolibarr.org/forum/t/create-multiple-select-dropdown-reuse-categories-component/20863)

<div class="topic-metadata">

**Author:** [@Felix\_Ruby](https://www.dolibarr.org/forum/u/Felix_Ruby)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 1:12pm UTC](https://www.dolibarr.org/forum/t/create-multiple-select-dropdown-reuse-categories-component/20863 "2023-07-06T13:12:03Z")

</div>

Hey, im working on a custom module. The Module generator works great. But I need a Multiple Select dropdown. I have no Idea how to reuse the Dolibarr component for this. To code somethin new would be easy but I dont thin…

---

## [Where is the code of customer popup card](https://www.dolibarr.org/forum/t/where-is-the-code-of-customer-popup-card/21521)

<div class="topic-metadata">

**Author:** [@gerstavros](https://www.dolibarr.org/forum/u/gerstavros)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 11:44pm UTC](https://www.dolibarr.org/forum/t/where-is-the-code-of-customer-popup-card/21521 "2022-01-05T23:44:50Z")

</div>

Hello. I am trying to find where is the code of this popup card (orders, fichinter etc)

---

## [PHP memory limit with DB request loop](https://www.dolibarr.org/forum/t/php-memory-limit-with-db-request-loop/21506)

<div class="topic-metadata">

**Author:** [@masterit](https://www.dolibarr.org/forum/u/masterit)\
**Replies:** 4\
**Last updated:** [December 27, 2021, 9:17am UTC](https://www.dolibarr.org/forum/t/php-memory-limit-with-db-request-loop/21506 "2021-12-27T09:17:02Z")

</div>

Hi, I’d like to generate invoices from a hook and I got a php memory limit error. I don’t want to use the simple-but-sad solution of increasing the limit in my php.ini. I got no problem to fetch all the invoice from my…

---

## [Display product barcode in odt](https://www.dolibarr.org/forum/t/display-product-barcode-in-odt/19123)

<div class="topic-metadata">

**Author:** [@ejudsierra](https://www.dolibarr.org/forum/u/ejudsierra)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 11:07am UTC](https://www.dolibarr.org/forum/t/display-product-barcode-in-odt/19123 "2021-12-06T11:07:50Z")

</div>

Hello I am looking for the parameter to display a product barcode in the odt forms. Can anybody help with that? I have unsuccessfully tried: {line\_product\_barcode} {line\_barcode} Thanks!

---

## [Trigger created in MySQL database is not fired by Dolibarr operation](https://www.dolibarr.org/forum/t/trigger-created-in-mysql-database-is-not-fired-by-dolibarr-operation/21541)

<div class="topic-metadata">

**Author:** [@nopo](https://www.dolibarr.org/forum/u/nopo)\
**Replies:** 0\
**Last updated:** [December 5, 2021, 8:07am UTC](https://www.dolibarr.org/forum/t/trigger-created-in-mysql-database-is-not-fired-by-dolibarr-operation/21541 "2021-12-05T08:07:48Z")

</div>

I have created a trigger (AFTER UPDATE) in MySQL database to UPDATE my invoicedue-date (date\_lim\_reglement, in table \_facture) with the actual delivery date (namely eta, in the table \_expedition\_extrafield). In phpMyAdm…

---

## [Remove JuridicalStatus on the footer of template](https://www.dolibarr.org/forum/t/remove-juridicalstatus-on-the-footer-of-template/16870)

<div class="topic-metadata">

**Author:** [@lluca](https://www.dolibarr.org/forum/u/lluca)\
**Replies:** 4\
**Last updated:** [December 5, 2021, 8:18pm UTC](https://www.dolibarr.org/forum/t/remove-juridicalstatus-on-the-footer-of-template/16870 "2021-12-05T20:18:47Z")

</div>

Hi, when I generate the proposal with Azur model or a invoice with Crabe model, on the footer I see the Juridical Status (raison individuelle). How I can remove it ? I don’t find this variable on the model file. Thank…

---

## [MySQL triggers](https://www.dolibarr.org/forum/t/mysql-triggers/16156)

<div class="topic-metadata">

**Author:** [@ariffidaali](https://www.dolibarr.org/forum/u/ariffidaali)\
**Replies:** 1\
**Last updated:** [December 5, 2021, 6:48am UTC](https://www.dolibarr.org/forum/t/mysql-triggers/16156 "2021-12-05T06:48:48Z")

</div>

I am creating a trigger to update price (U.P net of tax) in customer order. This is the trigger: CREATE TRIGGER disc BEFORE UPDATE ON llx\_commandedet FOR EACH ROW SET new.price=price/(1+tva\_tx/100); If I create a new c…

---

## [Difference between extra fields and Object fields](https://www.dolibarr.org/forum/t/difference-between-extra-fields-and-object-fields/21528)

<div class="topic-metadata">

**Author:** [@karozans](https://www.dolibarr.org/forum/u/karozans)\
**Replies:** 0\
**Last updated:** [December 2, 2021, 8:13pm UTC](https://www.dolibarr.org/forum/t/difference-between-extra-fields-and-object-fields/21528 "2021-12-02T20:13:48Z")

</div>

Hi everyone. I was wondering what the difference between the extra fields and the object fields is? I am creating a new module, and I see that I can create all the fields that I want in the object, or in the extra fiel…

---

## [MySQL Statements](https://www.dolibarr.org/forum/t/mysql-statements/21415)

<div class="topic-metadata">

**Author:** [@aljawaid](https://www.dolibarr.org/forum/u/aljawaid)\
**Replies:** 3\
**Last updated:** [November 12, 2021, 8:23am UTC](https://www.dolibarr.org/forum/t/mysql-statements/21415 "2021-11-12T08:23:35Z")

</div>

Does anybody have any sql statements they have used for their business in Dolibarr? I will share mine also for the greater good of the Dolibarr community. If you have any to share, you are welcome to add a comment to t…

---

## [Unable to use ref as argument in fetch function](https://www.dolibarr.org/forum/t/unable-to-use-ref-as-argument-in-fetch-function/21387)

<div class="topic-metadata">

**Author:** [@Thomas\_Price](https://www.dolibarr.org/forum/u/Thomas_Price)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 12:57pm UTC](https://www.dolibarr.org/forum/t/unable-to-use-ref-as-argument-in-fetch-function/21387 "2021-11-03T12:57:35Z")

</div>

All the resources I have looked at using the command fetch with the row id value as the argument to the function. When I looked at the documentation for the product class I noticed that the ref value is included as an ar…

---

## [Is there any way to restrict one cash account to a single user?](https://www.dolibarr.org/forum/t/is-there-any-way-to-restrict-one-cash-account-to-a-single-user/13364)

<div class="topic-metadata">

**Author:** [@aljawaid](https://www.dolibarr.org/forum/u/aljawaid)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 6:39pm UTC](https://www.dolibarr.org/forum/t/is-there-any-way-to-restrict-one-cash-account-to-a-single-user/13364 "2021-10-04T18:39:28Z")

</div>

Hello all. On v3.8.3 is it possible to only allow users to view one assigned cashflow account? I have one user for example who I would like to give access to view the banks and cash but only for one account instead of a…
