feat(billing): renewals, coupons, VAT numbering, billing cycles and invoice payment tracking
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
ea9a53f742
commit
25f23d541e
@@ -29,6 +29,7 @@ use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Support\VatNumbering;
|
||||
|
||||
class OrderService
|
||||
{
|
||||
@@ -205,6 +206,7 @@ class OrderService
|
||||
'total_price' => $item['price'] * $item['quantity'],
|
||||
], $productItems);
|
||||
$this->invoiceItemRepository->insert($invoiceItemData);
|
||||
VatNumbering::settle($invoice);
|
||||
|
||||
$now = now();
|
||||
OrderItem::insert(array_map(fn ($item) => [
|
||||
|
||||
Reference in New Issue
Block a user