check before updated qty

This commit is contained in:
phyusin
2018-02-05 17:05:44 +06:30
parent 2ebfdbe8bc
commit 62ef44fd2a
3 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ class OrderItemPdf < Prawn::Document
#add updated qty text
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
# add option

View File

@@ -129,7 +129,7 @@ class OrderItemSlimPdf < Prawn::Document
#add updated qty text
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
# add option

View File

@@ -146,7 +146,7 @@ class OrderSetItemPdf < Prawn::Document
#add updated qty text
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
# add option