Files
dolibarr/test/phpunit
Alexandre Janniaux a0a3339eb9 DiscountTest: fix create when no societe exists
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
    ┴
2024-01-05 15:05:33 +01:00
..
2023-09-10 19:41:14 +02:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-09-09 21:16:58 +02:00
2023-11-28 15:35:31 +01:00
2023-12-04 11:22:28 +01:00
2023-11-28 15:35:31 +01:00
2023-12-04 11:22:28 +01:00
2023-10-20 03:59:02 +02:00
2023-11-28 15:35:31 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-11-27 13:26:44 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-27 13:09:25 +01:00
2023-11-28 15:35:31 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-09-10 19:41:14 +02:00
2023-11-06 00:56:44 +01:00
2023-12-04 11:22:28 +01:00
2023-08-12 01:08:04 +02:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-06-04 19:46:44 +02:00
2023-08-04 17:26:38 +02:00
2023-11-27 13:26:44 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-08-26 00:43:51 +02:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2023-12-04 11:22:28 +01:00
2024-01-05 03:08:16 +01:00
2024-01-05 03:08:16 +01:00
2024-01-05 03:08:16 +01:00
2024-01-05 03:08:16 +01:00
2024-01-05 03:08:16 +01:00
2024-01-05 03:08:16 +01:00
2023-09-05 00:49:01 +02:00