Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37274 1 d 10 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 698 d 5 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ original item id in line item id for set color change  
33060 889 d 2 h amit.gupta /trunk/ Added functionality to  
31860 1200 d 7 h tejbeer /trunk/ change  
30652 1509 d 5 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Added sellin margin payout  
30449 1544 d 5 h amit.gupta /trunk/ Added Offer Changes  
27878 1988 d 5 h amit.gupta /trunk/  
25209 2595 d 10 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed target slab  
24658 2715 d 4 h tejbeer /trunk/ change  
23694 3000 d 9 h tejbeer /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ lineItem change  
23691 3001 d 3 h tejbeer /trunk/ orderHistorychange  
23464 3065 d 1 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
22859 3199 d 5 h ashik.ali /trunk/profitmandi-dao/  
22009 3310 d 3 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/  
21924 3316 d 9 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ hashCode and equals method  
21716 3344 d 6 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21653 3352 d 4 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21628 3354 d 5 h kshitij.sood /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21580 3360 d 5 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21545 3366 d 8 h ashik.ali /trunk/profitmandi-dao/