[hotfix] set the account name in GL entry instead of warehouse (#10134)
This commit is contained in:
parent
9c6e2c3637
commit
145393b12f
@ -225,7 +225,7 @@ class PurchaseReceipt(BuyingController):
|
|||||||
# sub-contracting warehouse
|
# sub-contracting warehouse
|
||||||
if flt(d.rm_supp_cost) and warehouse_account.get(self.supplier_warehouse):
|
if flt(d.rm_supp_cost) and warehouse_account.get(self.supplier_warehouse):
|
||||||
gl_entries.append(self.get_gl_dict({
|
gl_entries.append(self.get_gl_dict({
|
||||||
"account": warehouse_account[self.supplier_warehouse]["name"],
|
"account": warehouse_account[self.supplier_warehouse]["account"],
|
||||||
"against": warehouse_account[d.warehouse]["account"],
|
"against": warehouse_account[d.warehouse]["account"],
|
||||||
"cost_center": d.cost_center,
|
"cost_center": d.cost_center,
|
||||||
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user