Merge branch 'v5-fix-payment-condition' into 'master'

solve condition for payments migration

See merge request mohit.panjvani/crater-web!1342
This commit is contained in:
Mohit Panjwani
2021-12-17 08:23:48 +00:00

View File

@ -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) {