josegus/control-code
Composer 安装命令:
composer require josegus/control-code
包简介
Generate invoice's control code according to bolivian laws
README 文档
README
This package can generate invoice's control code, according to bolivian laws.
Here's how to use it:
ControlCode::make() ->authorizationNumber('29040011007') ->invoiceNumber('1503') ->customerDocumentNumber('4189179011') ->transactionDate('2007-07-02') ->transactionMount('2500') ->dosificationKey('9rCB7Sv4X29d)5k7N%3ab89p-3(5[A') ->generate();
Installation
You can install the package via composer:
composer require josegus/control-code
Usage
ControlCode::make() ->authorizationNumber('29040011007') ->invoiceNumber('1503') ->customerDocumentNumber('4189179011') ->transactionDate('2007-07-02') ->transactionMount('2500') ->dosificationKey('9rCB7Sv4X29d)5k7N%3ab89p-3(5[A') ->generate();
Notice that, in order to make it work properly:
- all params must be string
- transaction date must be in one of the following format: "Y-m-d", "Y/m/d", "Ymd"
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email jgvv15@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-12