定制 fridris/invoice-pl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fridris/invoice-pl

Composer 安装命令:

composer require fridris/invoice-pl

包简介

Faktury pl

README 文档

README

Install

composer require fridris/invoice-pl

Example

Route::get('/test', function (Faker $faker) {
    $invdet = new \Fridris\Invoice\Dto\InvoiceDetails();
    $invdet->seller->NIP = '90998909809';
    $invdet->seller->companyName = 'Comapny 1';
    $invdet->seller->address->city = "Warszawa";
    $invdet->seller->address->postCode = "09-123";
    $invdet->seller->address->street = "Wysoka 23";
    $invdet->seller->extra->Email = 'test@test.pl';
    $invdet->seller->extra->Phone = '791990824';

    $invdet->buyer->NIP = '123123123';
    $invdet->buyer->companyName = 'TestComapny';
    $invdet->buyer->address->city = "Sopot";
    $invdet->buyer->address->postCode = "01-123";
    $invdet->buyer->address->street = "Niska 32";
    $invdet->buyer->extra->Email = 'testowa@test.pl';
    $invdet->buyer->extra->Phone = '791990822';
    $invdet->paymentMethod = 'Bramka Płatnicza';

    $invdet->paymentDueToDate = \Carbon\Carbon::now()->addDays(30)->format('m-d-y');
    for($i=0;$i<10;$i++){
        $item = new \Fridris\Invoice\Dto\InvoiceItem();
        $item->quantity = rand(0,100);
        $item->taxPercentage = 0.23;
        $item->totalAmount = rand(0,100);;
        $item->totalTaxAmount = $item->totalAmount * $item->taxPercentage;
        $item->totalNetAmount = $item->totalAmount -  $item->totalAmount * $item->taxPercentage;
        $item->unitName = "szt";
        $item->unitNetPrice = 1;
        $item->description = $faker->firstName();

        $invdet->items[] = $item;
    }
    $invdet->bankIban = $faker->iban();
    $invdet->logo = "https://picsum.photos/200/100";
    //$invdet->logo = resource_path().(DIRECTORY_SEPARATOR.'photo'.DIRECTORY_SEPARATOR.'logo_mini_new.png');

    return Invoice::create($invdet)->getStream();
});

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-18