Doc
This commit is contained in:
parent
1001353500
commit
ec4a30897c
@ -69,7 +69,7 @@ $db->begin();
|
|||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
|
||||||
|
|
||||||
// Create order object
|
// Create invoice object
|
||||||
$obj = new Facture($db);
|
$obj = new Facture($db);
|
||||||
|
|
||||||
$obj->ref = 'ABCDE';
|
$obj->ref = 'ABCDE';
|
||||||
@ -87,7 +87,7 @@ $line1->total_tva=10;
|
|||||||
$line1->total_ttc=110;
|
$line1->total_ttc=110;
|
||||||
$obj->lignes[]=$line1;
|
$obj->lignes[]=$line1;
|
||||||
|
|
||||||
// Create order
|
// Create invoice
|
||||||
$idobject=$obj->create($user);
|
$idobject=$obj->create($user);
|
||||||
if ($idobject > 0)
|
if ($idobject > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user