You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve missing item, tax account and payment schedule in PEPPOL parser
Three issues preventing Purchase Invoice creation from incoming EDocuments:
1. Items not matched by name: when no matching_data, buyer_item_id or
seller_product_id match exists, try matching by item_name (exact match
on Item doctype). Without item_code, set_missing_item_details skips
the item and expense_account is never resolved.
2. Tax account_head left empty: the tax guessing stub was a no-op.
Now looks up account_head from existing Purchase Taxes templates
matching the rate and company.
3. Payment schedule entry with only due_date (no payment_amount) caused
a TypeError in set_payment_schedule. Don't create a default entry;
let ERPNext compute it from payment_terms_template.
0 commit comments