check before updated qty
This commit is contained in:
@@ -130,7 +130,7 @@ class OrderItemPdf < Prawn::Document
|
|||||||
|
|
||||||
#add updated qty text
|
#add updated qty text
|
||||||
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
||||||
if !before_updated_qty.nil?
|
if before_updated_qty.to_i > 0 && !before_updated_qty.nil?
|
||||||
move_down 5
|
move_down 5
|
||||||
|
|
||||||
# add option
|
# add option
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class OrderItemSlimPdf < Prawn::Document
|
|||||||
|
|
||||||
#add updated qty text
|
#add updated qty text
|
||||||
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
||||||
if !before_updated_qty.nil?
|
if before_updated_qty.to_i > 0 && !before_updated_qty.nil?
|
||||||
move_down 1
|
move_down 1
|
||||||
|
|
||||||
# add option
|
# add option
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ class OrderSetItemPdf < Prawn::Document
|
|||||||
|
|
||||||
#add updated qty text
|
#add updated qty text
|
||||||
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
def add_updated_qty_text(before_updated_qty, updated_qty, precision)
|
||||||
if !before_updated_qty.nil?
|
if before_updated_qty.to_i > 0 && !before_updated_qty.nil?
|
||||||
move_down 5
|
move_down 5
|
||||||
|
|
||||||
# add option
|
# add option
|
||||||
|
|||||||
Reference in New Issue
Block a user