implement using last comment instructions
- User
implement using last comment instructions
Assistant
diff--- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -270,10 +270,10 @@ { $object->fetch($id); - // On verifie signe facture + // We check sign of amount if ($object->type == Facture::TYPE_CREDIT_NOTE) { - // Si avoir, le signe doit etre negatif - if ($object->total_ht >= 0) { + // If credit note, the total amount must be negatif + if ($object->total_ttc >= 0) { setEventMessages($langs->trans("ErrorInvoiceAvoirMustBeNegative"), null, 'errors'); $action = ''; }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.