Skip to content

Commit

Permalink
feat: addded custom field in sales order
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalroshan123 committed Nov 11, 2024
1 parent b9be4f8 commit 1ed61b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions aumms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def after_install():
create_custom_fields(get_purchase_receipt_custom_fields(), ignore_validate=True)
create_custom_fields(get_sales_invoice_custom_fields(), ignore_validate=True)
create_custom_fields(get_jewellery_invoice_custom_fields(), ignore_validate=True)
create_custom_fields(get_sales_order_custom_fields(), ignore_validate=True)

def after_migrate():
after_install()
Expand Down Expand Up @@ -205,3 +206,23 @@ def get_jewellery_invoice_custom_fields():
}
]
}



def get_sales_order_custom_fields():
'''
Custom fields that need to be added to the Sales Order Doctype
'''
return {
"Sales Order": [

],
"Sales Order Item": [
{
"fieldname": "board_rate",
"fieldtype": "Data",
"label": "Board Rate",
"insert_after": "amount"
}
]
}

0 comments on commit 1ed61b3

Please sign in to comment.