2025-06
This commit is contained in:
parent
2a83bd0079
commit
3999ecdac3
10 changed files with 807 additions and 7 deletions
|
@ -26,7 +26,7 @@ class MollieInvoiceImporter(Importer):
|
|||
|
||||
def tx_ref(self, filepath):
|
||||
for line in pdf_lines(filepath):
|
||||
if m := re.search(r"^Invoice reference (MOL-.+)$", line):
|
||||
if m := re.search(r"^Invoice reference\s?(MOL-.+)$", line):
|
||||
return m[1]
|
||||
raise Exception("Mollie invoice reference not found")
|
||||
|
||||
|
|
|
@ -86,10 +86,10 @@ def guess_contra(entry):
|
|||
return "Uitgaven:Bar:Snacks"
|
||||
|
||||
if entry.payee == "STATIEGELD NEDERLAND; NL59ABNA0100073913":
|
||||
return "Uitgaven:Bar"
|
||||
return "Inkomsten:Statiegeld"
|
||||
|
||||
if entry.narration.startswith("Decla") and posting.units.number < 0:
|
||||
return "Passiva:Declaraties"
|
||||
return "Passiva:Crediteuren"
|
||||
|
||||
if have_keyword(
|
||||
"deposit",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue