mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Fixed test cases
This commit is contained in:
@@ -89,6 +89,10 @@ class Company(Document):
|
|||||||
if self.default_currency:
|
if self.default_currency:
|
||||||
frappe.db.set_value("Currency", self.default_currency, "enabled", 1)
|
frappe.db.set_value("Currency", self.default_currency, "enabled", 1)
|
||||||
|
|
||||||
|
if hasattr(frappe.local, 'enable_perpetual_inventory') and \
|
||||||
|
self.name in frappe.local.enable_perpetual_inventory:
|
||||||
|
frappe.local.enable_perpetual_inventory[self.name] = self.enable_perpetual_inventory
|
||||||
|
|
||||||
frappe.clear_cache()
|
frappe.clear_cache()
|
||||||
|
|
||||||
def install_country_fixtures(self):
|
def install_country_fixtures(self):
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ erpnext.stock.PurchaseReceiptController = erpnext.buying.BuyingController.extend
|
|||||||
this._super();
|
this._super();
|
||||||
if(this.frm.doc.docstatus===1) {
|
if(this.frm.doc.docstatus===1) {
|
||||||
this.show_stock_ledger();
|
this.show_stock_ledger();
|
||||||
if (erpnext.is_perpetual_inventory_enabled(doc.company)) {
|
if (erpnext.is_perpetual_inventory_enabled(this.frm.doc.company)) {
|
||||||
this.show_general_ledger();
|
this.show_general_ledger();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user