jeffersongoncalves/laravel-erp-buying

ERP buying — suppliers, RFQs, supplier quotations and purchase orders for the Laravel ERP ecosystem

Maintainers

Package info

github.com/jeffersongoncalves/laravel-erp-buying

pkg:composer/jeffersongoncalves/laravel-erp-buying

Statistics

Installs: 19

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-06-28 02:36 UTC

This package is auto-updated.

Last update: 2026-06-28 02:36:39 UTC


README

Laravel ERP Buying

Laravel ERP Buying

ERP buying — suppliers, RFQs, supplier quotations and purchase orders for the Laravel ERP ecosystem.

This package is the buying/procurement module of an ERPNext-native rebuild. It builds on laravel-erp-core, laravel-erp-accounting and laravel-erp-stock.

Features

  • Masters — supplier groups (hierarchical) and suppliers, with polymorphic addresses and contacts from core.
  • Request for Quotation — submittable RFQs with item lines and invited suppliers.
  • Supplier Quotation — submittable quotations with item lines and live totals.
  • Purchase Order — submittable orders with per-received / per-billed tracking and order status.
  • Conversions — turn a Purchase Order into a stock Purchase Receipt or an accounting Purchase Invoice, and turn a Supplier Quotation into a Purchase Order.

Buying documents are commitments: they follow the ERPNext submit/cancel lifecycle but do not post to the general or stock ledger themselves. Inventory and accounting impact is realised only when the downstream Purchase Receipt or Purchase Invoice is submitted.

Installation

composer require jeffersongoncalves/laravel-erp-buying

Publish and run the migrations:

php artisan vendor:publish --tag="erp-buying-migrations"
php artisan migrate

Optionally publish the config:

php artisan vendor:publish --tag="erp-buying-config"

Conversions

use JeffersonGoncalves\Erp\Buying\Services\PurchaseOrderService;
use JeffersonGoncalves\Erp\Buying\Services\SupplierQuotationService;

$receipt = app(PurchaseOrderService::class)->createPurchaseReceipt($purchaseOrder);
$invoice = app(PurchaseOrderService::class)->createPurchaseInvoice($purchaseOrder);
$order = app(SupplierQuotationService::class)->createPurchaseOrder($supplierQuotation);

Testing

composer test

Changelog

Please see CHANGELOG for what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.