skycoder/invoice-number-generator
Composer 安装命令:
composer require skycoder/invoice-number-generator
包简介
More flexible and unique invoice number generator
README 文档
README
Invoice Number Generator is a more flexible package, that can help you to generate unique invoice number with custom prefix depends on year.
This package is easy to use and will help you to simplify your code.
Installation Process
composer require skycoder/invoice-number-generator
When successfully install your package. you just run php artisan migrate command
Uses
Just use this line of code into your method which store data
$service = new InvoiceNumberGeneratorService(); $invoice_number = $service->currentYear()->prefix('sale-inv')->setCompanyId(1)->startAt(500000)->getInvoiceNumber('Sale'); // your code here $service->setNextInvoiceNo();
and use this namespace top of the class
use Skycoder\InvoiceNumberGenerator\InvoiceNumberGeneratorService;
统计信息
- 总下载量: 441
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-15