Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
e3f45959
Commit
e3f45959
authored
20 years ago
by
Benoit Mortier
Browse files
Options
Downloads
Patches
Plain Diff
fin de l'adaptation de la fiche societe pour la belgique correction du bug #8933
parent
1aa4d54b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/fourn/fiche.php
+3
-3
3 additions, 3 deletions
htdocs/fourn/fiche.php
htdocs/soc-BE.php
+21
-15
21 additions, 15 deletions
htdocs/soc-BE.php
with
24 additions
and
18 deletions
htdocs/fourn/fiche.php
+
3
−
3
View file @
e3f45959
...
@@ -191,9 +191,9 @@ if ( $societe->fetch($socid) )
...
@@ -191,9 +191,9 @@ if ( $societe->fetch($socid) )
}
}
print
"</td>"
;
print
"</td>"
;
print
"<td>
$obj->poste
</td>"
;
print
"<td>
$obj->poste
</td>"
;
print
'<td><a href="
actioncomm
.php?action=create&actionid=1&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
phone
.
'</a> </td>'
;
print
'<td><a href="
../comm/action/fiche
.php?action=create&actionid=1&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
phone
.
'</a> </td>'
;
print
'<td><a href="
actioncomm
.php?action=create&actionid=2&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
fax
.
'</a> </td>'
;
print
'<td><a href="
../comm/action/fiche
.php?action=create&actionid=2&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
fax
.
'</a> </td>'
;
print
'<td><a href="
actioncomm
.php?action=create&actionid=4&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
email
.
'</a> </td>'
;
print
'<td><a href="
../comm/action/fiche
.php?action=create&actionid=4&contactid='
.
$obj
->
idp
.
'&socid='
.
$societe
->
id
.
'">'
.
$obj
->
email
.
'</a> </td>'
;
print
"<td align=
\"
center
\"
><a href=
\"
../contact/fiche.php?action=edit&id=
$obj->idp
\"
>"
.
img_edit
()
.
"</a></td>"
;
print
"<td align=
\"
center
\"
><a href=
\"
../contact/fiche.php?action=edit&id=
$obj->idp
\"
>"
.
img_edit
()
.
"</a></td>"
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$i
++
;
$i
++
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/soc-BE.php
+
21
−
15
View file @
e3f45959
...
@@ -46,9 +46,13 @@ if ($_POST["action"] == 'add' or $_POST["action"] == 'update')
...
@@ -46,9 +46,13 @@ if ($_POST["action"] == 'add' or $_POST["action"] == 'update')
$soc
->
tel
=
$_POST
[
"tel"
];
$soc
->
tel
=
$_POST
[
"tel"
];
$soc
->
fax
=
$_POST
[
"fax"
];
$soc
->
fax
=
$_POST
[
"fax"
];
$soc
->
url
=
ereg_replace
(
"http://"
,
""
,
$_POST
[
"url"
]
);
$soc
->
url
=
ereg_replace
(
"http://"
,
""
,
$_POST
[
"url"
]
);
$soc
->
siren
=
$_POST
[
"siren"
];
/* $soc->siren = $_POST["siren"]; */
$soc
->
siret
=
$_POST
[
"siret"
];
$soc
->
siret
=
$_POST
[
"siret"
];
$soc
->
ape
=
$_POST
[
"ape"
];
/* $soc->ape = $_POST["ape"]; */
$soc
->
capital
=
$_POST
[
"capital"
];
$soc
->
capital
=
$_POST
[
"capital"
];
$soc
->
tva_intra
=
$_POST
[
"tva_intra_code"
]
.
$_POST
[
"tva_intra_num"
];
$soc
->
tva_intra
=
$_POST
[
"tva_intra_code"
]
.
$_POST
[
"tva_intra_num"
];
...
@@ -101,11 +105,12 @@ if ($action == 'create')
...
@@ -101,11 +105,12 @@ if ($action == 'create')
print
'<tr><td>Web</td><td colspan="3">http://<input size="40" type="text" name="url"></td></tr>'
;
print
'<tr><td>Web</td><td colspan="3">http://<input size="40" type="text" name="url"></td></tr>'
;
print
'<tr>
<td>Siren</td><td><input type="text" name="siren"></td>
'
;
print
'<tr>'
;
print
'<td>
Siret
</td><td><input type="text" name="siret" size="15" maxlength="14" value="'
.
$soc
->
siret
.
'"></td></tr>'
;
print
'<td>
Registre de Commerce
</td><td><input type="text" name="siret" size="15" maxlength="14" value="'
.
$soc
->
siret
.
'"></td></tr>'
;
print
'<tr>'
;
print
'<tr>'
;
print
'<td>Capital</td><td><input type="text" name="capital" size="10" value="'
.
$soc
->
capital
.
'"> '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<td>Capital</td><td><input type="text" name="capital" size="10" value="'
.
$soc
->
capital
.
'"> '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
;
...
@@ -169,13 +174,14 @@ elseif ($action == 'edit')
...
@@ -169,13 +174,14 @@ elseif ($action == 'edit')
print
'<tr><td>Tlphone</td><td><input type="text" name="tel" value="'
.
$soc
->
tel
.
'"></td>'
;
print
'<tr><td>Tlphone</td><td><input type="text" name="tel" value="'
.
$soc
->
tel
.
'"></td>'
;
print
'<td>Fax</td><td><input type="text" name="fax" value="'
.
$soc
->
fax
.
'"></td></tr>'
;
print
'<td>Fax</td><td><input type="text" name="fax" value="'
.
$soc
->
fax
.
'"></td></tr>'
;
print
'<tr><td>Web</td><td colspan="3">http://<input type="text" name="url" size="40" value="'
.
$soc
->
url
.
'"></td></tr>'
;
print
'<tr><td>Web</td><td colspan="3">http://<input type="text" name="url" size="40" value="'
.
$soc
->
url
.
'"></td></tr>'
;
print
'<tr><td>Siren</td><td><input type="text" name="siren" size="10" maxlength="9" value="'
.
$soc
->
siren
.
'"></td>'
;
print
'<td>Siret</td><td><input type="text" name="siret" size="15" maxlength="14" value="'
.
$soc
->
siret
.
'"></td></tr>'
;
print
'<tr>'
;
print
'<tr>'
;
print
'<td>Capital</td><td><input type="text" name="capital" size="10" value="'
.
$soc
->
capital
.
'"> '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<td>Registre de Commerce</td><td><input type="text" name="siret" size="15" maxlength="14" value="'
.
$soc
->
siret
.
'"></td></tr>'
;
print
'<tr>'
;
print
'<td>Capital</td><td><input type="text" name="capital" size="10" value="'
.
$soc
->
capital
.
'"> '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
;
$html
=
new
Form
(
$db
);
$html
=
new
Form
(
$db
);
...
@@ -202,9 +208,9 @@ elseif ($action == 'edit')
...
@@ -202,9 +208,9 @@ elseif ($action == 'edit')
}
}
elseif
(
$soc
->
client
==
1
)
elseif
(
$soc
->
client
==
1
)
{
{
print
'<option value="2">Prospect</option>'
;
print
'<option value="2">Prospect</option>'
;
print
'<option value="1" SELECTED>Client</option>'
;
print
'<option value="1" SELECTED>Client</option>'
;
print
'<option value="0">Ni client, ni prospect</option>'
;
print
'<option value="0">Ni client, ni prospect</option>'
;
}
}
else
else
{
{
...
@@ -218,7 +224,7 @@ elseif ($action == 'edit')
...
@@ -218,7 +224,7 @@ elseif ($action == 'edit')
print
'<td>Fournisseur</td><td><select name="fournisseur">'
;
print
'<td>Fournisseur</td><td><select name="fournisseur">'
;
print_oui_non
(
$soc
->
fournisseur
);
print_oui_non
(
$soc
->
fournisseur
);
print
'</select>'
;
print
'</select>'
;
print
'</td></tr>'
;
print
'</td></tr>'
;
print
'<tr><td align="center" colspan="4"><input type="submit" value="Mettre jour"></td></tr>'
;
print
'<tr><td align="center" colspan="4"><input type="submit" value="Mettre jour"></td></tr>'
;
...
@@ -295,11 +301,12 @@ else
...
@@ -295,11 +301,12 @@ else
if
(
$soc
->
url
)
{
print
'<a href="http://'
.
$soc
->
url
.
'">http://'
.
$soc
->
url
.
'</a>'
;
}
if
(
$soc
->
url
)
{
print
'<a href="http://'
.
$soc
->
url
.
'">http://'
.
$soc
->
url
.
'</a>'
;
}
print
'</td></tr>'
;
print
'</td></tr>'
;
print
'<tr>
<td>Siren</td><td><a target="_blank" href="http://www.societe.com/cgi-bin/recherche?rncs='
.
$soc
->
siren
.
'">'
.
$soc
->
siren
.
'</a> </td>
'
;
print
'<tr>'
;
print
'<td>
Siret
</td><td>'
.
$soc
->
siret
.
'</td></tr>'
;
print
'<td>
Registre de Commerce
</td><td>'
.
$soc
->
siret
.
'</td></tr>'
;
print
'<tr>'
;
print
'<tr>'
;
print
'<td>Capital</td><td>'
.
$soc
->
capital
.
' '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<td>Capital</td><td>'
.
$soc
->
capital
.
' '
.
MAIN_MONNAIE
.
'</td></tr>'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
.
$soc
->
forme_juridique
.
'</td></tr>'
;
print
'<tr><td>Forme juridique</td><td colspan="3">'
.
$soc
->
forme_juridique
.
'</td></tr>'
;
...
@@ -320,7 +327,6 @@ else
...
@@ -320,7 +327,6 @@ else
print
'<a class="tabAction" href="'
.
DOL_URL_ROOT
.
'/contact/fiche.php?socid='
.
$socid
.
'&action=create">Ajouter un contact</a>'
;
print
'<a class="tabAction" href="'
.
DOL_URL_ROOT
.
'/contact/fiche.php?socid='
.
$socid
.
'&action=create">Ajouter un contact</a>'
;
print
'<a class="tabAction" href="'
.
DOL_URL_ROOT
.
'/societe/notify/fiche.php?socid='
.
$socid
.
'">Notifications</a>'
;
print
'</div>'
;
print
'</div>'
;
/*
/*
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment