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
a8af3d47
Commit
a8af3d47
authored
16 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Can remove a supplier order
parent
8d19da30
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/fourn/commande/fiche.php
+4
-7
4 additions, 7 deletions
htdocs/fourn/commande/fiche.php
htdocs/fourn/fournisseur.commande.class.php
+11
-10
11 additions, 10 deletions
htdocs/fourn/fournisseur.commande.class.php
with
16 additions
and
17 deletions
ChangeLog
+
1
−
0
View file @
a8af3d47
...
...
@@ -9,6 +9,7 @@ For users:
- New: Sort list of languages in combo box.
- New: EMails links are show with function dol_print_email
- New: Add graph report on number of entities in product statistics page.
- New: Can delete a supplier order whatever is its status.
- Fix: Failed to go on the future view of bank transaction if there is no
future bank transaction already wrote.
- Fix: Bad ref in supplier list.
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/commande/fiche.php
+
4
−
7
View file @
a8af3d47
<?php
/* Copyright (C) 2004-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-200
8
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-200
9
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2008 Regis Houssin <regis@dolibarr.fr>
*
...
...
@@ -904,7 +904,7 @@ if ($id > 0)
/**
* Boutons actions
*/
if
(
$user
->
societe_id
==
0
&&
$
commande
->
statut
<
3
&&
$_GET
[
'action'
]
<>
'editlin
e'
)
if
(
$user
->
societe_id
==
0
&&
$
_GET
[
'action'
]
!=
'editline'
&&
$_GET
[
'action'
]
!=
'delet
e'
)
{
print
'<div class="tabsAction">'
;
...
...
@@ -953,13 +953,10 @@ if ($id > 0)
}
}
if
(
$commande
->
statut
==
0
)
{
if
(
$user
->
rights
->
fournisseur
->
commande
->
creer
)
if
(
$user
->
rights
->
fournisseur
->
commande
->
annuler
)
{
print
'<a class="butActionDelete" href="fiche.php?id='
.
$commande
->
id
.
'&action=delete">'
.
$langs
->
trans
(
"Delete"
)
.
'</a>'
;
}
}
print
"</div>"
;
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/fournisseur.commande.class.php
+
11
−
10
View file @
a8af3d47
...
...
@@ -975,8 +975,8 @@ class CommandeFournisseur extends Commande
}
/**
* \brief
Supprime la comman
de
*
*
\brief
Delete an or
de
r
*
\return int <0 if KO, >0 if OK
*/
function
delete
()
{
...
...
@@ -987,16 +987,17 @@ class CommandeFournisseur extends Commande
$this
->
db
->
begin
();
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"commande_fournisseurdet WHERE fk_commande ="
.
$this
->
id
;
dol_syslog
(
"FournisseurCommande::delete sql="
.
$sql
,
LOG_DEBUG
);
if
(
!
$this
->
db
->
query
(
$sql
)
)
{
$err
++
;
}
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"commande_fournisseur WHERE rowid ="
.
$this
->
id
;
$sql
.
=
" AND fk_statut = 0;"
;
dol_syslog
(
"FournisseurCommande::delete sql="
.
$sql
,
LOG_DEBUG
)
;
if
(
$resql
=
$this
->
db
->
query
(
$sql
)
)
{
if
(
$this
->
db
->
affected_rows
(
$resql
)
<
>
1
)
if
(
$this
->
db
->
affected_rows
(
$resql
)
<
1
)
{
$err
++
;
}
...
...
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