projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added an extra parameter to db_export in maintenance_db.inc for new COAs
[fa-stable.git]
/
gl
/
includes
/
db
/
gl_db_bank_accounts.inc
diff --git
a/gl/includes/db/gl_db_bank_accounts.inc
b/gl/includes/db/gl_db_bank_accounts.inc
index 7d79858bef83457817bd8aa0bdde9c29629128f5..b0423f55827d6ce9bb6dfe3a9bef9bf36781d558 100644
(file)
--- a/
gl/includes/db/gl_db_bank_accounts.inc
+++ b/
gl/includes/db/gl_db_bank_accounts.inc
@@
-102,22
+102,22
@@
function get_bank_gl_account($id)
//---------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
-function add_quick_entry($description, $type, $base_amount, $base_desc)
+function add_quick_entry($description, $type, $base_amount, $base_desc
, $bal_type
)
{
{
- $sql = "INSERT INTO ".TB_PREF."quick_entries (description, type, base_amount, base_desc)
+ $sql = "INSERT INTO ".TB_PREF."quick_entries (description, type, base_amount, base_desc
, bal_type
)
VALUES (".db_escape($description).", ".db_escape($type).", "
VALUES (".db_escape($description).", ".db_escape($type).", "
- .db_escape($base_amount).", ".db_escape($base_desc).")";
+ .db_escape($base_amount).", ".db_escape($base_desc)."
, ".db_escape($bal_type)."
)";
db_query($sql, "could not insert quick entry for $description");
}
//---------------------------------------------------------------------------------------------
db_query($sql, "could not insert quick entry for $description");
}
//---------------------------------------------------------------------------------------------
-function update_quick_entry($selected_id, $description, $type, $base_amount, $base_desc)
+function update_quick_entry($selected_id, $description, $type, $base_amount, $base_desc
, $bal_type
)
{
$sql = "UPDATE ".TB_PREF."quick_entries SET description = ".db_escape($description).",
type=".db_escape($type).", base_amount=".db_escape($base_amount)
{
$sql = "UPDATE ".TB_PREF."quick_entries SET description = ".db_escape($description).",
type=".db_escape($type).", base_amount=".db_escape($base_amount)
- .", base_desc=".db_escape($base_desc)."
+ .", base_desc=".db_escape($base_desc)."
, bal_type=".db_escape($bal_type)."
WHERE id = ".db_escape($selected_id);
db_query($sql, "could not update quick entry for $selected_id");
WHERE id = ".db_escape($selected_id);
db_query($sql, "could not update quick entry for $selected_id");