/[dolibarr]/dolibarr/htdocs/compta/bank/rappro.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/bank/rappro.php

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

revision 1.30 by eldy, Mon Oct 17 13:24:51 2005 UTC revision 1.31 by eldy, Thu Nov 10 21:04:46 2005 UTC
# Line 171  if ($resql) Line 171  if ($resql)
171          dolibarr_print_error($db);          dolibarr_print_error($db);
172      }      }
173    
174      print '<table class="noborder" width="100%">';      print '<table class="border" width="100%">';
175      print "<tr class=\"liste_titre\">\n";      print "<tr class=\"liste_titre\">\n";
176      print '<td>'.$langs->trans("Date").'</td>';      print '<td align="center">'.$langs->trans("DateOperationShort").'</td>';
177      print '<td>'.$langs->trans("DateValue").'</td>';      print '<td align="center">'.$langs->trans("DateValueShort").'</td>';
178      print '<td>'.$langs->trans("Type").'</td>';      print '<td>'.$langs->trans("Type").'</td>';
179      print '<td>'.$langs->trans("Description").'</td>';      print '<td>'.$langs->trans("Description").'</td>';
180      print '<td align="right">'.$langs->trans("Debit").'</td>';      print '<td align="right" width="60" nowrap>'.$langs->trans("Debit").'</td>';
181      print '<td align="right">'.$langs->trans("Credit").'</td>';      print '<td align="right" width="60" nowrap>'.$langs->trans("Credit").'</td>';
182      print '<td align="center" width="60">'.$langs->trans("Action").'</td>';      print '<td align="center" width="40">'.$langs->trans("Action").'</td>';
183      print '<td align="center" width="100" colspan="2">'.$langs->trans("AccountStatement").' (Ex: YYYYMM)</td>';      print '<td align="center">'.$langs->trans("AccountStatement").'<br>(Ex: YYYYMM)</td>';
184      print "</tr>\n";      print "</tr>\n";
185    
186    
# Line 196  if ($resql) Line 196  if ($resql)
196          print "<input type=\"hidden\" name=\"account\" value=\"".$_GET["account"]."\">";          print "<input type=\"hidden\" name=\"account\" value=\"".$_GET["account"]."\">";
197          print "<input type=\"hidden\" name=\"rowid\" value=\"".$objp->rowid."\">";          print "<input type=\"hidden\" name=\"rowid\" value=\"".$objp->rowid."\">";
198    
199          print '<td nowrap>'.dolibarr_print_date($objp->do).'</td>';          print '<td align="center" nowrap="nowrap">'.dolibarr_print_date($objp->do,"%d/%m/%Y").'</td>';
200          print '<td nowrap>'.dolibarr_print_date($objp->dv).'</td>';          print '<td align="center" nowrap="nowrap">'.dolibarr_print_date($objp->dv,"%d/%m/%Y").'</td>';
201          print '<td nowrap>'.$objp->type.($objp->num_chq?' '.$objp->num_chq:'').'</td>';          print '<td nowrap="nowrap">'.$objp->type.($objp->num_chq?' '.$objp->num_chq:'').'</td>';
202          print '<td><a href="ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'">'.$objp->label.'</a>';          print '<td valign="center"><a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'">'.$objp->label.'</a>';
203            
204          /*          /*
205           * Ajout les liens           * Ajout les liens (societe, company...)
206           */           */
207            $newline=1;
208          $links = $acct->get_url($objp->rowid);          $links = $acct->get_url($objp->rowid);
209          foreach($links as $key=>$val)          foreach($links as $key=>$val)
210          {          {
211              print ' - ';              if (! $newline) print ' - ';
212              print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';              else print '<br>';
213              // if ($links[$key]['type']=='payment') { print img_object($langs->trans('ShowPayment'),'payment').' '; }              if ($links[$key]['type']=='payment') {
214              // if ($links[$key]['type']=='company') { print img_object($langs->trans('ShowCustomer'),'company').' '; }                  print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
215              print $links[$key]['label'].'</a>';                  print img_object($langs->trans('ShowPayment'),'payment').' ';
216                    print $langs->trans("Payment");
217                    print '</a>';
218                    $newline=0;
219                }
220                elseif ($links[$key]['type']=='company') {
221                    print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
222                    print img_object($langs->trans('ShowCustomer'),'company').' ';
223                    print dolibarr_trunc($links[$key]['label'],24);
224                    print '</a>';
225                    $newline=0;
226                }
227                else {
228                    print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
229                    print $links[$key]['label'];
230                    print '</a>';
231                    $newline=0;
232                }
233          }          }
234          print '</td>';          print '</td>';
235    
# Line 226  if ($resql) Line 245  if ($resql)
245          if ($objp->rappro)          if ($objp->rappro)
246          {          {
247              // Si ligne déjà rapprochée, on affiche relevé.              // Si ligne déjà rapprochée, on affiche relevé.
248              print "<td align=\"center\"><a href=\"releve.php?num=$objp->num_releve&amp;account=$acct->id\">$objp->num_releve</a></td>";              print "<td align=\"center\" nowrap=\"nowrap\"><a href=\"releve.php?num=$objp->num_releve&amp;account=$acct->id\">$objp->num_releve</a></td>";
249          }          }
250          else          else
251          {          {
252              // Si pas encore rapprochée              // Si pas encore rapprochée
253              if ($user->rights->banque->modifier)              if ($user->rights->banque->modifier)
254              {              {
255                  print '<td align="center" width="30">';                  print '<td align="center" width="30" nowrap="nowrap">';
256    
257                  print '<a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'&amp;orig_account='.$acct->id.'">';                  print '<a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'&amp;orig_account='.$acct->id.'">';
258                  print img_edit();                  print img_edit();
259                  print '</a>&nbsp; &nbsp;';                  print '</a>&nbsp; ';
260    
261                  if ($objp->do <= mktime() ) {                  if ($objp->do <= mktime() ) {
262                      print '<a href="'.DOL_URL_ROOT.'/compta/bank/rappro.php?action=del&amp;rowid='.$objp->rowid.'&amp;account='.$acct->id.'">';                      print '<a href="'.DOL_URL_ROOT.'/compta/bank/rappro.php?action=del&amp;rowid='.$objp->rowid.'&amp;account='.$acct->id.'">';
# Line 245  if ($resql) Line 264  if ($resql)
264                      print '</a>';                      print '</a>';
265                  }                  }
266                  else {                  else {
267                      print "&nbsp;";     // On n'empeche la suppression car le raprochement ne pourra se faire qu'après la date passée et que l'écriture apparaissent bien sur le compte.                      print "&nbsp;";     // On n'empeche la suppression car le raprochement ne pourra se faire qu'après la date passée et que l'écriture apparaisse bien sur le compte.
268                  }                  }
269                  print "</td>";                  print "</td>";
270              }              }
# Line 256  if ($resql) Line 275  if ($resql)
275          }          }
276    
277    
278          // Affiche bouton "Rapprocher"          // Affiche zone saisie relevé + bouton "Rapprocher"
279          if ($objp->do <= mktime() ) {          if ($objp->do <= mktime())
280              print "<td align=\"center\">";          {
281                print '<td align="center" nowrap="nowrap">';
282              print "<input class=\"flat\" name=\"num_releve\" type=\"text\" value=\"\" size=\"8\">";              print "<input class=\"flat\" name=\"num_releve\" type=\"text\" value=\"\" size=\"8\">";
283                print ' &nbsp; ';
284                print "<input class=\"button\" type=\"submit\" value=\"".$langs->trans("Rapprocher")."\">";
285              if ($options)              if ($options)
286              {              {
287                  print "<br><select class=\"flat\" name=\"cat1\">$options";                  print "<br><select class=\"flat\" name=\"cat1\">$options";
288                  print "</select>";                  print "</select>";
289              }              }
290              print "</td>";              print "</td>";
             print "<td align=\"center\"><input class=\"button\" type=\"submit\" value=\"".$langs->trans("Rapprocher")."\">";  
             print "</td>";  
291          }          }
292          else          else
293          {          {
294              print "<td align=\"left\" colspan=\"2\">";              print '<td align="left">';
295              print "Ecriture future. Ne peut pas encore être rapprochée.";              print 'Ecriture future. Ne peut pas encore être rapprochée.';
296              print "</td>";              print '</td>';
297          }          }
298    
299          print "</tr>\n";          print "</tr>\n";

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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