mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Translation Syntax
This commit is contained in:
@@ -159,8 +159,8 @@ class GLEntry(Document):
|
|||||||
|
|
||||||
if not self.flags.from_repost and not self.voucher_type == 'Period Closing Voucher' \
|
if not self.flags.from_repost and not self.voucher_type == 'Period Closing Voucher' \
|
||||||
and self.cost_center and _check_is_group():
|
and self.cost_center and _check_is_group():
|
||||||
frappe.throw(_("""{0} {1}: Cost Center {2} is a group cost center and group cost centers cannot
|
frappe.throw(_("""{0} {1}: Cost Center {2} is a group cost center and group cost centers cannot be used in transactions""").format(
|
||||||
be used in transactions""").format(self.voucher_type, self.voucher_no, frappe.bold(self.cost_center)))
|
self.voucher_type, self.voucher_no, frappe.bold(self.cost_center)))
|
||||||
|
|
||||||
def validate_party(self):
|
def validate_party(self):
|
||||||
validate_party_frozen_disabled(self.party_type, self.party)
|
validate_party_frozen_disabled(self.party_type, self.party)
|
||||||
|
|||||||
Reference in New Issue
Block a user