Automate Invoice Data Entry
Example Prompt:
Example Response:
import pdfplumber
with pdfplumber.open('invoice.pdf') as pdf:
first_page = pdf.pages[0]
text = first_page.extract_text()
import re
invoice_number = re.search(r'Invoice Number: (\d+)', text).group(1)
date = re.search(r'Date: (\d{2}/\d{2}/\d{4})', text).group(1)
customer_name = re.search(r'Customer: (.+)', text).group(1)
import csv
with open('invoice_data.csv', mode='w', newline='') as file:
writer = csv.writer(file)
writer.writerow(['Invoice Number', 'Date', 'Customer Name', 'Item Description', 'Quantity', 'Unit Price', 'Total'])
writer.writerow([invoice_number, date, customer_name, item_description, quantity, unit_price, total])
Related Tasks:
Drafting Payment Reminder Emails
Example Prompt:
Example Response:
Related Tasks:
Generate Accounts Receivable Reports
Example Prompt:
Example Response:
import pandas as pd
df = pd.read_excel('accounts_receivable.xlsx')
print(df.head())
from datetime import datetime
today = datetime.now().date()
overdue_accounts = df[df['Due Date'] < today]
total_overdue = overdue_accounts['Amount Due'].sum()
summary_report = overdue_accounts[['Invoice Number', 'Customer Name', 'Due Date', 'Amount Due']]
summary_report.to_excel('overdue_accounts_summary.xlsx', index=False)
Related Tasks:
Create Dispute Resolution Templates
Example Prompt:
Example Response:
Related Tasks:
Track Payment Status
Example Prompt:
Example Response:
Related Tasks: