Show member name when sorting by members
This commit is contained in:
parent
1e8d0d05da
commit
73a7ae66ed
@ -32,7 +32,7 @@ CREATE TABLE subscriptions (
|
||||
FOREIGN KEY(cycle) REFERENCES cycles(id),
|
||||
FOREIGN KEY(frequency) REFERENCES frequencies(id),
|
||||
FOREIGN KEY(payment_method_id) REFERENCES payment_methods(id),
|
||||
FOREIGN KEY(payer_user_id) REFERENCES user(id)
|
||||
FOREIGN KEY(payer_user_id) REFERENCES household(id)
|
||||
FOREIGN KEY(category_id) REFERENCES categories(id)
|
||||
);
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ if (!file_exists($databaseFile)) {
|
||||
FOREIGN KEY(cycle) REFERENCES cycles(id),
|
||||
FOREIGN KEY(frequency) REFERENCES frequencies(id),
|
||||
FOREIGN KEY(payment_method_id) REFERENCES payment_methods(id),
|
||||
FOREIGN KEY(payer_user_id) REFERENCES user(id)
|
||||
FOREIGN KEY(payer_user_id) REFERENCES household(id)
|
||||
FOREIGN KEY(category_id) REFERENCES categories(id)
|
||||
)');
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
$print[$id]['payment_method_icon'] = "images/uploads/icons/" . $payment_methods[$paymentMethodId]['icon'];
|
||||
$print[$id]['payment_method_name'] = $payment_methods[$paymentMethodId]['name'];
|
||||
$print[$id]['category_id'] = $subscription['category_id'];
|
||||
$print[$id]['payer_user_id'] = $subscription['payer_user_id'];
|
||||
$print[$id]['price'] = $subscription['price'];
|
||||
|
||||
if (isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true' && $currencyId != $mainCurrencyId) {
|
||||
@ -66,7 +67,7 @@
|
||||
}
|
||||
|
||||
if (isset($print)) {
|
||||
printSubscriptons($print, $sort, $categories);
|
||||
printSubscriptons($print, $sort, $categories, $members);
|
||||
}
|
||||
|
||||
if (count($subscriptions) == 0) {
|
||||
|
||||
@ -78,6 +78,7 @@
|
||||
$print[$id]['payment_method_icon'] = "images/uploads/icons/" . $payment_methods[$paymentMethodId]['icon'];
|
||||
$print[$id]['payment_method_name'] = $payment_methods[$paymentMethodId]['name'];
|
||||
$print[$id]['category_id'] = $subscription['category_id'];
|
||||
$print[$id]['payer_user_id'] = $subscription['payer_user_id'];
|
||||
$print[$id]['price'] = $subscription['price'];
|
||||
|
||||
if (isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true' && $currencyId != $mainCurrencyId) {
|
||||
@ -94,7 +95,7 @@
|
||||
}
|
||||
|
||||
if (isset($print)) {
|
||||
printSubscriptons($print, $sort, $categories);
|
||||
printSubscriptons($print, $sort, $categories, $members);
|
||||
}
|
||||
$db->close();
|
||||
|
||||
@ -110,7 +111,7 @@
|
||||
Add First Subscription
|
||||
</button>
|
||||
</div>
|
||||
<?php
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user