TVA-CODE small bug
This commit is contained in:
parent
2e9b11932d
commit
2fa3bc8823
3 changed files with 4 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ class Acc_Ledger_Sale extends Acc_Ledger {
|
|||
if ($g_parameter->MY_TVA_USE == 'Y') {
|
||||
$tva_rate = Acc_Tva::build($this->db,${'e_march' . $i . '_tva_id'});
|
||||
$tva_rate->load();
|
||||
if ($tva_rate === null)
|
||||
if ($tva_rate->tva_id === -1 )
|
||||
throw new Exception(_('La fiche ') . ${'e_march' . $i} . _('a un code tva invalide') . ' [' . ${'e_march' . $i . '_tva_id'} . ']', 13);
|
||||
|
||||
$tva_rate->load();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue