brotherton-erpnext/erpnext
tundebabzy acccdb3890 Default batch number selection (#11454)
* fetch batch_no in `get_basic_details`

* PEP8 changes and docstring

* only auto-fetch batch number for Sales documents:
otherwise, automatic batch creation will not work properly because all new
stock will be added to old batch

* new function to fetch batch number using FEFO:
FEFO - First Expiring First Out

* fetch batch number in `get_basic_details` using FEFO

* add new function - `set_batch_number`

* `set_batch_number` when `qty` is triggered

* `set_batch_number` when `uom` is triggered

* whitelist `get_batch_no_fefo`

* code clean up

* move `set_batch_number` to conversion_factor instead of uom

* rename `get_batch_no_fefo` to `get_batch_no`

* fix test case

* final cleanup

* Revert "fetch batch_no in `get_basic_details`"

This reverts commit dd024b1eb369eaeafab28165d523fb7a9f8ab8d3.

* fix test case

* update Sales Invoice manual

* move changes away from `transaction.js`

* query should not fetch expired batches

* refactor `get_batch_no`:
add new function `get_batches`

* Update batch.py
2017-11-23 13:05:15 +05:30
..
accounts Set print hide property for payment terms 2017-11-23 12:49:42 +05:30
buying Set print hide property for payment terms 2017-11-23 12:49:42 +05:30
change_log change log for version 9 2017-09-26 12:41:43 +05:30
commands [demo] make it faster, do not send user email 2017-06-16 16:55:32 +05:30
config Variant report (#11618) 2017-11-17 12:00:29 +05:30
controllers [fix] merge-conflicts 2017-11-22 18:01:56 +05:30
crm [enhance] Add Issue Type and Opportunity Type masters (#11598) 2017-11-16 17:03:52 +05:30
demo [fix] merge-conflicts 2017-11-22 18:01:56 +05:30
docs Default batch number selection (#11454) 2017-11-23 13:05:15 +05:30
domains [patch] Revert Manufacturing User role (#11514) 2017-11-10 19:15:17 +05:30
erpnext_integrations Add Github Connector (#11259) 2017-11-13 19:19:13 +05:30
healthcare Healthcare hotfix (#11586) 2017-11-15 13:53:50 +05:30
hr Merge branch 'develop' into payment-terms 2017-11-17 12:41:56 +05:30
hub Hub (#10934) 2017-10-05 11:17:30 +05:30
hub_node Merge branch 'develop' into payment-terms 2017-11-17 12:41:56 +05:30
maintenance fixed merge conflicts 2017-06-15 13:42:47 +05:30
manufacturing Merge branch 'develop' into payment-terms 2017-11-17 12:41:56 +05:30
patches Merge branch 'develop' of https://github.com/frappe/erpnext into develop 2017-11-21 20:19:13 +05:30
portal [Website] Items list and stock (#11480) 2017-11-17 11:41:07 +05:30
projects adding task to root node (#11666) 2017-11-21 16:12:01 +05:30
public [fix] Rounding adjustment in company currency 2017-11-22 16:12:20 +05:30
regional Gst doctype roles (#10984) 2017-10-02 11:38:40 +05:30
restaurant UI test fixed for supplier quotation (#11260) 2017-10-21 10:44:30 +05:30
schools add courses in the program enrollment (#11694) 2017-11-23 12:19:57 +05:30
selling Default batch number selection (#11454) 2017-11-23 13:05:15 +05:30
setup Merge branch 'develop' of https://github.com/frappe/erpnext into develop 2017-11-21 20:19:13 +05:30
shopping_cart Fixed merge conflict 2017-11-21 20:18:03 +05:30
startup [hotfix] User not able to edit exchange rate even if Allow Stale Exchange Rates is disabled in the accounts settings (#11409) 2017-11-02 18:12:14 +05:30
stock Default batch number selection (#11454) 2017-11-23 13:05:15 +05:30
support [enhance] Add Issue Type and Opportunity Type masters (#11598) 2017-11-16 17:03:52 +05:30
templates [Website] Items list and stock (#11480) 2017-11-17 11:41:07 +05:30
tests Merge branch 'develop' of https://github.com/frappe/erpnext into develop 2017-11-21 20:19:13 +05:30
translations [Translation] Updated Translations (#11591) 2017-11-15 16:30:08 +05:30
utilities [Website] Items list and stock (#11480) 2017-11-17 11:41:07 +05:30
__init__.py bumped to version 9.2.16 2017-11-22 18:24:18 +06:00
exceptions.py
hooks.py [fix] issue #11456 (#11612) 2017-11-17 11:42:24 +05:30
modules.txt Add Github Connector (#11259) 2017-11-13 19:19:13 +05:30
patches.txt Merge branch 'develop' of https://github.com/frappe/erpnext into develop 2017-11-21 20:19:13 +05:30