diff --git a/UI_V2/admin/inventory/goods_reception.py b/UI_V2/admin/inventory/goods_reception.py index 2c44d47..b287381 100644 --- a/UI_V2/admin/inventory/goods_reception.py +++ b/UI_V2/admin/inventory/goods_reception.py @@ -150,7 +150,7 @@ class GoodsReception: rows=[] ) - self.placeholder = ft.Column([self.products_table], width=900) + self.placeholder = ft.Column([self.products_table], width=900, scroll=ft.ScrollMode.ADAPTIVE) def show_bill_products(self): all_products = self.bulk_products_manager.get_products_by_bill_id(self.selected_bill['id'])[::-1] @@ -159,8 +159,8 @@ class GoodsReception: for product in all_products: print(product) price = round((product['price']*product['quantity'])*product['vat']/100+(product['price']*product['quantity']),2) - product_price = product['price']*product['quantity'] - vat_value = (product['price']*product['quantity'])*product['vat']/100 + product_price = round(product['price']*product['quantity'],2) + vat_value = round((product['price']*product['quantity'])*product['vat']/100,2) self.products_table.rows.append( ft.DataRow( cells=[