fix last bugs

This commit is contained in:
2025-09-16 10:47:18 +03:00
parent a43277cb7b
commit cf27903e10
13 changed files with 345 additions and 145 deletions

View File

@@ -236,7 +236,13 @@ class OrdersOutPage:
replacement_string=""
),
)
self.currency = ft.Dropdown(
self.currency_received = ft.Dropdown(
editable=True,
label="Currency",
options=self.get_currency(),
value="EURO",
)
self.currency_paid = ft.Dropdown(
editable=True,
label="Currency",
options=self.get_currency(),
@@ -778,7 +784,8 @@ class OrdersOutPage:
'paid_price': self.paid_price.value,
'loading_addresses': loading_addresses,
'unloading_addresses': unloading_addresses,
'currency':self.currency.value
'currency_received':self.currency_received.value,
'currency_paid': self.currency_paid.value
}
#print(saved_data)
if self.order_number.value == None or len(str(self.order_number.value))==0:
@@ -1054,13 +1061,22 @@ class OrdersOutPage:
ft.Row(
[
ft.Text("Price", size=18, weight=ft.FontWeight.BOLD),
self.currency
],
expand = True,
alignment=ft.MainAxisAlignment.SPACE_BETWEEN
),
self.received_price,
self.paid_price
ft.Row(
[
self.received_price,
self.currency_received
]
),
ft.Row(
[
self.paid_price,
self.currency_paid
]
)
],
expand=2.5,
alignment=ft.MainAxisAlignment.END