diff --git a/Plugin.php b/Plugin.php index 6c49cdd..cf264c8 100644 --- a/Plugin.php +++ b/Plugin.php @@ -72,7 +72,7 @@ class Plugin extends Base public function getPluginVersion() { - return '1.0.1'; + return '1.0.2'; } public function getPluginHomepage() diff --git a/Template/board/task_money.php b/Template/board/task_money.php index 1a35342..ef7e309 100644 --- a/Template/board/task_money.php +++ b/Template/board/task_money.php @@ -15,13 +15,18 @@ if ($fb['amount'] === '' || (float) $fb['amount'] <= 0) { $credit = $fb['direction'] === 'credit'; $sign = $credit ? '+' : '-'; $total = $fb['installment_total']; -$current = $fb['installment_current'] !== '' ? $fb['installment_current'] : '1'; +$current = $fb['installment_current']; + +// Installments: "p2/10" when a total is set; "p2" (open-ended) when only the current is set; +// nothing when neither is set. Default the current to 1 if only a total was entered. +$show_installments = $current !== '' || $total !== ''; +$current_display = $current !== '' ? $current : '1'; ?>
R$ - - ptext->e($current) ?>/text->e($total) ?> + + ptext->e($current_display) ?>text->e($total) : '' ?>
diff --git a/Template/task/form_fields.php b/Template/task/form_fields.php index 7058907..a335160 100644 --- a/Template/task/form_fields.php +++ b/Template/task/form_fields.php @@ -24,6 +24,6 @@ -

+

diff --git a/VERSION b/VERSION index 7dbdd0b..99eeab3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -FinanceBuddy v1.0.1 +FinanceBuddy v1.0.2