Commit ff0a41a
committed
fix(billing): say out loud when a yearly subscription skips recurring charges
The skip is deliberate: a MONTH charge on a yearly subscription would be
raised once a year rather than twelve times, so it is skipped rather than
under-charged. But it returned 0 with nothing logged, so an installed app
expecting to be paid simply never was and nobody could tell.
Moved below the declaration read so it fires only for workspaces actually
running an app that declares a recurring charge, rather than daily for every
yearly-plan workspace, and it can name how many charges were skipped.1 parent 082d4fc commit ff0a41a
1 file changed
Lines changed: 12 additions & 6 deletions
File tree
- packages/twenty-server/src/engine/core-modules/billing/app-billing
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
| |||
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments