fixed document

This commit is contained in:
Rohit Waghchaure 2017-06-16 18:22:30 +05:30
parent 6945d0dd8a
commit 65ccb42f95
5 changed files with 4 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -8,7 +8,7 @@ On receipt of items in a particular warehouse, the balance in the Warehouse Acco
* Activate Perpetual Inventory
> Explore > Accounts > Accounts Settings > "Make Accounting Entry For Every Stock Movement"
> Setup > Company > Stock Settings > "Enable Perpetual Inventory"
<img class="screenshot" alt="Perpetual Inventory" src="{{docs_base_url}}/assets/img/accounts/perpetual-1.png">

View File

@ -103,9 +103,8 @@ frappe.ui.form.on('Stock Entry', {
}
});
},
toggle_display_account_head: function(frm) {
var enabled = frappe.get_doc(":Company", frm.doc.company).enable_perpetual_inventory
var enabled = frappe.get_doc(":Company", frm.doc.company).enable_perpetual_inventory;
frm.fields_dict["items"].grid.set_column_disp(["cost_center", "expense_account"], enabled);
}
})

View File

@ -170,7 +170,6 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({
this.frm.add_fetch("company", "stock_adjustment_account", "expense_account");
this.frm.add_fetch("company", "cost_center", "cost_center");
}
this.frm.fields_dict["expense_account"].get_query = function() {
if(frappe.get_doc(":Company", me.frm.doc.company).enable_perpetual_inventory) {
return {