GX-Bug #52550 » InvoiceNumberFix.patch
| src/admin/includes/gm/classes/GMIdStarts.php (revision ) | ||
|---|---|---|
| 81 | 81 |
|
| 82 | 82 |
$success = false; |
| 83 | 83 |
|
| 84 |
if(is_numeric($next_id) && $next_id >= $this->get_last_orders_id() && $next_id <= 999999999){
|
|
| 84 |
if(is_numeric($next_id) && $next_id >= $this->get_last_orders_id() && $next_id <= 2147483647){
|
|
| 85 | 85 |
xtc_db_query("ALTER TABLE orders AUTO_INCREMENT = " . (int)$next_id . "");
|
| 86 | 86 |
$success = true; |
| 87 | 87 |
} |
| ... | ... | |
| 94 | 94 |
|
| 95 | 95 |
$success = false; |
| 96 | 96 |
|
| 97 |
if(is_numeric($next_id) && $next_id >= $this->get_last_customers_id() && $next_id <= 999999999){
|
|
| 97 |
if(is_numeric($next_id) && $next_id >= $this->get_last_customers_id() && $next_id <= 2147483647){
|
|
| 98 | 98 |
xtc_db_query("ALTER TABLE customers AUTO_INCREMENT = " . (int)$next_id . "");
|
| 99 | 99 |
$success = true; |
| 100 | 100 |
} |
| src/admin/includes/gm/classes/GMOrderFormat.php (revision ) | ||
|---|---|---|
| 107 | 107 |
|
| 108 | 108 |
function set_next_id($type, $next_id) |
| 109 | 109 |
{
|
| 110 |
if(is_numeric($next_id) && $next_id >= $this->get_next_free_id($type) && $next_id <= 999999999)
|
|
| 110 |
if(is_numeric($next_id) && $next_id >= $this->get_next_free_id($type) && $next_id <= 2147483647)
|
|
| 111 | 111 |
{
|
| 112 | 112 |
$documentType = 'invoice'; |
| 113 | 113 |
|