mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
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:
@ -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