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
35a0311d
Commit
35a0311d
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Checkstyle
parent
0b42251d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/comm/propal/class/propal.class.php
+22
-20
22 additions, 20 deletions
htdocs/comm/propal/class/propal.class.php
with
22 additions
and
20 deletions
htdocs/comm/propal/class/propal.class.php
+
22
−
20
View file @
35a0311d
...
...
@@ -305,11 +305,12 @@ class Propal extends CommonObject
* @param int $fk_parent_line Id of parent line
* @param int $fk_fournprice Id supplier price
* @param int $pa_ht Buying price without tax
* @param string $label ???
* @return int >0 if OK, <0 if KO
*
* @see add_product
*/
function
addline
(
$propalid
,
$desc
,
$pu_ht
,
$qty
,
$txtva
,
$txlocaltax1
=
0
,
$txlocaltax2
=
0
,
$fk_product
=
0
,
$remise_percent
=
0
,
$price_base_type
=
'HT'
,
$pu_ttc
=
0
,
$info_bits
=
0
,
$type
=
0
,
$rang
=-
1
,
$special_code
=
0
,
$fk_parent_line
=
0
,
$fk_fournprice
=
null
,
$pa_ht
=
0
,
$label
=
''
)
function
addline
(
$propalid
,
$desc
,
$pu_ht
,
$qty
,
$txtva
,
$txlocaltax1
=
0
,
$txlocaltax2
=
0
,
$fk_product
=
0
,
$remise_percent
=
0
,
$price_base_type
=
'HT'
,
$pu_ttc
=
0
,
$info_bits
=
0
,
$type
=
0
,
$rang
=-
1
,
$special_code
=
0
,
$fk_parent_line
=
0
,
$fk_fournprice
=
null
,
$pa_ht
=
0
,
$label
=
''
)
{
global
$conf
;
...
...
@@ -461,6 +462,7 @@ class Propal extends CommonObject
* @param int $skip_update_total Skip update total
* @param int $fk_fournprice Id supplier price
* @param int $pa_ht Buying price without tax
* @param string $label ???
* @return int 0 if OK, <0 if KO
*/
function
updateline
(
$rowid
,
$pu
,
$qty
,
$remise_percent
,
$txtva
,
$txlocaltax1
=
0
,
$txlocaltax2
=
0
,
$desc
=
''
,
$price_base_type
=
'HT'
,
$info_bits
=
0
,
$special_code
=
0
,
$fk_parent_line
=
0
,
$skip_update_total
=
0
,
$fk_fournprice
=
null
,
$pa_ht
=
0
,
$label
=
''
)
...
...
@@ -740,25 +742,25 @@ class Propal extends CommonObject
}
$result
=
$this
->
addline
(
$this
->
id
,
$this
->
lines
[
$i
]
->
desc
,
$this
->
lines
[
$i
]
->
subprice
,
$this
->
lines
[
$i
]
->
qty
,
$this
->
lines
[
$i
]
->
tva_tx
,
$this
->
lines
[
$i
]
->
localtax1_tx
,
$this
->
lines
[
$i
]
->
localtax2_tx
,
$this
->
lines
[
$i
]
->
fk_product
,
$this
->
lines
[
$i
]
->
remise_percent
,
'HT'
,
0
,
0
,
$this
->
lines
[
$i
]
->
product_type
,
$this
->
lines
[
$i
]
->
rang
,
$this
->
lines
[
$i
]
->
special_code
,
$fk_parent_line
,
$this
->
lines
[
$i
]
->
fk_fournprice
,
$this
->
lines
[
$i
]
->
pa_ht
,
$this
->
lines
[
$i
]
->
label
$this
->
id
,
$this
->
lines
[
$i
]
->
desc
,
$this
->
lines
[
$i
]
->
subprice
,
$this
->
lines
[
$i
]
->
qty
,
$this
->
lines
[
$i
]
->
tva_tx
,
$this
->
lines
[
$i
]
->
localtax1_tx
,
$this
->
lines
[
$i
]
->
localtax2_tx
,
$this
->
lines
[
$i
]
->
fk_product
,
$this
->
lines
[
$i
]
->
remise_percent
,
'HT'
,
0
,
0
,
$this
->
lines
[
$i
]
->
product_type
,
$this
->
lines
[
$i
]
->
rang
,
$this
->
lines
[
$i
]
->
special_code
,
$fk_parent_line
,
$this
->
lines
[
$i
]
->
fk_fournprice
,
$this
->
lines
[
$i
]
->
pa_ht
,
$this
->
lines
[
$i
]
->
label
);
if
(
$result
<
0
)
...
...
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