@hed-hog/finance 0.0.364 → 0.0.365
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/create-financial-title.dto.d.ts +8 -1
- package/dist/dto/create-financial-title.dto.d.ts.map +1 -1
- package/dist/dto/create-financial-title.dto.js +41 -3
- package/dist/dto/create-financial-title.dto.js.map +1 -1
- package/dist/finance.service.d.ts +1 -0
- package/dist/finance.service.d.ts.map +1 -1
- package/dist/finance.service.js +213 -120
- package/dist/finance.service.js.map +1 -1
- package/hedhog/data/route.yaml +6 -0
- package/hedhog/frontend/app/_components/finance-layout.tsx.ejs +15 -10
- package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +1135 -573
- package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +1132 -570
- package/hedhog/frontend/messages/en.json +92 -24
- package/hedhog/frontend/messages/pt.json +92 -24
- package/package.json +5 -5
- package/src/dto/create-financial-title.dto.ts +36 -5
- package/src/finance.service.ts +314 -144
package/hedhog/data/route.yaml
CHANGED
|
@@ -608,6 +608,8 @@
|
|
|
608
608
|
slug: admin
|
|
609
609
|
- where:
|
|
610
610
|
slug: admin-finance
|
|
611
|
+
- where:
|
|
612
|
+
slug: finance-statements-editor
|
|
611
613
|
|
|
612
614
|
- url: /person/:id
|
|
613
615
|
method: GET
|
|
@@ -644,6 +646,8 @@
|
|
|
644
646
|
slug: admin
|
|
645
647
|
- where:
|
|
646
648
|
slug: admin-finance
|
|
649
|
+
- where:
|
|
650
|
+
slug: finance-statements-editor
|
|
647
651
|
|
|
648
652
|
- url: /person-document-type
|
|
649
653
|
method: GET
|
|
@@ -653,6 +657,8 @@
|
|
|
653
657
|
slug: admin
|
|
654
658
|
- where:
|
|
655
659
|
slug: admin-finance
|
|
660
|
+
- where:
|
|
661
|
+
slug: finance-statements-editor
|
|
656
662
|
|
|
657
663
|
# finance MCP tools
|
|
658
664
|
- tool_name: finance.accounts-payable.installments.approve
|
|
@@ -103,6 +103,7 @@ export function FinanceSheetBody({
|
|
|
103
103
|
type FinanceSheetSectionProps = {
|
|
104
104
|
title?: ReactNode;
|
|
105
105
|
description?: ReactNode;
|
|
106
|
+
actions?: ReactNode;
|
|
106
107
|
children: ReactNode;
|
|
107
108
|
className?: string;
|
|
108
109
|
contentClassName?: string;
|
|
@@ -111,22 +112,26 @@ type FinanceSheetSectionProps = {
|
|
|
111
112
|
export function FinanceSheetSection({
|
|
112
113
|
title,
|
|
113
114
|
description,
|
|
115
|
+
actions,
|
|
114
116
|
children,
|
|
115
117
|
className,
|
|
116
118
|
contentClassName,
|
|
117
119
|
}: FinanceSheetSectionProps) {
|
|
118
120
|
return (
|
|
119
121
|
<section className={cn('', className)}>
|
|
120
|
-
{title || description ? (
|
|
121
|
-
<div className="mb-4
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
{title || description || actions ? (
|
|
123
|
+
<div className="mb-4 flex items-start justify-between gap-3">
|
|
124
|
+
<div className="space-y-1">
|
|
125
|
+
{title ? (
|
|
126
|
+
<h3 className="text-sm font-semibold text-foreground">{title}</h3>
|
|
127
|
+
) : null}
|
|
128
|
+
{description ? (
|
|
129
|
+
<p className="text-sm leading-relaxed text-muted-foreground">
|
|
130
|
+
{description}
|
|
131
|
+
</p>
|
|
132
|
+
) : null}
|
|
133
|
+
</div>
|
|
134
|
+
{actions ? <div className="shrink-0">{actions}</div> : null}
|
|
130
135
|
</div>
|
|
131
136
|
) : null}
|
|
132
137
|
<div className={cn('space-y-4', contentClassName)}>{children}</div>
|