Private
Project *AFC ai genetic for bench sales APPFORSOLARArrow LogisticsArtificial Intillegence » Algo Trade Automation » Algo Trade Manual » Bulk mail Automation with web interface » Bulk Mail Service For Bench Sales » Code Generation Tool » Cold Emailing Automation (AI-Driven) » Invoice Inventory Automation » invoice to inventory for evergreen » Test Automation » What's app Bulk messaging with AI agents » Zelle Payment for evergreenAsk RideBowls&blendsCharan Technologies _ DevelopmentEver green Farms USA (static website)Evergreen farms (pos)Evergreen React ApplicationFinwareHackthonLucky BraidsMy Produce StandNexPumpNexZen Printer AgentNoxa_JewelleryOffice Requirments » Daily Tasks For Madhu » Employees requirements » Recruitment senior mern stack developer » Red MIne Speed » Senior Mern Stack DeveloperOPT - (USA) UpdatesQA TestersRare FruitsRegal SolarRegal Solar DMRegal Solar Energy_ ReactReliance Home Builders_ reactRemit2AnyRestaurant POSRSVPRushi GardensRV_ EngraverSoloar AppSri Farms _ DMSri_FarmsSuthra OneSuthra QNova LabsTech FourceTechnical RequirementsTechy_DevelopmentTechy_POS Travel Matex
Tracker *Bug Feature Support Testing
Subject *
Description Edit In the acceptQuoteViaAdmin product quote controller.js file endpoint: When an administrator manually approves a product quotation, the audit trail records: performedBy: quote.customer._id, note: "Customer accepted product quotation" This creates a false audit log claiming the customer accepted it directly, masking the admin's action (req.user.id). If quote.customer is null or undefined (e.g., if the client profile was deleted or detached), dereferencing quote.customer._id throws an unhandled runtime error (TypeError: Cannot read property '_id' of null), crashing the request with a 500 error. Acceptance Criteria AC 1.1 (Accurate Attribution): Given an authenticated admin approves a product quotation via acceptQuoteViaAdmin, When the quote status updates to "approved", Then the actionHistory record MUST set performedBy to req.user.id (or userId) and the note MUST clearly state "Admin approved product quotation on behalf of customer". AC 1.2 (Null-Safety): Given a product quotation whose customer reference is null or unpopulated, When an admin approves it, Then the operation MUST proceed without throwing a TypeError, falling back gracefully to null or a placeholder client reference. AC 1.3 (Audit Log Inspection): When fetching action history via getActionHistory, the approval entry must render the admin's name/ID rather than the customer's. 3. Recommended Implementation Note javascript // Replace lines 2271-2281 with: quote.actionHistory.push({ action: status === "approved" ? "admin_approved" : "draft", performedBy: userId, // from req.user.id note: status === "approved" ? `Admin approved product quotation on behalf of customer (${quote.customer?.firstName || "N/A"} ${quote.customer?.lastName || ""})`.trim() : "Admin marked product quotation as draft", timestamp: new Date(), changes, });
Status Resolved
Priority *Low Normal High Immediate
Assignee Ajit ABindu DandaChandra SekharDivya InapakurthiKarthik PalakondaPavan Kumar MuralaRavi Shankar PalleRavindra AtthotaSai MahanandaSai Priyatham SadineniSowjanya atthotaSravani RangannapalemTeja Sriram SanganiYalavarthi Thriveni
Target version Sprint (10/05/2026- 10/09/2026) sprint (10/12/2026 - 10/31/2026) Backlog
Parent task
Start date
Due date
Estimated time Hours
% Done0 % 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 %
Tested Date *
Raised by Tester Mahananda Sai Manikanta Sravani Phanindra
Page/ Module (POS) *--- Please select ---E2E Dashboard POS Customers Requests Quotes Invoices Jobs Users Partners Labor Field Staff Events Warehouse Featured Items Help Guide Services – Categories Services – Services Products – Categories Products – Sub Categories Products – Products Assets – Categories Assets – Assets Assets – Usage Sales Sales Return Purchases – Vendors purchases - vendor invoices Admin – View Orders Admin – Offers Admin – PreOrders Admin – Coupons Admin - Delivery Configuration Maintenance – Products Maintenance – Assets Subscriptions – service Plans Subscriptions – Subscribers Subscriptions – Buy Plan Subscriptions – Share Plans Login Product Subscription E commerce Product Qoutations post job flow Expenses