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
@@ -19,6 +19,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Throwable;
|
||||
use App\Support\VatNumbering;
|
||||
|
||||
class VmRebuildController extends Controller
|
||||
{
|
||||
@@ -315,6 +316,8 @@ class VmRebuildController extends Controller
|
||||
InvoiceItem::create($line + ['invoice_id' => $invoice->id]);
|
||||
}
|
||||
|
||||
VatNumbering::settle($invoice);
|
||||
|
||||
return $invoice;
|
||||
});
|
||||
} catch (Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user