What logic in AbleCommerce determines order is paid/unpaid?
Posted: Mon Nov 30, 2009 11:05 am
I have a question about the RecalculatePaymentStatus function of the
Order class.
What logic in this function determines whether the order is fully or
partially paid?
We are facing a scenario where an order is fully paid but AbleCommerce
is considering it partially paid and we are seeing the following note in
the order HIstory and Noted tab
"The order has been partially paid, a balance of $0.00 remains."
We tried adding a $0.00 payment to these orders and aslo tried to
mnually set the paymentStatusId field in the ac_Orders table to 2 (i.e.
"paid') but AbleCommerce is changing the status back to 1 (i.e. "unpaid").
On troubleshooting we found that the function call
"_Order.RecalculatePaymentStatus()" in Admin\Orders\ViewOrder.aspx.cs is
changing the status to "unpaid" even though we set it to "paid". So far
this happened only with two Canadian orders.
We didn't have any issues before on Canadian Orders so we are not sure
where the problem is.
Order class.
What logic in this function determines whether the order is fully or
partially paid?
We are facing a scenario where an order is fully paid but AbleCommerce
is considering it partially paid and we are seeing the following note in
the order HIstory and Noted tab
"The order has been partially paid, a balance of $0.00 remains."
We tried adding a $0.00 payment to these orders and aslo tried to
mnually set the paymentStatusId field in the ac_Orders table to 2 (i.e.
"paid') but AbleCommerce is changing the status back to 1 (i.e. "unpaid").
On troubleshooting we found that the function call
"_Order.RecalculatePaymentStatus()" in Admin\Orders\ViewOrder.aspx.cs is
changing the status to "unpaid" even though we set it to "paid". So far
this happened only with two Canadian orders.
We didn't have any issues before on Canadian Orders so we are not sure
where the problem is.