Skip to content

Commit

Permalink
Merge pull request #4088 from mikhailprivalov/fixHL7
Browse files Browse the repository at this point in the history
fix HL7
  • Loading branch information
Wellheor1 authored Jul 10, 2024
2 parents 54d5feb + 8fe781b commit c766765
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ftp_orders/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ def push_order(self, direction: Napravleniya):
else:
price_code_value = direction.price_name.symbol_code
pv.PV1.PV1_20.value = f"Договор^^{direction.price_name.title}^{price_code_value}"
pv.PV1.PV1_7.value = f"{price_code_value}"
if direction.doc_who_create.podrazdeleniye.oid:
department_code = direction.doc_who_create.podrazdeleniye.oid
else:
department_code = l2_price_code
pv.PV1.PV1_7.value = f"{department_code}"
else:
pv.PV1.PV1_20.value = "Наличные"
pv.PV1.PV1_44.value = direction.data_sozdaniya.strftime("%Y%m%d")
Expand Down

0 comments on commit c766765

Please sign in to comment.