add fix size
This commit is contained in:
@@ -150,7 +150,7 @@ class GoodsReception:
|
|||||||
rows=[]
|
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):
|
def show_bill_products(self):
|
||||||
all_products = self.bulk_products_manager.get_products_by_bill_id(self.selected_bill['id'])[::-1]
|
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:
|
for product in all_products:
|
||||||
print(product)
|
print(product)
|
||||||
price = round((product['price']*product['quantity'])*product['vat']/100+(product['price']*product['quantity']),2)
|
price = round((product['price']*product['quantity'])*product['vat']/100+(product['price']*product['quantity']),2)
|
||||||
product_price = product['price']*product['quantity']
|
product_price = round(product['price']*product['quantity'],2)
|
||||||
vat_value = (product['price']*product['quantity'])*product['vat']/100
|
vat_value = round((product['price']*product['quantity'])*product['vat']/100,2)
|
||||||
self.products_table.rows.append(
|
self.products_table.rows.append(
|
||||||
ft.DataRow(
|
ft.DataRow(
|
||||||
cells=[
|
cells=[
|
||||||
|
|||||||
Reference in New Issue
Block a user