Frontend Changes
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use Illuminate\Http\Request;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class ContainerController extends Controller
|
||||
{
|
||||
@@ -530,7 +531,9 @@ class ContainerController extends Controller
|
||||
|
||||
$invoice->invoice_number = $this->generateInvoiceNumber();
|
||||
$invoice->invoice_date = now()->toDateString();
|
||||
$invoice->due_date = null;
|
||||
// NEW (add this):
|
||||
$invoice->due_date = Carbon::parse($invoice->invoice_date)->addDays(10)->format('Y-m-d');
|
||||
|
||||
|
||||
if ($snap) {
|
||||
$invoice->customer_name = $snap['customer_name'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user