Skip to content
Snippets Groups Projects
Commit cfb94883 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add example to create an invoice

parent 0b8ecc3a
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,10 @@ $line1=new FactureLigne($db);
$line1->tva_tx=10.0;
$line1->remise_percent=0;
$line1->qty=1;
$obj->lines[]=$line1;
$line1->total_ht=100;
$line1->total_tva=10;
$line1->total_ttc=110;
$obj->lignes[]=$line1;
// Create order
$idobject=$obj->create($user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment