Subversion Repositories SmartDukaan

Rev

Rev 33767 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33767 Rev 37274
Line 60... Line 60...
60
    private Float mrp;
60
    private Float mrp;
61
 
61
 
62
    @Column(name = "unit_price")
62
    @Column(name = "unit_price")
63
    private Float unitPrice;
63
    private Float unitPrice;
64
 
64
 
-
 
65
    // Rule 32(5) purchase value, frozen at invoicing. Null for non-margin lines and for
-
 
66
    // margin lines invoiced before this column existed — readers fall back to the live
-
 
67
    // warehouse lookup when null. Never recompute a non-null value: the serial's warehouse
-
 
68
    // row can be re-GRNed at a different price after the sale, and every later document
-
 
69
    // (credit note, debit note, CRN) must reverse the margin the invoice actually charged.
-
 
70
    @Column(name = "margin_purchase_price")
-
 
71
    private Float marginPurchasePrice;
-
 
72
 
65
    @Column(name = "unit_weight")
73
    @Column(name = "unit_weight")
66
    private Float unitWeight;
74
    private Float unitWeight;
67
 
75
 
68
    @Column(name = "total_price")
76
    @Column(name = "total_price")
69
    private Float totalPrice;
77
    private Float totalPrice;
Line 259... Line 267...
259
 
267
 
260
    public void setUnitPrice(Float unitPrice) {
268
    public void setUnitPrice(Float unitPrice) {
261
        this.unitPrice = unitPrice;
269
        this.unitPrice = unitPrice;
262
    }
270
    }
263
 
271
 
-
 
272
    public Float getMarginPurchasePrice() {
-
 
273
        return marginPurchasePrice;
-
 
274
    }
-
 
275
 
-
 
276
    public void setMarginPurchasePrice(Float marginPurchasePrice) {
-
 
277
        this.marginPurchasePrice = marginPurchasePrice;
-
 
278
    }
-
 
279
 
264
    public Float getUnitWeight() {
280
    public Float getUnitWeight() {
265
        return unitWeight;
281
        return unitWeight;
266
    }
282
    }
267
 
283
 
268
    public void setUnitWeight(Float unitWeight) {
284
    public void setUnitWeight(Float unitWeight) {