brotherton-erpnext/erpnext/docs/current/api/controllers/erpnext.controllers.stock_controller.html
2015-12-03 18:28:19 +05:30

323 lines
9.5 KiB
HTML

<!-- title: erpnext.controllers.stock_controller --><div class="dev-header">
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
Version 6.x.x</a>
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/blob/develop/erpnext/controllers/stock_controller.py"
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
</div>
<h3 style="font-weight: normal;">Class <b>StockController</b></h3>
<p style="padding-left: 30px;"><i>Inherits from erpnext.controllers.accounts_controller.AccountsController</i></h4>
<div class="docs-attr-desc"><p></p>
</div>
<div style="padding-left: 30px;">
<p class="docs-attr-name">
<a name="check_expense_account" href="#check_expense_account" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>check_expense_account</b>
<i class="text-muted">(self, item)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_gl_entries" href="#get_gl_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_gl_entries</b>
<i class="text-muted">(self, warehouse_account=None, default_expense_account=None, default_cost_center=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_incoming_rate_for_sales_return" href="#get_incoming_rate_for_sales_return" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_incoming_rate_for_sales_return</b>
<i class="text-muted">(self, item_code, warehouse, against_document)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_items_and_warehouses" href="#get_items_and_warehouses" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_items_and_warehouses</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_serialized_items" href="#get_serialized_items" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_serialized_items</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_sl_entries" href="#get_sl_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_sl_entries</b>
<i class="text-muted">(self, d, args)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_stock_ledger_details" href="#get_stock_ledger_details" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_stock_ledger_details</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_voucher_details" href="#get_voucher_details" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_voucher_details</b>
<i class="text-muted">(self, default_expense_account, default_cost_center, sle_map)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="make_adjustment_entry" href="#make_adjustment_entry" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>make_adjustment_entry</b>
<i class="text-muted">(self, expected_gle, voucher_obj)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="make_gl_entries" href="#make_gl_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>make_gl_entries</b>
<i class="text-muted">(self, repost_future_gle=True)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="make_gl_entries_on_cancel" href="#make_gl_entries_on_cancel" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>make_gl_entries_on_cancel</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="make_sl_entries" href="#make_sl_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>make_sl_entries</b>
<i class="text-muted">(self, sl_entries, is_amended=None, allow_negative_stock=False, via_landed_cost_voucher=False)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="update_reserved_qty" href="#update_reserved_qty" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>update_reserved_qty</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="update_stock_ledger" href="#update_stock_ledger" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>update_stock_ledger</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="validate_warehouse" href="#validate_warehouse" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_warehouse</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
</div>
<hr>
<p class="docs-attr-name">
<a name="erpnext.controllers.stock_controller.compare_existing_and_expected_gle" href="#erpnext.controllers.stock_controller.compare_existing_and_expected_gle" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.controllers.stock_controller.<b>compare_existing_and_expected_gle</b>
<i class="text-muted">(existing_gle, expected_gle)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.controllers.stock_controller.get_future_stock_vouchers" href="#erpnext.controllers.stock_controller.get_future_stock_vouchers" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.controllers.stock_controller.<b>get_future_stock_vouchers</b>
<i class="text-muted">(posting_date, posting_time, for_warehouses=None, for_items=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.controllers.stock_controller.get_voucherwise_gl_entries" href="#erpnext.controllers.stock_controller.get_voucherwise_gl_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.controllers.stock_controller.<b>get_voucherwise_gl_entries</b>
<i class="text-muted">(future_stock_vouchers, posting_date)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.controllers.stock_controller.get_warehouse_account" href="#erpnext.controllers.stock_controller.get_warehouse_account" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.controllers.stock_controller.<b>get_warehouse_account</b>
<i class="text-muted">()</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.controllers.stock_controller.update_gl_entries_after" href="#erpnext.controllers.stock_controller.update_gl_entries_after" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.controllers.stock_controller.<b>update_gl_entries_after</b>
<i class="text-muted">(posting_date, posting_time, for_warehouses=None, for_items=None, warehouse_account=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<!-- autodoc -->