reworked transfers, added revenues to add income in other ways besides just invoices, reports now uses a compact table to see all data clearly and some other minor fixes.
This commit is contained in:
18
update_revenues.php
Normal file
18
update_revenues.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php include("header.php");
|
||||
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM transfers");
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
$revenue_id = $row['revenue_id'];
|
||||
|
||||
mysqli_query($mysqli,"UPDATE revenues SET category_id = 0 WHERE revenue_id = $revenue_id");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php include("footer.php");
|
||||
Reference in New Issue
Block a user