handle all invoice links
This commit is contained in:
@@ -149,7 +149,6 @@ def get_invoice_links(page: Page) -> list[dict]:
|
|||||||
href = f"{BASE_URL}/{href.lstrip('/')}"
|
href = f"{BASE_URL}/{href.lstrip('/')}"
|
||||||
_add_link(href, text)
|
_add_link(href, text)
|
||||||
|
|
||||||
if not links:
|
|
||||||
print_links = page.locator("a.no-print[data-reference-object-id], a[data-reference-object-id]").all()
|
print_links = page.locator("a.no-print[data-reference-object-id], a[data-reference-object-id]").all()
|
||||||
for anchor in print_links:
|
for anchor in print_links:
|
||||||
href = anchor.get_attribute("href") or ""
|
href = anchor.get_attribute("href") or ""
|
||||||
|
|||||||
Reference in New Issue
Block a user