FinanceBuddy: carry money across recurrence/duplicate, advance installments (v1.0.1)

This commit is contained in:
2026-07-07 18:05:08 -03:00
parent 974a3ae8bd
commit d463faf134
3 changed files with 69 additions and 2 deletions

View File

@@ -29,6 +29,11 @@ class Plugin extends Base
$this->hook->on('model:task:creation:aftersave', array($persistence, 'onCreationAfterSave'));
$this->hook->on('model:task:modification:prepare', array($persistence, 'onModificationPrepare'));
// Carry the finance metadata onto copies (which Kanboard does not copy): native recurrence
// advances the installment for the next occurrence (creation:aftersave via recurrence_parent),
// and a manual Duplicate copies it verbatim.
$this->hook->on('model:task:duplication:aftersave', array($persistence, 'onDuplication'));
// The line-3 money badge on each board card, rendered directly under the title. Two hooks:
// "private" is the normal board, "public" is the read-only board shared by token.
$this->template->hook->attach('template:board:private:task:after-title', 'financeBuddy:board/task_money');
@@ -67,7 +72,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.0.0';
return '1.0.1';
}
public function getPluginHomepage()