mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
solve condition for payments migration
This commit is contained in:
@@ -12,7 +12,7 @@ class CalculateBaseAmountOfPaymentsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$payments = Payment::all();
|
||||
$payments = Payment::where('exchange_rate', '<>', null)->get();
|
||||
|
||||
if ($payments) {
|
||||
foreach ($payments as $payment) {
|
||||
|
||||
Reference in New Issue
Block a user