Compare commits
2 commits
26f584e01d
...
120bcb150f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
120bcb150f | ||
|
|
bf00fe21a6 |
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ def before_insert(doc, method):
|
|||
print("DEBUG: Half-down amount set to:", half_down_amount)
|
||||
|
||||
|
||||
|
||||
def on_submit(doc, method):
|
||||
print("DEBUG: on_submit hook triggered for Sales Order:", doc.name)
|
||||
print("DEBUG: Info from Sales Order")
|
||||
|
|
@ -70,7 +71,7 @@ def after_insert(doc, method):
|
|||
ClientService.append_link_v2(
|
||||
doc.customer, "sales_orders", {"sales_order": doc.name, "project_template": doc.custom_project_template}
|
||||
)
|
||||
|
||||
|
||||
def on_update_after_submit(doc, method):
|
||||
print("DEBUG: on_update_after_submit hook triggered for Sales Order:", doc.name)
|
||||
if doc.requires_half_payment and doc.custom_halfdown_is_paid:
|
||||
|
|
@ -80,6 +81,7 @@ def on_update_after_submit(doc, method):
|
|||
frappe.set_value("Project", doc.project, "ready_to_schedule", 1)
|
||||
|
||||
|
||||
|
||||
def create_sales_invoice_from_sales_order(doc, method):
|
||||
pass
|
||||
# try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue