<pdf>
    <dynamic-page page-size="letter">
        <div>
            <div width="50%" float="left">
                <img ignore-error="true" width="50px" height="50px" src="{{ pdf_image('RxConnexionBundle:zapcon-logo.png') }}" />
                <div font-style="bold">JNJ Oil Industries Inc.</div>
            </div>
            <div width="50%" float="right">
                <table width="100%">
                    <tr>
                        <td border.type="none" text-align="right" padding-right="20px" padding-bottom="5px">Branch:</td>
                        <td border.type="none" padding-bottom="5px">{{ canvass.materialrequisition.branch.description }}</td>
                    </tr>
                    <tr>
                        <td border.type="none" text-align="right" padding-right="20px" padding-bottom="5px">MR No.:</td>
                        <td border.type="none" padding-bottom="5px">{{ canvass.materialrequisition.materialrequisitionno }}</td>
                    </tr>
                    <tr>
                        <td border.type="none" text-align="right" padding-right="20px" padding-bottom="2px">Date:</td>
                        <td border.type="none" padding-bottom="5px">{{ canvass.materialrequisition.requestdateasstring }}</td>
                    </tr>
                </table>
            </div>
        </div>
        {% for i in 0..2 %}
            <br/>
            <br/>
            <br/>
            <h5 margin-bottom="5px">Supplier:</h5>
            <h5 margin-bottom="10px">Address:</h5>
            <table width="100%">
                <tr>
                    <td padding="5px">Item</td>
                    <td padding="5px" text-align="right">Required Qty</td>
                    <td padding="5px" text-align="right">Qty</td>
                    <td padding="5px" text-align="right">Price</td>
                </tr>
                {% for ci in canvass.canvassitems %}
                    <tr>
                        <td padding="5px">{{ ci.materialrequisitionitem.item.description }}</td>
                        <td padding="5px" text-align="right">{{ ci.quantityforcanvassing|number_format(2, '.', ',') }}</td>
                        <td padding="5px"></td>
                        <td padding="5px"></td>
                    </tr>
                {% endfor %}
            </table>
        {% endfor %}
    </dynamic-page>
</pdf>