Skip to content

Commit

Permalink
Paynet switch Odoo order ref with customer order ref
Browse files Browse the repository at this point in the history
Reading the specs it seemed to be the other way around.
But it has been confirmed by someone at SIX. That the reference for
linked sale order must be the customer order reference.
  • Loading branch information
TDu committed Nov 23, 2020
1 parent 7c40001 commit fd9757c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ebill_paynet/messages/invoice-2003A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@
</REFERENCE-DATE>
</INVOICE-REFERENCE>
{% for order in invoice_line.sale_line_ids.mapped('order_id') %}
{%- if order.client_order_ref %}
<ORDER>
<REFERENCE-DATE>
<Reference-No>{{ order.name }}</Reference-No>
<Reference-No>{{ order.client_order_ref }}</Reference-No>
<Date Format="CCYYMMDD">{{ format_date(order.date_order) }}</Date>
</REFERENCE-DATE>
</ORDER>
{%- endif %}
{% endfor %}
</REFERENCE>
<BILLER>
Expand Down
3 changes: 1 addition & 2 deletions ebill_paynet/tests/examples/invoice_b2b.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
</REFERENCE-DATE>
</INVOICE-REFERENCE>
<ORDER>
<!-- TODO add linked sale order in test -->
<REFERENCE-DATE>
<Reference-No>Order123</Reference-No>
<Reference-No>CustomerRef</Reference-No>
<Date Format="CCYYMMDD">20190601</Date>
</REFERENCE-DATE>
</ORDER>
Expand Down

0 comments on commit fd9757c

Please sign in to comment.