Fix: Replace deprecated modulename with new in isModEnabled (#28452)

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.

* Fix: Replace deprecated modulename with new in isModEnabled

# Fix: Replace deprecated modulename with new in isModEnabled

Replacement of old module names performed with dedicated detection
and fixer in phan.
This commit is contained in:
MDW 2024-02-27 15:30:37 +01:00 committed by GitHub
parent ec8f2a420d
commit fc597c4171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
255 changed files with 842 additions and 842 deletions

View File

@ -92,7 +92,7 @@ if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) {
$list_account[] = 'ACCOUNTING_VAT_BUY_REVERSE_CHARGES_CREDIT';
$list_account[] = 'ACCOUNTING_VAT_BUY_REVERSE_CHARGES_DEBIT';
}
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
$list_account[] = 'ACCOUNTING_ACCOUNT_TRANSFER_CASH';
}
if (getDolGlobalString('INVOICE_USE_RETAINED_WARRANTY')) {
@ -101,7 +101,7 @@ if (getDolGlobalString('INVOICE_USE_RETAINED_WARRANTY')) {
if (isModEnabled('don')) {
$list_account[] = 'DONATION_ACCOUNTINGACCOUNT';
}
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$list_account[] = 'ADHERENT_SUBSCRIPTION_ACCOUNTINGACCOUNT';
}
if (isModEnabled('loan')) {

View File

@ -525,7 +525,7 @@ if ($resql) {
// Filter on categories
$moreforfilter = '';
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$formcategory = new FormCategory($db);
$moreforfilter .= $formcategory->getFilterBox(Categorie::TYPE_PRODUCT, $searchCategoryProductList, 'minwidth300', $searchCategoryProductList ? $searchCategoryProductList : 0);
/*

View File

@ -114,7 +114,7 @@ if ($action == 'set_default') {
$res8 = dolibarr_set_const($db, 'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF', GETPOST('MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF', 'alpha'), 'chaine', 0, '', $conf->entity);
$res9 = dolibarr_set_const($db, 'MEMBER_SUBSCRIPTION_START_AFTER', GETPOST('MEMBER_SUBSCRIPTION_START_AFTER', 'alpha'), 'chaine', 0, '', $conf->entity);
// Use vat for invoice creation
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$res4 = dolibarr_set_const($db, 'ADHERENT_VAT_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_VAT_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
$res5 = dolibarr_set_const($db, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
if (isModEnabled("product") || isModEnabled("service")) {
@ -394,13 +394,13 @@ print "</td></tr>\n";
// Insert subscription into bank account
print '<tr class="oddeven"><td>'.$langs->trans("MoreActionsOnSubscription").'</td>';
$arraychoices = array('0'=>$langs->trans("None"));
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$arraychoices['bankdirect'] = $langs->trans("MoreActionBankDirect");
}
if (isModEnabled("banque") && isModEnabled("societe") && isModEnabled('facture')) {
if (isModEnabled("bank") && isModEnabled("societe") && isModEnabled('invoice')) {
$arraychoices['invoiceonly'] = $langs->trans("MoreActionInvoiceOnly");
}
if (isModEnabled("banque") && isModEnabled("societe") && isModEnabled('facture')) {
if (isModEnabled("bank") && isModEnabled("societe") && isModEnabled('invoice')) {
$arraychoices['bankviainvoice'] = $langs->trans("MoreActionBankViaInvoice");
}
print '<td>';
@ -412,9 +412,9 @@ print '</td>';
print "</tr>\n";
// Use vat for invoice creation
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print '<tr class="oddeven"><td>'.$langs->trans("VATToUseForSubscriptions").'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td>';
print $form->selectarray('ADHERENT_VAT_FOR_SUBSCRIPTIONS', array('0'=>$langs->trans("NoVatOnSubscription"), 'defaultforfoundationcountry'=>$langs->trans("Default")), getDolGlobalString('ADHERENT_VAT_FOR_SUBSCRIPTIONS', '0'), 0);
print '</td>';

View File

@ -1130,7 +1130,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print "</td></tr>\n";
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td>'.$form->editfieldkey("Categories", 'memcats', '', $object, 0).'</td><td>';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_MEMBER, null, 'parent', null, null, 1);
print img_picto('', 'category').$form->multiselectarray('memcats', $cate_arbo, GETPOST('memcats', 'array'), null, null, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
@ -1384,7 +1384,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print "</td></tr>\n";
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td>'.$form->editfieldkey("Categories", 'memcats', '', $object, 0).'</td>';
print '<td>';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_MEMBER, null, null, null, null, 1);
@ -1813,7 +1813,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '<table class="border tableforfield centpercent">';
// Tags / Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td>'.$langs->trans("Categories").'</td>';
print '<td colspan="2">';
print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);

View File

@ -2258,7 +2258,7 @@ class Adherent extends CommonObject
}
$datas['address'] = '<br><b>'.$langs->trans("Address").':</b> '.dol_format_address($this, 1, ' ', $langs);
// show categories for this record only in ajax to not overload lists
if (isModEnabled('categorie') && !$nofetch) {
if (isModEnabled('category') && !$nofetch) {
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
$form = new Form($this->db);
$datas['categories'] = '<br>' . $form->showCategories($this->id, Categorie::TYPE_MEMBER, 1);
@ -2997,7 +2997,7 @@ class Adherent extends CommonObject
$blockingerrormsg = '';
if (!isModEnabled('adherent')) { // Should not happen. If module disabled, cron job should not be visible.
if (!isModEnabled('member')) { // Should not happen. If module disabled, cron job should not be visible.
$langs->load("agenda");
$this->output = $langs->trans('ModuleNotEnabled', $langs->transnoentitiesnoconv("Adherent"));
return 0;

View File

@ -821,7 +821,7 @@ $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('che
$moreforfilter = '';
// Filter on categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$moreforfilter .= img_picto($langs->trans('Categories'), 'category', 'class="pictofixedwidth"').$formother->select_categories(Categorie::TYPE_MEMBER, $search_categ, 'search_categ', 1, $langs->trans("MembersCategoriesShort"));

View File

@ -273,7 +273,7 @@ if ($user->hasRight('adherent', 'cotisation', 'creer') && $action == 'subscripti
$action = 'addsubscription';
} else {
// If an amount has been provided, we check also fields that becomes mandatory when amount is not null.
if (isModEnabled('banque') && GETPOST("paymentsave") != 'none') {
if (isModEnabled('bank') && GETPOST("paymentsave") != 'none') {
if (GETPOST("subscription")) {
if (!GETPOST("label")) {
$errmsg = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Label"));
@ -583,7 +583,7 @@ print '<div class="underbanner clearboth"></div>';
print '<table class="border tableforfield centpercent">';
// Tags / Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td>'.$langs->trans("Categories").'</td>';
print '<td colspan="2">';
print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);
@ -744,7 +744,7 @@ if ($action != 'addsubscription' && $action != 'create_thirdparty') {
print_liste_field_titre('DateStart', $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ');
print_liste_field_titre('DateEnd', $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ');
print_liste_field_titre('Amount', $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'right ');
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
print_liste_field_titre('Account', $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'right ');
}
print "</tr>\n";
@ -779,7 +779,7 @@ if ($action != 'addsubscription' && $action != 'create_thirdparty') {
print '<td class="center">'.dol_print_date($db->jdate($objp->dateh), 'day')."</td>\n";
print '<td class="center">'.dol_print_date($db->jdate($objp->datef), 'day')."</td>\n";
print '<td class="right amount">'.price($objp->subscription).'</td>';
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
print '<td class="right">';
if ($objp->bid) {
$accountstatic->label = $objp->label;
@ -808,7 +808,7 @@ if ($action != 'addsubscription' && $action != 'create_thirdparty') {
if (empty($num)) {
$colspan = 6;
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
$colspan++;
}
print '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">'.$langs->trans("None").'</span></td></tr>';
@ -865,11 +865,11 @@ if (($action == 'addsubscription' || $action == 'create_thirdparty') && $user->h
$bankviainvoice = 1;
}
} else {
if (getDolGlobalString('ADHERENT_BANK_USE') == 'bankviainvoice' && isModEnabled('banque') && isModEnabled('societe') && isModEnabled('facture')) {
if (getDolGlobalString('ADHERENT_BANK_USE') == 'bankviainvoice' && isModEnabled('bank') && isModEnabled('societe') && isModEnabled('invoice')) {
$bankviainvoice = 1;
} elseif (getDolGlobalString('ADHERENT_BANK_USE') == 'bankdirect' && isModEnabled('banque')) {
} elseif (getDolGlobalString('ADHERENT_BANK_USE') == 'bankdirect' && isModEnabled('bank')) {
$bankdirect = 1;
} elseif (getDolGlobalString('ADHERENT_BANK_USE') == 'invoiceonly' && isModEnabled('banque') && isModEnabled('societe') && isModEnabled('facture')) {
} elseif (getDolGlobalString('ADHERENT_BANK_USE') == 'invoiceonly' && isModEnabled('bank') && isModEnabled('societe') && isModEnabled('invoice')) {
$invoiceonly = 1;
}
}
@ -1029,7 +1029,7 @@ if (($action == 'addsubscription' || $action == 'create_thirdparty') && $user->h
print '"></td></tr>';
// Complementary action
if ((isModEnabled('banque') || isModEnabled('facture')) && !getDolGlobalString('ADHERENT_SUBSCRIPTION_HIDECOMPLEMENTARYACTIONS')) {
if ((isModEnabled('bank') || isModEnabled('invoice')) && !getDolGlobalString('ADHERENT_SUBSCRIPTION_HIDECOMPLEMENTARYACTIONS')) {
$company = new Societe($db);
if ($object->socid) {
$result = $company->fetch($object->socid);
@ -1043,12 +1043,12 @@ if (($action == 'addsubscription' || $action == 'create_thirdparty') && $user->h
print '<input type="radio" class="moreaction" id="none" name="paymentsave" value="none"'.(empty($bankdirect) && empty($invoiceonly) && empty($bankviainvoice) ? ' checked' : '').'>';
print '<label for="none"> '.$langs->trans("None").'</label><br>';
// Add entry into bank account
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
print '<input type="radio" class="moreaction" id="bankdirect" name="paymentsave" value="bankdirect"'.(!empty($bankdirect) ? ' checked' : '');
print '><label for="bankdirect"> '.$langs->trans("MoreActionBankDirect").'</label><br>';
}
// Add invoice with no payments
if (isModEnabled('societe') && isModEnabled('facture')) {
if (isModEnabled('societe') && isModEnabled('invoice')) {
print '<input type="radio" class="moreaction" id="invoiceonly" name="paymentsave" value="invoiceonly"'.(!empty($invoiceonly) ? ' checked' : '');
//if (empty($object->fk_soc)) print ' disabled';
print '><label for="invoiceonly"> '.$langs->trans("MoreActionInvoiceOnly");
@ -1078,7 +1078,7 @@ if (($action == 'addsubscription' || $action == 'create_thirdparty') && $user->h
print '</label><br>';
}
// Add invoice with payments
if (isModEnabled('banque') && isModEnabled('societe') && isModEnabled('facture')) {
if (isModEnabled('bank') && isModEnabled('societe') && isModEnabled('invoice')) {
print '<input type="radio" class="moreaction" id="bankviainvoice" name="paymentsave" value="bankviainvoice"'.(!empty($bankviainvoice) ? ' checked' : '');
//if (empty($object->fk_soc)) print ' disabled';
print '><label for="bankviainvoice"> '.$langs->trans("MoreActionBankViaInvoice");

View File

@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/subscription.class.php';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
}
@ -241,7 +241,7 @@ if ($user->hasRight('adherent', 'cotisation', 'creer') && $action == 'edit') {
print '<input type="text" class="flat" name="note" value="'.$object->note_private.'"></td></tr>';
// Bank line
if (isModEnabled("banque") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
if (isModEnabled("bank") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
print '<tr><td>'.$langs->trans("BankTransactionLine").'</td><td class="valeur">';
if ($object->fk_bank) {
$bankline = new AccountLine($db);
@ -282,7 +282,7 @@ if ($rowid && $action != 'edit') {
$formquestion=array();
//$formquestion['text']='<b>'.$langs->trans("ThisWillAlsoDeleteBankRecord").'</b>';
$text = $langs->trans("ConfirmDeleteSubscription");
if (isModEnabled("banque") && getDolGlobalString('ADHERENT_BANK_USE')) {
if (isModEnabled("bank") && getDolGlobalString('ADHERENT_BANK_USE')) {
$text .= '<br>'.img_warning().' '.$langs->trans("ThisWillAlsoDeleteBankRecord");
}
print $form->formconfirm($_SERVER["PHP_SELF"]."?rowid=".$object->id, $langs->trans("DeleteSubscription"), $text, "confirm_delete", $formquestion, 0, 1);
@ -337,7 +337,7 @@ if ($rowid && $action != 'edit') {
print '<tr><td>'.$langs->trans("Label").'</td><td class="valeur sensiblehtmlcontent">'.dol_string_onlythesehtmltags(dol_htmlentitiesbr($object->note_private)).'</td></tr>';
// Bank line
if (isModEnabled("banque") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
if (isModEnabled("bank") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
print '<tr><td>'.$langs->trans("BankTransactionLine").'</td><td class="valeur">';
if ($object->fk_bank > 0) {
$bankline = new AccountLine($db);

View File

@ -95,7 +95,7 @@ $arrayfields = array(
'd.firstname'=>array('label'=>"Firstname", 'checked'=>1),
'd.login'=>array('label'=>"Login", 'checked'=>1),
't.libelle'=>array('label'=>"Label", 'checked'=>1),
'd.bank'=>array('label'=>"BankAccount", 'checked'=>1, 'enabled'=>(isModEnabled('banque'))),
'd.bank'=>array('label'=>"BankAccount", 'checked'=>1, 'enabled'=>(isModEnabled('bank'))),
/*'d.note_public'=>array('label'=>"NotePublic", 'checked'=>0),
'd.note_private'=>array('label'=>"NotePrivate", 'checked'=>0),*/
'c.dateadh'=>array('label'=>"DateSubscription", 'checked'=>1, 'position'=>100),

View File

@ -533,7 +533,7 @@ print '<td>';
print '<input type="hidden" name="action" value="setribchq">';
print $langs->trans("PaymentMode").'</td>';
print '<td align="right">';
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
}
print '</td>';
@ -542,8 +542,8 @@ print "</tr>\n";
print '<tr class="oddeven">';
print "<td>".$langs->trans("SuggestPaymentByRIBOnAccount")."</td>";
print "<td>";
if (!isModEnabled('facture')) {
if (isModEnabled("banque")) {
if (!isModEnabled('invoice')) {
if (isModEnabled("bank")) {
$sql = "SELECT rowid, label";
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
$sql .= " WHERE clos = 0";
@ -581,7 +581,7 @@ print "</td></tr>";
print '<tr class="oddeven">';
print "<td>".$langs->trans("SuggestPaymentByChequeToAddress")."</td>";
print "<td>";
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
print '<select class="flat" name="chq" id="chq">';
print '<option value="0">'.$langs->trans("DoNotSuggestPaymentMode").'</option>';
print '<option value="-1"'.($conf->global->FACTURE_CHQ_NUMBER ? ' selected' : '').'>'.$langs->trans("MenuCompanySetup").' ('.($mysoc->name ? $mysoc->name : $langs->trans("NotDefined")).')</option>';

View File

@ -58,7 +58,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
// Shipment note
if (isModEnabled('expedition') && !getDolGlobalString('MAIN_SUBMODULE_EXPEDITION')) {
if (isModEnabled('delivery_note') && !getDolGlobalString('MAIN_SUBMODULE_EXPEDITION')) {
// This option should always be set to on when module is on.
dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1", 'chaine', 0, '', $conf->entity);
}

View File

@ -493,24 +493,24 @@ $tabcond[1] = (isModEnabled("societe"));
$tabcond[2] = true;
$tabcond[3] = true;
$tabcond[4] = true;
$tabcond[5] = (isModEnabled("societe") || isModEnabled('adherent'));
$tabcond[5] = (isModEnabled("societe") || isModEnabled('member'));
$tabcond[6] = isModEnabled('agenda');
$tabcond[7] = isModEnabled('tax');
$tabcond[8] = isModEnabled("societe");
$tabcond[9] = true;
$tabcond[10] = true;
$tabcond[11] = (isModEnabled("societe"));
$tabcond[12] = (isModEnabled('commande') || isModEnabled("propal") || isModEnabled('facture') || isModEnabled("supplier_invoice") || isModEnabled("supplier_order"));
$tabcond[13] = (isModEnabled('commande') || isModEnabled("propal") || isModEnabled('facture') || isModEnabled("supplier_invoice") || isModEnabled("supplier_order"));
$tabcond[12] = (isModEnabled('order') || isModEnabled("propal") || isModEnabled('invoice') || isModEnabled("supplier_invoice") || isModEnabled("supplier_order"));
$tabcond[13] = (isModEnabled('order') || isModEnabled("propal") || isModEnabled('invoice') || isModEnabled("supplier_invoice") || isModEnabled("supplier_order"));
$tabcond[14] = (isModEnabled("product") && (isModEnabled('ecotax') || getDolGlobalString('MAIN_SHOW_ECOTAX_DICTIONNARY')));
$tabcond[15] = true;
$tabcond[16] = (isModEnabled("societe") && !getDolGlobalString('SOCIETE_DISABLE_PROSPECTS'));
$tabcond[17] = (isModEnabled('deplacement') || isModEnabled('expensereport'));
$tabcond[18] = isModEnabled("expedition") || isModEnabled("reception");
$tabcond[18] = isModEnabled("delivery_note") || isModEnabled("reception");
$tabcond[19] = isModEnabled("societe");
$tabcond[20] = isModEnabled("supplier_order");
$tabcond[21] = isModEnabled("propal");
$tabcond[22] = (isModEnabled('commande') || isModEnabled("propal"));
$tabcond[22] = (isModEnabled('order') || isModEnabled("propal"));
$tabcond[23] = true;
$tabcond[24] = isModEnabled('resource');
$tabcond[25] = isModEnabled('website');
@ -518,8 +518,8 @@ $tabcond[25] = isModEnabled('website');
$tabcond[27] = isModEnabled("societe");
$tabcond[28] = isModEnabled('holiday');
$tabcond[29] = isModEnabled('project');
$tabcond[30] = (isModEnabled('label') || isModEnabled('barcode') || isModEnabled('adherent')); // stickers format dictionary
$tabcond[31] = ((isModEnabled('facture') || isModEnabled('supplier_invoice')) && $mysoc->country_code == 'GR');
$tabcond[30] = (isModEnabled('label') || isModEnabled('barcode') || isModEnabled('member')); // stickers format dictionary
$tabcond[31] = ((isModEnabled('invoice') || isModEnabled('supplier_invoice')) && $mysoc->country_code == 'GR');
$tabcond[32] = (isModEnabled('holiday') || isModEnabled('hrm'));
$tabcond[33] = isModEnabled('hrm');
$tabcond[34] = isModEnabled('hrm');

View File

@ -672,7 +672,7 @@ print "</tr>\n";
print '<tr class="oddeven">';
print "<td>".$langs->trans("SuggestPaymentByRIBOnAccount")."</td>";
print "<td>";
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
$sql = "SELECT rowid, label";
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
$sql .= " WHERE clos = 0";

View File

@ -65,10 +65,10 @@ $conditions = array(
'NOTE_PRIVATE' => 1,
'SOCIETE' => 1,
'PRODUCTDESC' => (isModEnabled("product") || isModEnabled("service")),
'DETAILS' => (isModEnabled('facture') || isModEnabled("propal") || isModEnabled('commande') || isModEnabled('supplier_proposal') || isModEnabled("supplier_order") || isModEnabled("supplier_invoice")),
'DETAILS' => (isModEnabled('invoice') || isModEnabled("propal") || isModEnabled('order') || isModEnabled('supplier_proposal') || isModEnabled("supplier_order") || isModEnabled("supplier_invoice")),
'USERSIGN' => 1,
'MAILING' => isModEnabled('mailing'),
'MAIL' => (isModEnabled('facture') || isModEnabled("propal") || isModEnabled('commande')),
'MAIL' => (isModEnabled('invoice') || isModEnabled("propal") || isModEnabled('order')),
'TICKET' => isModEnabled('ticket'),
'SPECIALCHAR' => 1,
);

View File

@ -169,14 +169,14 @@ if (isModEnabled('societe')) {
}
// Synchro member active
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
print '<tr class="oddeven"><td>' . $langs->trans("LDAPDnMemberActive") . '</td><td>';
print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_MEMBER_ACTIVE'), 'activemembers', array(), 2);
print '</td><td><span class="opacitymedium">' . $langs->trans("LDAPDnMemberActiveExample") . '</span></td></tr>';
}
// Synchro member type active
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
print '<tr class="oddeven"><td>' . $langs->trans("LDAPDnMemberTypeActive") . '</td><td>';
print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE'), 'activememberstypes', array(), 2);
print '</td><td><span class="opacitymedium">' . $langs->trans("LDAPDnMemberTypeActiveExample") . '</span></td></tr>';

View File

@ -46,7 +46,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formaccounting.class.php';
// Load translation files required by the page
$langsArray=array("errors", "admin", "mails", "languages");
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$langsArray[]='members';
}
if (isModEnabled('eventorganization')) {
@ -183,7 +183,7 @@ $elementList = array();
$elementList['all'] = '-- '.dol_escape_htmltag($langs->trans("All")).' --';
$elementList['none'] = '-- '.dol_escape_htmltag($langs->trans("None")).' --';
$elementList['user'] = img_picto('', 'user', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToUser'));
if (isModEnabled('adherent') && $user->hasRight('adherent', 'lire')) {
if (isModEnabled('member') && $user->hasRight('adherent', 'lire')) {
$elementList['member'] = img_picto('', 'object_member', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToMember'));
}
if (isModEnabled('recruitment') && $user->hasRight('recruitment', 'recruitmentjobposition', 'read')) {
@ -198,19 +198,19 @@ if (isModEnabled('project')) {
if (isModEnabled("propal") && $user->hasRight('propal', 'lire')) {
$elementList['propal_send'] = img_picto('', 'propal', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendProposal'));
}
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
$elementList['order_send'] = img_picto('', 'order', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendOrder'));
}
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$elementList['facture_send'] = img_picto('', 'bill', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendInvoice'));
}
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
$elementList['shipping_send'] = img_picto('', 'dolly', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendShipment'));
}
if (isModEnabled("reception")) {
$elementList['reception_send'] = img_picto('', 'dollyrevert', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendReception'));
}
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
$elementList['fichinter_send'] = img_picto('', 'intervention', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendIntervention'));
}
if (isModEnabled('supplier_proposal')) {
@ -222,7 +222,7 @@ if (isModEnabled("supplier_order") && ($user->hasRight('fournisseur', 'commande'
if (isModEnabled("supplier_invoice") && ($user->hasRight('fournisseur', 'facture', 'lire') || $user->hasRight('supplier_invoice', 'read'))) {
$elementList['invoice_supplier_send'] = img_picto('', 'bill', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendSupplierInvoice'));
}
if (isModEnabled('contrat') && $user->hasRight('contrat', 'lire')) {
if (isModEnabled('contract') && $user->hasRight('contrat', 'lire')) {
$elementList['contract'] = img_picto('', 'contract', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToSendContract'));
}
if (isModEnabled('ticket') && $user->hasRight('ticket', 'read')) {

View File

@ -234,7 +234,7 @@ if (isModEnabled('supplier_order')) {
print '</div>';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print load_fiche_titre($langs->trans("Invoices"), '', 'bill');
print '<div class="div-table-responsive-no-min">';

View File

@ -507,7 +507,7 @@ print '<td>';
print '<input type="hidden" name="action" value="setribchq">';
print $langs->trans("PaymentMode").'</td>';
print '<td align="right">';
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
}
print '</td>';
@ -516,8 +516,8 @@ print "</tr>\n";
print '<tr class="oddeven">';
print "<td>".$langs->trans("SuggestPaymentByRIBOnAccount")."</td>";
print "<td>";
if (!isModEnabled('facture')) {
if (isModEnabled("banque")) {
if (!isModEnabled('invoice')) {
if (isModEnabled("bank")) {
$sql = "SELECT rowid, label";
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
$sql .= " WHERE clos = 0";
@ -555,7 +555,7 @@ print "</td></tr>";
print '<tr class="oddeven">';
print "<td>".$langs->trans("SuggestPaymentByChequeToAddress")."</td>";
print "<td>";
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
print '<select class="flat" name="chq" id="chq">';
print '<option value="0">'.$langs->trans("DoNotSuggestPaymentMode").'</option>';
print '<option value="-1"'.($conf->global->FACTURE_CHQ_NUMBER ? ' selected' : '').'>'.$langs->trans("MenuCompanySetup").' ('.($mysoc->name ? $mysoc->name : $langs->trans("NotDefined")).')</option>';

View File

@ -224,7 +224,7 @@ print '<!-- STOCK_CALCULATE_ON_BILL -->';
print '<tr class="oddeven">';
print '<td>'.$langs->trans("DeStockOnBill").'</td>';
print '<td class="right">';
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
if ($conf->use_javascript_ajax) {
if ($disabled) {
print img_picto($langs->trans("Disabled"), 'off', 'class="opacitymedium"');
@ -246,7 +246,7 @@ print '<!-- STOCK_CALCULATE_ON_VALIDATE_ORDER -->';
print '<tr class="oddeven">';
print '<td>'.$langs->trans("DeStockOnValidateOrder").'</td>';
print '<td class="right">';
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
if ($conf->use_javascript_ajax) {
if ($disabled) {
print img_picto($langs->trans("Disabled"), 'off', 'class="opacitymedium"');
@ -270,7 +270,7 @@ print '<!-- STOCK_CALCULATE_ON_SHIPMENT -->';
print '<tr class="oddeven">';
print '<td>'.$langs->trans("DeStockOnShipment").'</td>';
print '<td class="right">';
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
if ($conf->use_javascript_ajax) {
print ajax_constantonoff('STOCK_CALCULATE_ON_SHIPMENT', array(), null, 0, 0, 0, 2, 1, '', '', 'reposition');
} else {
@ -287,7 +287,7 @@ print '<!-- STOCK_CALCULATE_ON_SHIPMENT_CLOSE -->';
print '<tr class="oddeven">';
print '<td>'.$langs->trans("DeStockOnShipmentOnClosing").'</td>';
print '<td class="right">';
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
if ($conf->use_javascript_ajax) {
print ajax_constantonoff('STOCK_CALCULATE_ON_SHIPMENT_CLOSE', array(), null, 0, 0, 0, 2, 1, '', '', 'reposition');
} else {
@ -433,7 +433,7 @@ print "</td>\n";
print "</tr>\n";
// Option to force stock to be enough before adding a line into document
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print '<tr class="oddeven">';
print '<td>'.$langs->trans("StockMustBeEnoughForInvoice").'</td>';
print '<td class="right">';
@ -447,7 +447,7 @@ if (isModEnabled('facture')) {
print "</tr>\n";
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
print '<tr class="oddeven">';
print '<td>'.$langs->trans("StockMustBeEnoughForOrder").'</td>';
print '<td class="right">';
@ -461,7 +461,7 @@ if (isModEnabled('commande')) {
print "</tr>\n";
}
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
print '<tr class="oddeven">';
print '<td>'.$langs->trans("StockMustBeEnoughForShipment").'</td>';
print '<td class="right">';

View File

@ -532,7 +532,7 @@ print '<input type="submit" class="button button-edit" value="'.$langs->trans("M
print "</td></tr>\n";
print '</form>';
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
print '<tr class="oddeven"><td>';
print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_PROPOSAL").'</td><td>&nbsp;</td><td class="right">';
print ajax_constantonoff('BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_PROPOSAL');

View File

@ -63,36 +63,36 @@ $workflowcodes = array(
'WORKFLOW_PROPAL_AUTOCREATE_ORDER'=>array(
'family'=>'create',
'position'=>10,
'enabled'=>(isModEnabled("propal") && isModEnabled('commande')),
'enabled'=>(isModEnabled("propal") && isModEnabled('order')),
'picto'=>'order'
),
'WORKFLOW_ORDER_AUTOCREATE_INVOICE'=>array(
'family'=>'create',
'position'=>20,
'enabled'=>(isModEnabled('commande') && isModEnabled('facture')),
'enabled'=>(isModEnabled('order') && isModEnabled('invoice')),
'picto'=>'bill'
),
'WORKFLOW_TICKET_CREATE_INTERVENTION' => array(
'family'=>'create',
'position'=>25,
'enabled'=>(isModEnabled('ticket') && isModEnabled('ficheinter')),
'enabled'=>(isModEnabled('ticket') && isModEnabled('intervention')),
'picto'=>'ticket'
),
'separator1'=>array('family'=>'separator', 'position'=>25, 'title'=>'', 'enabled'=>((isModEnabled("propal") && isModEnabled('commande')) || (isModEnabled('commande') && isModEnabled('facture')) || (isModEnabled('ticket') && isModEnabled('ficheinter')))),
'separator1'=>array('family'=>'separator', 'position'=>25, 'title'=>'', 'enabled'=>((isModEnabled("propal") && isModEnabled('order')) || (isModEnabled('order') && isModEnabled('invoice')) || (isModEnabled('ticket') && isModEnabled('intervention')))),
// Automatic classification of proposal
'WORKFLOW_ORDER_CLASSIFY_BILLED_PROPAL'=>array(
'family'=>'classify_proposal',
'position'=>30,
'enabled'=>(isModEnabled("propal") && isModEnabled('commande')),
'enabled'=>(isModEnabled("propal") && isModEnabled('order')),
'picto'=>'propal',
'warning'=>''
),
'WORKFLOW_INVOICE_CLASSIFY_BILLED_PROPAL'=>array(
'family'=>'classify_proposal',
'position'=>31,
'enabled'=>(isModEnabled("propal") && isModEnabled('facture')),
'enabled'=>(isModEnabled("propal") && isModEnabled('invoice')),
'picto'=>'propal',
'warning'=>''
),
@ -101,19 +101,19 @@ $workflowcodes = array(
'WORKFLOW_ORDER_CLASSIFY_SHIPPED_SHIPPING'=>array( // when shipping validated
'family'=>'classify_order',
'position'=>40,
'enabled'=>(isModEnabled("expedition") && isModEnabled('commande')),
'enabled'=>(isModEnabled("delivery_note") && isModEnabled('order')),
'picto'=>'order'
),
'WORKFLOW_ORDER_CLASSIFY_SHIPPED_SHIPPING_CLOSED'=>array( // when shipping closed
'family'=>'classify_order',
'position'=>41,
'enabled'=>(isModEnabled("expedition") && isModEnabled('commande')),
'enabled'=>(isModEnabled("delivery_note") && isModEnabled('order')),
'picto'=>'order'
),
'WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_ORDER'=>array(
'family'=>'classify_order',
'position'=>42,
'enabled'=>(isModEnabled('facture') && isModEnabled('commande')),
'enabled'=>(isModEnabled('invoice') && isModEnabled('order')),
'picto'=>'order',
'warning'=>''
), // For this option, if module invoice is disabled, it does not exists, so "Classify billed" for order must be done manually from order card.
@ -166,7 +166,7 @@ $workflowcodes = array(
'WORKFLOW_SHIPPING_CLASSIFY_BILLED_INVOICE' => array(
'family' => 'classify_shipping',
'position' => 91,
'enabled' => isModEnabled("expedition") && isModEnabled("facture") && getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT') !== '0',
'enabled' => isModEnabled("delivery_note") && isModEnabled("invoice") && getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT') !== '0',
'picto' => 'shipment'
),

View File

@ -146,7 +146,7 @@ class BlockedLog
$this->trackedevents = array();
// Customer Invoice/Facture / Payment
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$this->trackedevents['BILL_VALIDATE'] = 'logBILL_VALIDATE';
$this->trackedevents['BILL_DELETE'] = 'logBILL_DELETE';
$this->trackedevents['BILL_SENTBYMAIL'] = 'logBILL_SENTBYMAIL';
@ -188,14 +188,14 @@ class BlockedLog
*/
// Members
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$this->trackedevents['MEMBER_SUBSCRIPTION_CREATE'] = 'logMEMBER_SUBSCRIPTION_CREATE';
$this->trackedevents['MEMBER_SUBSCRIPTION_MODIFY'] = 'logMEMBER_SUBSCRIPTION_MODIFY';
$this->trackedevents['MEMBER_SUBSCRIPTION_DELETE'] = 'logMEMBER_SUBSCRIPTION_DELETE';
}
// Bank
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$this->trackedevents['PAYMENT_VARIOUS_CREATE'] = 'logPAYMENT_VARIOUS_CREATE';
$this->trackedevents['PAYMENT_VARIOUS_MODIFY'] = 'logPAYMENT_VARIOUS_MODIFY';
$this->trackedevents['PAYMENT_VARIOUS_DELETE'] = 'logPAYMENT_VARIOUS_DELETE';

View File

@ -1457,7 +1457,7 @@ if ($action == 'create') {
print '<tr><td>'.$langs->trans("Location").'</td><td><input type="text" name="location" class="minwidth300 maxwidth150onsmartphone" value="'.(GETPOST('location') ? GETPOST('location') : $object->location).'"></td></tr>';
}
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
// Categories
print '<tr><td>'.$langs->trans("Categories").'</td><td>';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACTIONCOMM, '', 'parent', 64, 0, 1);
@ -2027,7 +2027,7 @@ if ($id > 0) {
print '</td></tr>';
// Tags-Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print '<tr><td>'.$langs->trans("Categories").'</td><td colspan="3">';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACTIONCOMM, '', 'parent', 64, 0, 1);
$c = new Categorie($db);
@ -2452,7 +2452,7 @@ if ($id > 0) {
}
// Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print '<tr><td class="valignmiddle">'.$langs->trans("Categories").'</td><td>';
print $form->showCategories($object->id, Categorie::TYPE_ACTIONCOMM, 1);
print "</td></tr>";

View File

@ -1660,7 +1660,7 @@ class ActionComm extends CommonObject
$datas['note'] .= '</div>';
}
// show categories for this record only in ajax to not overload lists
if (isModEnabled('categorie') && !$nofetch) {
if (isModEnabled('category') && !$nofetch) {
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
$form = new Form($this->db);
$datas['categories'] = '<br>' . $form->showCategories($this->id, Categorie::TYPE_ACTIONCOMM, 1);

View File

@ -213,10 +213,10 @@ class CActionComm
//var_dump($obj->type.' '.$obj->module.' '); var_dump($user->hasRight('facture', 'lire'));
$qualified = 0;
// Special cases
if ($obj->module == 'invoice' && isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if ($obj->module == 'invoice' && isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$qualified = 1;
}
if ($obj->module == 'order' && isModEnabled('commande') && !$user->hasRight('commande', 'lire')) {
if ($obj->module == 'order' && isModEnabled('order') && !$user->hasRight('commande', 'lire')) {
$qualified = 1;
}
if ($obj->module == 'propal' && isModEnabled("propal") && $user->hasRight('propal', 'lire')) {
@ -228,7 +228,7 @@ class CActionComm
if ($obj->module == 'order_supplier' && ((isModEnabled("fournisseur") && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD') && $user->hasRight('fournisseur', 'commande', 'lire')) || (!isModEnabled('supplier_order') && $user->hasRight('supplier_order', 'lire')))) {
$qualified = 1;
}
if ($obj->module == 'shipping' && isModEnabled("expedition") && $user->hasRight('expedition', 'lire')) {
if ($obj->module == 'shipping' && isModEnabled("delivery_note") && $user->hasRight('expedition', 'lire')) {
$qualified = 1;
}
// For case module = 'myobject@eventorganization'

View File

@ -41,48 +41,48 @@ require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture-rec.class.php';
}
if (isModEnabled("propal")) {
require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
}
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
require_once DOL_DOCUMENT_ROOT.'/expedition/class/expedition.class.php';
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
}
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
}
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
}
// Load translation files required by the page
$langs->loadLangs(array('companies', 'banks'));
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
$langs->load("contracts");
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$langs->load("orders");
}
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
$langs->load("sendings");
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$langs->load("bills");
}
if (isModEnabled('project')) {
$langs->load("projects");
}
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
$langs->load("interventions");
}
if (isModEnabled('notification')) {
@ -440,7 +440,7 @@ if ($object->id > 0) {
print "</td>";
print '</tr>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Default bank account for payments
print '<tr><td class="nowrap">';
print '<table width="100%" class="nobordernopadding"><tr><td class="nowrap">';
@ -512,7 +512,7 @@ if ($object->id > 0) {
}
if ($object->client) {
if (isModEnabled('commande') && getDolGlobalString('ORDER_MANAGE_MIN_AMOUNT')) {
if (isModEnabled('order') && getDolGlobalString('ORDER_MANAGE_MIN_AMOUNT')) {
print '<!-- Minimum amount for orders -->'."\n";
print '<tr class="nowrap">';
print '<td>';
@ -607,7 +607,7 @@ if ($object->id > 0) {
}
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$langs->load("categories");
print '<tr><td>'.$langs->trans("CustomersCategoriesShort").'</td>';
print '<td>';
@ -623,7 +623,7 @@ if ($object->id > 0) {
include DOL_DOCUMENT_ROOT.'/societe/tpl/linesalesrepresentative.tpl.php';
// Module Adherent
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$langs->load("members");
$langs->load("users");
@ -721,7 +721,7 @@ if ($object->id > 0) {
}
}
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
// Box commandes
$tmp = $object->getOutstandingOrders();
$outstandingOpened = $tmp['opened'];
@ -742,7 +742,7 @@ if ($object->id > 0) {
}
}
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
// Box factures
$tmp = $object->getOutstandingBills('customer', 0);
$outstandingOpened = $tmp['opened'];
@ -917,7 +917,7 @@ if ($object->id > 0) {
/*
* Latest orders
*/
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
$param ="";
$sql = "SELECT s.nom, s.rowid";
@ -1028,7 +1028,7 @@ if ($object->id > 0) {
/*
* Latest shipments
*/
if (isModEnabled("expedition") && $user->hasRight('expedition', 'lire')) {
if (isModEnabled("delivery_note") && $user->hasRight('expedition', 'lire')) {
$sql = 'SELECT e.rowid as id';
$sql .= ', e.ref, e.entity';
$sql .= ', e.date_creation';
@ -1126,7 +1126,7 @@ if ($object->id > 0) {
/*
* Latest contracts
*/
if (isModEnabled('contrat') && $user->hasRight('contrat', 'lire')) {
if (isModEnabled('contract') && $user->hasRight('contrat', 'lire')) {
$sql = "SELECT s.nom, s.rowid, c.rowid as id, c.ref as ref, c.statut as contract_status, c.datec as dc, c.date_contrat as dcon, c.ref_customer as refcus, c.ref_supplier as refsup, c.entity,";
$sql .= " c.last_main_doc, c.model_pdf";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."contrat as c";
@ -1234,7 +1234,7 @@ if ($object->id > 0) {
/*
* Latest interventions
*/
if (isModEnabled('ficheinter') && $user->hasRight('ficheinter', 'lire')) {
if (isModEnabled('intervention') && $user->hasRight('ficheinter', 'lire')) {
$sql = "SELECT s.nom, s.rowid, f.rowid as id, f.ref, f.fk_statut, f.duree as duration, f.datei as startdate, f.entity";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."fichinter as f";
$sql .= " WHERE f.fk_soc = s.rowid";
@ -1320,7 +1320,7 @@ if ($object->id > 0) {
/*
* Latest invoices templates
*/
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$sql = 'SELECT f.rowid as id, f.titre as ref';
$sql .= ', f.total_ht';
$sql .= ', f.total_tva';
@ -1421,7 +1421,7 @@ if ($object->id > 0) {
/*
* Latest invoices
*/
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$sql = 'SELECT f.rowid as facid, f.ref, f.type';
$sql .= ', f.total_ht';
$sql .= ', f.total_tva';
@ -1579,7 +1579,7 @@ if ($object->id > 0) {
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/comm/propal/card.php?socid='.$object->id.'&amp;action=create">'.$langs->trans("AddProp").'</a></div>';
}
if (isModEnabled('commande') && $user->hasRight('commande', 'creer') && $object->status == 1) {
if (isModEnabled('order') && $user->hasRight('commande', 'creer') && $object->status == 1) {
$langs->load("orders");
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/commande/card.php?socid='.$object->id.'&amp;action=create">'.$langs->trans("AddOrder").'</a></div>';
}
@ -1589,7 +1589,7 @@ if ($object->id > 0) {
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/contrat/card.php?socid='.$object->id.'&amp;action=create">'.$langs->trans("AddContract").'</a></div>';
}
if (isModEnabled('ficheinter') && $user->hasRight('ficheinter', 'creer') && $object->status == 1) {
if (isModEnabled('intervention') && $user->hasRight('ficheinter', 'creer') && $object->status == 1) {
$langs->load("fichinter");
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/fichinter/card.php?socid='.$object->id.'&amp;action=create">'.$langs->trans("AddIntervention").'</a></div>';
}
@ -1601,14 +1601,14 @@ if ($object->id > 0) {
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/compta/deplacement/card.php?socid='.$object->id.'&amp;action=create">'.$langs->trans("AddTrip").'</a></div>';
}
if (isModEnabled('facture') && $object->status == 1) {
if (isModEnabled('invoice') && $object->status == 1) {
if (!$user->hasRight('facture', 'creer')) {
$langs->load("bills");
print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" title="'.dol_escape_js($langs->trans("NotAllowed")).'" href="#">'.$langs->trans("AddBill").'</a></div>';
} else {
$langs->loadLangs(array("orders", "bills"));
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
if ($object->client != 0 && $object->client != 2) {
if (!empty($orders2invoice) && $orders2invoice > 0) {
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/commande/list.php?socid='.$object->id.'&search_billed=0&autoselectall=1">'.$langs->trans("CreateInvoiceForThisCustomer").'</a></div>';

View File

@ -39,10 +39,10 @@ require_once DOL_DOCUMENT_ROOT.'/societe/class/client.class.php';
require_once DOL_DOCUMENT_ROOT.'/supplier_proposal/class/supplier_proposal.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
}
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
}
@ -96,14 +96,14 @@ if (isModEnabled("propal")) {
if (isModEnabled('supplier_proposal')) {
$supplierproposalstatic = new SupplierProposal($db);
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$orderstatic = new Commande($db);
}
if (isModEnabled("supplier_order")) {
$supplierorderstatic = new CommandeFournisseur($db);
}
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
$fichinterstatic = new Fichinter($db);
}
@ -323,7 +323,7 @@ if (isModEnabled('supplier_proposal') && $user->hasRight("supplier_proposal", "l
* Draft sales orders
*/
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
$sql = "SELECT c.rowid, c.ref, c.ref_client, c.total_ht, c.total_tva, c.total_ttc, c.fk_statut as status";
$sql .= ", s.rowid as socid, s.nom as name, s.name_alias";
$sql .= ", s.code_client, s.code_compta, s.client";
@ -518,7 +518,7 @@ if ((isModEnabled("fournisseur") && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMO
/*
* Draft interventions
*/
if (isModEnabled('ficheinter')) {
if (isModEnabled('intervention')) {
$sql = "SELECT f.rowid, f.ref, s.nom as name, f.fk_statut, f.duree as duration";
$sql .= ", s.rowid as socid, s.nom as name, s.name_alias";
$sql .= ", s.code_client, s.code_compta, s.client";
@ -817,7 +817,7 @@ if ((isModEnabled("supplier_order") || isModEnabled("supplier_invoice")) && $use
/*
* Latest contracts
*/
if (isModEnabled('contrat') && $user->hasRight("contrat", "lire") && 0) { // TODO A REFAIRE DEPUIS NOUVEAU CONTRAT
if (isModEnabled('contract') && $user->hasRight("contrat", "lire") && 0) { // TODO A REFAIRE DEPUIS NOUVEAU CONTRAT
$staticcontrat = new Contrat($db);
$sql = "SELECT s.rowid as socid, s.nom as name, s.name_alias";
@ -1014,7 +1014,7 @@ if (isModEnabled("propal") && $user->hasRight("propal", "lire")) {
/*
* Opened (validated) order
*/
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
$sql = "SELECT c.rowid as commandeid, c.total_ttc, c.total_ht, c.total_tva, c.ref, c.ref_client, c.fk_statut, c.date_valid as dv, c.facture as billed";
$sql .= ", s.rowid as socid, s.nom as name, s.name_alias";
$sql .= ", s.code_client, s.code_compta, s.client";

View File

@ -39,7 +39,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
// Load translation files required by the page
$langs->loadLangs(array('mails', 'companies'));
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
$langs->load("categories");
}

View File

@ -757,7 +757,7 @@ if (empty($reshook)) {
if (
!$error && GETPOSTINT('statut') == $object::STATUS_SIGNED && GETPOSTINT('generate_deposit') == 'on'
&& !empty($deposit_percent_from_payment_terms) && isModEnabled('facture') && $user->hasRight('facture', 'creer')
&& !empty($deposit_percent_from_payment_terms) && isModEnabled('invoice') && $user->hasRight('facture', 'creer')
) {
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
@ -1991,7 +1991,7 @@ if ($action == 'create') {
print '</td></tr>';
// Bank Account
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL') && isModEnabled("banque")) {
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL') && isModEnabled("bank")) {
print '<tr class="field_fk_account"><td class="titlefieldcreate">'.$langs->trans('BankAccount').'</td><td class="valuefieldcreate">';
print img_picto('', 'bank_account', 'class="pictofixedwidth"').$form->select_comptes($fk_account, 'fk_account', 0, '', 1, '', 0, 'maxwidth200 widthcentpercentminusx', 1);
print '</td></tr>';
@ -2004,7 +2004,7 @@ if ($action == 'create') {
print '</td></tr>';
// Shipping Method
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
if (getDolGlobalString('SOCIETE_ASK_FOR_SHIPPING_METHOD') && !empty($soc->shipping_method_id)) {
$shipping_method_id = $soc->shipping_method_id;
}
@ -2025,7 +2025,7 @@ if ($action == 'create') {
// Delivery delay
print '<tr class="field_availability_id"><td class="titlefieldcreate">'.$langs->trans('AvailabilityPeriod');
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
print ' ('.$langs->trans('AfterOrder').')';
}
print '</td><td class="valuefieldcreate">';
@ -2284,7 +2284,7 @@ if ($action == 'create') {
// It may also break step of creating an order when invoicing must be done from orders and not from proposal
$deposit_percent_from_payment_terms = getDictionaryValue('c_payment_term', 'deposit_percent', $object->cond_reglement_id);
if (!empty($deposit_percent_from_payment_terms) && isModEnabled('facture') && $user->hasRight('facture', 'creer')) {
if (!empty($deposit_percent_from_payment_terms) && isModEnabled('invoice') && $user->hasRight('facture', 'creer')) {
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
$object->fetchObjectLinked();
@ -2674,7 +2674,7 @@ if ($action == 'create') {
// Delivery delay
print '<tr class="fielddeliverydelay"><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
print $form->textwithpicto($langs->trans('AvailabilityPeriod'), $langs->trans('AvailabilityPeriod').' ('.$langs->trans('AfterOrder').')');
} else {
print $langs->trans('AvailabilityPeriod');
@ -2695,7 +2695,7 @@ if ($action == 'create') {
print '</tr>';
// Shipping Method
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
print '<tr><td>';
print '<table class="nobordernopadding centpercent"><tr><td>';
print $langs->trans('SendingMethod');
@ -2813,7 +2813,7 @@ if ($action == 'create') {
print '</tr>';
}
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL') && isModEnabled("banque")) {
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL') && isModEnabled("bank")) {
// Bank Account
print '<tr><td>';
print '<table width="100%" class="nobordernopadding"><tr><td>';
@ -3057,7 +3057,7 @@ if ($action == 'create') {
}
// Create a sale order
if (isModEnabled('commande') && $object->statut == Propal::STATUS_SIGNED) {
if (isModEnabled('order') && $object->statut == Propal::STATUS_SIGNED) {
if ($usercancreateorder) {
print '<a class="butAction" href="'.DOL_URL_ROOT.'/commande/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans("AddOrder").'</a>';
}
@ -3073,7 +3073,7 @@ if ($action == 'create') {
}
// Create an intervention
if (isModEnabled("service") && isModEnabled('ficheinter') && $object->statut == Propal::STATUS_SIGNED) {
if (isModEnabled("service") && isModEnabled('intervention') && $object->statut == Propal::STATUS_SIGNED) {
if ($usercancreateintervention) {
$langs->load("interventions");
print '<a class="butAction" href="'.DOL_URL_ROOT.'/fichinter/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans("AddIntervention").'</a>';
@ -3081,7 +3081,7 @@ if ($action == 'create') {
}
// Create contract
if (isModEnabled('contrat') && $object->statut == Propal::STATUS_SIGNED) {
if (isModEnabled('contract') && $object->statut == Propal::STATUS_SIGNED) {
$langs->load("contracts");
if ($usercancreatecontract) {
@ -3091,7 +3091,7 @@ if ($action == 'create') {
// Create an invoice and classify billed
if ($object->statut == Propal::STATUS_SIGNED && !getDolGlobalString('PROPOSAL_ARE_NOT_BILLABLE')) {
if (isModEnabled('facture') && $usercancreateinvoice) {
if (isModEnabled('invoice') && $usercancreateinvoice) {
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans("CreateBill").'</a>';
}

View File

@ -51,14 +51,14 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcategory.class.php';
}
// Load translation files required by the page
$langs->loadLangs(array('companies', 'propal', 'compta', 'bills', 'orders', 'products', 'deliveries', 'categories'));
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
$langs->loadLangs(array('sendings'));
}
@ -222,7 +222,7 @@ $arrayfields = array(
'p.date_livraison'=>array('label'=>"DeliveryDate", 'checked'=>0),
'p.date_signature'=>array('label'=>"DateSigning", 'checked'=>0),
'ava.rowid'=>array('label'=>"AvailabilityPeriod", 'checked'=>0),
'p.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>0, 'enabled'=>isModEnabled("expedition")),
'p.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>0, 'enabled'=>isModEnabled("delivery_note")),
'p.fk_input_reason'=>array('label'=>"Origin", 'checked'=>0, 'enabled'=>1),
'p.fk_cond_reglement'=>array('label'=>"PaymentConditionsShort", 'checked'=>0),
'p.fk_mode_reglement'=>array('label'=>"PaymentMode", 'checked'=>0),
@ -1156,14 +1156,14 @@ if ($search_date_signature_endyear) {
$moreforfilter .= '</div>';
}
// If the user can view products
if (isModEnabled('categorie') && $user->hasRight('categorie', 'read') && ($user->hasRight('product', 'read') || $user->hasRight('service', 'read'))) {
if (isModEnabled('category') && $user->hasRight('categorie', 'read') && ($user->hasRight('product', 'read') || $user->hasRight('service', 'read'))) {
$searchCategoryProductOperator = -1;
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$tmptitle = $langs->trans('IncludingProductWithTag');
$formcategory = new FormCategory($db);
$moreforfilter .= $formcategory->getFilterBox(Categorie::TYPE_PRODUCT, array($search_product_category), 'maxwidth300', $searchCategoryProductOperator, 0, 0, $tmptitle);
}
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('CustomersProspectsCategoriesShort');

View File

@ -29,7 +29,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
// Load translation files required by the page
$langs->load("companies");
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$langs->load("bills");
}

View File

@ -1355,7 +1355,7 @@ if (empty($reshook)) {
if (
GETPOST('generate_deposit', 'alpha') == 'on' && !empty($deposit_percent_from_payment_terms)
&& isModEnabled('facture') && $user->hasRight('facture', 'creer')
&& isModEnabled('invoice') && $user->hasRight('facture', 'creer')
) {
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
@ -1946,14 +1946,14 @@ if ($action == 'create' && $usercancreate) {
print '</td></tr>';
// Bank Account
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_ORDER') && isModEnabled("banque")) {
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_ORDER') && isModEnabled("bank")) {
print '<tr><td>'.$langs->trans('BankAccount').'</td><td>';
print img_picto('', 'bank_account', 'class="pictofixedwidth"').$form->select_comptes($fk_account, 'fk_account', 0, '', 1, '', 0, 'maxwidth200 widthcentpercentminusx', 1);
print '</td></tr>';
}
// Shipping Method
if (isModEnabled('expedition')) {
if (isModEnabled('delivery_note')) {
print '<tr><td>'.$langs->trans('SendingMethod').'</td><td>';
print img_picto('', 'object_dolly', 'class="pictofixedwidth"');
$form->selectShippingMethod(((GETPOSTISSET('shipping_method_id') && GETPOSTINT('shipping_method_id') != 0) ? GETPOST('shipping_method_id') : $shipping_method_id), 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
@ -2242,7 +2242,7 @@ if ($action == 'create' && $usercancreate) {
// It may also break step of creating an order when invoicing must be done from proposals and not from orders
$deposit_percent_from_payment_terms = (float) getDictionaryValue('c_payment_term', 'deposit_percent', $object->cond_reglement_id);
if (!empty($deposit_percent_from_payment_terms) && isModEnabled('facture') && $user->hasRight('facture', 'creer')) {
if (!empty($deposit_percent_from_payment_terms) && isModEnabled('invoice') && $user->hasRight('facture', 'creer')) {
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
$object->fetchObjectLinked();
@ -2593,7 +2593,7 @@ if ($action == 'create' && $usercancreate) {
print '</td></tr>';
// Shipping Method
if (isModEnabled('expedition')) {
if (isModEnabled('delivery_note')) {
print '<tr><td>';
$editenable = $usercancreate;
print $form->editfieldkey("SendingMethod", 'shippingmethod', '', $object, $editenable);
@ -2750,7 +2750,7 @@ if ($action == 'create' && $usercancreate) {
}
// Bank Account
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_ORDER') && isModEnabled("banque")) {
if (getDolGlobalString('BANK_ASK_PAYMENT_BANK_DURING_ORDER') && isModEnabled("bank")) {
print '<tr><td>';
$editenable = $usercancreate;
print $form->editfieldkey("BankAccount", 'bankaccount', '', $object, $editenable);
@ -2971,7 +2971,7 @@ if ($action == 'create' && $usercancreate) {
}*/
// Create intervention
$arrayforbutaction[] = array('lang'=>'interventions', 'enabled'=>(isModEnabled("ficheinter") && $object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && $object->getNbOfServicesLines() > 0), 'perm'=>$user->hasRight('ficheinter', 'creer'), 'label'=>'AddIntervention', 'url'=>'/fichinter/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid);
$arrayforbutaction[] = array('lang'=>'interventions', 'enabled'=>(isModEnabled("intervention") && $object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && $object->getNbOfServicesLines() > 0), 'perm'=>$user->hasRight('ficheinter', 'creer'), 'label'=>'AddIntervention', 'url'=>'/fichinter/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid);
/*if (isModEnabled('ficheinter')) {
$langs->load("interventions");
@ -2985,7 +2985,7 @@ if ($action == 'create' && $usercancreate) {
}*/
// Create contract
$arrayforbutaction[] = array('lang'=>'contracts', 'enabled'=>(isModEnabled("contrat") && ($object->statut == Commande::STATUS_VALIDATED || $object->statut == Commande::STATUS_SHIPMENTONPROCESS || $object->statut == Commande::STATUS_CLOSED)), 'perm'=>$user->hasRight('contrat', 'creer'), 'label'=>'AddContract', 'url'=>'/contrat/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid);
$arrayforbutaction[] = array('lang'=>'contracts', 'enabled'=>(isModEnabled("contract") && ($object->statut == Commande::STATUS_VALIDATED || $object->statut == Commande::STATUS_SHIPMENTONPROCESS || $object->statut == Commande::STATUS_CLOSED)), 'perm'=>$user->hasRight('contrat', 'creer'), 'label'=>'AddContract', 'url'=>'/contrat/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid);
/*if (isModEnabled('contrat') && ($object->statut == Commande::STATUS_VALIDATED || $object->statut == Commande::STATUS_SHIPMENTONPROCESS || $object->statut == Commande::STATUS_CLOSED)) {
$langs->load("contracts");
@ -2995,14 +2995,14 @@ if ($action == 'create' && $usercancreate) {
}*/
$numshipping = 0;
if (isModEnabled('expedition')) {
if (isModEnabled('delivery_note')) {
$numshipping = $object->countNbOfShipments();
}
// Create shipment
if ($object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && ($object->getNbOfProductsLines() > 0 || getDolGlobalString('STOCK_SUPPORTS_SERVICES'))) {
if ((getDolGlobalInt('MAIN_SUBMODULE_EXPEDITION') && $user->hasRight('expedition', 'creer')) || (getDolGlobalInt('MAIN_SUBMODULE_DELIVERY') && $user->hasRight('expedition', 'delivery', 'creer'))) {
$arrayforbutaction[] = array('lang'=>'sendings', 'enabled'=>(isModEnabled("expedition") && ($object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && ($object->getNbOfProductsLines() > 0 || getDolGlobalString('STOCK_SUPPORTS_SERVICES')))), 'perm'=>$user->hasRight('expedition', 'creer'), 'label'=>'CreateShipment', 'url'=>'/expedition/shipment.php?id='.$object->id);
$arrayforbutaction[] = array('lang'=>'sendings', 'enabled'=>(isModEnabled("delivery_note") && ($object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && ($object->getNbOfProductsLines() > 0 || getDolGlobalString('STOCK_SUPPORTS_SERVICES')))), 'perm'=>$user->hasRight('expedition', 'creer'), 'label'=>'CreateShipment', 'url'=>'/expedition/shipment.php?id='.$object->id);
/*
if ($user->hasRight('expedition', 'creer')) {
print dolGetButtonAction('', $langs->trans('CreateShipment'), 'default', DOL_URL_ROOT.'/expedition/shipment.php?id='.$object->id, '');
@ -3018,7 +3018,7 @@ if ($action == 'create' && $usercancreate) {
// Create bill
$arrayforbutaction[] = array(
'lang'=>'bills',
'enabled'=>(isModEnabled('facture') && $object->statut > Commande::STATUS_DRAFT && !$object->billed && $object->total_ttc >= 0),
'enabled'=>(isModEnabled('invoice') && $object->statut > Commande::STATUS_DRAFT && !$object->billed && $object->total_ttc >= 0),
'perm'=>($user->hasRight('facture', 'creer') && !getDolGlobalInt('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')),
'label'=>'CreateBill',
'url'=>'/compta/facture/card.php?action=create&amp;token='.newToken().'&amp;origin='.urlencode($object->element).'&amp;originid='.$object->id.'&amp;socid='.$object->socid

View File

@ -3825,7 +3825,7 @@ class Commande extends CommonOrder
$result = '';
if (isModEnabled("expedition") && ($option == '1' || $option == '2')) {
if (isModEnabled("delivery_note") && ($option == '1' || $option == '2')) {
$url = DOL_URL_ROOT.'/expedition/shipment.php?id='.$this->id;
} else {
$url = DOL_URL_ROOT.'/commande/card.php?id='.$this->id;

View File

@ -92,7 +92,7 @@ if ($tmp) {
/*
* Draft orders
*/
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$sql = "SELECT c.rowid, c.ref, s.nom as name, s.rowid as socid";
$sql .= ", s.client";
$sql .= ", s.code_client";
@ -244,7 +244,7 @@ $max = 10;
/*
* Orders to process
*/
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$sql = "SELECT c.rowid, c.entity, c.ref, c.fk_statut, c.facture, c.date_commande as date, s.nom as name, s.rowid as socid";
$sql .= ", s.client";
$sql .= ", s.code_client";
@ -333,7 +333,7 @@ if (isModEnabled('commande')) {
/*
* Orders that are in process
*/
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$sql = "SELECT c.rowid, c.entity, c.ref, c.fk_statut, c.facture, c.date_commande as date, s.nom as name, s.rowid as socid";
$sql .= ", s.client";
$sql .= ", s.code_client";

View File

@ -179,7 +179,7 @@ $arrayfields = array(
'typent.code'=>array('label'=>"ThirdPartyType", 'checked'=>$checkedtypetiers, 'position'=>55),
'c.date_commande'=>array('label'=>"OrderDateShort", 'checked'=>1, 'position'=>60, 'csslist'=>'nowraponall'),
'c.date_delivery'=>array('label'=>"DateDeliveryPlanned", 'checked'=>1, 'enabled'=>!getDolGlobalString('ORDER_DISABLE_DELIVERY_DATE'), 'position'=>65, 'csslist'=>'nowraponall'),
'c.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>-1, 'position'=>66 , 'enabled'=>isModEnabled("expedition")),
'c.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>-1, 'position'=>66 , 'enabled'=>isModEnabled("delivery_note")),
'c.fk_cond_reglement'=>array('label'=>"PaymentConditionsShort", 'checked'=>-1, 'position'=>67),
'c.fk_mode_reglement'=>array('label'=>"PaymentMode", 'checked'=>-1, 'position'=>68),
'c.fk_input_reason'=>array('label'=>"Channel", 'checked'=>-1, 'position'=>69),
@ -202,7 +202,7 @@ $arrayfields = array(
'c.date_cloture'=>array('label'=>"DateClosing", 'checked'=>0, 'position'=>130),
'c.note_public'=>array('label'=>'NotePublic', 'checked'=>0, 'enabled'=>(!getDolGlobalInt('MAIN_LIST_HIDE_PUBLIC_NOTES')), 'position'=>135, 'searchall'=>1),
'c.note_private'=>array('label'=>'NotePrivate', 'checked'=>0, 'enabled'=>(!getDolGlobalInt('MAIN_LIST_HIDE_PRIVATE_NOTES')), 'position'=>140),
'shippable'=>array('label'=>"Shippable", 'checked'=>1,'enabled'=>(isModEnabled("expedition")), 'position'=>990),
'shippable'=>array('label'=>"Shippable", 'checked'=>1,'enabled'=>(isModEnabled("delivery_note")), 'position'=>990),
'c.facture'=>array('label'=>"Billed", 'checked'=>1, 'enabled'=>(!getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT')), 'position'=>995),
'c.import_key' =>array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>1, 'visible'=>-2, 'position'=>999),
'c.fk_statut'=>array('label'=>"Status", 'checked'=>1, 'position'=>1000)
@ -893,7 +893,7 @@ if ($search_billed != '' && $search_billed >= 0) {
}
if ($search_status != '') {
if ($search_status <= 3 && $search_status >= -1) { // status from -1 to 3 are real status (other are virtual combination)
if ($search_status == 1 && !isModEnabled('expedition')) {
if ($search_status == 1 && !isModEnabled('delivery_note')) {
$sql .= ' AND c.fk_statut IN (1,2)'; // If module expedition disabled, we include order with status "sent" into "validated"
} else {
$sql .= ' AND c.fk_statut = '.((int) $search_status); // draft, validated, in process or canceled
@ -1150,7 +1150,7 @@ if ($search_status == -2) {
$title .= ' - '.$langs->trans('StatusOrderToProcessShort');
}
if ($search_status == -3) {
$title .= ' - '.$langs->trans('StatusOrderValidated').', '.(!isModEnabled('expedition') ? '' : $langs->trans("StatusOrderSent").', ').$langs->trans('StatusOrderToBill');
$title .= ' - '.$langs->trans('StatusOrderValidated').', '.(!isModEnabled('delivery_note') ? '' : $langs->trans("StatusOrderSent").', ').$langs->trans('StatusOrderToBill');
}
if ($search_status == -4) {
$title .= ' - '.$langs->trans("StatusOrderValidatedShort").'+'.$langs->trans("StatusOrderSentShort");
@ -1327,7 +1327,7 @@ if ($permissiontovalidate) {
if ($permissiontoclose) {
$arrayofmassactions['preshipped'] = img_picto('', 'dollyrevert', 'class="pictofixedwidth"').$langs->trans("ClassifyShipped");
}
if (isModEnabled('facture') && $user->hasRight("facture", "creer")) {
if (isModEnabled('invoice') && $user->hasRight("facture", "creer")) {
$arrayofmassactions['createbills'] = img_picto('', 'bill', 'class="pictofixedwidth"').$langs->trans("CreateInvoiceForThisCustomer");
}
if ($permissiontoclose) {
@ -1466,7 +1466,7 @@ if ($user->hasRight("user", "user", "lire")) {
}
// If the user can view other products/services than his own
if (isModEnabled('categorie') && $user->hasRight("categorie", "lire") && ($user->hasRight("produit", "lire") || $user->hasRight("service", "lire"))) {
if (isModEnabled('category') && $user->hasRight("categorie", "lire") && ($user->hasRight("produit", "lire") || $user->hasRight("service", "lire"))) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('IncludingProductWithTag');
@ -1475,7 +1475,7 @@ if (isModEnabled('categorie') && $user->hasRight("categorie", "lire") && ($user-
$moreforfilter .= '</div>';
}
// If Categories are enabled & user has rights to see
if (isModEnabled('categorie') && $user->hasRight("categorie", "lire")) {
if (isModEnabled('category') && $user->hasRight("categorie", "lire")) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('CustomersProspectsCategoriesShort');
@ -2192,7 +2192,7 @@ while ($i < $imaxinloop) {
}
// If module invoices enabled and user with invoice creation permissions
if (isModEnabled('facture') && getDolGlobalString('ORDER_BILLING_ALL_CUSTOMER')) {
if (isModEnabled('invoice') && getDolGlobalString('ORDER_BILLING_ALL_CUSTOMER')) {
if ($user->hasRight('facture', 'creer')) {
if (($obj->fk_statut > 0 && $obj->fk_statut < 3) || ($obj->fk_statut == 3 && $obj->billed == 0)) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/commande/list.php?socid='.$companystatic->id.'&search_billed=0&autoselectall=1">';
@ -2665,7 +2665,7 @@ while ($i < $imaxinloop) {
$stock_order = 0;
$stock_order_supplier = 0;
if (getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT') || getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT_CLOSE')) { // What about other options ?
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
if (empty($productstat_cache[$generic_commande->lines[$lig]->fk_product]['stats_order_customer'])) {
$generic_product->load_stats_commande(0, '1,2');
$productstat_cache[$generic_commande->lines[$lig]->fk_product]['stats_order_customer'] = $generic_product->stats_commande['qty'];

View File

@ -48,7 +48,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcategory.class.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
}
@ -79,7 +79,7 @@ $search_dateorder_end = dol_mktime(23, 59, 59, GETPOSTINT('search_dateorder_end_
$search_datedelivery_start = dol_mktime(0, 0, 0, GETPOSTINT('search_datedelivery_start_month'), GETPOSTINT('search_datedelivery_start_day'), GETPOSTINT('search_datedelivery_start_year'));
$search_datedelivery_end = dol_mktime(23, 59, 59, GETPOSTINT('search_datedelivery_end_month'), GETPOSTINT('search_datedelivery_end_day'), GETPOSTINT('search_datedelivery_end_year'));
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
$search_product_category_array = GETPOST("search_category_".Categorie::TYPE_PRODUCT."_list", "array");
$searchCategoryProductOperator = 0;
if (GETPOSTISSET('formfilteraction')) {
@ -197,7 +197,7 @@ $arrayfields = array(
'typent.code'=>array('label'=>"ThirdPartyType", 'checked'=>$checkedtypetiers, 'position'=>55),
'c.date_commande'=>array('label'=>"OrderDateShort", 'checked'=>1, 'position'=>60),
'c.date_delivery'=>array('label'=>"DateDeliveryPlanned", 'checked'=>1, 'enabled'=>!getDolGlobalString('ORDER_DISABLE_DELIVERY_DATE'), 'position'=>65),
'c.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>-1, 'position'=>66 , 'enabled'=>isModEnabled('expedition')),
'c.fk_shipping_method'=>array('label'=>"SendingMethod", 'checked'=>-1, 'position'=>66 , 'enabled'=>isModEnabled('delivery_note')),
'c.fk_cond_reglement'=>array('label'=>"PaymentConditionsShort", 'checked'=>-1, 'position'=>67),
'c.fk_mode_reglement'=>array('label'=>"PaymentMode", 'checked'=>-1, 'position'=>68),
'c.fk_input_reason'=>array('label'=>"Channel", 'checked'=>-1, 'position'=>69),
@ -221,7 +221,7 @@ $arrayfields = array(
'c.date_cloture'=>array('label'=>"DateClosing", 'checked'=>0, 'position'=>130),
'c.note_public'=>array('label'=>'NotePublic', 'checked'=>0, 'enabled'=>(!getDolGlobalString('MAIN_LIST_ALLOW_PUBLIC_NOTES')), 'position'=>135),
'c.note_private'=>array('label'=>'NotePrivate', 'checked'=>0, 'enabled'=>(!getDolGlobalString('MAIN_LIST_ALLOW_PRIVATE_NOTES')), 'position'=>140),
'shippable'=>array('label'=>"Shippable", 'checked'=>1,'enabled'=>(isModEnabled('expedition')), 'position'=>990),
'shippable'=>array('label'=>"Shippable", 'checked'=>1,'enabled'=>(isModEnabled('delivery_note')), 'position'=>990),
'c.facture'=>array('label'=>"Billed", 'checked'=>1, 'enabled'=>(!getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT')), 'position'=>995),
'c.import_key' =>array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>1, 'visible'=>-2, 'position'=>999),
'c.fk_statut'=>array('label'=>"Status", 'checked'=>1, 'position'=>1000)
@ -472,7 +472,7 @@ if ($search_billed != '' && $search_billed >= 0) {
}
if ($search_status != '') {
if ($search_status <= 3 && $search_status >= -1) { // status from -1 to 3 are real status (other are virtual combination)
if ($search_status == 1 && !isModEnabled('expedition')) {
if ($search_status == 1 && !isModEnabled('delivery_note')) {
$sql .= ' AND c.fk_statut IN (1,2)'; // If module expedition disabled, we include order with status "sent" into "validated"
} else {
$sql .= ' AND c.fk_statut = '.((int) $search_status); // draft, validated, in process or canceled
@ -687,7 +687,7 @@ if ($resql) {
$title .= ' - '.$langs->trans('StatusOrderToProcessShort');
}
if ($search_status == -3) {
$title .= ' - '.$langs->trans('StatusOrderValidated').', '.(!isModEnabled('expedition') ? '' : $langs->trans("StatusOrderSent").', ').$langs->trans('StatusOrderToBill');
$title .= ' - '.$langs->trans('StatusOrderValidated').', '.(!isModEnabled('delivery_note') ? '' : $langs->trans("StatusOrderSent").', ').$langs->trans('StatusOrderToBill');
}
if ($search_status == -4) {
$title .= ' - '.$langs->trans("StatusOrderValidatedShort").'+'.$langs->trans("StatusOrderSentShort");
@ -937,11 +937,11 @@ if ($resql) {
$moreforfilter .= '</div>';
}
// Filter on categories
if (isModEnabled("categorie") && $user->hasRight('categorie', 'lire') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
if (isModEnabled("category") && $user->hasRight('categorie', 'lire') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
$formcategory = new FormCategory($db);
$moreforfilter .= $formcategory->getFilterBox(Categorie::TYPE_PRODUCT, $search_product_category_array, 'minwidth300imp minwidth300', $searchCategoryProductOperator ? $searchCategoryProductOperator : 0);
}
if (isModEnabled("categorie") && $user->hasRight('categorie', 'lire')) {
if (isModEnabled("category") && $user->hasRight('categorie', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('CustomersProspectsCategoriesShort');
@ -1678,7 +1678,7 @@ if ($resql) {
print $getNomUrl_cache[$obj->socid];
// If module invoices enabled and user with invoice creation permissions
if (isModEnabled('facture') && getDolGlobalString('ORDER_BILLING_ALL_CUSTOMER')) {
if (isModEnabled('invoice') && getDolGlobalString('ORDER_BILLING_ALL_CUSTOMER')) {
if ($user->hasRight('facture', 'creer')) {
if (($obj->fk_statut > 0 && $obj->fk_statut < 3) || ($obj->fk_statut == 3 && $obj->billed == 0)) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/commande/list.php?socid='.$companystatic->id.'&search_billed=0&autoselectall=1">';
@ -2124,7 +2124,7 @@ if ($resql) {
$stock_order = 0;
$stock_order_supplier = 0;
if (getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT') || getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT_CLOSE')) { // What about other options ?
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
if (empty($productstat_cache[$obj->fk_product]['stats_order_customer'])) {
$generic_product->load_stats_commande(0, '1,2');
$productstat_cache[$obj->fk_product]['stats_order_customer'] = $generic_product->stats_commande['qty'];

View File

@ -135,13 +135,13 @@ if (empty($entity)) {
$error = 0;
$listofchoices = array(
'selectinvoices'=>array('label'=>'Invoices', 'picto'=>'bill', 'lang'=>'bills', 'enabled' => isModEnabled('facture'), 'perms' => $user->hasRight('facture', 'lire')),
'selectinvoices'=>array('label'=>'Invoices', 'picto'=>'bill', 'lang'=>'bills', 'enabled' => isModEnabled('invoice'), 'perms' => $user->hasRight('facture', 'lire')),
'selectsupplierinvoices'=>array('label'=>'BillsSuppliers', 'picto'=>'supplier_invoice', 'lang'=>'bills', 'enabled' => isModEnabled('supplier_invoice'), 'perms' => $user->hasRight('fournisseur', 'facture', 'lire')),
'selectexpensereports'=>array('label'=>'ExpenseReports', 'picto'=>'expensereport', 'lang'=>'trips', 'enabled' => isModEnabled('expensereport'), 'perms' => $user->hasRight('expensereport', 'lire')),
'selectdonations'=>array('label'=>'Donations', 'picto'=>'donation', 'lang'=>'donation', 'enabled' => isModEnabled('don'), 'perms' => $user->hasRight('don', 'lire')),
'selectsocialcontributions'=>array('label'=>'SocialContributions', 'picto'=>'bill', 'enabled' => isModEnabled('tax'), 'perms' => $user->hasRight('tax', 'charges', 'lire')),
'selectpaymentsofsalaries'=>array('label'=>'SalariesPayments', 'picto'=>'salary', 'lang'=>'salaries', 'enabled' => isModEnabled('salaries'), 'perms' => $user->hasRight('salaries', 'read')),
'selectvariouspayment'=>array('label'=>'VariousPayment', 'picto'=>'payment', 'enabled' => isModEnabled('banque'), 'perms' => $user->hasRight('banque', 'lire')),
'selectvariouspayment'=>array('label'=>'VariousPayment', 'picto'=>'payment', 'enabled' => isModEnabled('bank'), 'perms' => $user->hasRight('banque', 'lire')),
'selectloanspayment'=>array('label'=>'PaymentLoan','picto'=>'loan', 'enabled' => isModEnabled('don'), 'perms' => $user->hasRight('loan', 'read')),
);
@ -643,7 +643,7 @@ if (isModEnabled('multicompany') && is_object($mc)) {
print '<br>';
// Project filter
if (isModEnabled('projet')) {
if (isModEnabled('project')) {
$formproject = new FormProjets($db);
$langs->load('projects');
print '<span class="marginrightonly">'.$langs->trans('Project').":</span>";

View File

@ -1049,9 +1049,9 @@ if ($resql) {
$moreforfilter .= '</div>';
$moreforfilter .= '</div>';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$langs->load('categories');
// Bank line

View File

@ -37,7 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formbank.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
}
if (isModEnabled('accounting')) {
@ -477,7 +477,7 @@ if ($action == 'create') {
print '</td></tr>';
// Tags-Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print '<tr><td>'.$langs->trans("Categories").'</td><td>';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACCOUNT, '', 'parent', 64, 0, 1);
@ -762,7 +762,7 @@ if ($action == 'create') {
print '<table class="border tableforfield centpercent">';
// Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print '<tr><td class="titlefield">'.$langs->trans("Categories").'</td><td>';
print $form->showCategories($object->id, Categorie::TYPE_ACCOUNT, 1);
print "</td></tr>";
@ -1037,7 +1037,7 @@ if ($action == 'create') {
print '</td></tr>';
// Tags-Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print '<tr><td>'.$langs->trans("Categories").'</td><td>';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACCOUNT, '', 'parent', 64, 0, 1);

View File

@ -1462,7 +1462,7 @@ class Account extends CommonObject
$datas['accountancyjournal'] = '<br><b>'.$langs->trans('AccountancyJournal').':</b> '.$this->accountancy_journal;
}
// show categories for this record only in ajax to not overload lists
if (isModEnabled('categorie') && !$nofetch) {
if (isModEnabled('category') && !$nofetch) {
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
$form = new Form($this->db);
$datas['categories'] = '<br>' . $form->showCategories($this->id, Categorie::TYPE_ACCOUNT, 1);

View File

@ -472,11 +472,11 @@ class PaymentVarious extends CommonObject
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Amount"));
return -5;
}
if (isModEnabled("banque") && (empty($this->fk_account) || $this->fk_account <= 0)) {
if (isModEnabled("bank") && (empty($this->fk_account) || $this->fk_account <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("BankAccount"));
return -6;
}
if (isModEnabled("banque") && (empty($this->type_payment) || $this->type_payment <= 0)) {
if (isModEnabled("bank") && (empty($this->type_payment) || $this->type_payment <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("PaymentMode"));
return -7;
}
@ -530,7 +530,7 @@ class PaymentVarious extends CommonObject
$this->ref = (string) $this->id;
if ($this->id > 0) {
if (isModEnabled("banque") && !empty($this->amount)) {
if (isModEnabled("bank") && !empty($this->amount)) {
// Insert into llx_bank
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';

View File

@ -40,7 +40,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
// Load translation files required by the page
$langs->loadLangs(array('banks', 'categories', 'compta', 'bills', 'other'));
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$langs->load("members");
}
if (isModEnabled('don')) {
@ -621,7 +621,7 @@ if ($result) {
print "</tr>";
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$langs->load('categories');
// Bank line

View File

@ -39,7 +39,7 @@ if (isModEnabled('accounting')) {
if (isModEnabled('accounting')) {
require_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingjournal.class.php';
}
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
}
@ -61,7 +61,7 @@ $search_status = GETPOST('search_status') ? GETPOST('search_status', 'alpha') :
$optioncss = GETPOST('optioncss', 'alpha');
$search_category_list ="";
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
$search_category_list = GETPOST("search_category_".Categorie::TYPE_ACCOUNT."_list", "array");
}
@ -400,7 +400,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
$moreforfilter = '';
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$moreforfilter .= $form->getFilterBox(Categorie::TYPE_ACCOUNT, $search_category_list);
}

View File

@ -144,7 +144,7 @@ if (empty($reshook)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Amount")), null, 'errors');
$error++;
}
if (isModEnabled("banque") && !$object->accountid > 0) {
if (isModEnabled("bank") && !$object->accountid > 0) {
$langs->load('errors');
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankAccount")), null, 'errors');
$error++;
@ -435,7 +435,7 @@ if ($action == 'create') {
print '</td></tr>';
// Bank
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td>';
print $form->editfieldkey('BankAccount', 'selectaccountid', '', $object, 0, 'string', '', 1).'</td><td>';
print img_picto('', 'bank_account', 'class="pictofixedwidth"');
@ -450,7 +450,7 @@ if ($action == 'create') {
print '</tr>';
// Number
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td><label for="num_payment">'.$langs->trans('Numero');
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
print '</label></td>';
@ -687,7 +687,7 @@ if ($id) {
$bankaccountnotfound = 0;
if (isModEnabled('banque')) {
if (isModEnabled('bank')) {
print '<tr>';
print '<td>'.$langs->trans('BankTransactionLine').'</td>';
print '<td colspan="3">';

View File

@ -163,8 +163,8 @@ $arrayfields = array(
'datev' =>array('label'=>"DateValue", 'checked'=>-1, 'position'=>130),
'type' =>array('label'=>"PaymentMode", 'checked'=>1, 'position'=>140),
'project' =>array('label'=>"Project", 'checked'=>1, 'position'=>200, "enabled"=>isModEnabled('project')),
'bank' =>array('label'=>"BankAccount", 'checked'=>1, 'position'=>300, "enabled"=>isModEnabled("banque")),
'entry' =>array('label'=>"BankTransactionLine", 'checked'=>1, 'position'=>310, "enabled"=>isModEnabled("banque")),
'bank' =>array('label'=>"BankAccount", 'checked'=>1, 'position'=>300, "enabled"=>isModEnabled("bank")),
'entry' =>array('label'=>"BankTransactionLine", 'checked'=>1, 'position'=>310, "enabled"=>isModEnabled("bank")),
'account' =>array('label'=>"AccountAccountingShort", 'checked'=>1, 'position'=>400, "enabled"=>isModEnabled('accounting')),
'subledger' =>array('label'=>"SubledgerAccount", 'checked'=>1, 'position'=>410, "enabled"=>isModEnabled('accounting')),
'debit' =>array('label'=>"Debit", 'checked'=>1, 'position'=>500),

View File

@ -147,7 +147,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print_liste_field_titre("RefPayment", $_SERVER["PHP_SELF"], "pc.rowid", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "pc.datep", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "pct.code", "", $param, '', $sortfield, $sortorder);
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print_liste_field_titre("BankAccount", $_SERVER["PHP_SELF"], "ba.label", "", $param, "", $sortfield, $sortorder);
}
print_liste_field_titre("PayedByThisPayment", $_SERVER["PHP_SELF"], "pc.amount", "", $param, 'class="right"', $sortfield, $sortorder);
@ -223,7 +223,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
}
print $obj->num_payment.'</td>';
// Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td>';
if ($obj->fk_bank > 0) {
//$accountstatic->fetch($obj->fk_bank);
@ -263,7 +263,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print '<td class="liste_total center">&nbsp;</td>';
print '<td class="liste_total center">&nbsp;</td>';
print '<td class="liste_total center">&nbsp;</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_total center"></td>';
}
print '<td class="liste_total right">'.price($totalpaid)."</td>";
@ -317,7 +317,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print_liste_field_titre("RefPayment", $_SERVER["PHP_SELF"], "ptva.rowid", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "ptva.datep", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "pct.code", "", $param, '', $sortfield, $sortorder);
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print_liste_field_titre("BankAccount", $_SERVER["PHP_SELF"], "ba.label", "", $param, "", $sortfield, $sortorder);
}
print_liste_field_titre("PayedByThisPayment", $_SERVER["PHP_SELF"], "ptva.amount", "", $param, 'class="right"', $sortfield, $sortorder);
@ -356,7 +356,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print $obj->num_payment.'</td>';
// Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td>';
if ($obj->fk_bank > 0) {
//$accountstatic->fetch($obj->fk_bank);
@ -392,7 +392,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print '<td class="liste_total"></td>';
print '<td class="liste_total"></td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_total"></td>';
}

View File

@ -53,7 +53,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formmargin.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
}
if (isModEnabled('project')) {
@ -3909,7 +3909,7 @@ if ($action == 'create') {
print '</td></tr>';
// Bank Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td>'.$langs->trans('BankAccount').'</td><td colspan="2">';
print img_picto('', 'bank_account', 'class="pictofixedwidth"');
print $form->select_comptes($fk_account, 'fk_account', 0, '', 1, '', 0, 'maxwidth200 widthcentpercentminusx', 1);
@ -4814,7 +4814,7 @@ if ($action == 'create') {
}
// Bank Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td class="nowrap">';
print '<table class="nobordernopadding centpercent"><tr><td class="nowrap">';
print $langs->trans('BankAccount');
@ -5087,7 +5087,7 @@ if ($action == 'create') {
if (isModEnabled('project')) {
$nbrows++;
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$nbrows++;
$nbcols++;
}
@ -5116,7 +5116,7 @@ if ($action == 'create') {
print '<td>'.$langs->trans('ListOfSituationInvoices').'</td>';
print '<td></td>';
print '<td class="center">'.$langs->trans('Situation').'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="right"></td>';
}
print '<td class="right">'.$langs->trans('AmountHT').'</td>';
@ -5140,7 +5140,7 @@ if ($action == 'create') {
print '<td>'.$prev_invoice->getNomUrl(1).'</td>';
print '<td></td>';
print '<td align="center" >'.(($prev_invoice->type == Facture::TYPE_CREDIT_NOTE) ? $langs->trans('situationInvoiceShortcode_AS') : $langs->trans('situationInvoiceShortcode_S')).$prev_invoice->situation_counter.'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="right"></td>';
}
print '<td class="right"><span class="amount">'.price($prev_invoice->total_ht).'</span></td>';
@ -5160,7 +5160,7 @@ if ($action == 'create') {
print '<td>'.$object->getNomUrl(1).'</td>';
print '<td></td>';
print '<td class="center">'.(($object->type == Facture::TYPE_CREDIT_NOTE) ? $langs->trans('situationInvoiceShortcode_AS') : $langs->trans('situationInvoiceShortcode_S')).$object->situation_counter.'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="right"></td>';
}
print '<td class="right"><span class="amount">'.price($object->total_ht).'</span></td>';
@ -5183,7 +5183,7 @@ if ($action == 'create') {
$i++;
}
print '</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td></td>';
}
print '<td class="right"><b>'.price($total_global_ht).'</b></td>';
@ -5215,7 +5215,7 @@ if ($action == 'create') {
print '<td>'.$next_invoice->getNomUrl(1).'</td>';
print '<td></td>';
print '<td class="center">'.(($next_invoice->type == Facture::TYPE_CREDIT_NOTE) ? $langs->trans('situationInvoiceShortcode_AS') : $langs->trans('situationInvoiceShortcode_S')).$next_invoice->situation_counter.'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="right"></td>';
}
print '<td class="right"><span class="amount">'.price($next_invoice->total_ht).'</span></td>';
@ -5229,7 +5229,7 @@ if ($action == 'create') {
print '<tr class="oddeven">';
print '<td colspan="3" class="right"></td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="right"></td>';
}
print '<td class="right"><b>'.price($total_global_ht).'</b></td>';
@ -5256,7 +5256,7 @@ if ($action == 'create') {
print '<td class="liste_titre">'.($object->type == Facture::TYPE_CREDIT_NOTE ? $langs->trans("PaymentsBack") : $langs->trans('Payments')).'</td>';
print '<td class="liste_titre"><span class="hideonsmartphone">'.$langs->trans('Date').'</span></td>';
print '<td class="liste_titre"><span class="hideonsmartphone">'.$langs->trans('Type').'</span></td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_titre"><span class="hideonsmartphone">'.$langs->trans('BankAccount').'</span></td>';
}
print '<td class="liste_titre right">'.$langs->trans('Amount').'</td>';
@ -5306,7 +5306,7 @@ if ($action == 'create') {
$label = ($langs->trans("PaymentType".$objp->payment_code) != "PaymentType".$objp->payment_code) ? $langs->trans("PaymentType".$objp->payment_code) : $objp->payment_label;
print '<td class="tdoverflowmax80" title="'.dol_escape_htmltag($label.' '.$objp->num_payment).'">'.dol_escape_htmltag($label.' '.$objp->num_payment).'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$bankaccountstatic->id = $objp->baid;
$bankaccountstatic->ref = $objp->baref;
$bankaccountstatic->label = $objp->baref;
@ -5730,7 +5730,7 @@ if ($action == 'create') {
// Create contract
if (getDolGlobalString('CONTRACT_CREATE_FROM_INVOICE')) {
if (isModEnabled('contrat') && $object->status == Facture::STATUS_VALIDATED) {
if (isModEnabled('contract') && $object->status == Facture::STATUS_VALIDATED) {
$langs->load("contracts");
if ($usercancreatecontract) {

View File

@ -1448,7 +1448,7 @@ class Invoices extends DolibarrApi
throw new RestException(403, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if (empty($accountid)) {
throw new RestException(400, 'Account ID is mandatory');
}
@ -1506,7 +1506,7 @@ class Invoices extends DolibarrApi
throw new RestException(400, 'Payment error : '.$paymentobj->error);
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$label = '(CustomerInvoicePayment)';
if ($paymentobj->paiementcode == 'CHQ' && empty($chqemetteur)) {
@ -1569,7 +1569,7 @@ class Invoices extends DolibarrApi
}
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if (empty($accountid)) {
throw new RestException(400, 'Account ID is mandatory');
}
@ -1653,7 +1653,7 @@ class Invoices extends DolibarrApi
$this->db->rollback();
throw new RestException(400, 'Payment error : '.$paymentobj->error);
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$label = '(CustomerInvoicePayment)';
if ($paymentobj->paiementcode == 'CHQ' && empty($chqemetteur)) {
throw new RestException(400, 'Emetteur is mandatory when payment code is '.$paymentobj->paiementcode);

View File

@ -5632,7 +5632,7 @@ class Facture extends CommonInvoice
$langs->load("bills");
if (!isModEnabled('facture')) { // Should not happen. If module disabled, cron job should not be visible.
if (!isModEnabled('invoice')) { // Should not happen. If module disabled, cron job should not be visible.
$this->output .= $langs->trans('ModuleNotEnabled', $langs->transnoentitiesnoconv("Facture"));
return 0;
}

View File

@ -56,7 +56,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
}
@ -1300,7 +1300,7 @@ if ($user->hasRight("user", "user", "lire")) {
$moreforfilter .= '</div>';
}
// Filter on product tags
if (isModEnabled('categorie') && $user->hasRight("categorie", "lire") && ($user->hasRight("produit", "lire") || $user->hasRight("service", "lire"))) {
if (isModEnabled('category') && $user->hasRight("categorie", "lire") && ($user->hasRight("produit", "lire") || $user->hasRight("service", "lire"))) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('IncludingProductWithTag');
@ -1308,7 +1308,7 @@ if (isModEnabled('categorie') && $user->hasRight("categorie", "lire") && ($user-
$moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"').$form->selectarray('search_product_category', $cate_arbo, $search_product_category, $tmptitle, 0, 0, '', 0, 0, 0, 0, 'maxwidth300 widthcentpercentminusx', 1);
$moreforfilter .= '</div>';
}
if (isModEnabled('categorie') && $user->hasRight("categorie", "lire")) {
if (isModEnabled('category') && $user->hasRight("categorie", "lire")) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('CustomersProspectsCategoriesShort');

View File

@ -33,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
}
@ -73,7 +73,7 @@ $endyear = $year;
/*
* View
*/
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
$langs->load('categories');
}
$form = new Form($db);
@ -298,7 +298,7 @@ if ($user->admin) {
print '</td></tr>';
// Category
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
if ($mode == 'customer') {
$cat_type = Categorie::TYPE_CUSTOMER;
$cat_label = $langs->trans("Category").' '.lcfirst($langs->trans("Customer"));

View File

@ -50,7 +50,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
// Load translation files required by the page
$langs->loadLangs(array('compta', 'bills'));
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$langs->load("orders");
}
@ -103,7 +103,7 @@ print load_fiche_titre($langs->trans("InvoicesArea"), '', 'bill');
print '<div class="fichecenter"><div class="fichethirdleft">';
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print getNumberInvoicesPieChart('customers');
print '<br>';
}
@ -113,7 +113,7 @@ if (isModEnabled('fournisseur') || isModEnabled('supplier_invoice')) {
print '<br>';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print getCustomerInvoiceDraftTable($max, $socid);
print '<br>';
}
@ -127,7 +127,7 @@ print '</div><div class="fichetwothirdright">';
// Latest modified customer invoices
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$langs->load("boxes");
$tmpinvoice = new Facture($db);
@ -580,7 +580,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
/*
* Customers orders to be billed
*/
if (isModEnabled('facture') && isModEnabled('commande') && $user->hasRight("commande", "lire") && !getDolGlobalString('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')) {
if (isModEnabled('invoice') && isModEnabled('order') && $user->hasRight("commande", "lire") && !getDolGlobalString('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')) {
$commandestatic = new Commande($db);
$langs->load("orders");

View File

@ -178,7 +178,7 @@ if ($action == 'create') {
// Amount
print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input name="amount" size="10" value="'.GETPOST("amount").'"></td></tr>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Type payment
print '<tr><td class="fieldrequired">'.$langs->trans("PaymentMode").'</td><td>';
print $form->select_types_paiements(GETPOST("paiementtype"), "paiementtype", '', 0, 1, 0, 0, 1, 'maxwidth500 widthcentpercentminusx', 1);
@ -247,7 +247,7 @@ if ($id) {
print '<tr><td>'.$langs->trans("Amount").'</td><td>'.price($object->amount).'</td></tr>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($object->fk_account > 0) {
$bankline = new AccountLine($db);
$bankline->fetch($object->fk_bank);

View File

@ -485,11 +485,11 @@ class Localtax extends CommonObject
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Amount"));
return -4;
}
if (isModEnabled("banque") && (empty($this->accountid) || $this->accountid <= 0)) {
if (isModEnabled("bank") && (empty($this->accountid) || $this->accountid <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("BankAccount"));
return -5;
}
if (isModEnabled("banque") && (empty($this->paymenttype) || $this->paymenttype <= 0)) {
if (isModEnabled("bank") && (empty($this->paymenttype) || $this->paymenttype <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("PaymentMode"));
return -5;
}
@ -521,7 +521,7 @@ class Localtax extends CommonObject
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."localtax"); // TODO devrait s'appeler paiementlocaltax
if ($this->id > 0) {
$ok = 1;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Insertion dans llx_bank
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';

View File

@ -174,7 +174,7 @@ if (empty($reshook)) {
$error++;
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// If bank module is on, account is required to enter a payment
if (GETPOST('accountid') <= 0) {
setEventMessages($langs->transnoentities('ErrorFieldRequired', $langs->transnoentities('AccountToCredit')), null, 'errors');
@ -251,7 +251,7 @@ if (empty($reshook)) {
$multicurrency_tx[$key] = $tmpinvoice->multicurrency_tx;
}
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// If the bank module is active, an account is required to input a payment
if (GETPOSTINT('accountid') <= 0) {
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('AccountToCredit')), null, 'errors');
@ -501,7 +501,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
// Bank account
print '<tr>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($facture->type != 2) {
print '<td><span class="fieldrequired">'.$langs->trans('AccountToCredit').'</span></td>';
}

View File

@ -33,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/facture/modules_facture.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
}
if (isModEnabled('margin')) {
@ -318,7 +318,7 @@ print '<tr><td>'.$langs->trans('Amount').'</td><td>'.price($object->amount, '',
$disable_delete = 0;
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$bankline = new AccountLine($db);
if ($object->fk_account > 0) {
@ -360,7 +360,7 @@ print '</td></tr>';
*/
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($object->fk_account > 0) {
if ($object->type_code == 'CHQ' && $bankline->fk_bordereau > 0) {
include_once DOL_DOCUMENT_ROOT.'/compta/paiement/cheque/class/remisecheque.class.php';

View File

@ -707,7 +707,7 @@ class Paiement extends CommonObject
$error = 0;
$bank_line_id = 0;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($accountid <= 0) {
$this->error = 'Bad value for parameter accountid='.$accountid;
dol_syslog(get_class($this).'::addPaymentToBank '.$this->error, LOG_ERR);

View File

@ -103,8 +103,8 @@ $arrayfields = array(
'p.datep' => array('label'=>"Date", 'checked'=>1, 'position'=>20),
's.nom' => array('label'=>"ThirdParty", 'checked'=>1, 'position'=>30),
'c.libelle' => array('label'=>"Type", 'checked'=>1, 'position'=>40),
'transaction' => array('label'=>"BankTransactionLine", 'checked'=>1, 'position'=>50, 'enabled'=>(isModEnabled("banque"))),
'ba.label' => array('label'=>"BankAccount", 'checked'=>1, 'position'=>60, 'enabled'=>(isModEnabled("banque"))),
'transaction' => array('label'=>"BankTransactionLine", 'checked'=>1, 'position'=>50, 'enabled'=>(isModEnabled("bank"))),
'ba.label' => array('label'=>"BankAccount", 'checked'=>1, 'position'=>60, 'enabled'=>(isModEnabled("bank"))),
'p.num_paiement' => array('label'=>"Numero", 'checked'=>1, 'position'=>70, 'tooltip'=>"ChequeOrTransferNumber"),
'p.amount' => array('label'=>"Amount", 'checked'=>1, 'position'=>80),
'p.statut' => array('label'=>"Status", 'checked'=>1, 'position'=>90, 'enabled'=>(getDolGlobalString('BILL_ADD_PAYMENT_VALIDATION'))),

View File

@ -72,7 +72,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y
$error++;
$action = 'create';
}
if (isModEnabled("banque") && !(GETPOST("accountid") > 0)) {
if (isModEnabled("bank") && !(GETPOST("accountid") > 0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("AccountToCredit")), null, 'errors');
$error++;
$action = 'create';

View File

@ -70,7 +70,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y
$error++;
$action = 'create';
}
if (isModEnabled("banque") && !(GETPOSTINT("accountid") > 0)) {
if (isModEnabled("bank") && !(GETPOSTINT("accountid") > 0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("AccountToDebit")), null, 'errors');
$error++;
$action = 'create';

View File

@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php'
require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/paymentsocialcontribution.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/facture/modules_facture.php';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
}
@ -146,7 +146,7 @@ print '<tr><td>'.$langs->trans('Amount').'</td><td>'.price($object->amount, 0, $
print '<tr><td>'.$langs->trans('Note').'</td><td class="wordbreak sensiblehtmlcontent">'.dol_string_onlythesehtmltags(dol_htmlcleanlastbr($object->note_private)).'</td></tr>';
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($object->bank_account) {
$bankline = new AccountLine($db);
$bankline->fetch($object->bank_line);

View File

@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/tva/class/tva.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/tva/class/paymentvat.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/facture/modules_facture.php';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
}
@ -188,7 +188,7 @@ print '<tr><td>'.$langs->trans('Amount').'</td><td>'.price($object->amount, 0, $
print '<tr><td>'.$langs->trans('Note').'</td><td class="wordbreak sensiblehtmlcontent">'.dol_string_onlythesehtmltags(dol_htmlcleanlastbr($object->note_private)).'</td></tr>';
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
if ($object->bank_account) {
$bankline = new AccountLine($db);
$bankline->fetch($object->bank_line);

View File

@ -31,7 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
// Load translation files required by the page
$langs->load("companies");
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$langs->load("bills");
}
@ -117,7 +117,7 @@ if ($id > 0) {
dol_banner_tab($object, 'socid', '', ($user->socid ? 0 : 1), 'rowid', 'nom', '', '', 0, '', '', 1);
print dol_get_fiche_end();
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
// Invoice list
print load_fiche_titre($langs->trans("CustomerPreview"));

View File

@ -1137,7 +1137,7 @@ if ($modecompta == 'BOOKKEEPING') {
*/
//$conf->global->ACCOUNTING_REPORTS_INCLUDE_VARPAY = 1;
if (getDolGlobalString('ACCOUNTING_REPORTS_INCLUDE_VARPAY') && isModEnabled("banque") && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if (getDolGlobalString('ACCOUNTING_REPORTS_INCLUDE_VARPAY') && isModEnabled("bank") && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
$subtotal_ht = 0;
$subtotal_ttc = 0;

View File

@ -215,7 +215,7 @@ if (isModEnabled('accounting') && $modecompta != 'BOOKKEEPING') {
$subtotal_ht = 0;
$subtotal_ttc = 0;
if (isModEnabled('facture') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if (isModEnabled('invoice') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if ($modecompta == 'CREANCES-DETTES') {
$sql = "SELECT sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
@ -272,7 +272,7 @@ if (isModEnabled('facture') && ($modecompta == 'CREANCES-DETTES' || $modecompta
// Nothing from this table
}
if (isModEnabled('facture') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if (isModEnabled('invoice') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
// On ajoute les paiements clients anciennes version, non lies par paiement_facture
if ($modecompta != 'CREANCES-DETTES') {
$sql = "SELECT sum(p.amount) as amount_ttc, date_format(p.datep,'%Y-%m') as dm";
@ -327,7 +327,7 @@ if (isModEnabled('facture') && ($modecompta == 'CREANCES-DETTES' || $modecompta
$subtotal_ht = 0;
$subtotal_ttc = 0;
if (isModEnabled('facture') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if (isModEnabled('invoice') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if ($modecompta == 'CREANCES-DETTES') {
$sql = "SELECT sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
$sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f";
@ -799,7 +799,7 @@ if (isModEnabled('don') && ($modecompta == 'CREANCES-DETTES' || $modecompta == "
* Various Payments
*/
if (getDolGlobalString('ACCOUNTING_REPORTS_INCLUDE_VARPAY') && isModEnabled("banque") && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
if (getDolGlobalString('ACCOUNTING_REPORTS_INCLUDE_VARPAY') && isModEnabled("bank") && ($modecompta == 'CREANCES-DETTES' || $modecompta == "RECETTES-DEPENSES")) {
// decaiss
$sql = "SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount) AS amount FROM ".MAIN_DB_PREFIX."payment_various as p";

View File

@ -427,7 +427,7 @@ if ($action == 'create') {
print '</td></tr>';
// Bank Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td>'.$langs->trans('DefaultBankAccount').'</td><td colspan="2">';
print img_picto('', 'bank_account', 'class="pictofixedwidth"').$form->select_comptes(GETPOSTINT('fk_account'), 'fk_account', 0, '', 2, '', 0, '', 1);
print '</td></tr>';
@ -631,7 +631,7 @@ if ($id > 0) {
print '</td></tr>';
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td class="nowrap">';
print '<table class="centpercent nobordernopadding"><tr><td class="nowrap">';
print $langs->trans('DefaultBankAccount');
@ -663,7 +663,7 @@ if ($id > 0) {
print '<div class="underbanner clearboth"></div>';
$nbcols = 3;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$nbcols++;
}
@ -698,7 +698,7 @@ if ($id > 0) {
print '<td>'.$langs->trans("RefPayment").'</td>';
print '<td>'.$langs->trans("Date").'</td>';
print '<td>'.$langs->trans("Type").'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_titre right">'.$langs->trans('BankAccount').'</td>';
}
print '<td class="right">'.$langs->trans("Amount").'</td>';
@ -721,7 +721,7 @@ if ($id > 0) {
print '<td>'.dol_print_date($db->jdate($objp->dp), 'day')."</td>\n";
$labeltype = $langs->trans("PaymentType".$objp->type_code) != "PaymentType".$objp->type_code ? $langs->trans("PaymentType".$objp->type_code) : $objp->paiement_type;
print "<td>".$labeltype.' '.$objp->num_payment."</td>\n";
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$bankaccountstatic->id = $objp->baid;
$bankaccountstatic->ref = $objp->baref;
$bankaccountstatic->label = $objp->baref;

View File

@ -568,7 +568,7 @@ class PaymentSocialContribution extends CommonObject
$error = 0;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
$acc = new Account($this->db);

View File

@ -109,7 +109,7 @@ $arrayfields = array(
'cs.paye' =>array('label'=>"Status", 'checked'=>1, 'position'=>110),
);
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$arrayfields['cs.fk_account'] = array('checked'=>-1, 'position'=>90, 'label'=>"DefaultBankAccount");
}

View File

@ -226,7 +226,7 @@ print '<td class="liste_titre"></td>';
print '<td class="liste_titre"></td>';
print '<td class="liste_titre"></td>';
print '<td class="liste_titre"></td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_titre"></td>';
print '<td class="liste_titre"></td>';
}
@ -246,7 +246,7 @@ print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "pc.datep", "", $pa
print_liste_field_titre("Employee", $_SERVER["PHP_SELF"], "u.rowid", "", $param, "", $sortfield, $sortorder);
print_liste_field_titre("PaymentMode", $_SERVER["PHP_SELF"], "pct.code", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("Numero", $_SERVER["PHP_SELF"], "pc.num_paiement", "", $param, '', $sortfield, $sortorder, '', 'ChequeOrTransferNumber');
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print_liste_field_titre("BankTransactionLine", $_SERVER["PHP_SELF"], "pc.fk_bank", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("BankAccount", $_SERVER["PHP_SELF"], "ba.label", "", $param, "", $sortfield, $sortorder);
}
@ -324,7 +324,7 @@ while ($i < min($num, $limit)) {
print '<td>'.$obj->num_payment.'</td>';
// Account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Bank transaction
print '<td class="nowraponall">';
$accountlinestatic->id = $obj->fk_bank;
@ -380,7 +380,7 @@ print '<td align="center" class="liste_total">&nbsp;</td>';
print '<td align="center" class="liste_total">&nbsp;</td>';
print '<td align="center" class="liste_total">&nbsp;</td>';
print '<td align="center" class="liste_total">&nbsp;</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td></td>';
print '<td></td>';
}

View File

@ -503,10 +503,10 @@ if (count($amount)) {
if (isModEnabled("propal") && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/comm/propal/stats/index.php?userid='.$key.'">'.img_picto($langs->trans("ProposalStats"), "stats").'</a>&nbsp;';
}
if (isModEnabled('commande') && $key > 0) {
if (isModEnabled('order') && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/commande/stats/index.php?userid='.$key.'">'.img_picto($langs->trans("OrderStats"), "stats").'</a>&nbsp;';
}
if (isModEnabled('facture') && $key > 0) {
if (isModEnabled('invoice') && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/compta/facture/stats/index.php?userid='.$key.'">'.img_picto($langs->trans("InvoiceStats"), "stats").'</a>&nbsp;';
}
print '</td>';

View File

@ -691,10 +691,10 @@ if (count($amount)) {
if (isModEnabled("propal") && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/comm/propal/stats/index.php?socid='.$key.'">'.img_picto($langs->trans("ProposalStats"), "stats").'</a>&nbsp;';
}
if (isModEnabled('commande') && $key > 0) {
if (isModEnabled('order') && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/commande/stats/index.php?socid='.$key.'">'.img_picto($langs->trans("OrderStats"), "stats").'</a>&nbsp;';
}
if (isModEnabled('facture') && $key > 0) {
if (isModEnabled('invoice') && $key > 0) {
print '&nbsp;<a href="'.DOL_URL_ROOT.'/compta/facture/stats/index.php?socid='.$key.'">'.img_picto($langs->trans("InvoiceStats"), "stats").'</a>&nbsp;';
}
print '</td>';

View File

@ -483,7 +483,7 @@ if ($action == 'create') {
print "</td>\n";
print "</tr>";
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Bank account
print '<tr><td class="fieldrequired" id="label_fk_account">'.$langs->trans("BankAccount").'</td><td>';
print img_picto('', 'bank_account', 'pictofixedwidth');
@ -633,7 +633,7 @@ if ($id > 0) {
print '</td></tr>';
// Bank account
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<tr><td class="nowrap">';
print '<table width="100%" class="nobordernopadding"><tr><td class="nowrap">';
print $langs->trans('BankAccount');
@ -664,7 +664,7 @@ if ($id > 0) {
print '<div class="fichehalfright">';
$nbcols = 3;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$nbcols++;
}
@ -699,7 +699,7 @@ if ($id > 0) {
print '<td>'.$langs->trans("RefPayment").'</td>';
print '<td>'.$langs->trans("Date").'</td>';
print '<td>'.$langs->trans("Type").'</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="liste_titre right">'.$langs->trans('BankAccount').'</td>';
}
print '<td class="right">'.$langs->trans("Amount").'</td>';
@ -716,7 +716,7 @@ if ($id > 0) {
print '<td>'.dol_print_date($db->jdate($objp->dp), 'day')."</td>\n";
$labeltype = $langs->trans("PaymentType".$objp->type_code) != "PaymentType".$objp->type_code ? $langs->trans("PaymentType".$objp->type_code) : $objp->paiement_type;
print "<td>".$labeltype.' '.$objp->num_payment."</td>\n";
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$bankaccountstatic->id = $objp->baid;
$bankaccountstatic->ref = $objp->baref;
$bankaccountstatic->label = $objp->baref;

View File

@ -569,7 +569,7 @@ class PaymentVAT extends CommonObject
$error = 0;
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
$acc = new Account($this->db);

View File

@ -587,11 +587,11 @@ class Tva extends CommonObject
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Amount"));
return -4;
}
if (isModEnabled("banque") && (empty($this->accountid) || $this->accountid <= 0)) {
if (isModEnabled("bank") && (empty($this->accountid) || $this->accountid <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("BankAccount"));
return -5;
}
if (isModEnabled("banque") && (empty($this->type_payment) || $this->type_payment <= 0)) {
if (isModEnabled("bank") && (empty($this->type_payment) || $this->type_payment <= 0)) {
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("PaymentMode"));
return -5;
}
@ -648,7 +648,7 @@ class Tva extends CommonObject
if ($this->id > 0) {
$ok = 1;
if (isModEnabled("banque") && !empty($this->amount)) {
if (isModEnabled("bank") && !empty($this->amount)) {
// Insert into llx_bank
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';

View File

@ -91,7 +91,7 @@ $arrayfields = array(
't.status' =>array('checked'=>1, 'position'=>90, 'label'=>"Status"),
);
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
$arrayfields['t.fk_account'] = array('checked'=>1, 'position'=>60, 'label'=>"DefaultBankAccount");
}

View File

@ -170,7 +170,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "ptva.datep", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre("PaymentMode", $_SERVER["PHP_SELF"], "pct.code", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("Numero", $_SERVER["PHP_SELF"], "ptva.num_paiement", "", $param, '', $sortfield, $sortorder, '', 'ChequeOrTransferNumber');
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print_liste_field_titre("BankTransactionLine", $_SERVER["PHP_SELF"], "ptva.fk_bank", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("BankAccount", $_SERVER["PHP_SELF"], "bank.ref", "", $param, '', $sortfield, $sortorder);
}
@ -258,7 +258,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
// Chq number
print '<td>' . dol_escape_htmltag($obj->num_payment) . '</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
// Bank transaction
print '<td>';
$accountlinestatic->id = $obj->fk_bank;
@ -294,7 +294,7 @@ if (isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) {
print '<td class="liste_total right"></td>'; // A total here has no sense
print '<td class="center liste_total">&nbsp;</td>';
print '<td class="center liste_total">&nbsp;</td>';
if (isModEnabled("banque")) {
if (isModEnabled("bank")) {
print '<td class="center liste_total">&nbsp;</td>';
print '<td class="center liste_total">&nbsp;</td>';
}

View File

@ -193,7 +193,7 @@ abstract class ActionsContactCardCommon
$this->object->load_ref_elements();
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$this->tpl['contact_element'][$i]['linked_element_label'] = $langs->trans("ContactForOrders");
$this->tpl['contact_element'][$i]['linked_element_value'] = $this->object->ref_commande ? $this->object->ref_commande : $langs->trans("NoContactForAnyOrder");
$i++;
@ -203,12 +203,12 @@ abstract class ActionsContactCardCommon
$this->tpl['contact_element'][$i]['linked_element_value'] = $this->object->ref_propal ? $this->object->ref_propal : $langs->trans("NoContactForAnyProposal");
$i++;
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
$this->tpl['contact_element'][$i]['linked_element_label'] = $langs->trans("ContactForContracts");
$this->tpl['contact_element'][$i]['linked_element_value'] = $this->object->ref_contrat ? $this->object->ref_contrat : $langs->trans("NoContactForAnyContract");
$i++;
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$this->tpl['contact_element'][$i]['linked_element_label'] = $langs->trans("ContactForInvoices");
$this->tpl['contact_element'][$i]['linked_element_value'] = $this->object->ref_facturation ? $this->object->ref_facturation : $langs->trans("NoContactForAnyInvoice");
$i++;

View File

@ -873,7 +873,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td>'.$form->editfieldkey('Categories', 'contcats', '', $object, 0).'</td><td colspan="3">';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CONTACT, null, 'parent', null, null, 1);
print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('contcats', $cate_arbo, GETPOST('contcats', 'array'), null, null, null, null, '90%');
@ -1169,7 +1169,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '</td></tr>';
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
$arrayselected = array();
print '<tr><td>'.$form->editfieldkey('Categories', 'contcats', '', $object, 0).'</td>';
print '<td colspan="3">';
@ -1197,7 +1197,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$object->load_ref_elements();
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
print '<tr><td>'.$langs->trans("ContactForOrders").'</td><td colspan="3">';
print $object->ref_commande ? $object->ref_commande : ('<span class="opacitymedium">'.$langs->trans("NoContactForAnyOrder").'</span>');
print '</td></tr>';
@ -1209,13 +1209,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '</td></tr>';
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
print '<tr><td>'.$langs->trans("ContactForContracts").'</td><td colspan="3">';
print $object->ref_contrat ? $object->ref_contrat : ('<span class="opacitymedium">'.$langs->trans("NoContactForAnyContract").'</span>');
print '</td></tr>';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print '<tr><td>'.$langs->trans("ContactForInvoices").'</td><td colspan="3">';
print $object->ref_facturation ? $object->ref_facturation : ('<span class="opacitymedium">'.$langs->trans("NoContactForAnyInvoice").'</span>');
print '</td></tr>';
@ -1436,7 +1436,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
// Categories
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
print '<tr><td class="titlefield">'.$langs->trans("Categories").'</td>';
print '<td>';
print $form->showCategories($object->id, Categorie::TYPE_CONTACT, 1);
@ -1462,29 +1462,29 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '</td></tr>';
}
if (isModEnabled('commande') || isModEnabled("expedition")) {
if (isModEnabled('order') || isModEnabled("delivery_note")) {
print '<tr><td class="titlefield tdoverflow">';
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
print $langs->trans("ContactForOrdersOrShipments");
} else {
print $langs->trans("ContactForOrders");
}
print '</td><td>';
$none = $langs->trans("NoContactForAnyOrder");
if (isModEnabled("expedition")) {
if (isModEnabled("delivery_note")) {
$none = $langs->trans("NoContactForAnyOrderOrShipments");
}
print $object->ref_commande ? $object->ref_commande : $none;
print '</td></tr>';
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
print '<tr><td class="tdoverflow">'.$langs->trans("ContactForContracts").'</td><td>';
print $object->ref_contrat ? $object->ref_contrat : $langs->trans("NoContactForAnyContract");
print '</td></tr>';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
print '<tr><td class="tdoverflow">'.$langs->trans("ContactForInvoices").'</td><td>';
print $object->ref_facturation ? $object->ref_facturation : $langs->trans("NoContactForAnyInvoice");
print '</td></tr>';

View File

@ -158,18 +158,18 @@ if (!empty($object->thirdparty->client)) {
if (isModEnabled("propal") && $user->hasRight('propal', 'lire')) {
$elementTypeArray['propal'] = $langs->transnoentitiesnoconv('Proposals');
}
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
$elementTypeArray['order'] = $langs->transnoentitiesnoconv('Orders');
}
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
$elementTypeArray['invoice'] = $langs->transnoentitiesnoconv('Invoices');
}
if (isModEnabled('contrat') && $user->hasRight('contrat', 'lire')) {
if (isModEnabled('contract') && $user->hasRight('contrat', 'lire')) {
$elementTypeArray['contract'] = $langs->transnoentitiesnoconv('Contracts');
}
}
if (isModEnabled('ficheinter') && $user->hasRight('ficheinter', 'lire')) {
if (isModEnabled('intervention') && $user->hasRight('ficheinter', 'lire')) {
$elementTypeArray['fichinter'] = $langs->transnoentitiesnoconv('Interventions');
}

View File

@ -1002,7 +1002,7 @@ if ($user->hasRight('societe', 'client', 'voir')) {
$moreforfilter .= '</div>';
}
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('ContactCategoriesShort');

View File

@ -2176,7 +2176,7 @@ if ($action == 'create') {
// Create ... buttons
$arrayofcreatebutton = array();
if (isModEnabled('commande') && $object->status > 0 && $object->nbofservicesclosed < $nbofservices) {
if (isModEnabled('order') && $object->status > 0 && $object->nbofservicesclosed < $nbofservices) {
$arrayofcreatebutton[] = array(
'url' => '/commande/card.php?action=create&token='.newToken().'&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->thirdparty->id,
'label' => $langs->trans('AddOrder'),
@ -2184,7 +2184,7 @@ if ($action == 'create') {
'perm' => $user->hasRight('commande', 'creer')
);
}
if (isModEnabled('facture') && $object->status > 0 && $soc->client > 0) {
if (isModEnabled('invoice') && $object->status > 0 && $soc->client > 0) {
$arrayofcreatebutton[] = array(
'url' => '/compta/facture/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->thirdparty->id,
'label' => $langs->trans('CreateBill'),

View File

@ -239,7 +239,7 @@ print "</table></div><br>";
// Draft contracts
if (isModEnabled('contrat') && $user->hasRight('contrat', 'lire')) {
if (isModEnabled('contract') && $user->hasRight('contrat', 'lire')) {
$sql = "SELECT c.rowid, c.ref,";
$sql .= " s.nom as name, s.name_alias, s.logo, s.rowid as socid, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur";
$sql .= " FROM ".MAIN_DB_PREFIX."contrat as c, ".MAIN_DB_PREFIX."societe as s";

View File

@ -38,7 +38,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
if (isModEnabled("categorie")) {
if (isModEnabled("category")) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
}
@ -799,7 +799,7 @@ if ($user->hasRight('user', 'user', 'lire')) {
$moreforfilter .= '</div>';
}
// If the user can view categories of products
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('IncludingProductWithTag');
@ -808,7 +808,7 @@ if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire') && ($user-
$moreforfilter .= '</div>';
}
// Filter on customer categories
if (getDolGlobalString('MAIN_SEARCH_CATEGORY_CUSTOMER_ON_CONTRACT_LIST') && isModEnabled("categorie") && $user->hasRight('categorie', 'lire')) {
if (getDolGlobalString('MAIN_SEARCH_CATEGORY_CUSTOMER_ON_CONTRACT_LIST') && isModEnabled("category") && $user->hasRight('categorie', 'lire')) {
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->transnoentities('CustomersProspectsCategoriesShort');
$moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"');

View File

@ -528,7 +528,7 @@ $morefilter = '';
$moreforfilter = '';
// If the user can view categories of products
if (isModEnabled('categorie') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
if (isModEnabled('category') && ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'))) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('IncludingProductWithTag');

View File

@ -189,7 +189,7 @@ if ($action == 'add' && !empty($permissiontoadd)) {
$result = $object->create($user);
if ($result > 0) {
// Creation OK
if (isModEnabled('categorie') && method_exists($object, 'setCategories')) {
if (isModEnabled('category') && method_exists($object, 'setCategories')) {
$categories = GETPOST('categories', 'array:int');
$object->setCategories($categories);
}
@ -313,7 +313,7 @@ if ($action == 'update' && !empty($permissiontoadd)) {
}
}
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
$categories = GETPOST('categories', 'array');
if (method_exists($object, 'setCategories')) {
$object->setCategories($categories);

View File

@ -69,7 +69,7 @@ $arrayresult = array();
// Define $searchform
if (isModEnabled('adherent') && !getDolGlobalString('MAIN_SEARCHFORM_ADHERENT_DISABLED') && $user->hasRight('adherent', 'lire')) {
if (isModEnabled('member') && !getDolGlobalString('MAIN_SEARCHFORM_ADHERENT_DISABLED') && $user->hasRight('adherent', 'lire')) {
$arrayresult['searchintomember'] = array('position'=>8, 'shortcut'=>'M', 'img'=>'object_member', 'label'=>$langs->trans("SearchIntoMembers", $search_boxvalue), 'text'=>img_picto('', 'object_member', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoMembers", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/adherents/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
@ -102,13 +102,13 @@ if (isModEnabled('project') && !getDolGlobalString('MAIN_SEARCHFORM_TASK_DISABLE
if (isModEnabled('propal') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_PROPAL_DISABLED') && $user->hasRight('propal', 'lire')) {
$arrayresult['searchintopropal'] = array('position'=>60, 'img'=>'object_propal', 'label'=>$langs->trans("SearchIntoCustomerProposals", $search_boxvalue), 'text'=>img_picto('', 'object_propal', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoCustomerProposals", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/comm/propal/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('commande') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_ORDER_DISABLED') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_ORDER_DISABLED') && $user->hasRight('commande', 'lire')) {
$arrayresult['searchintoorder'] = array('position'=>70, 'img'=>'object_order', 'label'=>$langs->trans("SearchIntoCustomerOrders", $search_boxvalue), 'text'=>img_picto('', 'object_order', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoCustomerOrders", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/commande/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('expedition') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_SHIPMENT_DISABLED') && $user->hasRight('expedition', 'lire')) {
if (isModEnabled('delivery_note') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_SHIPMENT_DISABLED') && $user->hasRight('expedition', 'lire')) {
$arrayresult['searchintoshipment'] = array('position'=>80, 'img'=>'object_shipment', 'label'=>$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'text'=>img_picto('', 'object_shipment', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/expedition/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('facture') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED') && $user->hasRight('facture', 'lire')) {
$arrayresult['searchintoinvoice'] = array('position'=>90, 'img'=>'object_bill', 'label'=>$langs->trans("SearchIntoCustomerInvoices", $search_boxvalue), 'text'=>img_picto('', 'object_bill', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoCustomerInvoices", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/compta/facture/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
@ -123,7 +123,7 @@ if (((isModEnabled('fournisseur') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERM
}
// Customer payments
if (isModEnabled('facture') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && !getDolGlobalString('MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED') && $user->hasRight('facture', 'lire')) {
$arrayresult['searchintocustomerpayments'] = array(
'position'=>170,
'img'=>'object_payment',
@ -143,7 +143,7 @@ if (((isModEnabled('fournisseur') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERM
}
// Miscellaneous payments
if (isModEnabled('banque') && !getDolGlobalString('MAIN_SEARCHFORM_MISC_PAYMENTS_DISABLED') && $user->hasRight('banque', 'lire')) {
if (isModEnabled('bank') && !getDolGlobalString('MAIN_SEARCHFORM_MISC_PAYMENTS_DISABLED') && $user->hasRight('banque', 'lire')) {
$arrayresult['searchintomiscpayments'] = array(
'position'=>180,
'img'=>'object_payment',
@ -152,10 +152,10 @@ if (isModEnabled('banque') && !getDolGlobalString('MAIN_SEARCHFORM_MISC_PAYMENTS
'url'=>DOL_URL_ROOT.'/compta/bank/various_payment/list.php?leftmenu=tax_various'.($search_boxvalue ? '&search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('contrat') && !getDolGlobalString('MAIN_SEARCHFORM_CONTRACT_DISABLED') && $user->hasRight('contrat', 'lire')) {
if (isModEnabled('contract') && !getDolGlobalString('MAIN_SEARCHFORM_CONTRACT_DISABLED') && $user->hasRight('contrat', 'lire')) {
$arrayresult['searchintocontract'] = array('position'=>130, 'img'=>'object_contract', 'label'=>$langs->trans("SearchIntoContracts", $search_boxvalue), 'text'=>img_picto('', 'object_contract', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoContracts", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/contrat/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('ficheinter') && !getDolGlobalString('MAIN_SEARCHFORM_FICHINTER_DISABLED') && $user->hasRight('ficheinter', 'lire')) {
if (isModEnabled('intervention') && !getDolGlobalString('MAIN_SEARCHFORM_FICHINTER_DISABLED') && $user->hasRight('ficheinter', 'lire')) {
$arrayresult['searchintointervention'] = array('position'=>140, 'img'=>'object_intervention', 'label'=>$langs->trans("SearchIntoInterventions", $search_boxvalue), 'text'=>img_picto('', 'object_intervention', 'class="pictofixedwidth"').' '.$langs->trans("SearchIntoInterventions", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/fichinter/list.php'.($search_boxvalue ? '?search_all='.urlencode($search_boxvalue) : ''));
}
if (isModEnabled('knowledgemanagement') && !getDolGlobalString('MAIN_SEARCHFORM_KNOWLEDGEMANAGEMENT_DISABLED') && $user->hasRight('knowledgemanagement', 'knowledgerecord', 'read')) {

View File

@ -53,8 +53,8 @@ class box_activity extends ModeleBoxes
$this->enabled = getDolGlobalInt('MAIN_FEATURES_LEVEL'); // Not enabled by default due to bugs (see previous comments)
$this->hidden = !(
(isModEnabled('facture') && $user->hasRight('facture', 'read'))
|| (isModEnabled('commande') && $user->hasRight('commande', 'read'))
(isModEnabled('invoice') && $user->hasRight('facture', 'read'))
|| (isModEnabled('order') && $user->hasRight('commande', 'read'))
|| (isModEnabled('propal') && $user->hasRight('propal', 'read'))
);
}
@ -183,7 +183,7 @@ class box_activity extends ModeleBoxes
}
// list the summary of the orders
if (isModEnabled('commande') && $user->hasRight("commande", "lire")) {
if (isModEnabled('order') && $user->hasRight("commande", "lire")) {
include_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
$commandestatic = new Commande($this->db);
@ -270,7 +270,7 @@ class box_activity extends ModeleBoxes
// list the summary of the bills
if (isModEnabled('facture') && $user->hasRight("facture", "lire")) {
if (isModEnabled('invoice') && $user->hasRight("facture", "lire")) {
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
$facturestatic = new Facture($this->db);

View File

@ -102,7 +102,7 @@ class box_dolibarr_state_board extends ModeleBoxes
);
$conditions = array(
'users' => $user->hasRight('user', 'user', 'lire'),
'members' => isModEnabled('adherent') && $user->hasRight('adherent', 'lire'),
'members' => isModEnabled('member') && $user->hasRight('adherent', 'lire'),
'customers' => isModEnabled('societe') && $user->hasRight('societe', 'lire') && !getDolGlobalString('SOCIETE_DISABLE_CUSTOMERS') && !getDolGlobalString('SOCIETE_DISABLE_CUSTOMERS_STATS'),
'prospects' => isModEnabled('societe') && $user->hasRight('societe', 'lire') && !getDolGlobalString('SOCIETE_DISABLE_PROSPECTS') && !getDolGlobalString('SOCIETE_DISABLE_PROSPECTS_STATS'),
'suppliers' => (
@ -115,11 +115,11 @@ class box_dolibarr_state_board extends ModeleBoxes
'products' => isModEnabled('product') && $user->hasRight('product', 'read'),
'services' => isModEnabled('service') && $user->hasRight('service', 'read'),
'proposals' => isModEnabled('propal') && $user->hasRight('propal', 'read'),
'orders' => isModEnabled('commande') && $user->hasRight('commande', 'lire'),
'invoices' => isModEnabled('facture') && $user->hasRight('facture', 'lire'),
'orders' => isModEnabled('order') && $user->hasRight('commande', 'lire'),
'invoices' => isModEnabled('invoice') && $user->hasRight('facture', 'lire'),
'donations' => isModEnabled('don') && $user->hasRight('don', 'lire'),
'contracts' => isModEnabled('contrat') && $user->hasRight('contrat', 'lire'),
'interventions' => isModEnabled('ficheinter') && $user->hasRight('ficheinter', 'lire'),
'contracts' => isModEnabled('contract') && $user->hasRight('contrat', 'lire'),
'interventions' => isModEnabled('intervention') && $user->hasRight('ficheinter', 'lire'),
'supplier_orders' => isModEnabled('supplier_order') && $user->hasRight('fournisseur', 'commande', 'lire') && !getDolGlobalString('SOCIETE_DISABLE_SUPPLIERS_ORDERS_STATS'),
'supplier_invoices' => isModEnabled('supplier_invoice') && $user->hasRight('fournisseur', 'facture', 'lire') && !getDolGlobalString('SOCIETE_DISABLE_SUPPLIERS_INVOICES_STATS'),
'supplier_proposals' => isModEnabled('supplier_proposal') && $user->hasRight('supplier_proposal', 'lire') && !getDolGlobalString('SOCIETE_DISABLE_SUPPLIERS_PROPOSAL_STATS'),

View File

@ -49,8 +49,8 @@ class box_graph_product_distribution extends ModeleBoxes
$this->db = $db;
$this->hidden = !(
(isModEnabled('facture') && $user->hasRight('facture', 'lire'))
|| (isModEnabled('commande') && $user->hasRight('commande', 'lire'))
(isModEnabled('invoice') && $user->hasRight('facture', 'lire'))
|| (isModEnabled('order') && $user->hasRight('commande', 'lire'))
|| (isModEnabled('propal') && $user->hasRight('propal', 'lire'))
);
}
@ -96,13 +96,13 @@ class box_graph_product_distribution extends ModeleBoxes
$showinvoicenb = 1;
$showordernb = 1;
}
if (!isModEnabled('facture') || !$user->hasRight('facture', 'lire')) {
if (!isModEnabled('invoice') || !$user->hasRight('facture', 'lire')) {
$showinvoicenb = 0;
}
if (isModEnabled('propal') || !$user->hasRight('propal', 'lire')) {
$showpropalnb = 0;
}
if (!isModEnabled('commande') || !$user->hasRight('commande', 'lire')) {
if (!isModEnabled('order') || !$user->hasRight('commande', 'lire')) {
$showordernb = 0;
}
@ -203,7 +203,7 @@ class box_graph_product_distribution extends ModeleBoxes
}
}
if (isModEnabled('commande') && $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') && $user->hasRight('commande', 'lire')) {
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
if ($showordernb) {
$langs->load("orders");
@ -267,7 +267,7 @@ class box_graph_product_distribution extends ModeleBoxes
}
if (isModEnabled('facture') && $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') && $user->hasRight('facture', 'lire')) {
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
if ($showinvoicenb) {
$langs->load("bills");
@ -358,10 +358,10 @@ class box_graph_product_distribution extends ModeleBoxes
$stringtoshow .= '<input type="checkbox" name="'.$param_showpropalnb.'"'.($showpropalnb ? ' checked' : '').'> '.$langs->trans("ForProposals");
$stringtoshow .= '&nbsp;';
}
if (isModEnabled('commande') || $user->hasRight('commande', 'lire')) {
if (isModEnabled('order') || $user->hasRight('commande', 'lire')) {
$stringtoshow .= '<input type="checkbox" name="'.$param_showordernb.'"'.($showordernb ? ' checked' : '').'> '.$langs->trans("ForCustomersOrders");
}
if (isModEnabled('facture') || $user->hasRight('facture', 'lire')) {
if (isModEnabled('invoice') || $user->hasRight('facture', 'lire')) {
$stringtoshow .= '<input type="checkbox" name="'.$param_showinvoicenb.'"'.($showinvoicenb ? ' checked' : '').'> '.$langs->trans("ForCustomersInvoices");
$stringtoshow .= ' &nbsp; ';
}
@ -384,13 +384,13 @@ class box_graph_product_distribution extends ModeleBoxes
$stringtoshow .= '<div class="fichecenter"><div class="containercenter"><div class="fichehalfleft">';
if (isModEnabled('propal') && $showpropalnb) {
$stringtoshow .= $px2->show();
} elseif (isModEnabled('commande') && $showordernb) {
} elseif (isModEnabled('order') && $showordernb) {
$stringtoshow .= $px3->show();
}
$stringtoshow .= '</div><div class="fichehalfright">';
if (isModEnabled('facture') && $showinvoicenb) {
if (isModEnabled('invoice') && $showinvoicenb) {
$stringtoshow .= $px1->show();
} elseif (isModEnabled('commande') && $showordernb) {
} elseif (isModEnabled('order') && $showordernb) {
$stringtoshow .= $px3->show();
}
$stringtoshow .= '</div></div></div>';

View File

@ -58,7 +58,7 @@ class box_members_by_tags extends ModeleBoxes
$this->enabled = 0; // disabled for external users
}
$this->hidden = !(isModEnabled('adherent') && $user->hasRight('adherent', 'lire'));
$this->hidden = !(isModEnabled('member') && $user->hasRight('adherent', 'lire'));
}
/**

View File

@ -58,7 +58,7 @@ class box_members_by_type extends ModeleBoxes
$this->enabled = 0; // disabled for external users
}
$this->hidden = !(isModEnabled('adherent') && $user->hasRight('adherent', 'lire'));
$this->hidden = !(isModEnabled('member') && $user->hasRight('adherent', 'lire'));
}
/**

View File

@ -57,7 +57,7 @@ class box_members_last_modified extends ModeleBoxes
$this->enabled = 0; // disabled for external users
}
$this->hidden = !(isModEnabled('adherent') && $user->hasRight('adherent', 'lire'));
$this->hidden = !(isModEnabled('member') && $user->hasRight('adherent', 'lire'));
}
/**

View File

@ -57,7 +57,7 @@ class box_members_last_subscriptions extends ModeleBoxes
$this->enabled = 0; // disabled for external users
}
$this->hidden = !(isModEnabled('adherent') && $user->hasRight('adherent', 'lire'));
$this->hidden = !(isModEnabled('member') && $user->hasRight('adherent', 'lire'));
}
/**

View File

@ -57,7 +57,7 @@ class box_members_subscriptions_by_year extends ModeleBoxes
$this->enabled = 0; // disabled for external users
}
$this->hidden = !(isModEnabled('adherent') && $user->hasRight('adherent', 'lire'));
$this->hidden = !(isModEnabled('member') && $user->hasRight('adherent', 'lire'));
}
/**

View File

@ -9155,13 +9155,13 @@ class Form
// To work with non standard path
if ($objecttype == 'facture') {
$tplpath = 'compta/' . $element;
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'facturerec') {
$tplpath = 'compta/facture';
$tplname = 'linkedobjectblockForRec';
if (!isModEnabled('facture')) {
if (!isModEnabled('invoice')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'propal') {
@ -9175,7 +9175,7 @@ class Form
}
} elseif ($objecttype == 'shipping' || $objecttype == 'shipment' || $objecttype == 'expedition') {
$tplpath = 'expedition';
if (!isModEnabled('expedition')) {
if (!isModEnabled('delivery_note')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'reception') {
@ -9185,12 +9185,12 @@ class Form
}
} elseif ($objecttype == 'delivery') {
$tplpath = 'delivery';
if (!isModEnabled('expedition')) {
if (!isModEnabled('delivery_note')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'ficheinter') {
$tplpath = 'fichinter';
if (!isModEnabled('ficheinter')) {
if (!isModEnabled('intervention')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'invoice_supplier') {
@ -9292,34 +9292,34 @@ class Form
'label' => 'LinkToProposal',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "propal as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('propal') . ')'),
'shipping' => array(
'enabled' => isModEnabled('expedition'),
'enabled' => isModEnabled('delivery_note'),
'perms' => 1,
'label' => 'LinkToExpedition',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "expedition as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('shipping') . ')'),
'order' => array(
'enabled' => isModEnabled('commande'),
'enabled' => isModEnabled('order'),
'perms' => 1,
'label' => 'LinkToOrder',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "commande as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('commande') . ')'),
'invoice' => array(
'enabled' => isModEnabled('facture'),
'enabled' => isModEnabled('invoice'),
'perms' => 1,
'label' => 'LinkToInvoice',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "facture as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('invoice') . ')'),
'invoice_template' => array(
'enabled' => isModEnabled('facture'),
'enabled' => isModEnabled('invoice'),
'perms' => 1,
'label' => 'LinkToTemplateInvoice',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.titre as ref, t.total_ht FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "facture_rec as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('invoice') . ')'),
'contrat' => array(
'enabled' => isModEnabled('contrat'),
'enabled' => isModEnabled('contract'),
'perms' => 1,
'label' => 'LinkToContract',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_customer as ref_client, t.ref_supplier, SUM(td.total_ht) as total_ht
FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "contrat as t, " . $this->db->prefix() . "contratdet as td WHERE t.fk_soc = s.rowid AND td.fk_contrat = t.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('contract') . ') GROUP BY s.rowid, s.nom, s.client, t.rowid, t.ref, t.ref_customer, t.ref_supplier'
),
'fichinter' => array(
'enabled' => isModEnabled('ficheinter'),
'enabled' => isModEnabled('intervention'),
'perms' => 1,
'label' => 'LinkToIntervention',
'sql' => "SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref FROM " . $this->db->prefix() . "societe as s, " . $this->db->prefix() . "fichinter as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('intervention') . ')'),

View File

@ -1917,36 +1917,36 @@ class FormMail extends Form
if ($onlinepaymentenabled && getDolGlobalString('PAYMENT_SECURITY_TOKEN')) {
$tmparray['__SECUREKEYPAYMENT__'] = getDolGlobalString('PAYMENT_SECURITY_TOKEN');
if (getDolGlobalString('PAYMENT_SECURITY_TOKEN_UNIQUE')) {
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$tmparray['__SECUREKEYPAYMENT_MEMBER__'] = 'SecureKeyPAYMENTUniquePerMember';
}
if (isModEnabled('don')) {
$tmparray['__SECUREKEYPAYMENT_DONATION__'] = 'SecureKeyPAYMENTUniquePerDonation';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$tmparray['__SECUREKEYPAYMENT_INVOICE__'] = 'SecureKeyPAYMENTUniquePerInvoice';
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$tmparray['__SECUREKEYPAYMENT_ORDER__'] = 'SecureKeyPAYMENTUniquePerOrder';
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
$tmparray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = 'SecureKeyPAYMENTUniquePerContractLine';
}
//Online payment link
if (isModEnabled('adherent')) {
if (isModEnabled('member')) {
$tmparray['__ONLINEPAYMENTLINK_MEMBER__'] = 'OnlinePaymentLinkUniquePerMember';
}
if (isModEnabled('don')) {
$tmparray['__ONLINEPAYMENTLINK_DONATION__'] = 'OnlinePaymentLinkUniquePerDonation';
}
if (isModEnabled('facture')) {
if (isModEnabled('invoice')) {
$tmparray['__ONLINEPAYMENTLINK_INVOICE__'] = 'OnlinePaymentLinkUniquePerInvoice';
}
if (isModEnabled('commande')) {
if (isModEnabled('order')) {
$tmparray['__ONLINEPAYMENTLINK_ORDER__'] = 'OnlinePaymentLinkUniquePerOrder';
}
if (isModEnabled('contrat')) {
if (isModEnabled('contract')) {
$tmparray['__ONLINEPAYMENTLINK_CONTRACTLINE__'] = 'OnlinePaymentLinkUniquePerContractLine';
}
}

View File

@ -460,7 +460,7 @@ class FormTicket
}
// Categories
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_TICKET, '', 'parent', 64, 0, 1);

View File

@ -121,16 +121,16 @@ $arrayoftype = array(
'thirdparty' => array('langs'=>'companies', 'label' => 'ThirdParties', 'picto'=>'company', 'ObjectClassName' => 'Societe', 'enabled' => isModEnabled('societe'), 'ClassPath' => "/societe/class/societe.class.php"),
'contact' => array('label' => 'Contacts', 'picto'=>'contact', 'ObjectClassName' => 'Contact', 'enabled' => isModEnabled('societe'), 'ClassPath' => "/contact/class/contact.class.php"),
'proposal' => array('label' => 'Proposals', 'picto'=>'proposal', 'ObjectClassName' => 'Propal', 'enabled' => isModEnabled('propal'), 'ClassPath' => "/comm/propal/class/propal.class.php"),
'order' => array('label' => 'Orders', 'picto'=>'order', 'ObjectClassName' => 'Commande', 'enabled' => isModEnabled('commande'), 'ClassPath' => "/commande/class/commande.class.php"),
'invoice' => array('langs'=>'facture', 'label' => 'Invoices', 'picto'=>'bill', 'ObjectClassName' => 'Facture', 'enabled' => isModEnabled('facture'), 'ClassPath' => "/compta/facture/class/facture.class.php"),
'invoice_template'=>array('label' => 'PredefinedInvoices', 'picto'=>'bill', 'ObjectClassName' => 'FactureRec', 'enabled' => isModEnabled('facture'), 'ClassPath' => "/compta/class/facturerec.class.php", 'langs'=>'bills'),
'contract' => array('label' => 'Contracts', 'picto'=>'contract', 'ObjectClassName' => 'Contrat', 'enabled' => isModEnabled('contrat'), 'ClassPath' => "/contrat/class/contrat.class.php", 'langs'=>'contracts'),
'contractdet' => array('label' => 'ContractLines', 'picto'=>'contract', 'ObjectClassName' => 'ContratLigne', 'enabled' => isModEnabled('contrat'), 'ClassPath' => "/contrat/class/contrat.class.php", 'langs'=>'contracts'),
'order' => array('label' => 'Orders', 'picto'=>'order', 'ObjectClassName' => 'Commande', 'enabled' => isModEnabled('order'), 'ClassPath' => "/commande/class/commande.class.php"),
'invoice' => array('langs'=>'facture', 'label' => 'Invoices', 'picto'=>'bill', 'ObjectClassName' => 'Facture', 'enabled' => isModEnabled('invoice'), 'ClassPath' => "/compta/facture/class/facture.class.php"),
'invoice_template'=>array('label' => 'PredefinedInvoices', 'picto'=>'bill', 'ObjectClassName' => 'FactureRec', 'enabled' => isModEnabled('invoice'), 'ClassPath' => "/compta/class/facturerec.class.php", 'langs'=>'bills'),
'contract' => array('label' => 'Contracts', 'picto'=>'contract', 'ObjectClassName' => 'Contrat', 'enabled' => isModEnabled('contract'), 'ClassPath' => "/contrat/class/contrat.class.php", 'langs'=>'contracts'),
'contractdet' => array('label' => 'ContractLines', 'picto'=>'contract', 'ObjectClassName' => 'ContratLigne', 'enabled' => isModEnabled('contract'), 'ClassPath' => "/contrat/class/contrat.class.php", 'langs'=>'contracts'),
'bom' => array('label' => 'BOM', 'picto'=>'bom', 'ObjectClassName' => 'Bom', 'enabled' => isModEnabled('bom')),
'mrp' => array('label' => 'MO', 'picto'=>'mrp', 'ObjectClassName' => 'Mo', 'enabled' => isModEnabled('mrp'), 'ClassPath' => "/mrp/class/mo.class.php"),
'ticket' => array('label' => 'Ticket', 'picto'=>'ticket', 'ObjectClassName' => 'Ticket', 'enabled' => isModEnabled('ticket')),
'member' => array('label' => 'Adherent', 'picto'=>'member', 'ObjectClassName' => 'Adherent', 'enabled' => isModEnabled('adherent'), 'ClassPath' => "/adherents/class/adherent.class.php", 'langs'=>'members'),
'cotisation' => array('label' => 'Subscriptions', 'picto'=>'member', 'ObjectClassName' => 'Subscription', 'enabled' => isModEnabled('adherent'), 'ClassPath' => "/adherents/class/subscription.class.php", 'langs'=>'members'),
'member' => array('label' => 'Adherent', 'picto'=>'member', 'ObjectClassName' => 'Adherent', 'enabled' => isModEnabled('member'), 'ClassPath' => "/adherents/class/adherent.class.php", 'langs'=>'members'),
'cotisation' => array('label' => 'Subscriptions', 'picto'=>'member', 'ObjectClassName' => 'Subscription', 'enabled' => isModEnabled('member'), 'ClassPath' => "/adherents/class/subscription.class.php", 'langs'=>'members'),
);

View File

@ -1769,7 +1769,7 @@ function form_constantes($tableau, $strictw3c = 0, $helptext = '', $text = 'Valu
print 'mymailmanlist<br>';
print 'mymailmanlist1,mymailmanlist2<br>';
print 'TYPE:Type1:mymailmanlist1,TYPE:Type2:mymailmanlist2<br>';
if (isModEnabled('categorie')) {
if (isModEnabled('category')) {
print 'CATEG:Categ1:mymailmanlist1,CATEG:Categ2:mymailmanlist2<br>';
}
print '</div>';

View File

@ -131,7 +131,7 @@ function print_actions_filter(
print '</div>';
}
if (isModEnabled('projet') && $user->hasRight('projet', 'lire')) {
if (isModEnabled('project') && $user->hasRight('projet', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
$formproject = new FormProjets($db);
@ -141,7 +141,7 @@ function print_actions_filter(
print '</div>';
}
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
if (isModEnabled('category') && $user->hasRight('categorie', 'lire')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
$formother = new FormOther($db);

Some files were not shown because too many files have changed in this diff Show More