-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create Shipment for shipstation shipments (#56)
- Loading branch information
1 parent
0d6d271
commit f0b73da
Showing
4 changed files
with
211 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
shipstation_integration.patches.set_enable_checks_in_shipstation_store | ||
shipstation_integration.patches.update_shipstation_warehouses | ||
shipstation_integration.patches.update_shipstation_warehouses | ||
shipstation_integration.patches.delete_delivery_note_shipment_custom_fields |
14 changes: 14 additions & 0 deletions
14
shipstation_integration/patches/delete_delivery_note_shipment_custom_fields.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import frappe | ||
|
||
|
||
def execute(): | ||
delivery_note_custom_fields = [ | ||
'Delivery Note-shipment_details', | ||
'Delivery Note-sb_shipment', | ||
'Delivery Note-carrier', | ||
'Delivery Note-tracking_number', | ||
'Delivery Note-cb_shipment', | ||
'Delivery Note-carrier_service' | ||
] | ||
for custom_field in delivery_note_custom_fields: | ||
frappe.delete_doc_if_exists("Custom Field", custom_field) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.