Skip to content

Commit 46ce4ad

Browse files
authored
Merge pull request #26 from kainotomo/feature/documentation
2 parents c6f401f + 0321366 commit 46ce4ad

File tree

4 files changed

+44
-16
lines changed

4 files changed

+44
-16
lines changed

README.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ Invoice2Erpnext is an advanced tool that automatically processes invoices from v
1010

1111
Before using Invoice2Erpnext, ensure:
1212

13-
1. You've installed the Invoice2Erpnext app in your ERPNext instance
13+
1. You've installed the Invoice2Erpnext app in your ERPNext instance. Currently compatible with **ERPNext version 15**.
1414
2. Your administrator has configured the "Invoice2Erpnext Settings" with:
1515
- API credentials (api_key and api_secret) obtained from [https://kainotomo.com/api_keys](https://kainotomo.com/api_keys)
16-
- Default VAT account
17-
- Make sure you have credits obtained from [https://kainotomo.com/invoice2erpnext/shop](https://kainotomo.com/invoice2erpnext/shop)
16+
- Default VAT account for tax calculations
17+
- Default Supplier Group for new suppliers
18+
- Default Item Group for extracted items
19+
- One Item Invoice option (if you prefer all line items to be consolidated)
20+
- Default Item (required when One Item Invoice is enabled)
21+
3. Make sure you have sufficient credits for processing invoices, available from [https://kainotomo.com/invoice2erpnext/shop](https://kainotomo.com/invoice2erpnext/shop)
1822

1923
### Installation
2024

@@ -49,10 +53,14 @@ To configure Invoice2Erpnext:
4953
3. Configure the following required settings:
5054
- **API Credentials**: Enter your api_key and api_secret obtained from [https://kainotomo.com/api_keys](https://kainotomo.com/api_keys)
5155
- **Default VAT Account**: Select the account to be used for tax calculations
56+
- **Supplier Group**: Choose the group where new suppliers will be categorized
57+
- **Item Group**: Select the default group for new items created from invoices
58+
- **One Item Invoice**: Enable this option if you want all invoice items to be consolidated into a single line item
59+
- **Item**: If One Item Invoice is enabled, select the default item to use for all invoices
5260

5361
4. Save the settings
5462

55-
These configurations are essential for the app to function properly. Without valid API credentials, the system won't be able to process invoices.
63+
These configurations are essential for the app to function properly. Without valid API credentials and proper account settings, the system won't be able to process invoices correctly.
5664

5765
## How to Use
5866

@@ -61,8 +69,10 @@ These configurations are essential for the app to function properly. Without val
6169
To process invoices with Invoice2Erpnext:
6270

6371
1. Navigate to the **Purchase Invoice** list view
64-
![Alt text](documentation/prc-1.jpeg?raw=true "Purchase Invoice list view")
65-
2. Click the "Upload" button in the list view
72+
![Alt text](documentation/prc-4.png?raw=true "Purchase Invoice list view")
73+
2. Click the dropdown menu and select one of the following upload options:
74+
- **Upload (Auto)**: Fully automatic processing where the system will identify the supplier, items, and all financial data without user input. Best for clear, well-structured invoices from established suppliers.
75+
- **Upload (Manual)**: Requires you to select a specific supplier and item while the system extracts only the financial data. Ideal for unusual invoices, low-quality scans, or when you want consistent item categorization.
6676
3. Select the invoice files you want to process
6777
![Alt text](documentation/prc-2.jpeg?raw=true "Upload")
6878
4. The system will:
@@ -71,42 +81,60 @@ To process invoices with Invoice2Erpnext:
7181
- Generate Logs with the result
7282

7383
Once processed, you can review and submit the created Purchase Invoices after verifying their accuracy.
84+
7485
![Alt text](documentation/prc-3.jpeg "Purchase Invoice list view")
7586

7687
## Understanding the Process
7788

7889
The system performs these steps automatically:
7990

80-
1. **Document Extraction**: Sends the invoice to KAINOTOMO server that reads text and structures
81-
2. **Data Validation**: Checks for consistency in extracted financial data
82-
3. **Intelligent Reconciliation**: If discrepancies exist, determines which values are most reliable based on confidence scores
83-
4. **Return Result**: Return extracted data to your server and delete the file from KAINOTOMO server.
91+
1. **Document Extraction**: Sends the invoice to KAINOTOMO server that extracts text and structures data fields
92+
2. **Data Validation**: Checks for consistency in extracted financial data using confidence scores
93+
3. **Intelligent Reconciliation**: If discrepancies exist in totals, subtotals, or taxes, the system determines which values are most reliable based on confidence scores and adjusts values accordingly
8494
4. **Document Creation**:
8595
- Creates Supplier if not already in system
86-
- Creates Items if not already in system
96+
- Creates Items if not already in system (or uses a single default item if configured)
8797
- Creates Purchase Invoice with line items, taxes, and totals
98+
- Handles special cases like credit notes and decimal point inconsistencies
8899
5. **File Attachment**: Links the original invoice file to the created Purchase Invoice
89100

101+
### Processing Modes
102+
103+
The system offers two processing modes:
104+
105+
1. **Automatic Mode** (Default): The system extracts all information automatically and creates corresponding documents with no user intervention. Best for high-quality invoices from established suppliers.
106+
107+
2. **Manual Mode**: Allows you to select a specific supplier and item while the system extracts only the financial data. Useful when:
108+
- Working with unfamiliar suppliers
109+
- Dealing with low-quality scans
110+
- Needing consistent item categorization for reporting
111+
90112
## Monitoring Results
91113

92114
After processing, use the Invoice2Erpnext Log to monitor status:
93115

94116
1. Navigate to **Invoice2Erpnext Log** in your ERPNext menu
95117
2. View processing status for each uploaded file:
96-
- Status: Shows "Success" if completed successfully
118+
- Status: Shows "Success" if completed successfully, or "Error" if issues occurred
97119
- Created Docs: Lists all documents created from the invoice
98-
- Message: Contains detailed processing information
120+
- Message: Contains detailed processing information or error messages
121+
- Cost: Shows the processing cost deducted from your credit balance
99122

100123
The original file will be automatically attached to the new Purchase Invoice.
101124

102125
## Troubleshooting
103126

104127
If processing fails:
105-
- Check the Invoice2Erpnext Log status and message fields
128+
- Check the Invoice2Erpnext Log status and message fields for specific error details
106129
- Common issues include:
107130
- Poor quality scans of invoices
108131
- Missing critical data (vendor name, invoice date, etc.)
109132
- Inconsistent totals that can't be reconciled
110133
- Connection issues with KAINOTOMO extraction service
134+
- Decimal point inconsistencies in amount fields
135+
- Insufficient credits in your account
111136

112-
For best results, ensure your invoice files are clear, properly scanned, and contain all critical information.
137+
For best results:
138+
- Ensure your invoice files are clear, properly scanned, and contain all critical information
139+
- Verify that suppliers and default items are properly configured
140+
- Check your credit balance regularly at [https://kainotomo.com/invoice2erpnext/shop](https://kainotomo.com/invoice2erpnext/shop)

documentation/prc-1.jpeg

-43 KB
Binary file not shown.

documentation/prc-4.png

66 KB
Loading

invoice2erpnext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
__version__ = '2.2.0'
2+
__version__ = '2.3.0'
33

0 commit comments

Comments
 (0)