def METHOD_NAME(product_amounts):
    return """
        <receipts>
            <ns0:transfer xmlns:ns0="http://commcarehq.org/ledger/v1" dest="{sp_id}" date="{long_date}" section-id="stock">
                %(product_block)s
            </ns0:transfer>
        </receipts>
    """ % {'product_block': products_xml(product_amounts)}