Skip to content

Commit

Permalink
payment
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 25, 2024
1 parent 76cb05e commit 85cc26e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/trade/model/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ def total_amount_step

def init_with_order_ids(ids)
orders = Order.where(id: ids).map do |order|
{ order: order, order_amount: order.unreceived_amount, state: 'pending' }
{
order: order,
order_amount: order.unreceived_amount,
payment_amount: order.unreceived_amount,
state: 'pending'
}
end

new(payment_orders_attributes: orders)
Expand Down

0 comments on commit 85cc26e

Please sign in to comment.