Skip to content

Commit

Permalink
feat(Statement of Fees and Payments): naming series (LAN-844)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Sep 3, 2024
1 parent 1ddd797 commit 39177ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@
],
"is_submittable": 1,
"links": [],
"modified": "2024-09-03 20:58:09.750801",
"modified": "2024-09-03 21:01:27.988587",
"modified_by": "Administrator",
"module": "LANDA Sales",
"name": "Statement of Fees and Payments",
"naming_rule": "By script",
"owner": "Administrator",
"permissions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
from frappe.utils.data import get_link_to_form
from pandas import DataFrame as df

from landa.utils import get_new_name


class StatementofFeesandPayments(Document):
def autoname(self):
self.name = get_new_name("BA", self.company, self.doctype, self.year_of_settlement)

def before_save(self):
self.fetch_payments()
self.fetch_sales()
Expand Down

0 comments on commit 39177ed

Please sign in to comment.