2
0
forked from Wavyzz/dolibarr

New: Add object_hour as substitution tag for opendocument generation.

This commit is contained in:
Laurent Destailleur
2013-06-08 18:12:32 +02:00
parent 5d1dfdc7c1
commit 5a77828e62
4 changed files with 21 additions and 14 deletions

View File

@@ -102,6 +102,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
'object_ref'=>$object->ref,
'object_ref_ext'=>$object->ref_ext,
'object_ref_customer'=>$object->ref_client,
'object_hour'=>dol_print_date($object->date,'hour'),
'object_date'=>dol_print_date($object->date,'day'),
'object_date_delivery'=>dol_print_date($object->date_livraison,'dayhour'),
'object_date_creation'=>dol_print_date($object->date_creation,'day'),
@@ -544,7 +545,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
$this->error=$e->getMessage();
return -1;
}
}
}
if (! empty($conf->global->MAIN_UMASK))
@chmod($file, octdec($conf->global->MAIN_UMASK));