mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix invoice number has decimals
This commit is contained in:
@@ -34,7 +34,7 @@ class GeneratesTransactionBillNumber
|
||||
|
||||
$attempt = 0;
|
||||
while ($attempt < 10) { // Retry up to 10 times
|
||||
$billNumber = $prefix . $date->format('Y') . $date->format('m') . '-' . microtime(true);
|
||||
$billNumber = $prefix . $date->format('Y') . $date->format('m') . '-' . intval(microtime(true));
|
||||
if (!$this->checksIfTransactionBillNumberExists->execute($billNumber)) {
|
||||
return $billNumber;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user