forked from frappe/erpnext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/webnotes/erpnext into de…
…velop
- Loading branch information
Showing
7 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors | ||
# License: GNU General Public License v3. See license.txt | ||
|
||
import webnotes | ||
|
||
def execute(): | ||
webnotes.conn.auto_commit_on_many_writes = 1 | ||
from utilities.repost_stock import repost_stock | ||
for d in webnotes.conn.sql("""select distinct production_item, fg_warehouse | ||
from `tabProduction Order` where docstatus>0""", as_dict=1): | ||
repost_stock(d.production_item, d.fg_warehouse) | ||
|
||
webnotes.conn.auto_commit_on_many_writes = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors | ||
# License: GNU General Public License v3. See license.txt | ||
|
||
from __future__ import unicode_literals | ||
import webnotes | ||
|
||
def execute(): | ||
serial_nos = webnotes.conn.sql("""select name from `tabSerial No` where docstatus=0 | ||
and status in ('Available', 'Sales Returned') and ifnull(warehouse, '') = ''""") | ||
for sr in serial_nos: | ||
try: | ||
sr_bean = webnotes.bean("Serial No", sr[0]) | ||
sr_bean.make_controller().via_stock_ledger = True | ||
sr_bean.save() | ||
webnotes.conn.commit() | ||
except: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters