Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37122 2 d 18 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ Replace satish.kumar with abhishek.yadav in monthly margins CN mail recipients  
37102 4 d 18 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Remove dead Counter/PrivateDealUser code: drop unused isFofo, bulkShipmentAmountLimit, verifiedOn, documentVerified fields and accessors; remove dead selectByIds repo methods; drop redundant Counter/PrivateDealUser repository injections in OrderServiceImpl and InvoiceService  
37085 6 d 18 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Show PO No and Order Date on transaction invoices/delivery challans

Populate InvoicePdfModel.orderDate (order createTimestamp) on every invoice
and delivery challan. Populate poNumber from the mapped warehouse PO for
internal-PO-derived orders, falling back to the transaction id as the PO
number for non-internal orders. Display-only; no e-invoice/IRN impact.
 
37059 10 d 19 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Revert order date and PO number wiring from invoice model in InvoiceService  
37054 10 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Invoicing: durably record terminal IRN failures via markEInvoiceFailed (REQUIRES_NEW) with einvoice_details.irn_error_message; add regenerateBilledInvoices for in-place PDF regeneration over a billing window; stamp order date and mapped PO number onto transaction invoices; use the real interest-bearing loan (not the flagship limit block) for credit terms  
37030 13 d 19 h amit /trunk/profitmandi-dao/src/main/ Add credit block/unblock audit log (dao): CreditBlockLog entity/enum/repo + blockCredit/unblockCredit/getCreditBlockLogs service methods  
37026 13 d 21 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ targeted calling count on today po rbm  
37017 14 d 16 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ revival and focus bill be active on next billing  
37016 14 d 16 h ranu /trunk/ revival and focus bill be active on next billing  
36992 18 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ Add dryRun param to issueMonthlyMarginsCN; gate real work behind runActual (isProd && !dryRun) so the pipeline can run harmlessly on prod  
36991 18 d 20 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ code commited  
36958 20 d 18 h amit /trunk/profitmandi-dao/src/main/ Flagship credit: fire interest-free limits at billing + per-IMEI conversion

- createLoanForBilling now detects flagship lines inside the billing transaction (fixes the
REQUIRES_NEW visibility bug where flagship detection re-queried uncommitted invoice_number and
never fired). Creates one combined flagship limit (is_flagship=1, limit_block=1, 30-day deadline)
plus one transaction.loan_imei row per device.
- convertFlagshipOnSale / IMEI activation now convert only the sold device's slice (matched by IMEI),
so same-model siblings and other billing tranches keep their interest-free window; full convert at
30-day expiry. Lock order aligned (loan -> loan_imei) to avoid sale/expiry deadlock.
- New transaction.loan_imei table + LoanImei entity/repository (migration_loan_imei_table.sql).
- selectAllLoansByInvoice: PurchaseReturn now settles BOTH the real loan and the flagship limit on a
flagship-invoice return (prevents credit leak from a stranded limit).
- Cap guard (flagship credit never exceeds amount drawn) and robust limit settlement (paisa threshold
instead of exact float equality).
 
36924 26 d 12 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ Allow fulfilment warehouse change for internal-PO orders within same physical warehouse

changeFulfillmentWarehouse previously blocked any warehouse change for orders
mapped to an internal PO. Relax it to permit changing the virtual fulfilment
warehouse as long as the physical (billing) warehouse stays the same; only a
change of the physical/billing warehouse is now rejected. The change-billing-
warehouse path remains fully blocked for internal POs.
 
36910 26 d 21 h amit /trunk/profitmandi-dao/src/main/ Internal PO: map created transaction to PO; block warehouse change for PO-mapped orders

- WarehousePurchaseOrder: add transactionId column + selectByTransactionId
- createOrderInternally returns txn id; createPurchaseOrder maps it onto the PO
- Block order.setWarehouseId for PO-mapped orders in changeFulfillmentWarehouse; cron moveOrders skips them
- Migration: add warehouse.purchaseorder.transactionId
 
36750 49 d 17 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Keep e-invoice PrdDesc as IMEI count within NIC 300-char limit while invoice PDF lists full IMEIs (complements r36749 IMEI-listing restore)  
36749 49 d 18 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ code commited miss beat  
36719 54 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Add total_amount to credit_note: new column + backfill from lines, populate at all 5 CN/DN creation points, fix account statement query (cn.created_at -> cn.create_timestamp)  
36715 54 d 14 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Fix Credit Note IRN PrdDesc exceeding 300 char NIC limit — show IMEI count instead of listing all serial numbers, add 300-char safety truncation  
36713 54 d 15 h amit /trunk/profitmandi-dao/src/main/ PI idempotency fix: original_wallet_amount + order_wallet_adjustment tracking for price drops and splits. Modernize statement queries with INVOICE_CANCELLED and RETURNS_CN unions.  
36691 55 d 16 h amit /trunk/profitmandi-dao/src/main/ fix account statement balance gap: include pending orders with NULL billing/refund in getPendingIndentValueMap, fix double query execution in selectOpeningAmount, remove verbose logging in selectDetailsBetween, add indexes for returnorderinfo and returnorder  

Show All