================================================================================
REQUEST LOG: req_br1hXIfhqZ4w
================================================================================

[2026-05-12 08:15:24.678299] REQUEST END
    Status: 201
    Response Time: 38.27ms
    Response: {
    "success": true,
    "message": "Invoice created successfully",
    "data": {
        "branch_id": 4,
        "invoice_date": "2026-05-12T00:00:00.000000Z",
        "payment_type": "credit",
        "supplier_id": 2,
        "user_id": 13,
        "invoice_number": "SINV-20260512-0001",
        "due_date": "2026-06-11T00:00:00.000000Z",
        "subtotal": "1000.00",
        "total_amount": "1000.00",
        "remaining_amount": "1000.00",
        "paid_amount": "0.00",
        "status": "unpaid",
        "updated_at": "2026-05-12T08:15:24.000000Z",
        "created_at": "2026-05-12T08:15:24.000000Z",
        "id": 3,
        "items": [
            {
                "id": 3,
                "supplier_invoice_id": "3",
                "item_type": "other",
                "ingredient_id": null,
                "product_id": null,
                "description": "Purchase",
                "quantity": "1.000",
                "bonus_quantity": "0.000",
                "unit": null,
                "unit_price": "1000.0000",
                "total_price": "1000.00",
                "batch_number": null,
                "expiry_date": null,
                "notes": null,
                "created_at": "2026-05-12T08:15:24.000000Z",
                "updated_at": "2026-05-12T08:15:24.000000Z",
                "ingredient": null,
                "product": null
            }
        ],
        "supplier": {
            "id": 2,
            "tenant_id": "2",
            "name": "ali",
            "company_name": null,
            "contact_person": null,
            "phone": null,
            "email": null,
            "address": null,
            "supplier_type": "distributor",
            "credit_limit": "0.00",
            "current_credit_balance": "1000.00",
            "payment_terms_days": 30,
            "opening_balance": "0.00",
            "tax_number": null,
            "license_number": null,
            "notes": null,
            "is_active": true,
            "created_at": "2026-05-12T08:15:17.000000Z",
            "updated_at": "2026-05-12T08:15:24.000000Z",
            "deleted_at": null
        }
    },
    "meta": {
        "request_id": "req_br1hXIfhqZ4w",
        "timestamp": "2026-05-12T08:15:24+00:00"
    }
}

================================================================================