refactor invoice & estimate migrations

This commit is contained in:
raishvaria
2019-12-04 16:38:25 +05:30
parent 122c4f478f
commit 9b9761aa5a
7 changed files with 34 additions and 9 deletions

View File

@ -82,7 +82,7 @@ class Invoice extends Model
// So the substr returns this 000001
// Add the string in front and higher up the number.
// the %05d part makes sure that there are always 6 numbers in the string.
// the %06d part makes sure that there are always 6 numbers in the string.
// so it adds the missing zero's when needed.
return sprintf('%06d', intval($number) + 1);