temp(travis): Print statement to fix travis
This commit is contained in:
parent
48e0e19b03
commit
2665c37f38
@ -189,7 +189,8 @@ class ShareTransfer(Document):
|
||||
if (shareholder == 'from_shareholder') else self.to_folio_no;
|
||||
doc.save()
|
||||
else:
|
||||
if doc.folio_no != (self.from_folio_no if (shareholder == 'from_shareholder') else self.to_folio_no):
|
||||
print(doc.name, doc.folio_no, self.from_folio_no, shareholder, self.to_folio_no)
|
||||
if doc.folio_no and doc.folio_no != (self.from_folio_no if (shareholder == 'from_shareholder') else self.to_folio_no):
|
||||
frappe.throw(_('The folio numbers are not matching'))
|
||||
|
||||
def autoname_folio(self, shareholder, is_company=False):
|
||||
|
@ -79,7 +79,9 @@ class TestShareTransfer(unittest.TestCase):
|
||||
}
|
||||
]
|
||||
for d in share_transfers:
|
||||
frappe.get_doc(d).submit()
|
||||
st = frappe.get_doc(d)
|
||||
print(st.as_dict())
|
||||
st.submit()
|
||||
|
||||
def test_invalid_share_transfer(self):
|
||||
doc = frappe.get_doc({
|
||||
|
Loading…
x
Reference in New Issue
Block a user