feat(invoiceintake): invoice@ mails become draft Eingangsrechnungen (#82)
Reads the mails of ERPNext's Email Account Eingangsrechnung via the API: e-invoices become E Invoice Import drafts, other PDFs draft Purchase Invoices (supplier by sender, placeholder line, original attached), the rest ToDos. Never submits; state lives in ERPNext (unique Link intake_communication, ToDo reference). erpsetup adds the marker fields, the placeholder item EINGANGSRECHNUNG and its SKR04 6300 account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #82.
This commit is contained in:
1 parent
36caf3c967
commit
cee669d2bd
9 files changed
+1288
-4
No files matched your search
+4
-2
@@ -15,7 +15,8 @@ ARG COMMIT=
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X git.breakpilot.com/platform/tenant-registry/internal/buildinfo.Version=${VERSION} -X git.breakpilot.com/platform/tenant-registry/internal/buildinfo.Commit=${COMMIT}" -o /out/tenant-registry ./cmd/server && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/migrate ./cmd/migrate && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/erpmock ./cmd/erpmock && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/erpsetup ./cmd/erpsetup
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/erpsetup ./cmd/erpsetup && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/invoiceintake ./cmd/invoiceintake
|
||||
|
||||
FROM gcr.io/distroless/static-debian12:nonroot
|
||||
WORKDIR /
|
||||
@@ -23,8 +24,9 @@ COPY --from=build /out/tenant-registry /tenant-registry
|
||||
COPY --from=build /out/migrate /migrate
|
||||
COPY --from=build /out/erpmock /erpmock
|
||||
COPY --from=build /out/erpsetup /erpsetup
|
||||
COPY --from=build /out/invoiceintake /invoiceintake
|
||||
USER nonroot:nonroot
|
||||
EXPOSE 8090
|
||||
# CMD (not ENTRYPOINT) so orca's `cmd` can select /erpmock or /migrate in the
|
||||
# CMD (not ENTRYPOINT) so orca's `cmd` can select /erpmock, /migrate or /invoiceintake in the
|
||||
# same image. The server applies migrations itself with MIGRATE_ON_START=true.
|
||||
CMD ["/tenant-registry"]
|
||||
Reference in new issue
Block a user