Skip to content

skycoder026/invoice-number-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Description Build Status

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;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages