Amend source code for core files

i have to edit the source code in facture.class.php to make the invoice to support negative value, but any kind of method i can override this file avoiding to edit the core file?

hi,

it depend of the change but there is a change that you will have to …

a good way is to clone the Git and make a new branch then do the change. then copy the file(s) to your dolibarr.

at the next upgrade you could try to merge your branch with the targeted version, even if there is little chance to avoid conflicts, I trust that it’s easier to resolve conflict than rewrite the change from scratch.

br;