mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 07:53:58 +00:00
update bull number to 7 digits
This commit is contained in:
@@ -35,7 +35,7 @@ class GeneratesTransactionBillNumber
|
||||
$attempt = 0;
|
||||
while ($attempt < 10) { // Retry up to 10 times
|
||||
// $billNumber = $prefix . $date->format('Y') . $date->format('m') . '-' . intval(microtime(true));
|
||||
$billNumber = $prefix . $date->format('Y') . $date->format('m') . '-' . mt_rand(1000000000, 9999999999);
|
||||
$billNumber = $prefix . $date->format('Y') . $date->format('m') . '-' . mt_rand(1000000, 9999999);
|
||||
if (!$this->checksIfTransactionBillNumberExists->execute($billNumber)) {
|
||||
return $billNumber;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user