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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
682f6f83
Commit
682f6f83
authored
8 years ago
by
cam.lafit
Browse files
Options
Downloads
Patches
Plain Diff
Change argument list CreateInvoiceFromOrder
* invoice data are not mandatory Only order information are required
parent
545e41b8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/webservices/server_invoice.php
+2
-8
2 additions, 8 deletions
htdocs/webservices/server_invoice.php
with
2 additions
and
8 deletions
htdocs/webservices/server_invoice.php
+
2
−
8
View file @
682f6f83
...
@@ -254,7 +254,7 @@ $server->register(
...
@@ -254,7 +254,7 @@ $server->register(
$server
->
register
(
$server
->
register
(
'createInvoiceFromOrder'
,
'createInvoiceFromOrder'
,
// Entry values
// Entry values
array
(
'authentication'
=>
'tns:authentication'
,
'id_order'
=>
'xsd:string'
,
'ref_order'
=>
'xsd:string'
,
'ref_ext_order'
=>
'xsd:string'
,
'id_invoice'
=>
'xsd:string'
,
'ref_invoice'
=>
'xsd:string'
,
'ref_ext_invoice'
=>
'xsd:string'
),
array
(
'authentication'
=>
'tns:authentication'
,
'id_order'
=>
'xsd:string'
,
'ref_order'
=>
'xsd:string'
,
'ref_ext_order'
=>
'xsd:string'
),
// Exit values
// Exit values
array
(
'result'
=>
'tns:result'
,
'id'
=>
'xsd:string'
,
'ref'
=>
'xsd:string'
,
'ref_ext'
=>
'xsd:string'
),
array
(
'result'
=>
'tns:result'
,
'id'
=>
'xsd:string'
,
'ref'
=>
'xsd:string'
,
'ref_ext'
=>
'xsd:string'
),
$ns
,
$ns
,
...
@@ -653,13 +653,9 @@ function createInvoice($authentication,$invoice)
...
@@ -653,13 +653,9 @@ function createInvoice($authentication,$invoice)
* @param string $id_order id of order to copy invoice from
* @param string $id_order id of order to copy invoice from
* @param string $ref_order ref of order to copy invoice from
* @param string $ref_order ref of order to copy invoice from
* @param string $ref_ext_order ref_ext of order to copy invoice from
* @param string $ref_ext_order ref_ext of order to copy invoice from
* @param string $id_invoice invoice id
* @param string $ref_invoice invoice ref
* @param string $ref_ext_invoice invoice ref_ext
* @return array Array result
* @return array Array result
*/
*/
function
createInvoiceFromOrder
(
$authentication
,
$id_order
=
''
,
$ref_order
=
''
,
$ref_ext_order
=
''
,
function
createInvoiceFromOrder
(
$authentication
,
$id_order
=
''
,
$ref_order
=
''
,
$ref_ext_order
=
''
)
$id_invoice
=
''
,
$ref_invoice
=
''
,
$ref_ext_invoice
=
''
)
{
{
global
$db
,
$conf
;
global
$db
,
$conf
;
...
@@ -680,8 +676,6 @@ function createInvoiceFromOrder($authentication,$id_order='', $ref_order='', $re
...
@@ -680,8 +676,6 @@ function createInvoiceFromOrder($authentication,$id_order='', $ref_order='', $re
// Check parameters
// Check parameters
if
(
empty
(
$id_order
)
&&
empty
(
$ref_order
)
&&
empty
(
$ref_ext_order
))
{
if
(
empty
(
$id_order
)
&&
empty
(
$ref_order
)
&&
empty
(
$ref_ext_order
))
{
$error
++
;
$errorcode
=
'KO'
;
$errorlabel
=
"order id or ref or ref_ext is mandatory."
;
$error
++
;
$errorcode
=
'KO'
;
$errorlabel
=
"order id or ref or ref_ext is mandatory."
;
}
else
if
(
empty
(
$id_invoice
)
&&
empty
(
$ref_invoice
)
&&
empty
(
$ref_ext_invoice
))
{
$error
++
;
$errorcode
=
'KO'
;
$errorlabel
=
"invoice id or ref or ref_ext is mandatory."
;
}
}
//////////////////////
//////////////////////
...
...
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