expense bill bug fixes
This commit is contained in:
parent
ee8d8cf287
commit
8afac7e97d
@ -501,8 +501,8 @@ def bill_item_formset_table(context, item_formset):
|
||||
for item in item_formset:
|
||||
if item:
|
||||
print(item.fields["item_model"])
|
||||
item.initial["quantity"] = item.instance.po_quantity
|
||||
item.initial["unit_cost"] = item.instance.po_unit_cost
|
||||
item.initial["quantity"] = item.instance.po_quantity if item.instance.po_quantity else item.instance.quantity
|
||||
item.initial["unit_cost"] = item.instance.po_unit_cost if item.instance.po_unit_cost else item.instance.unit_cost
|
||||
# print(item.instance.po_quantity)
|
||||
# print(item.instance.po_unit_cost)
|
||||
# print(item.instance.po_total_amount)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user