From e9bdaa96d86105c8a6b0bb20d197eb288f79c3e9 Mon Sep 17 00:00:00 2001 From: Marius Robert Macamete Date: Wed, 26 Nov 2025 16:38:30 +0200 Subject: [PATCH] add fix size --- UI_V2/admin/inventory/goods_reception.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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=[