Commit b30bea8
committed
[FIX] l10n_es_aeat_sii_match: Look for vendor bill properly
On vendor bills, the invoice number may be repeated across different
vendors, returning an incorrect matching. For minimizing this, we first
look for invoices with the same date, and if more than one match, then
we iterate for finding the one matching (maybe partially) the VAT.
We are not including the VAT comparison on the initial search, because
you may have other identifier set on the partner, and then not returning
any result at all, so we reserve this check only in case of multiple
match.1 parent afe352f commit b30bea8
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | | - | |
171 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
172 | 185 | | |
173 | 186 | | |
174 | 187 | | |
| |||
0 commit comments