Export dans la caisse #170

Merged
ariasat merged 14 commits from export_caisse into main 2026-08-17 12:07:00 -04:00
Contributor

Closes #136

Closes #136
dnova changed title from Export dans la caisse to WIP: Export dans la caisse 2026-06-08 11:38:49 -04:00
dnova changed title from WIP: Export dans la caisse to Export dans la caisse 2026-08-14 14:31:09 -04:00
@ -658,6 +659,45 @@ func (c APIClient) ListMembresCache(ctx context.Context) (ListMembresCacheRespon
return call[ListMembresCacheResponse](ctx, c.Caller, http.MethodGet, "/v1/membres-cache/", nil)
}
func (c APIClient) ExportCaisse(ctx context.Context, caisseID string, format *string, section *string, denom *bool) ([]byte, http.Header, error) {
Member

n'utilise pas le refactor de client avec le helper

n'utilise pas le refactor de client avec le helper
dnova marked this conversation as resolved
client.go Outdated
@ -661,0 +667,4 @@
return nil, nil, fmt.Errorf("impossible d'exporter la caisse avec un Caller nil")
}
urlPath := fmt.Sprintf("/v1/caisse/%s/export/", caisseID)
Member

voir si on peut utilise des options avec opts.go

voir si on peut utilise des options avec opts.go
dnova marked this conversation as resolved
handler.go Outdated
@ -713,6 +713,13 @@ func ListTransactionsHandler(ctx context.Context, db *PostgresClient, bottinClie
})
}
// PDFExportSection est une table nommée dans le gabarit "export_pdf" (voir ui/export_pdf.html).
Member

dans entity.go au lieu de handler.go

dans entity.go au lieu de handler.go
dnova marked this conversation as resolved
@ -842,6 +849,243 @@ func ExportTransactionsHandler(ctx context.Context, db *PostgresClient) http.Han
}
}
func ExportCaisseHandler(ctx context.Context, db *PostgresClient) http.HandlerFunc {
Member

function fucking long, voir si on peut le couper avec des helpers

function fucking long, voir si on peut le couper avec des helpers
dnova marked this conversation as resolved
handler_ui.go Outdated
@ -2226,6 +2226,35 @@ func CaisseDetailUIHandler(ctx context.Context, clients *APIClientFactory) http.
})
}
func ExportCaisseUIHandler(ctx context.Context, clients *APIClientFactory) http.HandlerFunc {
Member

makeUIHandler?

makeUIHandler?
Author
Contributor

on peut pas, makeUIHandler rend toujours un template

on peut pas, makeUIHandler rend toujours un template
dnova marked this conversation as resolved
Author
Contributor

Closes #281

Closes #281
ariasat deleted branch export_caisse 2026-08-17 12:07:00 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
bottin/cms!170
No description provided.