mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
updated landed cost wizard
This commit is contained in:
@@ -54,6 +54,8 @@ class DocType:
|
|||||||
def get_selected_pr(self):
|
def get_selected_pr(self):
|
||||||
""" Get selected purchase receipt no """
|
""" Get selected purchase receipt no """
|
||||||
self.selected_pr = [d.purchase_receipt for d in getlist(self.doclist, 'lc_pr_details') if d.select_pr]
|
self.selected_pr = [d.purchase_receipt for d in getlist(self.doclist, 'lc_pr_details') if d.select_pr]
|
||||||
|
if not self.selected_pr:
|
||||||
|
msgprint("Please select atleast one PR to proceed.", raise_exception=1)
|
||||||
|
|
||||||
def validate_selected_pr(self):
|
def validate_selected_pr(self):
|
||||||
"""Validate selected PR as submitted"""
|
"""Validate selected PR as submitted"""
|
||||||
@@ -180,7 +182,6 @@ class DocType:
|
|||||||
if ocd[oc].category != "For Valuation":
|
if ocd[oc].category != "For Valuation":
|
||||||
prev_total += add_ded * flt(ocd[oc].total_amount)
|
prev_total += add_ded * flt(ocd[oc].total_amount)
|
||||||
total += add_ded * flt(ocd[oc].tax_amount)
|
total += add_ded * flt(ocd[oc].tax_amount)
|
||||||
msgprint(add_ded * flt(ocd[oc].tax_amount))
|
|
||||||
ocd[oc].total = total
|
ocd[oc].total = total
|
||||||
else:
|
else:
|
||||||
prev_total = prev_total
|
prev_total = prev_total
|
||||||
|
|||||||
Reference in New Issue
Block a user