Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37288 45 m ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ all active brand in hot deals  
37287 1 h 8 m ranu /trunk/ warehouse access  
37286 1 h 22 m ranu /trunk/ warehouse access  
37285 1 h 48 m ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ warehouse access  
37284 2 h 14 m amit /trunk/profitmandi-dao/src/ external api v2: derive specs from catalog brand/model title (pair + lone-storage forms) as last resort; migration file marks applied state, legacy update() note  
37283 2 h 17 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ hot deals: cart/pricing availability reads date-windowed model_hot_deal instead of tag_listing.hot_deals  
37282 2 h 17 m amit /trunk/profitmandi-fofo/src/main/ hot deals: remove legacy tag_listing hot-deals endpoints and catalog-item UI (replaced by model_hot_deal admin flow)  
37281 2 h 45 m amit /trunk/profitmandi-dao/src/ external api v2: storeMaster visibility by fofo_type=FRANCHISE (drop internal flag check); spec derivation supports MB sizes (feature phones)  
37280 4 h 1 m amit /trunk/profitmandi-web/src/main/resources/ external api v2: document addedOn field for new-SKU partial sync  
37279 4 h 1 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ external api v2: addedOn (item first-added epoch) in catalogSkuMaster/catalogSkus rows  
37278 4 h 7 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ warehouse access  
37277 6 h 41 m vikas /trunk/profitmandi-fofo/src/main/ Updated Escalation Level  
37276 7 h 23 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Hot deals Solr: derive hot_deal_b from model_hot_deal active windows at index time (full push, single-catalog update, parent + child docs) - catalog.model_hot_deal is the only source, tag_listing.hot_deals no longer read; drop unused tag_listing write-through methods; syncHotDealFlags javadoc reflects reindex-based daily sync  
37275 7 h 32 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/repository/catalog/ Add ModelHotDeal window-boundary and active catalog-id lookups

r37268 committed the ModelHotDealServiceImpl call to
selectWindowBoundaryCatalogIds but not the repository declaration or
implementation, breaking the trunk build with 'cannot find symbol'.

Adds both methods:
- selectWindowBoundaryCatalogIds(today): catalog ids whose deal window opens
today or closed yesterday, i.e. the models whose hot_deal_b flips at
midnight and need a Solr re-index.
- selectActiveCatalogIds(today): catalog ids with a deal live on the given
date, the Solr hot_deal_b source (caller in FofoSolr still pending).
 
37274 7 h 47 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Freeze margin-scheme purchase price on the invoice line

Refurbished (GST Rule 32(5)) lines re-derived their purchase price by serial on
every read, resolving to the LATEST warehouse.inventoryItem row. A returned
device gets re-GRNed, sometimes at a different price, so a credit note or a
regenerated PDF could reverse a margin the invoice never charged. 11 already-
billed lines resolved to a price they were not sold at; IMEI 353917853695268
has been sold on six invoices at two different purchase prices.

InvoiceService.freezeMarginPurchasePrices now stamps the value onto
transaction.lineitem.margin_purchase_price at billing time (saveInvoice step 0,
inside the billing transaction), and resolveMarginPurchasePrice reads the frozen
value thereafter, falling back to the live lookup only when null so pre-existing
lines behave exactly as before.

Requires the column from db-scripts/add_margin_purchase_price_column.sql, which
must be applied before this is deployed.
 
37273 7 h 55 m amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/v2/controller/fofo/ Apply same idempotent super-catalog mapping save to V2 controller

Keeps V2FofoSuperCatalogController in step with the fofo SuperCatalogController
fix (r37272) so the dormant endpoint cannot violate the new
UNIQUE(catalog_id, super_catalog_id) constraint if it is ever enabled.
 
37272 7 h 55 m amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fix duplicate super-catalog mapping rows on save

The add-row flow in super_catalog.js always posts mapping id 0, so saving a
catalog that was already mapped inserted a second row. That duplicated the
catalog inside superCatalogVariants_s, which surfaced as repeated storage
variant chips on the partner catalog card.

processCatalogMapping now falls back to a (catalogId, superCatalogId) lookup
when no mapping id is supplied and updates the existing row instead of
inserting. Also removes a latent NPE when a stale mapping id was posted.

Backed by a new UNIQUE(catalog_id, super_catalog_id) on
catalog.super_catalog_mapping; 5 pre-existing surplus rows were removed.
 
37271 7 h 55 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/repository/catalog/ Add selectMappingByCatalogIdAndSuperCatalogId to SuperCatalogMappingRepository

Lookup by the (catalogId, superCatalogId) pair so the super-catalog save
flow can detect an existing mapping instead of always inserting.
 
37270 8 h 53 m amit /trunk/profitmandi-fofo/src/main/ Hot deals admin: activated -> fresh (labels, params, row editors); manual Push to Solr for selected models (checkbox selection + /hotDeals/pushSolr calling FofoSolr.updateSingleCatalog directly, bypasses prod-gated event so Category team curation is searchable immediately); jsVersion 395  
37269 8 h 55 m amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/services/ Hot deals enrichment: Fresh pill (green tick when device unused, greyed cross otherwise) replacing Activated; class hd-fresh  

Show All