mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
Added transfer_id to both payments and expenses tables, updated gitignore to include config.php and files in uploads folder
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
config.php
|
||||||
|
uploads/clients/*
|
||||||
|
uploads/expenses/*
|
||||||
|
uploads/settings/*
|
||||||
|
uploads/users/*
|
||||||
|
|||||||
4
post.php
4
post.php
@@ -786,6 +786,10 @@ if(isset($_POST['add_transfer'])){
|
|||||||
$payment_id = mysqli_insert_id($mysqli);
|
$payment_id = mysqli_insert_id($mysqli);
|
||||||
|
|
||||||
mysqli_query($mysqli,"INSERT INTO transfers SET transfer_date = '$date', transfer_amount = '$amount', transfer_account_from = $account_from, transfer_account_to = $account_to, expense_id = $expense_id, payment_id = $payment_id, transfer_created_at = NOW()");
|
mysqli_query($mysqli,"INSERT INTO transfers SET transfer_date = '$date', transfer_amount = '$amount', transfer_account_from = $account_from, transfer_account_to = $account_to, expense_id = $expense_id, payment_id = $payment_id, transfer_created_at = NOW()");
|
||||||
|
$transfer_id = mysqli_insert_id($mysqli);
|
||||||
|
|
||||||
|
mysqli_query($mysqli,"UPDATE expenses SET transfer_id = $transfer_id WHERE expense_id = $expense_id");
|
||||||
|
mysqli_query($mysqli,"UPDATE payments SET transfer_id = $transfer_id WHERE payment_id = $payment_id");
|
||||||
|
|
||||||
$_SESSION['alert_message'] = "Transfer added";
|
$_SESSION['alert_message'] = "Transfer added";
|
||||||
|
|
||||||
|
|||||||
@@ -45,12 +45,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img class="img-fluid" src="<?php echo $config_invoice_logo; ?>">
|
<div class="form-group mb-4">
|
||||||
|
|
||||||
<div class="form-group mb-5">
|
|
||||||
<label>Logo</label>
|
<label>Logo</label>
|
||||||
<input type="file" class="form-control-file" name="file">
|
<input type="file" class="form-control-file" name="file">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<img class="img-fluid" src="<?php echo $config_invoice_logo; ?>">
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user