-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ampliados los números aleatorios al crear cuentas contables.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/** | ||
* This file is part of FacturaScripts | ||
* Copyright (C) 2018-2023 Carlos Garcia Gomez <[email protected]> | ||
* Copyright (C) 2018-2024 Carlos Garcia Gomez <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as | ||
|
@@ -229,11 +229,11 @@ public function getFreeSubjectSubaccount($subject, $account) | |
return $code; | ||
} | ||
|
||
// conformamos un array con el número del cliente, los 99 primeros números y un número aleatorio | ||
// conformamos un array con el número del cliente, los 49 primeros números y varios números aleatorios | ||
$numbers = array_merge( | ||
[$code], | ||
range(1, 99), | ||
[rand(100, 999), rand(100, 9999), rand(100, 99999)] | ||
range(1, 49), | ||
[rand(50, 99), rand(50, 999), rand(50, 9999), rand(50, 99999)] | ||
); | ||
|
||
// añadimos también los 100 siguientes números al total de subcuentas | ||
|