Sha256: bca7a1b6d15087d89f0ab7c87e32ac8793fa00e6973d1cfc324afca9d4391f78
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
class Skr.Api.Components.SaleHistory extends Skr.Api.Components.Base componentWillMount: -> @setState(orders: Skr.Api.Models.SalesHistory.get()) render: -> return null if _.isEmpty( @state.orders ) <table className="cart"> <thead> <tr> <th colSpan=3>Previous Purchases</th> </tr> <tr> <th>Sale Number</th> <th>Date</th> <th>Amount</th> </tr> </thead> <tbody> {for order in @state.orders <tr> <td> <a target="_blank" href={order.pdfDownloadUrl()}> {order.visible_id} </a> </td> <td>{Lanes.u.format.shortDate(order.date)}</td> <td>{Lanes.u.format.currency(order.total)}</td> </tr>} </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.5.0 | client/skr/api/Components/SaleHistory.cjsx |
stockor-0.4.0 | client/skr/api/Components/SaleHistory.cjsx |