projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved db_pager query parsing (fixed error in Sales Quotation Inquiry)
[fa-stable.git]
/
includes
/
references.inc
diff --git
a/includes/references.inc
b/includes/references.inc
index 292ccf4402c178b7fe8cd9c1073ca5cebc4de7fc..6a8c7af2d0f87044206bc2fb0f243697e90b1051 100644
(file)
--- a/
includes/references.inc
+++ b/
includes/references.inc
@@
-57,7
+57,7
@@
class references
function save($type, $id, $reference)
{
update_reference($type, $id, $reference); // store in refs table
function save($type, $id, $reference)
{
update_reference($type, $id, $reference); // store in refs table
- if ($reference == $this->get_next($type)) { // if reference was not changed from default
+ if ($reference == $this->get_next($type)) { // if reference was
bigger or
not changed from default
$next = $this->_increment($reference); // increment default
save_next_reference($type, $next);
}
$next = $this->_increment($reference); // increment default
save_next_reference($type, $next);
}