Clean invoice class from deprecated fields.

Enhance initAsSpeciment function to contains all kind of lines.
This commit is contained in:
Laurent Destailleur
2011-11-23 13:39:55 +01:00
parent 3fd2a621f0
commit 31f198fa79
2 changed files with 103 additions and 79 deletions

View File

@@ -55,7 +55,6 @@ $user->getrights();
print "***** ".$script_file." (".$version.") *****\n";
// Start of transaction
$db->begin();
@@ -63,6 +62,7 @@ require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
// Create invoice object
$obj = new Facture($db);
//$obj->initAsSpecimen();
$obj->ref = 'ABCDE';
$obj->socid = 4; // Put id of third party (rowid in llx_societe table)