Billing status in Purchase Receipt

This commit is contained in:
Nabin Hait
2015-12-30 19:08:11 +05:30
committed by Anand Doshi
parent ba5d6b5004
commit bdab0eea0f
8 changed files with 1595 additions and 1480 deletions

View File

@@ -312,6 +312,16 @@ class StockController(AccountsController):
for w in warehouses:
validate_warehouse_company(w, self.company)
def update_billing_percentage(self, set_modified=True):
self._update_percent_field({
"target_dt": self.doctype + " Item",
"target_parent_dt": self.doctype,
"target_parent_field": "per_billed",
"target_ref_field": "amount",
"target_field": "billed_amt",
"name": self.name,
}, set_modified)
def update_gl_entries_after(posting_date, posting_time, for_warehouses=None, for_items=None,
warehouse_account=None):