FEAT: Add payroll feature #1

Open
opened 2025-12-13 15:19:14 +00:00 by padreug · 1 comment
Owner

Summary

We want to add a payroll table:

user FK desired montlhy (X) individual costs covered (sep table?) (Y) accomodation pkg (Z) currency active end date (opt)
"User ID" 500 100 500 / "PARTNER" "EUR" 1 null

From this table the castle accounting will do payroll every day (also taking into account owed expenses)

This task looks like:

Add entry for salary (this involves an lnbits API call to get the amount_sats for the wage

<date> Wages paid
    ; user-id: <user-id>
    ; hash
    ; btc-rate
    Expenses:Salary:Daily:<user-id>    (X+Y+Z) / 28 <currency>
    Assets:Bitcoin

Next we calculate the amount owed for the day

This includes any approved expenses

# Summary We want to add a payroll table: | user FK | desired montlhy (X) | individual costs covered (sep table?) (Y) | accomodation pkg (Z) | currency | active | end date (opt) | |------------|---------------------|--------------------------------------------------|---------------------------|------------|----|-----| | "User ID" | 500 | 100 | 500 / "PARTNER" | "EUR"| 1 | null | From this table the castle accounting will do payroll every day (also taking into account owed expenses) This task looks like: Add entry for salary (this involves an lnbits API call to get the amount_sats for the wage ```beancount <date> Wages paid ; user-id: <user-id> ; hash ; btc-rate Expenses:Salary:Daily:<user-id> (X+Y+Z) / 28 <currency> Assets:Bitcoin ``` Next we calculate the amount owed for the day This includes any approved expenses
padreug self-assigned this 2025-12-13 15:26:53 +00:00
Author
Owner

let's make their desired minimum amount just an ideal target

then we can assign them different jobs and they will get paid for those jobs

they can see where they are compared to their desired monthly income

let's make their desired minimum amount just an ideal target then we can assign them different jobs and they will get paid for those jobs they can see where they are compared to their desired monthly income
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lnbits-exts/castle#1
No description provided.