'; // must use facid because id is for payment id not invoice
- }
-
- // Classify paid
- if ($action != 'confirm_edit' && $object->statut == FactureFournisseur::STATUS_VALIDATED && $object->paye == 0 && $user->socid == 0) {
- print '
';
-
- //print 'id.'&action=paid">'.$langs->trans('ClassifyPaid').'';
+ // Create payment
+ if ($object->type != FactureFournisseur::TYPE_CREDIT_NOTE && $object->statut == FactureFournisseur::STATUS_VALIDATED && $object->paye == 0) {
+ print ''.$langs->trans('DoPayment').''; // must use facid because id is for payment id not invoice
}
// Reverse back money or convert to reduction
@@ -3162,37 +3419,43 @@ if ($action == 'create') {
// For credit note only
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE && $object->statut == 1 && $object->paye == 0) {
if ($resteapayer == 0) {
- print '