| 1 |
<?php |
<?php |
| 2 |
// $Id: storminvoice.theme.inc,v 1.2.4.1 2008/07/28 14:24:43 robertogerola Exp $ |
// $Id: storminvoice.theme.inc,v 1.2.4.2 2008/07/29 09:50:27 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 52 |
'data' => ' ', |
'data' => ' ', |
| 53 |
), |
), |
| 54 |
array( |
array( |
| 55 |
'data' => t('Amount'), |
'data' => storm_t('Amount', 'invoice'), |
| 56 |
'style' => 'text-align: center;', |
'style' => 'text-align: center;', |
| 57 |
), |
), |
| 58 |
array( |
array( |
| 59 |
'data' => t('VAT'), |
'data' => storm_t('Tax', 'invoice'), |
| 60 |
'style' => 'text-align: center;', |
'style' => 'text-align: center;', |
| 61 |
), |
), |
| 62 |
array( |
array( |
| 63 |
'data' => t('Total'), |
'data' => storm_t('Total', 'invoice'), |
| 64 |
'style' => 'text-align: center;', |
'style' => 'text-align: center;', |
| 65 |
), |
), |
| 66 |
); |
); |
| 68 |
$rows = array(); |
$rows = array(); |
| 69 |
$rows[] = array( |
$rows[] = array( |
| 70 |
array( |
array( |
| 71 |
'data' => t('Total to pay'), |
'data' => storm_t('Total to pay', 'invoice'), |
| 72 |
'style' => 'font-weight: bold;', |
'style' => 'font-weight: bold;', |
| 73 |
), |
), |
| 74 |
array( |
array( |
| 76 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 77 |
), |
), |
| 78 |
array( |
array( |
| 79 |
'data' => sprintf('%.2f', $totals_topay->vat), |
'data' => sprintf('%.2f', $totals_topay->tax), |
| 80 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 81 |
), |
), |
| 82 |
array( |
array( |
| 86 |
); |
); |
| 87 |
$rows[] = array( |
$rows[] = array( |
| 88 |
array( |
array( |
| 89 |
'data' => t('Total paid'), |
'data' => storm_t('Total paid', 'invoice'), |
| 90 |
'style' => 'font-weight: bold;', |
'style' => 'font-weight: bold;', |
| 91 |
), |
), |
| 92 |
array( |
array( |
| 94 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 95 |
), |
), |
| 96 |
array( |
array( |
| 97 |
'data' => sprintf('%.2f', $totals_paid->vat), |
'data' => sprintf('%.2f', $totals_paid->tax), |
| 98 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 99 |
), |
), |
| 100 |
array( |
array( |
| 104 |
); |
); |
| 105 |
$rows[] = array( |
$rows[] = array( |
| 106 |
array( |
array( |
| 107 |
'data' => t('Total'), |
'data' => storm_t('Total', 'invoice'), |
| 108 |
'style' => 'font-weight: bold;', |
'style' => 'font-weight: bold;', |
| 109 |
), |
), |
| 110 |
array( |
array( |
| 112 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 113 |
), |
), |
| 114 |
array( |
array( |
| 115 |
'data' => sprintf('%.2f', $totals->vat), |
'data' => sprintf('%.2f', $totals->tax), |
| 116 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 117 |
), |
), |
| 118 |
array( |
array( |
| 139 |
$node->content['storminvoice']['number'] = array( |
$node->content['storminvoice']['number'] = array( |
| 140 |
'#prefix' => '<div class="number">', |
'#prefix' => '<div class="number">', |
| 141 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 142 |
'#value' => theme('storm_view_item', t('Number'), $node->number), |
'#value' => theme('storm_view_item', storm_t('Number', 'invoice'), $node->number), |
| 143 |
'#weight' => $w++, |
'#weight' => $w++, |
| 144 |
); |
); |
| 145 |
|
|
| 146 |
$node->content['storminvoice']['description'] = array( |
$node->content['storminvoice']['description'] = array( |
| 147 |
'#prefix' => '<div class="invoicedescription">', |
'#prefix' => '<div class="invoicedescription">', |
| 148 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 149 |
'#value' => theme('storm_view_item', t('Description'), $node->title), |
'#value' => theme('storm_view_item', storm_t('Description', 'invoice'), $node->title), |
| 150 |
'#weight' => $w++, |
'#weight' => $w++, |
| 151 |
); |
); |
| 152 |
|
|
| 153 |
$node->content['storminvoice']['organization'] = array( |
$node->content['storminvoice']['organization'] = array( |
| 154 |
'#prefix' => '<div class="organization">', |
'#prefix' => '<div class="organization">', |
| 155 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 156 |
'#value' => theme('storm_view_item', t('Organization'), l($node->organization_title, 'node/'. $node->organization_nid)), |
'#value' => theme('storm_view_item', storm_t('Organization', 'invoice'), l($node->organization_title, 'node/'. $node->organization_nid)), |
| 157 |
'#weight' => $w++, |
'#weight' => $w++, |
| 158 |
); |
); |
| 159 |
|
|
| 160 |
$node->content['storminvoice']['project'] = array( |
$node->content['storminvoice']['project'] = array( |
| 161 |
'#prefix' => '<div class="project">', |
'#prefix' => '<div class="project">', |
| 162 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 163 |
'#value' => theme('storm_view_item', t('Project'), l($node->project_title, 'node/'. $node->project_nid)), |
'#value' => theme('storm_view_item', storm_t('Project', 'invoice'), l($node->project_title, 'node/'. $node->project_nid)), |
| 164 |
'#weight' => $w++, |
'#weight' => $w++, |
| 165 |
); |
); |
| 166 |
|
|
| 167 |
$node->content['storminvoice']['reference'] = array( |
$node->content['storminvoice']['reference'] = array( |
| 168 |
'#prefix' => '<div class="reference">', |
'#prefix' => '<div class="reference">', |
| 169 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 170 |
'#value' => theme('storm_view_item', t('Reference'), $node->reference), |
'#value' => theme('storm_view_item', storm_t('Reference', 'invoice'), $node->reference), |
| 171 |
'#weight' => $w++, |
'#weight' => $w++, |
| 172 |
); |
); |
| 173 |
|
|
| 174 |
$node->content['storminvoice']['amount'] = array( |
$node->content['storminvoice']['amount'] = array( |
| 175 |
'#prefix' => '<div class="amount">', |
'#prefix' => '<div class="amount">', |
| 176 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 177 |
'#value' => theme('storm_view_item', t('Amount'), sprintf('%.2f', $node->amount)), |
'#value' => theme('storm_view_item', storm_t('Amount', 'invoice'), sprintf('%.2f', $node->amount)), |
| 178 |
'#weight' => $w++, |
'#weight' => $w++, |
| 179 |
); |
); |
| 180 |
|
|
| 181 |
$node->content['storminvoice']['vat'] = array( |
$node->content['storminvoice']['tax'] = array( |
| 182 |
'#prefix' => '<div class="vat">', |
'#prefix' => '<div class="tax">', |
| 183 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 184 |
'#value' => theme('storm_view_item', t('VAT'), sprintf('%.2f', $node->vat)), |
'#value' => theme('storm_view_item', storm_t('Tax', 'invoice'), sprintf('%.2f', $node->tax)), |
| 185 |
'#weight' => $w++, |
'#weight' => $w++, |
| 186 |
); |
); |
| 187 |
|
|
| 188 |
$node->content['storminvoice']['total'] = array( |
$node->content['storminvoice']['total'] = array( |
| 189 |
'#prefix' => '<div class="total">', |
'#prefix' => '<div class="total">', |
| 190 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 191 |
'#value' => theme('storm_view_item', t('Total'), sprintf('%.2f', $node->total)), |
'#value' => theme('storm_view_item', storm_t('Total', 'invoice'), sprintf('%.2f', $node->total)), |
| 192 |
'#weight' => $w++, |
'#weight' => $w++, |
| 193 |
); |
); |
| 194 |
|
|
| 195 |
$node->content['storminvoice']['requestdate'] = array( |
$node->content['storminvoice']['requestdate'] = array( |
| 196 |
'#prefix' => '<div class="requestdate">', |
'#prefix' => '<div class="requestdate">', |
| 197 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 198 |
'#value' => theme('storm_view_item', t('Request date'), format_date($node->requestdate, 'custom', 'Y-m-d')), |
'#value' => theme('storm_view_item', storm_t('Request date', 'invoice'), format_date($node->requestdate, 'custom', 'Y-m-d')), |
| 199 |
'#weight' => $w++, |
'#weight' => $w++, |
| 200 |
); |
); |
| 201 |
|
|
| 202 |
$node->content['storminvoice']['duedate'] = array( |
$node->content['storminvoice']['duedate'] = array( |
| 203 |
'#prefix' => '<div class="duedate">', |
'#prefix' => '<div class="duedate">', |
| 204 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 205 |
'#value' => theme('storm_view_item', t('Due date'), format_date($node->duedate, 'custom', 'Y-m-d')), |
'#value' => theme('storm_view_item', storm_t('Due date', 'invoice'), format_date($node->duedate, 'custom', 'Y-m-d')), |
| 206 |
'#weight' => $w++, |
'#weight' => $w++, |
| 207 |
); |
); |
| 208 |
|
|
| 209 |
$node->content['storminvoice']['paymentdate'] = array( |
$node->content['storminvoice']['paymentdate'] = array( |
| 210 |
'#prefix' => '<div class="paymentdate">', |
'#prefix' => '<div class="paymentdate">', |
| 211 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 212 |
'#value' => theme('storm_view_item', t('Payment date'), $node->paymentdate? format_date($node->paymentdate, 'custom', 'Y-m-d') : ''), |
'#value' => theme('storm_view_item', storm_t('Payment date', 'invoice'), $node->paymentdate? format_date($node->paymentdate, 'custom', 'Y-m-d') : ''), |
| 213 |
'#weight' => $w++, |
'#weight' => $w++, |
| 214 |
); |
); |
| 215 |
|
|
| 223 |
$node->content['storminvoice']['status'] = array( |
$node->content['storminvoice']['status'] = array( |
| 224 |
'#prefix' => '<div class="invoicestatus">', |
'#prefix' => '<div class="invoicestatus">', |
| 225 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 226 |
'#value' => theme('storm_view_item', t('Status'), $status), |
'#value' => theme('storm_view_item', storm_t('Status', 'invoice'), $status), |
| 227 |
'#weight' => $w++, |
'#weight' => $w++, |
| 228 |
); |
); |
| 229 |
|
|
| 278 |
$project = node_load($node->project_nid); |
$project = node_load($node->project_nid); |
| 279 |
|
|
| 280 |
$o = ''; |
$o = ''; |
| 281 |
$title = t('Invoice', array(), $language); |
$title = storm_t('Invoice', 'invoice', array(), $language); |
| 282 |
if ($language1) $title .= '<br />'. t('Invoice', array(), $language1); |
if ($language1) $title .= '<br />'. storm_t('Invoice', 'invoice', array(), $language1); |
| 283 |
|
|
| 284 |
$o .= '<div>'; |
$o .= '<div>'; |
| 285 |
$o .= '<div id="storminvoice_billto"><table>'; |
$o .= '<div id="storminvoice_billto"><table>'; |
| 286 |
$o .= '<tr><td class="storminvoice_billto_title">'; |
$o .= '<tr><td class="storminvoice_billto_title">'; |
| 287 |
$o .= t('Bill To :', array(), $language); |
$o .= storm_t('Bill To :', 'invoice', array(), $language); |
| 288 |
if ($language1) $o .= '<br />'. t('Bill To :', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Bill To :', 'invoice', array(), $language1); |
| 289 |
$o .= '</td></tr>'; |
$o .= '</td></tr>'; |
| 290 |
$o .= '<tr><td>'; |
$o .= '<tr><td>'; |
| 291 |
$o .= '<strong>'. $organization->fullname .'</strong>'; |
$o .= '<strong>'. $organization->fullname .'</strong>'; |
| 296 |
$o .= '<br />'; |
$o .= '<br />'; |
| 297 |
$o .= $organization->provstate .' '. $organization->zip .' '. $countries[$organization->country]; |
$o .= $organization->provstate .' '. $organization->zip .' '. $countries[$organization->country]; |
| 298 |
$o .= '<br />'; |
$o .= '<br />'; |
| 299 |
if ($organization->vatid) { |
if ($organization->taxid) { |
| 300 |
$o .= t('VAT ID', array(), $language); |
$o .= storm_t('Tax ID', 'invoice', array(), $language); |
| 301 |
if ($language1) $o .= ' / '. t('VAT ID', array(), $language1); |
if ($language1) $o .= ' / '. storm_t('Tax ID', 'invoice', array(), $language1); |
| 302 |
$o .= ' : '. $organization->vatid; |
$o .= ' : '. $organization->taxid; |
| 303 |
} |
} |
| 304 |
$o .= '</td></tr>'; |
$o .= '</td></tr>'; |
| 305 |
$o .= '</table></div>'; |
$o .= '</table></div>'; |
| 307 |
$o .= '<div id="storminvoice_details"><table>'; |
$o .= '<div id="storminvoice_details"><table>'; |
| 308 |
$o .= '<tr>'; |
$o .= '<tr>'; |
| 309 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 310 |
$o .= t('Invoice#', array(), $language); |
$o .= storm_t('Invoice#', 'invoice', array(), $language); |
| 311 |
if ($language1) $o .= '<br />'. t('Invoice#', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Invoice#', 'invoice', array(), $language1); |
| 312 |
$o .='</td>'; |
$o .='</td>'; |
| 313 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 314 |
$o .= t('Currency', array(), $language); |
$o .= storm_t('Currency', 'invoice', array(), $language); |
| 315 |
if ($language1) $o .= '<br />'. t('Currency', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Currency', 'invoice', array(), $language1); |
| 316 |
$o .= '</td>'; |
$o .= '</td>'; |
| 317 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 318 |
$o .= t('Date', array(), $language); |
$o .= storm_t('Date', 'invoice', array(), $language); |
| 319 |
if ($language1) $o .= '<br />'. t('Date', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Date', 'invoice', array(), $language1); |
| 320 |
$o .= '</td>'; |
$o .= '</td>'; |
| 321 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 322 |
$o .= t('Reference', array(), $language); |
$o .= storm_t('Reference', 'invoice', array(), $language); |
| 323 |
if ($language1) $o .= '<br />'. t('Riferimento', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Reference', 'invoice', array(), $language1); |
| 324 |
$o .= '</td>'; |
$o .= '</td>'; |
| 325 |
$o .= '</tr>'; |
$o .= '</tr>'; |
| 326 |
$o .= '<tr>'; |
$o .= '<tr>'; |
| 327 |
$o .= '<td>'. $node->number .'</td>'; |
$o .= '<td>'. $node->number .'</td>'; |
| 328 |
$o .= '<td>'. t($mycurrency, array(), $language) .'</td>'; |
$o .= '<td>'. storm_t($mycurrency, 'invoice', array(), $language) .'</td>'; |
| 329 |
$o .= '<td>'. format_date($node->requestdate, 'custom', 'Y-m-d') .'</td>'; |
$o .= '<td>'. format_date($node->requestdate, 'custom', 'Y-m-d') .'</td>'; |
| 330 |
$o .= '<td>'. $node->reference .'</td>'; |
$o .= '<td>'. $node->reference .'</td>'; |
| 331 |
$o .= '</tr>'; |
$o .= '</tr>'; |
| 332 |
$o .= '<tr>'; |
$o .= '<tr>'; |
| 333 |
$o .= '<td class="storminvoice_details_title" colspan="2">'; |
$o .= '<td class="storminvoice_details_title" colspan="2">'; |
| 334 |
$o .= t('Due total', array(), $language); |
$o .= storm_t('Due total', 'invoice', array(), $language); |
| 335 |
if ($language1) $o .= '<br />'. t('Due total', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Due total', array(), $language1); |
| 336 |
$o .= '</td>'; |
$o .= '</td>'; |
| 337 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 338 |
$o .= t('Due date', array(), $language); |
$o .= storm_t('Due date', 'invoice', array(), $language); |
| 339 |
if ($language1) $o .= '<br />'. t('Due date', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Due date', array(), $language1); |
| 340 |
$o .= '</td>'; |
$o .= '</td>'; |
| 341 |
$o .= '<td class="storminvoice_details_title">'; |
$o .= '<td class="storminvoice_details_title">'; |
| 342 |
$o .= t('Terms', array(), $language); |
$o .= storm_t('Terms', 'invoice', array(), $language); |
| 343 |
if ($language1) $o .= '<br />'. t('Terms', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Terms', 'invoice', array(), $language1); |
| 344 |
$o .= '</td>'; |
$o .= '</td>'; |
| 345 |
$o .= '</tr>'; |
$o .= '</tr>'; |
| 346 |
$o .= '<tr>'; |
$o .= '<tr>'; |
| 357 |
$o .= '</table></div>'; |
$o .= '</table></div>'; |
| 358 |
$o .= '</div>'; |
$o .= '</div>'; |
| 359 |
|
|
| 360 |
$description = t('Description', array(), $language); |
$description = storm_t('Description', 'invoice', array(), $language); |
| 361 |
if ($language1) $description .= '<br />'. t('Description', array(), $language1); |
if ($language1) $description .= '<br />'. storm_t('Description', 'invoice', array(), $language1); |
| 362 |
|
|
| 363 |
$amount = t('Amount', array(), $language); |
$amount = storm_t('Amount', 'invoice', array(), $language); |
| 364 |
if ($language1) $amount .= '<br />'. t('Amount', array(), $language1); |
if ($language1) $amount .= '<br />'. storm_t('Amount', 'invoice', array(), $language1); |
| 365 |
|
|
| 366 |
$vatpercent = t('VAT %', array(), $language); |
$taxpercent = storm_t('Tax %', 'invoice', array(), $language); |
| 367 |
if ($language1) $vatpercent .= '<br />'. t('VAT %', array(), $language1); |
if ($language1) $taxpercent .= '<br />'. storm_t('Tax %', 'invoice', array(), $language1); |
| 368 |
|
|
| 369 |
$vat = t('VAT', array(), $language); |
$tax = storm_t('Tax', 'invoice', array(), $language); |
| 370 |
if ($language1) $vat .= '<br />'. t('VAT', array(), $language1); |
if ($language1) $tax .= '<br />'. storm_t('Tax', 'invoice', array(), $language1); |
| 371 |
|
|
| 372 |
$total = t('Total', array(), $language); |
$total = storm_t('Total', 'invoice', array(), $language); |
| 373 |
if ($language1) $total .= '<br />'. t('Total', array(), $language1); |
if ($language1) $total .= '<br />'. storm_t('Total', 'invoice', array(), $language1); |
| 374 |
|
|
| 375 |
$header = array( |
$header = array( |
| 376 |
array( |
array( |
| 380 |
'data' => $amount, |
'data' => $amount, |
| 381 |
), |
), |
| 382 |
array( |
array( |
| 383 |
'data' => $vatpercent, |
'data' => $taxpercent, |
| 384 |
), |
), |
| 385 |
array( |
array( |
| 386 |
'data' => $vat, |
'data' => $tax, |
| 387 |
), |
), |
| 388 |
array( |
array( |
| 389 |
'data' => $total, |
'data' => $total, |
| 401 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 402 |
), |
), |
| 403 |
array( |
array( |
| 404 |
'data' => $i->vatpercent, |
'data' => $i->taxpercent, |
| 405 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 406 |
), |
), |
| 407 |
array( |
array( |
| 408 |
'data' => sprintf('%.2f', $i->vat), |
'data' => sprintf('%.2f', $i->tax), |
| 409 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 410 |
), |
), |
| 411 |
array( |
array( |
| 415 |
); |
); |
| 416 |
} |
} |
| 417 |
|
|
| 418 |
$total = t('Total', array(), $language); |
$total = storm_t('Total', 'invoice', array(), $language); |
| 419 |
if ($language1) $total .= ' / '. t('Total', array(), $language1); |
if ($language1) $total .= ' / '. storm_t('Total', 'invoice', array(), $language1); |
| 420 |
|
|
| 421 |
$rows[] = array( |
$rows[] = array( |
| 422 |
array( |
array( |
| 432 |
'style' => 'text-align: center;', |
'style' => 'text-align: center;', |
| 433 |
), |
), |
| 434 |
array( |
array( |
| 435 |
'data' => sprintf('%.2f', $node->vat), |
'data' => sprintf('%.2f', $node->tax), |
| 436 |
'style' => 'text-align: right;', |
'style' => 'text-align: right;', |
| 437 |
), |
), |
| 438 |
array( |
array( |
| 443 |
|
|
| 444 |
$o .= '<div id="storminvoice_items">'. theme('table', $header, $rows) .'</div>'; |
$o .= '<div id="storminvoice_items">'. theme('table', $header, $rows) .'</div>'; |
| 445 |
|
|
| 446 |
if ($node->vatexempt) { |
if ($node->taxexempt && $language1=='it') { |
| 447 |
$o .= '<div id="storminvoice_vat_exempt">'; |
$o .= '<div id="storminvoice_tax_exempt">'; |
| 448 |
$o .= t('Vat exempt art. 7', array(), $language); |
$o .= storm_t('Tax exempt art. 7', 'invoice', array(), $language); |
| 449 |
if ($language1) $o .= '<br />'. t('Vat exempt art. 7', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Tax exempt art. 7', 'invoice', array(), $language1); |
| 450 |
$o .= '</div>'; |
$o .= '</div>'; |
| 451 |
} |
} |
| 452 |
|
|
| 453 |
$o .= '<div id="storminvoice_payment_modes"><table>'; |
$o .= '<div id="storminvoice_payment_modes"><table>'; |
| 454 |
$o .= '<tr><td class="storminvoice_payment_title">'; |
$o .= '<tr><td class="storminvoice_payment_title">'; |
| 455 |
$o .= t('Payment', array(), $language); |
$o .= storm_t('Payment', 'invoice', array(), $language); |
| 456 |
if ($language1) $o .= '<br />'. t('Payment', array(), $language1); |
if ($language1) $o .= '<br />'. storm_t('Payment', 'invoice', array(), $language1); |
| 457 |
$o .= '</td></tr>'; |
$o .= '</td></tr>'; |
| 458 |
$o .= '<tr><td>'; |
$o .= '<tr><td>'; |
| 459 |
$o .= t(variable_get('storminvoice_payment_modes', ''), array(), $language); |
$o .= t(variable_get('storminvoice_payment_modes', ''), array(), $language); |
| 462 |
|
|
| 463 |
if ($status=='paid') { |
if ($status=='paid') { |
| 464 |
$o .= '<div id="paid">'; |
$o .= '<div id="paid">'; |
| 465 |
$o .= '<h2>'. t('Paid in full', array(), $language) .'</h2>'; |
$o .= '<h2>'. storm_t('Paid in full', 'invoice', array(), $language) .'</h2>'; |
| 466 |
if ($language1) $o .= '<h2>'. t('Paid in full', array(), $language1) .'</h2>'; |
if ($language1) $o .= '<h2>'. storm_t('Paid in full', 'invoice', array(), $language1) .'</h2>'; |
| 467 |
$o .= '</div>'; |
$o .= '</div>'; |
| 468 |
} |
} |
| 469 |
|
|