Version 6.7.7 Source

Table Name: `tabStock Reconciliation`

This tool helps you to update or fix the quantity and valuation of stock in the system. It is typically used to synchronise the system values and what actually exists in your warehouses.

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `posting_date` | Date | Posting Date |
2 | `posting_time` | Time | Posting Time |
3 | `col1` | Column Break |  |
4 | `amended_from` | Link | Amended From | Stock Reconciliation
5 | `company` | Link | Company | Company
6 | `sb9` | Section Break |  |
7 | `items` | Table | Items | Stock Reconciliation Item
8 | `get_items` | Button | Get Items |
9 | `section_break_9` | Section Break |  |
10 | `expense_account` | Link | Difference Account | Account
11 | `cost_center` | Link | Cost Center | Cost Center
12 | `reconciliation_json` | Long Text | Reconciliation JSON |
13 | `column_break_13` | Column Break |  |
14 | `difference_amount` | Currency | Difference Amount |
15 | `fold_15` | Fold |  |
16 | `section_break_16` | Section Break |  |
17 | `fiscal_year` | Link | Fiscal Year | Fiscal Year

### Controller

#### erpnext.stock.doctype.stock_reconciliation.stock_reconciliation

### Class EmptyStockReconciliationItemsError

Inherits from frappe.exceptions.ValidationError

### Class OpeningEntryAccountError

Inherits from frappe.exceptions.ValidationError

### Class StockReconciliation

Inherits from erpnext.controllers.stock_controller.StockController

__init__ (self, arg1, arg2=None)

No docs

delete_and_repost_sle (self)

    Delete Stock Ledger Entries related to this voucher

and repost future Stock Ledger Entries

get_gl_entries (self, warehouse_account=None)

No docs

get_items_for (self, warehouse)

No docs

insert_entries (self, row)

Insert Stock Ledger Entries

on_cancel (self)

No docs

on_submit (self)

No docs

remove_items_with_no_change (self)

Remove items if qty or rate is not changed

update_stock_ledger (self)

    find difference between current and expected entries

and create stock ledger entries based on the difference

validate (self)

No docs

validate_data (self)

No docs

validate_expense_account (self)

No docs

validate_item (self, item_code, row_num)

No docs

Public API
`/api/method/erpnext.stock.doctype.stock_reconciliation.stock_reconciliation.get_items`

erpnext.stock.doctype.stock_reconciliation.stock_reconciliation.get_items (warehouse, posting_date, posting_time)

No docs

#### Linked In:

- Stock Reconciliation