[buying controller] [fix] fixed message for company warehouse mismatch validation
This commit is contained in:
parent
cd772daf1d
commit
eb41ffd24e
@ -50,8 +50,7 @@ class BuyingController(StockController):
|
||||
for warehouse, company in webnotes.conn.get_values("Warehouse",
|
||||
self.doclist.get_distinct_values("warehouse"), "company").items():
|
||||
if company and company != self.doc.company:
|
||||
webnotes.msgprint(_("Warehouse must belong to company") + \
|
||||
(": %s (%s, %s)" % (warehouse, company, self.doc.company)),
|
||||
webnotes.msgprint(_("Company mismatch for Warehouse") + (": %s" % (warehouse,)),
|
||||
raise_exception=WrongWarehouseCompany)
|
||||
|
||||
def validate_stock_or_nonstock_items(self):
|
||||
|
@ -2,6 +2,7 @@ test_records = [
|
||||
[{
|
||||
"doctype": "Price List",
|
||||
"price_list_name": "_Test Price List",
|
||||
"currency": "INR"
|
||||
"currency": "INR",
|
||||
"valid_for_all_countries": 1
|
||||
}]
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user