1
0
forked from erp-dev/erp

feat: log formatted

This commit is contained in:
2026-06-26 17:03:54 +08:00
parent e8bf4b5e49
commit cb6589c884
26 changed files with 1410 additions and 50 deletions

View File

@@ -448,6 +448,7 @@ def _build_printing_order_before_snapshot(printing_order):
{
'id': job.id,
'original_id': job.original_id,
'sub_id': job.sub_id,
'product_id': job.product_id,
'product_name': getattr(job.product, 'name', None),
'quantity': job.quantity,
@@ -939,6 +940,7 @@ def _upsert_external_printing_job(*, merchant, printing_order, record: dict, syn
'pieces': _extract_pieces(record.get('BeiZhuC')),
'description': None,
'original_id': record_id,
'sub_id': _extract_positive_int(record.get('SubID'), field_name='SubID'),
'created_by': created_by_user,
'external_product_name': None,
'external_raw': record,