// fixed add order payment

This commit is contained in:
aFolletete
2012-05-24 14:45:25 +00:00
parent 4cc33c3170
commit e1987b3ef4
@@ -322,37 +322,37 @@
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
{if count($not_paid_invoices_collection) > 0} <tr class="current-edit">
<tr class="current-edit"> <td><input type="text" name="payment_date" class="datepicker" size="17" value="{date('Y-m-d H:i:s')}" /></td>
<td><input type="text" name="payment_date" class="datepicker" size="17" value="{date('Y-m-d H:i:s')}" /></td> <td>
<td> <select name="payment_method">
<select name="payment_method"> {foreach from=$payment_methods item=payment_method}
{foreach from=$payment_methods item=payment_method} <option value="{$payment_method}">{$payment_method}</option>
<option value="{$payment_method}">{$payment_method}</option> {/foreach}
{/foreach} </select>
</select> </td>
</td> <td>
<td> <input type="text" name="payment_transaction_id" value="" />
<input type="text" name="payment_transaction_id" value="" /> </td>
</td> <td {if count($not_paid_invoices_collection) <= 0}colspan="2"{/if}>
<td> <input type="text" name="payment_amount" size="5" value="" />
<input type="text" name="payment_amount" size="5" value="" /> <select name="payment_currency">
<select name="payment_currency"> {foreach from=$currencies item=current_currency}
{foreach from=$currencies item=current_currency} <option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option>
<option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option> {/foreach}
{/foreach} </select>
</select> </td>
</td> {if count($not_paid_invoices_collection) > 0}
<td> <td>
<select name="payment_invoice" id="payment_invoice"> <select name="payment_invoice" id="payment_invoice">
{foreach from=$not_paid_invoices_collection item=invoice} {foreach from=$not_paid_invoices_collection item=invoice}
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang)}</option> <option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang)}</option>
{/foreach} {/foreach}
</select> </select>
</td> </td>
<td><input class="button" type="submit" name="submitAddPayment" value="Add" /></td> {/if}
</tr> <td><input class="button" type="submit" name="submitAddPayment" value="Add" /></td>
{/if} </tr>
</tbody> </tbody>
</table> </table>
</form> </form>