Skip to content

Commit

Permalink
fix(Sales Invoice): add PO Date only if PO No is present (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Jan 9, 2025
1 parent 88537b9 commit 65b932f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eu_einvoice/european_e_invoice/custom/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def create_einvoice(self):
if self.invoice.po_no:
self.doc.trade.agreement.buyer_order.issuer_assigned_id = self.invoice.po_no

if self.invoice.po_date:
self.doc.trade.agreement.buyer_order.issue_date_time = getdate(self.invoice.po_date)
if self.invoice.po_date:
self.doc.trade.agreement.buyer_order.issue_date_time = getdate(self.invoice.po_date)

sales_orders = set()
for item in self.invoice.items:
Expand Down

0 comments on commit 65b932f

Please sign in to comment.