Skip to content
Snippets Groups Projects
Commit 4085447a authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 562c100d 376a5f6b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class DateField extends Field
{
if (isset($_POST[$this->name])) {
$this->value = $_POST[$this->name];
if(count($this->value) < 4) {
if(strlen($this->value) < 4) {
$this->value = null;
}
} else {
......
......@@ -9,6 +9,29 @@ class LigneFacture extends Objet
protected $produit;
protected $quantite;
protected $remise;
public $_specialFields = array(
"ordonnance" => array(
"t" => "ForeignField",
"i" => 8
),
"produit" => array(
"t" => "ForeignField",
"i" => 10
),
"prestation" => array(
"t" => "ForeignField",
"i" => 9
),
"quantite" => array(
"i" => 11
),
"facture" => array(
"t" => "ForeignField",
"i" => 6
),
"remise" => array(
"i" => 7
));
public static function dbName() {
return "lignefacture";
......
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