purchase-workflow
purchase-workflow copied to clipboard
[14.0][FIX] use commercial_partner_id on prepare_payment_vals method
- If partner_id is used when creating payment, invoice will not detect advance payment to reconcile. so replace by commercial_partner_id.
- code for invoice_paid_amount is not correct, just use amount_total and amount_residual to keep it simple !
@MateuGForgeFlow @HviorForgeFlow can you review it and merge ?
I teste it with invocie, advance and credit note and with partial payment, and now it works .. think we should update V15, V16 and V17 as well ?
@njeudy I'm not sure about this change because in the past as you can see here there was an issue regarding the change that you revert on da77183be96bc66a6bf1df2dcd4dcdbe937e69b4
@ygol @djtao1 can you give some feedback and review please, thanks :)
I personally never had the chance to use this module.