mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Clean invoice class from deprecated fields.
Enhance initAsSpeciment function to contains all kind of lines.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user