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