Customer

An OEM (Original Equipment Manufacturer) tyre company sought to digitize and automate its end-to-end dealer and customer billing operations. The goal was to replace fragmented, manual delivery, invoicing, and credit note processes with a centralized platform connecting OEM admins, dealers, sub-dealers, and customers — fully synchronized with the company's SAP ERP environment.

Manual, disconnected processes across delivery receipts, quotations, invoicing, and credit notes made it difficult to scale operations, reconcile dealer commissions, or maintain accurate real-time pricing and payment status. The company needed a platform capable of orchestrating a multi-step approval workflow, integrating bidirectionally with SAP, and serving distinct dashboards and permissions to five different user roles.

Some of the key blockchain challenges were:
  • Coordinating a multi-step delivery receipt (DR) approval workflow across portal, email token, and auto-approval paths without inconsistent states.
  • Keeping product pricing, order creation, and payment status synchronized in real time with SAP via both SOAP and REST, including recovery from failed requests.
  • Reconciling dealer commissions and holdbacks accurately through automated credit note generation tied to DR approvals.
  • Supporting secure, flexible authentication (OTP, Magic Link, Basic Auth) across five distinct roles without compromising token security.
  • Giving OEM admins, dealers, and customers role-appropriate visibility into DRs, invoices, and outstanding amounts without exposing cross-role data.
Solutions 
  • Built a complete delivery receipt (DR) lifecycle — creation, editing, multi-product/service line items, and approval — supporting portal-based, email token-based, and auto-approval workflows.
  • Implemented quotation management with expiry tracking and seamless conversion of approved quotations into delivery receipts for fulfillment.
  • Integrated real-time bidirectional SAP connectivity (SOAP/REST) for customer and dealer pricing, CNDN order creation, and payment status checks, with Hangfire-driven automated retry of failed SAP requests.
  • Automated invoice generation on DR approval and credit note generation for dealer commission and holdback reconciliation, both synchronized with SAP CNDN data.
  • Centralized customer, dealer, sub-dealer, delivery point, and dealer service master data with SAP master data synchronization.
  • Delivered multi-channel authentication (OTP via Email/SMS, Magic Link, Basic Auth) with JWT access tokens, refresh token rotation, and token revocation.
  • Enforced granular RBAC across five roles, OEMAdmin, Dealer, SubDealer, CustomerAdmin, and SubCustomer — via custom middleware and permission-based authorization.
  • Built role-specific dashboards with date-range filtering and chart visualizations: summary metrics and DR/invoice charts for OEM Admins, DR and credit note tracking for Dealers, and outstanding invoice tracking for Customers.
  • Scheduled Hangfire background jobs for DR auto-approval, approval reminders, quotation expiry, OTP cleanup, SAP payment status polling, and failed SAP request retries.
  • Established a four-tier audit trail, entity state changes, SAP inbound/outbound API logs, login activity, and email delivery logs, persisted to both database and Serilog structured logs.
  • Delivered multi-channel notifications (SMTP email with HTML templates, Twilio SMS) for DR creation, approval, rejection, reminders, welcome emails, and magic link delivery.
  • Added client-side PDF generation for invoices and credit notes via jsPDF, with paginated, sortable, filterable listings across all modules.
Results
  • Platform is live in production, OEM admins, dealers, sub-dealers, and customers manage the full delivery, invoicing, and credit note lifecycle through a single self-service portal.
  • Real-time SAP synchronization eliminated manual pricing lookups and payment status checks, with automated retry ensuring resilience against transient SAP failures.
  • Dealer commission and holdback reconciliation is fully automated through credit note generation, removing manual finance calculations.
  • Role-specific dashboards give every user type immediate, relevant visibility into DRs, invoices, and outstanding amounts without cross-role data exposure.
  • Secured deployment on IIS via GitHub Actions CI/CD with a self-hosted runner, supporting Development, UAT, and Production environments.
  • Full observability achieved through OpenTelemetry tracing and metrics, Serilog structured logging, and health check endpoints, alongside a comprehensive four-tier audit trail.
Technologies
  • React 18, Vite, jsPDF
  • .NET 9 Web API, C#, Entity Framework Core, PostgreSQL, Hangfire, N-tier architecture (Models → Data → DTOs → Interfaces → Services → API)
  • SAP Integration (REST/SOAP), JWT, BCrypt, Serilog, OpenTelemetry, rate limiting, CSP/X-Frame-Options/XSS security headers
  • AWS S3, IIS, GitHub Actions CI/CD (self-hosted runner), multi-environment configuration (Dev/UAT/Production)
  • Twilio SMS, SMTP Email, OTP (Email/SMS), Magic Link authentication
Timeline: 9 Weeks
  • Discovery & Architecture Design: 1 week
  • Core Billing & DR Workflow (Quotations, DRs, Approvals): 2 weeks
  • SAP Integration (Pricing, CNDN, Payment Sync): 2 weeks
  • Admin Dashboards, RBAC & Multi-Channel Auth: 2 weeks
  • Notifications, Audit Logging & Background Jobs: 1 weeks
  • QA, Hardening & Production Deploy: 1 weeks

Ready to Build Something Amazing?

Get in touch with Prishusoft – your trusted partner for custom software development. Whether you need a powerful web application or a sleek mobile app, our expert team is here to turn your ideas into reality.

image