Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app/Helpers/InvoiceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function generatePrettyInvoice($user, $workspace, $invoice)
$paymentRecvdDate = "N/A";
if ($invoice->status == PaymentStatus::PAID) {
$paidInvoice = TRUE;
$paymentRecvdDate = $invoice->complete_date->format('d M Y');
$paymentRecvdDate = $invoice->paid_date->format('d M Y');
}

$invoiceDesc = sprintf("%s invoice for %s", $site, $invoiceDate->format("M Y"));
Expand Down
2 changes: 1 addition & 1 deletion app/app/UserInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\BalanceResource;

class UserInvoice extends BalanceResource {
protected $dates = ['created_at', 'updated_at', 'complete_date', 'due_date', 'last_attempted'];
protected $dates = ['created_at', 'updated_at', 'complete_date', 'paid_date', 'due_date', 'last_attempted'];

protected $guarded = array('id');
protected $table = "users_invoices";
Expand Down
32 changes: 32 additions & 0 deletions app/database/migrations/2026_06_09_185217_invoice_paid_date.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InvoicePaidDate extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users_invoices', function (Blueprint $table) {
//
$table->dateTime('paid_date')->nullable();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users_invoices', function (Blueprint $table) {
$table->dropColumn('paid_date');
});
}
}
2 changes: 0 additions & 2 deletions app/resources/views/pdf/estimated_charges.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
<tr>
<th>Source</th>
<th>Amount</th>
<th>Balance</th>
<th>Date/Time</th>
<th>Status</th>
</tr>
Expand All @@ -90,7 +89,6 @@
<tr>
<td>{{$row->type}}</td>
<td>${{number_format($row->dollars, 2)}}</td>
<td>${{number_format($row->balance, 2)}}</td>
<td>{{$row->created_at}}</td>
<td>{{$row->status}}</td>
</tr>
Expand Down
Loading