Ajout du taux de tva dans la fonction addline
This commit is contained in:
parent
81a5daec26
commit
193d228ceb
@ -274,9 +274,9 @@ class Facture {
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function addline($facid, $desc, $pu, $qty)
|
||||
Function addline($facid, $desc, $pu, $qty, $txtva)
|
||||
{
|
||||
$sql = "INSERT INTO llx_facturedet (fk_facture,description,price,qty) VALUES ($facid, '$desc', $pu, $qty) ;";
|
||||
$sql = "INSERT INTO llx_facturedet (fk_facture,description,price,qty,tva_taux) VALUES ($facid, '$desc', $pu, $qty, $txtva) ;";
|
||||
$result = $this->db->query( $sql);
|
||||
|
||||
$this->updateprice($facid);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user