You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it'should match the expected content without in-kind value of each item for the csv'do
73
54
csv=<<~CSV
74
-
#{expected_headers.join(",")}
55
+
Partner,Initial Allocation,Scheduled for,Source Inventory,Total Number of #{item_name},Total Value of #{item_name},Delivery Method,Shipping Cost,Status,Agency Representative,Comments,A Item,B Item,C Item,Dupe Item,E Item
it'should add it to the end of the row and show up with a 0 quantity if there are none of this item in any distribution'do
123
91
csv=<<~CSV
124
-
#{expected_headers.join(",")}
92
+
Partner,Initial Allocation,Scheduled for,Source Inventory,Total Number of #{item_name},Total Value of #{item_name},Delivery Method,Shipping Cost,Status,Agency Representative,Comments,A Item,B Item,C Item,Dupe Item,E Item,New Item
Partner,Initial Allocation,Scheduled for,Source Inventory,Total Number of #{item_name},Total Value of #{item_name},Delivery Method,Shipping Cost,Status,Agency Representative,Comments,Dupe Item
csv << ["Product Drive","2025-01-01",source_name(donations[0]),storage_location.name,15,2,94.0,"It's a fine day for diapers.",7,"70.00",0,"0.00",0,"0.00",8,"24.00",0,"0.00"]
109
-
csv << ["Manufacturer","2025-01-01",source_name(donations[1]),storage_location.name,1,1,20.0,"It's a fine day for diapers.",0,"0.00",1,"20.00",0,"0.00",0,"0.00",0,"0.00"]
110
-
csv << ["Donation Site","2025-01-01",source_name(donations[2]),storage_location.name,2,1,60.0,"It's a fine day for diapers.",0,"0.00",0,"0.00",2,"60.00",0,"0.00",0,"0.00"]
111
-
csv << ["Misc. Donation","2025-01-01","It's a fine day for...",storage_location.name,3,1,120.0,"It's a fine day for diapers.",0,"0.00",0,"0.00",0,"0.00",0,"0.00",3,"120.00"]
112
-
end
79
+
csv=<<~CSV
80
+
Source,Date,Details,Storage Location,Quantity of Items,Variety of Items,In-Kind Total,Comments,A Item,A Item In-Kind Value,B Item,B Item In-Kind Value,C Item,C Item In-Kind Value,Dupe Item,Dupe Item In-Kind Value,E Item,E Item In-Kind Value
81
+
Product Drive,2025-01-01,#{source_name(donations[0])},#{storage_location.name},15,2,94.0,It's a fine day for diapers.,7,70.00,0,0.00,0,0.00,8,24.00,0,0.00
82
+
Manufacturer,2025-01-01,#{source_name(donations[1])},#{storage_location.name},1,1,20.0,It's a fine day for diapers.,0,0.00,1,20.00,0,0.00,0,0.00,0,0.00
83
+
Donation Site,2025-01-01,#{source_name(donations[2])},#{storage_location.name},2,1,60.0,It's a fine day for diapers.,0,0.00,0,0.00,2,60.00,0,0.00,0,0.00
84
+
Misc. Donation,2025-01-01,It's a fine day for...,#{storage_location.name},3,1,120.0,It's a fine day for diapers.,0,0.00,0,0.00,0,0.00,0,0.00,3,120.00
0 commit comments