feat(export): Stockkarte - a colony's complete record as PDF
New report colony-record-card (button "Stockkarte (PDF)" on the colony page): master data, current queen and queen history, every inspection as a table row (strength, eggs, open/capped brood, queen seen, queen cells, gentleness, swarm drive, feed, measures, notes), treatments with batch number and withdrawal period, feedings, varroa counts and harvests. Landscape A4, table header repeated on each page. Whole history by default, one calendar year with ?year=. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
5cf4e87ca3
commit
f263ec79f2
5 files changed
+586
-1
No files matched your search
@@ -40,6 +40,15 @@ export async function exportColonyAnnualReportPdf(colonyId: string, year: number
|
||||
downloadBlob(blob, filename);
|
||||
}
|
||||
|
||||
/** Stockkarte: the colony's whole history as a printable PDF. */
|
||||
export async function exportColonyRecordCardPdf(colonyId: string, code: string): Promise<void> {
|
||||
const { blob, filename } = await apiFetchBlob(
|
||||
`/export/colony-record-card.pdf?colonyId=${colonyId}`,
|
||||
`stockkarte-${code}.pdf`,
|
||||
);
|
||||
downloadBlob(blob, filename);
|
||||
}
|
||||
|
||||
export async function exportApiaryAnnualReportPdf(apiaryId: string, year: number): Promise<void> {
|
||||
const { blob, filename } = await apiFetchBlob(
|
||||
`/export/apiary-annual-report.pdf?apiaryId=${apiaryId}&year=${year}`,
|
||||
|
||||
Reference in new issue
Block a user