Merged revisions 3001-3012 via svnmerge from

file:///home/developper/svn/phpcompta/branches/rel500

........
  r3007 | danydb | 2010-04-12 23:31:21 +0200 (Mon, 12 Apr 2010) | 4 lines
  
  
  Use ITva_Select in class_acc_legder_purchase.php
........
  r3008 | danydb | 2010-04-13 00:58:43 +0200 (Tue, 13 Apr 2010) | 8 lines
  
  
  TVA Ipopup
  ==========
  
  Add a new widget which show the tva in a popup and let it select the code you need
  it will replace the obsolete TVA_Select
........
  r3009 | danydb | 2010-04-13 20:15:59 +0200 (Tue, 13 Apr 2010) | 4 lines
  
  
  Todo : add the todo for the use of the new widget Tva_Popup
........
  r3010 | danydb | 2010-04-14 18:58:56 +0200 (Wed, 14 Apr 2010) | 1 line
  
   Add a new function in class periode : last_day
........
  r3011 | danydb | 2010-04-14 19:00:09 +0200 (Wed, 14 Apr 2010) | 1 line
  
   Add a new function in class periode : last_day correct typo
........
This commit is contained in:
Dany De Bontridder 2010-04-14 22:15:03 +00:00
parent 4714027677
commit 9c2e1427c2
11 changed files with 225 additions and 23 deletions

View file

@ -50,10 +50,18 @@ $cn=new Database(dossier::id());
$User=new User($cn);
$User->Check();
/**
*@todo check with my_own if the vat must be computed instead of
*a special value
*/
// Retrieve the rate of vat, it $t == -1 it means no VAT
if ( $t != -1 ){
$tva_rate=new Acc_Tva($cn);
$tva_rate->set_parameter('id',$t);
/**
*@todo if the tva_rate->load failed we have to return an
*error message "invalid tva"
*/
$tva_rate->load();
}