where('id','>',4331)->and_where('id','<',5320)->order_by('id','ASC')->find_all() as $io) { if ($io->due() == 0) continue; /* elseif ($io->due() < 0) { foreach ($io->subitems() as $iio) { switch ($iio->price_base) { case 40.909: $iio->price_base=40.92; break; case 98.045: case 98.05: $iio->price_base=98.055; break; case 103.045: $iio->price_base=103.055; break; case 204.545: $iio->price_base=204.56; break; case 209.545: $iio->price_base=209.56; break; default: print_r($iio->dump()); } $iio->save(); } printf("%4s %6.2f\n",$io->id,$io->due()); if ($c++>2) break; } elseif ($io->due() < 1) { printf("%4s %6.2f\n",$io->id,$io->due()); } */ printf("%4s %6.2f\n",$io->id,$io->due()); } } } ?>