Commit 0448338
committed
[FIX] l10n_vn_edi_viettel: signs on credit notes
Description of the issue/feature this PR addresses:
- Viettel SInvoice will automatically change the signs of the
amount values (except for unit price) we sent for credit notes
(on accounts with data validation step). So the "right" values
will appear in the portal. Currently (before the commit) the
values have the wrong sign in the portal (because they are
changed but we sent the right ones already). We need to retain
the original signs of those values when submitting them to SInvoice.
Current behavior before PR:
- All the amount values, including itemTotalAmountWithoutTax,
taxAmount, itemTotalAmountAfterDiscount and itemTotalAmountWithTax
are sent to Viettel SInvoice in negative values for credit note.
Viettel SInvoice changes the sign of these values to positive
(which is not correct for credit note).
Desired behavior after PR is merged:
- Only the sign of unitPrice is changed when we send the credit note
to SInvoice.
Note:
- The signs will not automatically be changed for accounts with data
validation step removed. So this commit will break credit notes for
them (since the signs are not automatically adjusted but our values
have the wrong signs).
closes odoo#201993
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>1 parent 8a6ea6f commit 0448338
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | | - | |
706 | | - | |
| 705 | + | |
| 706 | + | |
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments