Added quick entries in supplier invoice/credit note as well. Based on bank payments
[fa-stable.git] / gl / manage / gl_quick_entries.php
index fd18e11b43b33983e8c73e666a807ec5e4ff8506..323580a777c497c82fe681c2df10a7effc653b0f 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) 2005-2008  FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, as published by the Free Software Foundation, either version 
+       3 of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 3;
 $path_to_root="../..";
 include($path_to_root . "/includes/session.inc");
@@ -160,7 +169,7 @@ while ($myrow = db_fetch($result))
        label_cell($deposit_text);
        label_cell($bank_text);
        edit_button_cell("Edit".$myrow["id"], _("Edit"));
-       edit_button_cell("Delete".$myrow["id"], _("Delete"));
+       delete_button_cell("Delete".$myrow["id"], _("Delete"));
        end_row();
 }
 
@@ -228,7 +237,7 @@ if ($selected_id != -1)
                if ($dim > 1)
                        label_cell(get_dimension_string($myrow['dimension2_id'], true));
                edit_button_cell("BEd".$myrow["id"], _("Edit"));
-               edit_button_cell("BDel".$myrow["id"], _("Delete"));
+               delete_button_cell("BDel".$myrow["id"], _("Delete"));
                end_row();
        }
        end_table();
@@ -259,7 +268,7 @@ if ($selected_id != -1)
                }
        } 
 
-       gl_all_accounts_list_row(_("Account"), 'account', null, true);
+       gl_all_accounts_list_row(_("Account"), 'account', null);
        yesno_list_row(_("Use Tax:"), 'tax_acc', null, "", "", false);
        yesno_list_row(_("Use Percent:"), 'pct', null, "", "", false);
        amount_row(_("Amount"), 'amount', null);