E-INVOICE: add code quantity

This commit is contained in:
sparkyx 2025-09-11 11:56:41 +02:00
parent 3209def90f
commit d776c7bf98
6 changed files with 39 additions and 2 deletions

View file

@ -289,4 +289,17 @@ class Card_PropertyTest extends TestCase
$this->assertTrue(!empty($fiche->get_attribute(ATTR_DEF_ACCOUNT)),' accounting not computed');
}
/**
* @testdox test the function get_attribute
*/
public function testGet_attribute()
{
$g_connection=Dossier::connect();
$fiche_goods = new \Fiche($g_connection);
$fiche_goods->get_by_qcode("MARCHA");
$id=$fiche_goods->id;
$this->assertTrue(\Card_Property::get_attribute($g_connection, $id, ATTR_DEF_QUICKCODE)=="MARCHA","Quick code not retrieved");
$this->assertTrue(\Card_Property::get_attribute($g_connection, $id, -5)==false,"Inexistant property not detected");
}
}

View file

@ -849,4 +849,6 @@ where
$this->g_connection->exec_sql ('update fiche set f_enable=$1 where f_id = $2 or f_id=$3',[1,34,35]);
}
}