The below code comes from a batch report. I found info in the forums that payment:type EQ 5 indicates a credit payment. What do 2,4,6,7 and any other values indicate? Is there a list somewhere? and is type 5 a customer credit? or any type of credit? or a credit card, etc?
Code:
<mvt:foreach iterator="payment" array="order:payments"> <mvt:if expr="( l.settings:payment:type EQ 2 ) OR ( l.settings:payment:type EQ 4 ) OR ( l.settings:payment:type EQ 7 )"> <mvt:foreachcontinue /> </mvt:if> <h2> <mvt:if expr="ISNULL l.settings:payment:descrip"> <mvt:if expr="l.settings:payment:type EQ 6"> Refund <mvt:else> Payment </mvt:if> <mvt:else> <mvt:if expr="l.settings:payment:type EQ 6"> Refund: <mvt:else> Payment: </mvt:if> &mvt:payment:descrip; </mvt:if> </h2> <hr /> <table><tr><th>Amount:</th><td>&mvt:payment:formatted_amount;</td></tr></table> <mvt:foreach iterator="field" array="payment:fields"> <table><tr><th>&mvt:field:label;</th><td>&mvt:field:value;</td></tr></table> </mvt:foreach> <br /> </mvt:foreach>
Comment