/[dolibarr]/dolibarr/htdocs/facture.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/facture.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.128 by eldy, Sun Oct 30 17:32:32 2005 UTC revision 1.129 by eldy, Thu Nov 3 23:24:13 2005 UTC
# Line 979  class Facture Line 979  class Facture
979              {              {
980                  $prod = new Product($this->db, $fk_product);                  $prod = new Product($this->db, $fk_product);
981                  $prod->fetch($fk_product);                  $prod->fetch($fk_product);
982                  $pu=$prod->price;                      $pu=$prod->price;
983                    $txtva=$prod->tva_tx;
984              }              }
985                          $_price = $pu;                          $_price = $pu;
986                          $subprice = $pu;                          $subprice = $pu;
# Line 1015  class Facture Line 1016  class Facture
1016                          }                          }
1017    
1018                          // Formatage des prix                          // Formatage des prix
1019                          $_price    = ereg_replace(',','.',$_price);                          $_price    = price2num($_price);
1020                          $subprice  = ereg_replace(',','.',$subprice);                          $subprice  = price2num($subprice);
1021    
1022                          $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facturedet ';                          $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facturedet ';
1023                          $sql.= ' (fk_facture, description, price, qty, tva_taux, fk_product, remise_percent, subprice, remise, date_start, date_end, fk_code_ventilation, rang)';                          $sql.= ' (fk_facture, description, price, qty, tva_taux, fk_product, remise_percent, subprice, remise, date_start, date_end, fk_code_ventilation, rang)';

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.129

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26