update order detail

This commit is contained in:
Phuoc Nguyen
2025-11-24 17:00:11 +07:00
parent 75d6507719
commit 1851d60038
9 changed files with 1238 additions and 455 deletions

View File

@@ -172,4 +172,99 @@ curl --location 'https://land.dbiz.com//api/method/building_material.building_ma
--header 'Content-Type: application/json' \
--data '{
"name" : "SAL-ORD-2025-00058-1"
}'
}'
#response order detail
{
"message": {
"order": {
"name": "SAL-ORD-2025-00107",
"customer": "test - 1",
"transaction_date": "2025-11-24",
"delivery_date": "2025-11-24",
"status": "Chờ phê duyệt",
"status_color": "Warning",
"total_qty": 2.56,
"total": 3355443.2,
"grand_total": 3355443.2,
"total_remaining": 0,
"description": "Order from mobile app",
"contract_request": false,
"ignore_pricing_rule": false,
"rejection_reason": null,
"is_allow_cancel": true
},
"billing_address": {
"name": "phuoc-Billing-3",
"address_title": "phuoc",
"address_line1": "123 add dad",
"phone": "0123123123",
"email": "123@gmail.com",
"fax": null,
"tax_code": "064521840",
"city_code": "19",
"ward_code": "01936",
"city_name": "Tỉnh Thái Nguyên",
"ward_name": "Xã Nà Phặc",
"is_allow_edit": true
},
"shipping_address": {
"name": "phuoc-Billing-3",
"address_title": "phuoc",
"address_line1": "123 add dad",
"phone": "0123123123",
"email": "123@gmail.com",
"fax": null,
"tax_code": "064521840",
"city_code": "19",
"ward_code": "01936",
"city_name": "Tỉnh Thái Nguyên",
"ward_name": "Xã Nà Phặc",
"is_allow_edit": true
},
"items": [
{
"name": "9crv0j6d4t",
"item_code": "HOA E01",
"item_name": "Hội An HOA E01",
"description": "Hội An HOA E01",
"qty_entered": 0.0,
"qty_of_sm": 2.56,
"qty_of_nos": 4.0,
"conversion_factor": 1.5625,
"price": 1310720.0,
"total_amount": 3355443.2,
"delivery_date": "2025-11-24",
"thumbnail": "https://land.dbiz.com/files/HOA-E01-f1.jpg"
}
],
"payment_terms": {
"name": "Thanh toán hoàn toàn",
"description": "Thanh toán ngay được chiết khấu 2%"
},
"timeline": [
{
"label": "Đã tạo đơn",
"value": "2025-11-24 14:46:07",
"status": "Success"
},
{
"label": "Chờ phê duyệt",
"value": null,
"status": "Warning"
},
{
"label": "Đơn đang xử lý",
"value": "Prepare goods and transport",
"status": "Secondary"
},
{
"label": "Hoàn thành",
"value": null,
"status": "Secondary"
}
],
"payments": [],
"invoices": []
}
}