Created
January 9, 2017 19:23
-
-
Save zacck-zz/cfd7c613270d4b6ecaee05133cff9de7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rateperiods.map((period) => { | |
var filteredCosts = ratecosts.filter((cost) => { | |
return cost.rate_period == period.id ; | |
}); | |
if(filteredCosts.length === 0 ){ | |
return(<p>No Periods for supplier yet</p>) | |
} | |
return filteredCosts.map((costdata) => { | |
return( | |
<div className="row"> | |
<div className="columns small-2 large-2 medium-2"> | |
{period-start} - {period.end} | |
</div> | |
<div className="columns small-2 large-2 medium-2"> | |
{costdata.single} | |
</div> | |
<div className="columns small-2 large-2 medium-2"> | |
{costdata.pps} | |
</div> | |
<div className="columns small-2 large-2 medium-2"> | |
{costdata.thirdadu} | |
</div> | |
<div className="columns small-2 large-2 medium-2"> | |
{costdata.child} | |
</div> | |
</div> | |
) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment