Skip to content

Commit

Permalink
Major Changes to Carrier Tracking Updated:
Browse files Browse the repository at this point in the history
 - CTrack now submitted on Booking
 - Ctrack is also now having a web-view.
  • Loading branch information
adityaduggal committed Jun 16, 2020
1 parent 9ba7b04 commit 5214704
Show file tree
Hide file tree
Showing 9 changed files with 843 additions and 563 deletions.
309 changes: 154 additions & 155 deletions rigpl_erpnext/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
app_email = "[email protected]"
app_url = "https://github.com/adityaduggal/custom_erpnext"
app_version = "0.0.1"
fixtures = ["Custom Field","Custom Script"]
fixtures = ["Custom Field", "Custom Script"]
hide_in_installer = True

# Includes in <head>
Expand Down Expand Up @@ -61,168 +61,167 @@
# Hook on document methods and events

doc_events = {
"Account": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.account.validate"
},
"Attendance": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.attendance.validate",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.attendance.on_update",
"update_after_submit": "rigpl_erpnext.rigpl_erpnext.validations.attendance.on_update"
},
"Communication": {
"validate" : "rigpl_erpnext.rigpl_erpnext.validations.communication.validate"
},
"Customer": {
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.customer.on_update",
"validate" : "rigpl_erpnext.rigpl_erpnext.validations.customer.validate"
},
"Delivery Note": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.on_cancel"
},
"Department": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.department.validate"
},
"Employee": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.employee.validate",
"autoname": "rigpl_erpnext.rigpl_erpnext.validations.employee.autoname",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.employee.on_update",
},
"Expense Claim": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.expense_claim.validate"
},
"Holiday List":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.holiday_list.validate"
},
"Item": {
"validate": "rigpl_erpnext.rigpl_erpnext.item.validate",
"autoname": "rigpl_erpnext.rigpl_erpnext.item.autoname"
},
"Item Group":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.item_group.validate"
},
"Item Price":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.item_price.validate"
},
"Lead": {
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.lead.on_update",
"validate": "rigpl_erpnext.rigpl_erpnext.validations.lead.validate"
},
"Leave Application":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.leave_application.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.leave_application.on_submit"
},
"Opportunity":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.opportunity.validate"
},
"Price List":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.price_list.validate"
},
"Purchase Order":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_cancel",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_update"
},
"Purchase Invoice":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_invoice.validate"
},
"Purchase Receipt":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_cancel",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_update"
},
"Quality": {
"autoname": "rigpl_erpnext.rigpl_erpnext.quality.autoname"
},
"Quotation":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.quotation.validate"
},
"Salary Component":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_component.validate"
},
"Salary Slip":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.on_cancel"
},
"Salary Structure":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_structure.validate"
},
"Salary Structure Assignment":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_structure_assignment.validate"
},
"Sales Invoice": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.on_cancel"
},
"Sales Order": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.on_cancel"
},
"Stock Entry": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.stock_entry.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.stock_entry.validate"
},
"Stock Reconciliation":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.stock_reconciliation.validate"
},
"Supplier":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.supplier.validate"
},
"ToDo":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.todo.validate"
},
"Warehouse":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.warehouse.validate"
},
"Work Order":{
"validate": "rigpl_erpnext.rigpl_erpnext.validations.work_order.validate"
},
"Account": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.account.validate"
},
"Attendance": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.attendance.validate",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.attendance.on_update",
"update_after_submit": "rigpl_erpnext.rigpl_erpnext.validations.attendance.on_update"
},
"Communication": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.communication.validate"
},
"Customer": {
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.customer.on_update",
"validate": "rigpl_erpnext.rigpl_erpnext.validations.customer.validate"
},
"Delivery Note": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.delivery_note.on_cancel"
},
"Department": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.department.validate"
},
"Employee": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.employee.validate",
"autoname": "rigpl_erpnext.rigpl_erpnext.validations.employee.autoname",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.employee.on_update",
},
"Expense Claim": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.expense_claim.validate"
},
"Holiday List": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.holiday_list.validate"
},
"Item": {
"validate": "rigpl_erpnext.rigpl_erpnext.item.validate",
"autoname": "rigpl_erpnext.rigpl_erpnext.item.autoname"
},
"Item Group": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.item_group.validate"
},
"Item Price": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.item_price.validate"
},
"Lead": {
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.lead.on_update",
"validate": "rigpl_erpnext.rigpl_erpnext.validations.lead.validate"
},
"Leave Application": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.leave_application.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.leave_application.on_submit"
},
"Opportunity": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.opportunity.validate"
},
"Price List": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.price_list.validate"
},
"Purchase Order": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_cancel",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.purchase_order.on_update"
},
"Purchase Invoice": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_invoice.validate"
},
"Purchase Receipt": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_cancel",
"on_update": "rigpl_erpnext.rigpl_erpnext.validations.purchase_receipt.on_update"
},
"Quality": {
"autoname": "rigpl_erpnext.rigpl_erpnext.quality.autoname"
},
"Quotation": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.quotation.validate"
},
"Salary Component": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_component.validate"
},
"Salary Slip": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.salary_slip.on_cancel"
},
"Salary Structure": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_structure.validate"
},
"Salary Structure Assignment": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.salary_structure_assignment.validate"
},
"Sales Invoice": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.sales_invoice.on_cancel"
},
"Sales Order": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.on_submit",
"on_cancel": "rigpl_erpnext.rigpl_erpnext.validations.sales_order.on_cancel"
},
"Stock Entry": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.stock_entry.validate",
"on_submit": "rigpl_erpnext.rigpl_erpnext.validations.stock_entry.validate"
},
"Stock Reconciliation": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.stock_reconciliation.validate"
},
"Supplier": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.supplier.validate"
},
"ToDo": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.todo.validate"
},
"Warehouse": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.warehouse.validate"
},
"Work Order": {
"validate": "rigpl_erpnext.rigpl_erpnext.validations.work_order.validate"
},
}

# Scheduled Tasks
# ---------------

scheduler_events = {
"cron": {
"10 2 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.variant_copy.check_wrong_variants"
#Runs everyday at 2:10 AM
],
"*/16 * * * *":[
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.indiamart.execute"
],
"10 3 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.item_valuation_rate.set_valuation_rate_for_all"
#Runs everyday at 3:10 AM
]
},
"all": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.default_permissions.create_defaults"
],
"daily": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.permission_check.check_permission_exist",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.work_order_status.execute"

],
"hourly": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.communication.daily",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.shipment_data_update.send_bulk_tracks",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.shipment_data_update.get_all_ship_data",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.automate_docshare.execute"
]
# "monthly": [
# "rigpl_erpnext.tasks.monthly"
# ]
}
"cron": {
"10 2 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.variant_copy.check_wrong_variants"
# Runs everyday at 2:10 AM
],
"*/16 * * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.indiamart.execute"
],
"10 3 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.item_valuation_rate.set_valuation_rate_for_all"
# Runs everyday at 3:10 AM
]
},
"all": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.default_permissions.create_defaults"
],
"daily": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.permission_check.check_permission_exist",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.work_order_status.execute"

],
"hourly": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.communication.daily",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.shipment_data_update.send_bulk_tracks",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.shipment_data_update.get_all_ship_data",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.automate_docshare.execute"
]
# "monthly": [
# "rigpl_erpnext.tasks.monthly"
# ]
}

# Testing
# -------

# before_tests = "rigpl_erpnext.install.before_tests"

Loading

0 comments on commit 5214704

Please sign in to comment.