Skip to content

Commit

Permalink
Ampliados los números aleatorios al crear cuentas contables.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Oct 10, 2024
1 parent 9e791b8 commit e3a0c34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/Lib/Accounting/AccountingCreation.php
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e3a0c34

Please sign in to comment.