commit
4c93f35c2b
@ -24,7 +24,8 @@ class BankReconciliation(Document):
|
|||||||
`tabJournal Voucher` t1, `tabJournal Voucher Detail` t2
|
`tabJournal Voucher` t1, `tabJournal Voucher Detail` t2
|
||||||
where
|
where
|
||||||
t2.parent = t1.name and t2.account = %s
|
t2.parent = t1.name and t2.account = %s
|
||||||
and t1.posting_date >= %s and t1.posting_date <= %s and t1.docstatus=1 %s""" %
|
and t1.posting_date >= %s and t1.posting_date <= %s and t1.docstatus=1
|
||||||
|
and ifnull(t1.is_opening, 'No') = 'No' %s""" %
|
||||||
('%s', '%s', '%s', condition), (self.bank_account, self.from_date, self.to_date), as_dict=1)
|
('%s', '%s', '%s', condition), (self.bank_account, self.from_date, self.to_date), as_dict=1)
|
||||||
|
|
||||||
self.set('entries', [])
|
self.set('entries', [])
|
||||||
|
@ -577,7 +577,7 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2014-08-12 05:24:41.892586",
|
"modified": "2014-09-03 11:01:23.159584",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Entry",
|
"name": "Stock Entry",
|
||||||
@ -644,7 +644,7 @@
|
|||||||
],
|
],
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"read_only_onload": 0,
|
"read_only_onload": 0,
|
||||||
"search_fields": "transfer_date, from_warehouse, to_warehouse, purpose, remarks",
|
"search_fields": "posting_date, from_warehouse, to_warehouse, purpose, remarks",
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "DESC"
|
"sort_order": "DESC"
|
||||||
}
|
}
|
@ -243,12 +243,12 @@ class StockEntry(StockController):
|
|||||||
d.incoming_rate = incoming_rate
|
d.incoming_rate = incoming_rate
|
||||||
|
|
||||||
d.amount = flt(d.transfer_qty) * flt(d.incoming_rate)
|
d.amount = flt(d.transfer_qty) * flt(d.incoming_rate)
|
||||||
|
if not d.t_warehouse:
|
||||||
raw_material_cost += flt(d.amount)
|
raw_material_cost += flt(d.amount)
|
||||||
|
|
||||||
# set incoming rate for fg item
|
# set incoming rate for fg item
|
||||||
if self.purpose == "Manufacture/Repack":
|
if self.purpose == "Manufacture/Repack":
|
||||||
number_of_fg_items = len([t.t_warehouse for t in self.get("mtn_details")])
|
number_of_fg_items = len([t.t_warehouse for t in self.get("mtn_details") if t.t_warehouse])
|
||||||
|
|
||||||
for d in self.get("mtn_details"):
|
for d in self.get("mtn_details"):
|
||||||
if d.bom_no or (d.t_warehouse and number_of_fg_items == 1):
|
if d.bom_no or (d.t_warehouse and number_of_fg_items == 1):
|
||||||
if not flt(d.incoming_rate) or force:
|
if not flt(d.incoming_rate) or force:
|
||||||
|
Loading…
Reference in New Issue
Block a user