Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37274 58 d 7 h 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.
 
33767 755 d 2 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ original item id in line item id for set color change  
33060 945 d 23 h amit.gupta /trunk/ Added functionality to  
31860 1257 d 4 h tejbeer /trunk/ change  
30652 1566 d 1 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Added sellin margin payout  
30449 1601 d 2 h amit.gupta /trunk/ Added Offer Changes  
27878 2045 d 2 h amit.gupta /trunk/  
25209 2652 d 7 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed target slab  
24658 2772 d 0 h tejbeer /trunk/ change  
23694 3057 d 6 h tejbeer /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ lineItem change  
23691 3058 d 0 h tejbeer /trunk/ orderHistorychange  
23464 3121 d 22 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
22859 3256 d 2 h ashik.ali /trunk/profitmandi-dao/  
22009 3366 d 23 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/  
21924 3373 d 6 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ hashCode and equals method  
21716 3401 d 2 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21653 3409 d 0 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21628 3411 d 2 h kshitij.sood /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21580 3417 d 2 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21545 3423 d 5 h ashik.ali /trunk/profitmandi-dao/