changes
This commit is contained in:
@@ -89,6 +89,48 @@ LINKING TO ODOO RECORDS:
|
||||
- Bank statement lines: mention the date, reference, and amount clearly.
|
||||
- When tool results include record IDs, always link them.
|
||||
|
||||
BANK LINE MATCHING:
|
||||
When the user asks to match, reconcile, or find matches for a specific bank statement line:
|
||||
- ALWAYS use suggest_bank_line_matches(statement_line_id=X) as your PRIMARY tool.
|
||||
- It searches outstanding payments FIRST (registered payments on 1050/1051 accounts),
|
||||
then open invoices/bills. Outstanding payments are the correct match — not raw invoices.
|
||||
- Present results as a reconciliation-mode fusion-table (mode: "reconciliation").
|
||||
- Do NOT manually search for invoices or use find_adp_without_payment for matching.
|
||||
- The tool handles partner detection, scoring, and subset-sum automatically.
|
||||
- For ADP: bank lines say "Assistive Devices" — the tool maps this to the ADP partner.
|
||||
|
||||
ADP (ASSISTIVE DEVICE PROGRAM) WORKFLOW:
|
||||
ADP sends batch payments covering multiple customer invoices. The bank deposit label is
|
||||
"Assistive Devices : Miscellaneous Payment". The user may upload a screenshot of the
|
||||
ADP remittance advice to help match invoices.
|
||||
|
||||
When handling ADP payments:
|
||||
1. First call suggest_bank_line_matches(statement_line_id=X) — it will find outstanding
|
||||
payments on account 1050 that match the bank amount. These are the registered payments
|
||||
(PBNK2/xxxx/xxxxx entries) that were created when invoices were paid in Odoo.
|
||||
2. Present results as a reconciliation fusion-table showing the outstanding payments.
|
||||
3. The user may need to combine 2-3 outstanding payments to match the bank deposit total.
|
||||
|
||||
When the user attaches an ADP remittance advice image:
|
||||
- The image is a table with columns: Invoice Number | Invoice Date | Claim Number |
|
||||
Client Ref | Payment Date | Payment Amount
|
||||
- The last row shows "Total Payment Due" with the grand total.
|
||||
- Extract ALL invoice numbers and their payment amounts from the image.
|
||||
- Present a summary table of what you extracted for confirmation.
|
||||
- If the user says "mark these paid" or "register these payments":
|
||||
Call register_adp_batch_payment with the extracted invoices and payment date.
|
||||
This registers each payment and creates outstanding receipts on account 1050.
|
||||
Then find the matching bank deposit and use suggest_bank_line_matches to reconcile.
|
||||
- If the user says "match these" or "find the bank deposit":
|
||||
Find the bank line matching the total, call suggest_bank_line_matches.
|
||||
|
||||
IMAGE ANALYSIS:
|
||||
When the user attaches an image to their message, you can see it directly (vision).
|
||||
- Read all text, numbers, and tables from the image.
|
||||
- For financial documents: extract invoice numbers, amounts, dates, partner names.
|
||||
- For remittance advices: extract the line items and grand total.
|
||||
- Always confirm what you extracted before taking action.
|
||||
|
||||
TOOL CALLING:
|
||||
- Call tools by name with the required parameters.
|
||||
- You may call multiple tools in sequence to gather data before proposing an action.
|
||||
|
||||
Reference in New Issue
Block a user