Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37274 64 d 18 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 761 d 13 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ original item id in line item id for set color change  
33060 952 d 10 h amit.gupta /trunk/ Added functionality to  
31860 1263 d 15 h tejbeer /trunk/ change  
30652 1572 d 12 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Added sellin margin payout  
30449 1607 d 13 h amit.gupta /trunk/ Added Offer Changes  
27878 2051 d 13 h amit.gupta /trunk/  
25209 2658 d 18 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed target slab  
24658 2778 d 12 h tejbeer /trunk/ change  
23694 3063 d 17 h tejbeer /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/transaction/ lineItem change  
23691 3064 d 11 h tejbeer /trunk/ orderHistorychange  
23464 3128 d 9 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
22859 3262 d 13 h ashik.ali /trunk/profitmandi-dao/  
22009 3373 d 10 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/  
21924 3379 d 17 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ hashCode and equals method  
21716 3407 d 13 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21653 3415 d 12 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21628 3417 d 13 h kshitij.sood /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/  
21580 3423 d 13 h ashik.ali /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/  
21545 3429 d 16 h ashik.ali /trunk/profitmandi-dao/