bin/sale in sales-0.1.1 vs bin/sale in sales-0.1.2
- old
+ new
@@ -387,9 +387,9 @@
filename = "S_D_#{@vendorId}_#{date}.txt"
unless File.exists? filename #download unless there already is a file
autoingest(@username, @password, @vendorId, "Sales Daily Summary #{date}")
end
#compute and present the report
- compute_and_present([filename])
+ compute_and_present([filename]) if File.exists? filename
#-----------------------------------------------------------------------------------------------------------------------------
end
#-------------------------------------------------------------------------------------------------------------------------------