1
0
forked from erp-dev/erp

feat: batch update for plate order

This commit is contained in:
2025-12-18 17:36:43 +08:00
parent 98d797221a
commit 1a6ce32441
33 changed files with 32087 additions and 8 deletions

View File

@@ -29,8 +29,10 @@ from .mappings import (
fabric_type_map,
mdy_table_map,
plate_order_field_definitions,
plate_order_related_field_definitions,
plate_order_related_worksheet_map,
plate_order_related_worksheet_map_cn,
plate_order_relation_control_map,
plate_order_type_map,
product_type_map,
)
@@ -45,6 +47,13 @@ from .models import (
ProductListResponse,
)
from .parsers import pick_customer, pick_fabric, pick_product
from .relations import (
extract_plate_order_related_rowids,
extract_relation_rowids,
flatten_plate_order_related_row,
flatten_row_by_field_definitions,
normalize_mdy_value,
)
__all__ = [
# client
@@ -71,8 +80,10 @@ __all__ = [
"customer_type_map",
"fabric_type_map",
"plate_order_field_definitions",
"plate_order_related_field_definitions",
"plate_order_related_worksheet_map",
"plate_order_related_worksheet_map_cn",
"plate_order_relation_control_map",
"plate_order_type_map",
# models
"Product",
@@ -87,6 +98,12 @@ __all__ = [
"pick_product",
"pick_customer",
"pick_fabric",
# relations / flatten utils
"normalize_mdy_value",
"extract_relation_rowids",
"extract_plate_order_related_rowids",
"flatten_row_by_field_definitions",
"flatten_plate_order_related_row",
# fetch
"fetch_products_from_mingdaoyun",
"fetch_customers_from_mingdaoyun",