154 |
$client_facture->fetch($ligne->client_facture_id); |
$client_facture->fetch($ligne->client_facture_id); |
155 |
|
|
156 |
print '<td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>'; |
print '<td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>'; |
157 |
print '</table>'; |
|
158 |
|
$fac = new Facture($db); |
159 |
|
$fac->fetch($facs[$facnum]); |
160 |
|
|
161 |
|
print '<tr><td>Facture</td><td colspan="3">'.$fac->ref.'</td></tr>'; |
162 |
|
|
163 |
|
print "</table>\n"; |
164 |
} |
} |
165 |
/* |
/* |
166 |
* |
* |
168 |
* |
* |
169 |
*/ |
*/ |
170 |
|
|
|
$fac = new Facture($db); |
|
|
$fac->fetch($facs[$facnum]); |
|
|
|
|
171 |
$file = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf"; |
$file = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf"; |
172 |
$file_img = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf.png"; |
$file_img = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf.png"; |
173 |
|
|
174 |
if (file_exists($file_img)) |
if (file_exists($file_img)) |
175 |
{ |
{ |
176 |
print '<br><img src="./image.php?file='.$file_img.'"></img>'; |
print '<br><img src="../showfacture.php?facref='.$fac->ref.'"></img>'; |
177 |
} |
} |
178 |
else |
else |
179 |
{ |
{ |
183 |
|
|
184 |
if (file_exists($file_img)) |
if (file_exists($file_img)) |
185 |
{ |
{ |
186 |
print '<br><img src="./image.php?file='.$file_img.'"></img>'; |
print '<br><img src="../showfacture.php?facref='.$fac->ref.'"></img>'; |
187 |
} |
} |
188 |
else |
else |
189 |
{ |
{ |