Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
38025 30 m amit /trunk/profitmandi-dao/src/ feat(credit): default dues and latest block reason for the Credit Details screen

- SDCreditService.getDefaultDuesByFofo: principal + interest needed to close every defaulted loan
(same isDefault() set as the LOAN_DEFAULT block; total from loan_statement as settleLoan reads it)
- SDCreditService.getLatestBlockLogs + CreditBlockLogRepository.selectByFofoIds (bulk, typed HQL)
- LoanDefaultDues model; SDCreditServiceDefaultDuesTest
 
38024 5 h 0 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ fix(cart): drop delisted or missing items from cart in getCartValidation

A line whose item is missing or whose tag_listing is inactive (active=0) is now
removed from the cart and reported as a PRODUCT_UNAVAILABLE cart message, so
createOrder (which rejects on any cart message) no longer bills a delisted item.
Runs before the carry bag allowance so removed phones earn no free bags.
Stock and the 400 max-qty cap are unchanged.
 
38023 5 h 14 m ranu /trunk/profitmandi-fofo/src/main/ visit history given on brand wise placement page  
38022 22 h 37 m ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/config/ call history given on brand wise placement page  
38021 22 h 38 m ranu /trunk/ call history given on brand wise placement page  
38020 1 d 2 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali offer live  
38019 2 d 1 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali offer live  
38018 5 d 1 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali online scratch offer, otp send to email  
38017 5 d 17 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/v2/controller/fofo/ Hide switched-off payment options in partner app (web v2)

/v2/fofo/getPartnerServices listed every payment option and created a PENDING
partner_service row for each one missing, so switched-off IDFC (21) kept coming
back after r38012/r38013. Use selectAllActive there and in /userProfile, matching
the fofo screens.
 
38016 5 d 22 h amit /trunk/profitmandi-fofo/src/main/ Hot Deals admin UI rework + Brand Identifier CSV upload (needs dao r38015)

Hot Deals (Catalog > Hot Deals):
- every Hot Deal model listed, incl. ones with no attributes saved; stat cards + Needs attention filter
- OEM brand dropdown (form + per row), pre-filled from model name, required on save
- row save keeps the OEM model mapping; Clear button; Updated By column

Content page: Brand Identifier CSV (itemId,brandIdentifier) -> catalog.item.brand_identifier
- POST /catalog/brandIdentifier/upload?apply= : preview (NEW/REPLACE/UNCHANGED/ERROR) then apply; replaces existing values
- all-or-nothing; rejects unknown/duplicate items, blank or >100 chars, Hot Deal and Any Colour items; max 5000 rows
- GET /catalog/brandIdentifier/template.csv

jsVersion 453
 
38015 5 d 22 h amit /trunk/profitmandi-dao/src/ Hot Deals admin: list every Hot Deal model (incl. ones with no attributes row), needs-attention filter + stats, and OEM brand set on save

- ModelHotDealRepository: list/count driven from Catalog (brand = Hot Deal) LEFT JOIN model_hot_deal; needsAttentionOnly = no row or NULL oem_brand; countStats()
- ModelHotDealService: saveAttributes takes oemBrand (requested > stored > suggested from catalog.model_name); must be a brand master name, never Hot Deal; stored in master spelling. Root cause of Ai+ models missing from the partner-app brand filter (NULL oem_brand -> no oem_brand_s in Solr)
- oemBrandNames(), suggestOemBrand(), stats()
- ModelHotDeal: transient suggestedOemBrand, isSaved()
- Tests: 18 passing
 
38014 6 d 23 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali offer live  
38013 7 d 0 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ fix(finance): list only active payment options on finance-service screens

Uses PaymentOptionRepository.selectAllActive() (dao) for the finance-services grids,
partner finance-services page, add-partner service/brand-service dropdowns and the
partner payment-option profile, so switched-off options (e.g. IDFC id 21) are hidden
and no partner_service rows are created for them. createService saves the new
option as active.
 
38012 7 d 0 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ fix(finance): list only active payment options on finance-service screens

Finance-service setup, grids, add-brand dropdown, partner payment-option page and
paper-finance lists (LOI form, WOD mapping report) used selectAll(), ignoring
payment_option.active. Switched-off options kept showing, and every finance-services
page open created a PENDING partner_service row for them (IDFC id 21, inactive since
2022, had 1,786). New PaymentOptionRepository.selectAllActive(); selectAllPaperFinanceOption
is active-only. Name lookups for existing payments/invoices still use selectAll().
Services created from the UI are now saved active (were saved active=0).
 
38011 7 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ fix(credit-note): margin CN dry run must not consume CN/DN numbers or lock sellerwarehouse

The 06:00-on-1st monthlyMarginsCnDryRun (dryRun=true) bumped cn_sequence / fofo_dn_sequence for
every document it would issue and committed them, so each live run started after a burned block:
every gap Jul-Nov 2026 equals that month's live margin CN count per prefix (e.g. CN-NSDL13802..13976
never issued for Oct). It also held the sellerwarehouse rows billing locks.

- issueMarginsCNForPartner marks its REQUIRES_NEW transaction rollback-only when !runActual.
- Dry run reads sellerwarehouse without FOR UPDATE; live keeps selectByPrefixForUpdate.
 
38010 7 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ fix(onboarding): retire previous brand commitments when a revival LOI completes

A revival LOI completes on the store's original onboarding panel and its brand
commitments are attached to that panel, but the original LOI's commitments stayed
attached too. The panel then had two rows per re-committed brand and kept dropped
brands as committed, which broke /partnerDealerSubmit (toMap duplicate key) and
selectBrandCommitmentByOnboardingIdAndBrand (NonUniqueResult), and showed wrong
brands on the WOD finance mapping report.

createPartnerOnboardingPanel now deactivates and detaches (onBoardingId=0) every
other commitment on the panel before attaching the revival LOI's rows; loiId keeps
them tied to their own LOI. Adds LoiBrandCommitmentRepository.selectAllByOnboardingId.
Existing data (PBFZK1322, PBSMS1240, HRMWT1158) fixed by separate SQL.
 
38009 8 d 2 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ chore(cron): drop CLI flags for removed one-time margin CN/DN remediation

Removes --corrMarginCNs, --genDNs, --genDNsForCNs, --cancelMarginDnIrns, --regenMarginIrns and
their ScheduledTasks wrappers; the CreditNoteService methods behind them were deleted in dao.
 
38008 8 d 2 h ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ diwali offer live  
38007 8 d 4 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali offer live  
38006 8 d 4 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ diwali online scratch offer, otp send to email  

Show All