mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
first cut error fixes
This commit is contained in:
@@ -45,10 +45,10 @@ class DocType:
|
||||
if args.get("actual_qty"):
|
||||
# update valuation and qty after transaction for post dated entry
|
||||
update_entries_after({
|
||||
item_code: self.doc.item_code,
|
||||
warehouse: self.doc.warehouse,
|
||||
posting_date: args.get("posting_date"),
|
||||
posting_time: args.get("posting_time")
|
||||
"item_code": self.doc.item_code,
|
||||
"warehouse": self.doc.warehouse,
|
||||
"posting_date": args.get("posting_date"),
|
||||
"posting_time": args.get("posting_time")
|
||||
})
|
||||
|
||||
def update_qty(self, args):
|
||||
|
||||
@@ -157,14 +157,13 @@ class DocType(TransactionBase):
|
||||
"""get stock and incoming rate on posting date"""
|
||||
for d in getlist(self.doclist, 'mtn_details'):
|
||||
args = {
|
||||
item_code: d.item_code,
|
||||
warehouse: d.s_warehouse or d.t_warehouse,
|
||||
posting_date: self.doc.posting_date,
|
||||
posting_time: self.doc.posting_time,
|
||||
qty: d.transfer_qty,
|
||||
serial_no: d.serial_no,
|
||||
bom_no: d.bom_no
|
||||
|
||||
"item_code": d.item_code,
|
||||
"warehouse": d.s_warehouse or d.t_warehouse,
|
||||
"posting_date": self.doc.posting_date,
|
||||
"posting_time": self.doc.posting_time,
|
||||
"qty": d.transfer_qty,
|
||||
"serial_no": d.serial_no,
|
||||
"bom_no": d.bom_no
|
||||
}
|
||||
# get actual stock at source warehouse
|
||||
d.actual_qty = get_previous_sle(args).get("qty_after_transaction") or 0
|
||||
@@ -308,8 +307,8 @@ class DocType(TransactionBase):
|
||||
import json
|
||||
args, actual_qty, in_rate = json.loads(args), 0, 0
|
||||
args.update({
|
||||
posting_date: self.doc.posting_date,
|
||||
posting_time: self.doc.posting_time
|
||||
"posting_date": self.doc.posting_date,
|
||||
"posting_time": self.doc.posting_time
|
||||
})
|
||||
|
||||
ret = {
|
||||
|
||||
@@ -205,10 +205,10 @@ class DocType(DocListController):
|
||||
# repost future entries for selected item_code, warehouse
|
||||
for entries in existing_entries:
|
||||
update_entries_after({
|
||||
item_code: entries.item_code,
|
||||
warehouse: entries.warehouse,
|
||||
posting_date: self.doc.posting_date,
|
||||
posting_time: self.doc.posting_time
|
||||
"item_code": entries.item_code,
|
||||
"warehouse": entries.warehouse,
|
||||
"posting_date": self.doc.posting_date,
|
||||
"posting_time": self.doc.posting_time
|
||||
})
|
||||
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ class DocType:
|
||||
if flt(self.doc.conversion_factor) != flt(1):
|
||||
wh = sql("select name from `tabWarehouse`")
|
||||
for w in wh:
|
||||
update_entries_after({item_code: self.doc.item_code, warehouse: w[0]})
|
||||
update_entries_after({"item_code": self.doc.item_code, "warehouse": w[0]})
|
||||
|
||||
# acknowledge user
|
||||
msgprint("Item Valuation Updated Successfully.")
|
||||
|
||||
@@ -121,12 +121,7 @@ class DocType:
|
||||
if not warehouse:
|
||||
warehouse = self.doc.name
|
||||
|
||||
update_entries_after({
|
||||
item_code: item_code,
|
||||
warehouse: warehouse,
|
||||
posting_date: '1900-01-01',
|
||||
posting_time = '10:00'
|
||||
})
|
||||
update_entries_after({ "item_code": item_code, "warehouse": warehouse })
|
||||
|
||||
def repost_reserved_qty(self, bin):
|
||||
reserved_qty = webnotes.conn.sql("""
|
||||
|
||||
Reference in New Issue
Block a user