mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 16:42:53 +01:00
NEW Add thirdparty state in substitution array (#31549)
* Add thirdparty state in substitution array Add thirdparty state in substitution array * Update functions.lib.php
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
* Copyright (C) 2023 Joachim Kueter <git-jk@bloxera.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Lenin Rivas <lenin.rivas777@gmail.com>
|
||||
* Copyright (C) 2024 Josep Lluís Amador Teruel <joseplluis@lliuretic.cat>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -8905,6 +8906,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
'__MYCOMPANY_ADDRESS__' => $mysoc->address,
|
||||
'__MYCOMPANY_ZIP__' => $mysoc->zip,
|
||||
'__MYCOMPANY_TOWN__' => $mysoc->town,
|
||||
'__MYCOMPANY_STATE__' => $mysoc->state,
|
||||
'__MYCOMPANY_COUNTRY__' => $mysoc->country,
|
||||
'__MYCOMPANY_COUNTRY_ID__' => $mysoc->country_id,
|
||||
'__MYCOMPANY_COUNTRY_CODE__' => $mysoc->country_code,
|
||||
@@ -8937,6 +8939,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
$substitutionarray['__THIRDPARTY_ADDRESS__'] = '__THIRDPARTY_ADDRESS__';
|
||||
$substitutionarray['__THIRDPARTY_ZIP__'] = '__THIRDPARTY_ZIP__';
|
||||
$substitutionarray['__THIRDPARTY_TOWN__'] = '__THIRDPARTY_TOWN__';
|
||||
$substitutionarray['__THIRDPARTY_STATE__'] = '__THIRDPARTY_STATE__';
|
||||
$substitutionarray['__THIRDPARTY_IDPROF1__'] = '__THIRDPARTY_IDPROF1__';
|
||||
$substitutionarray['__THIRDPARTY_IDPROF2__'] = '__THIRDPARTY_IDPROF2__';
|
||||
$substitutionarray['__THIRDPARTY_IDPROF3__'] = '__THIRDPARTY_IDPROF3__';
|
||||
@@ -9068,6 +9071,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
$substitutionarray['__MEMBER_ADDRESS__'] = (isset($object->address) ? $object->address : '');
|
||||
$substitutionarray['__MEMBER_ZIP__'] = (isset($object->zip) ? $object->zip : '');
|
||||
$substitutionarray['__MEMBER_TOWN__'] = (isset($object->town) ? $object->town : '');
|
||||
$substitutionarray['__MEMBER_STATE__'] = (isset($object->state) ? $object->state : '');
|
||||
$substitutionarray['__MEMBER_COUNTRY__'] = (isset($object->country) ? $object->country : '');
|
||||
$substitutionarray['__MEMBER_EMAIL__'] = (isset($object->email) ? $object->email : '');
|
||||
$substitutionarray['__MEMBER_BIRTH__'] = (isset($birthday) ? $birthday : '');
|
||||
@@ -9107,6 +9111,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
$substitutionarray['__THIRDPARTY_ADDRESS__'] = (is_object($object) ? $object->address : '');
|
||||
$substitutionarray['__THIRDPARTY_ZIP__'] = (is_object($object) ? $object->zip : '');
|
||||
$substitutionarray['__THIRDPARTY_TOWN__'] = (is_object($object) ? $object->town : '');
|
||||
$substitutionarray['__THIRDPARTY_STATE__'] = (is_object($object) ? $object->state : '');
|
||||
$substitutionarray['__THIRDPARTY_COUNTRY_ID__'] = (is_object($object) ? $object->country_id : '');
|
||||
$substitutionarray['__THIRDPARTY_COUNTRY_CODE__'] = (is_object($object) ? $object->country_code : '');
|
||||
$substitutionarray['__THIRDPARTY_IDPROF1__'] = (is_object($object) ? $object->idprof1 : '');
|
||||
@@ -9131,6 +9136,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
$substitutionarray['__THIRDPARTY_ADDRESS__'] = (is_object($object->thirdparty) ? $object->thirdparty->address : '');
|
||||
$substitutionarray['__THIRDPARTY_ZIP__'] = (is_object($object->thirdparty) ? $object->thirdparty->zip : '');
|
||||
$substitutionarray['__THIRDPARTY_TOWN__'] = (is_object($object->thirdparty) ? $object->thirdparty->town : '');
|
||||
$substitutionarray['__THIRDPARTY_STATE__'] = (is_object($object->thirdparty) ? $object->thirdparty->state : '');
|
||||
$substitutionarray['__THIRDPARTY_COUNTRY_ID__'] = (is_object($object->thirdparty) ? $object->thirdparty->country_id : '');
|
||||
$substitutionarray['__THIRDPARTY_COUNTRY_CODE__'] = (is_object($object->thirdparty) ? $object->thirdparty->country_code : '');
|
||||
$substitutionarray['__THIRDPARTY_IDPROF1__'] = (is_object($object->thirdparty) ? $object->thirdparty->idprof1 : '');
|
||||
|
||||
Reference in New Issue
Block a user