mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix the following error when running without the dataset.
✘ Discount create
┐
├ ERROR: 23503: insert or update on table "llx_societe_remise_except" violates foreign key constraint "fk_soc_remise_fk_soc"
├ DETAIL: Key (fk_soc)=(1) is not present in table "llx_societe".
├ SCHEMA NAME: public
├ TABLE NAME: llx_societe_remise_except
├ CONSTRAINT NAME: fk_soc_remise_fk_soc
├ LOCATION: ri_ReportViolation, ri_triggers.c:2596 - sql=INSERT INTO llx_societe_remise_except (entity, datec, fk_soc, discount_type, fk_user, description, amount_ht, amount_tva, amount_ttc, tva_tx, vat_src_code, multicurrency_amount_ht, multicurrency_amount_tva, multicurrency_amount_ttc, fk_facture_source, fk_invoice_supplier_source) VALUES (1, '2024-01-05 14:05:20', 1, 0, 1, 'Specimen discount', 10, 1.96, 11.96, 19.6, '', 0, 0, 0, null, null),
├ Failed asserting that 0 is less than -1.
│
│ dolibarr/test/phpunit/DiscountTest.php:147
┴
|
||
|---|---|---|
| .. | ||
| functional | ||
| AccountingAccountTest.php | ||
| ActionCommTest.php | ||
| AdherentTest.php | ||
| AdminLibTest.php | ||
| AllTests.php | ||
| AssetModelTest.php | ||
| BankAccountTest.php | ||
| BarcodeTest.php | ||
| BOMTest.php | ||
| BonPrelevementTest.php | ||
| BuildDocTest.php | ||
| CategorieTest.php | ||
| ChargeSocialesTest.php | ||
| CMailFileTest.php | ||
| CodingPhpTest.php | ||
| CodingSqlTest.php | ||
| CommandeFournisseurTest.php | ||
| CommandeTest.php | ||
| CommonInvoiceTest.php | ||
| CommonObjectTest.php | ||
| CompanyBankAccountTest.php | ||
| CompanyLibTest.php | ||
| ContactTest.php | ||
| ContratTest.php | ||
| CoreTest.php | ||
| DateLibTest.php | ||
| DateLibTzFranceTest.php | ||
| DiscountTest.php | ||
| DoliDBTest.php | ||
| EmailCollectorTest.php | ||
| EntrepotTest.php | ||
| EvalMathTest.php | ||
| Example_import_company_1.csv | ||
| ExpenseReportTest.php | ||
| ExportTest.php | ||
| FactureFournisseurTest.php | ||
| FactureRecTest.php | ||
| FactureTest.php | ||
| FactureTestRounding.php | ||
| FichinterTest.php | ||
| FilesLibTest.php | ||
| FormAdminTest.php | ||
| FormTest.php | ||
| Functions2LibTest.php | ||
| FunctionsLibTest.php | ||
| GetUrlLibTest.php | ||
| HolidayTest.php | ||
| ImagesLibTest.php | ||
| imap_header.txt | ||
| imap_htmlmsg.txt | ||
| imap_plaintext.txt | ||
| img250x20.png | ||
| img250x50.jpg | ||
| imgsvgwithjs.svg | ||
| ImportTest.php | ||
| InventoryTest.php | ||
| JsonLibTest.php | ||
| KnowledgeRecordTest.php | ||
| LangTest.php | ||
| LesscTest.php | ||
| LoanTest.php | ||
| MarginsLibTest.php | ||
| ModulesTest.php | ||
| MouvementStockTest.php | ||
| NumberingModulesTest.php | ||
| ODFTest.php | ||
| PaypalTest.php | ||
| PdfDocTest.php | ||
| pdfwithjs.pdf | ||
| PgsqlTest.php | ||
| phpunit.dtd | ||
| phpunittest.xml | ||
| PricesTest.php | ||
| ProductTest.php | ||
| ProjectTest.php | ||
| PropalTest.php | ||
| ReceptionTest.php | ||
| RepositoryTest.php | ||
| RestAPIContactTest.php | ||
| RestAPIDocumentTest.php | ||
| RestAPIUserTest.php | ||
| ScriptsTest.php | ||
| SecurityTest.php | ||
| SocieteTest.php | ||
| StripeTest.php | ||
| SupplierProposalTest.php | ||
| TargetTest.php | ||
| testemailing.txt | ||
| testvirus.txt | ||
| textiso.txt | ||
| textutf8.txt | ||
| TicketTest.php | ||
| UserGroupTest.php | ||
| UserTest.php | ||
| UtilsTest.php | ||
| WebservicesInvoicesTest.php | ||
| WebservicesOrdersTest.php | ||
| WebservicesOtherTest.php | ||
| WebservicesProductsTest.php | ||
| WebservicesThirdpartyTest.php | ||
| WebservicesUserTest.php | ||
| WebsiteTest.php | ||
| XCalLibTest.php | ||