Testing createFromProposal for ID=566

Propal lines and their extrafields (array_options):

Line 0 (ID=4729): options_cf_ref = [NOT SET]
Line 1 (ID=4754): options_cf_ref = [USGFLEX200H-EU0101F]
Line 2 (ID=4758): options_cf_ref = [SECUEXTENDER-ZZ3Y05F]
Line 3 (ID=4730): options_cf_ref = [3P1700UF]
Line 4 (ID=4777): options_cf_ref = [NOT SET]
Line 5 (ID=4731): options_cf_ref = [NOT SET]
Line 6 (ID=4732): options_cf_ref = [DT.R31EF.00B]
Line 7 (ID=4756): options_cf_ref = [24B3HA2]
Line 8 (ID=4734): options_cf_ref = [3P700UF]
Line 9 (ID=4739): options_cf_ref = [NOT SET]
Line 10 (ID=4740): options_cf_ref = [NOT SET]
Line 11 (ID=4755): options_cf_ref = [GS752TP-300EUS]
Line 12 (ID=4744): options_cf_ref = [CAT6AS015MWH]
Line 13 (ID=4765): options_cf_ref = [NOT SET]
Line 14 (ID=4766): options_cf_ref = [NOT SET]
Line 15 (ID=4767): options_cf_ref = [CPN07323]
Line 16 (ID=4768): options_cf_ref = [CXV-YENT0008]
Line 17 (ID=4769): options_cf_ref = [YL-T73W]
Line 18 (ID=4770): options_cf_ref = [YL-W71H]
Line 19 (ID=4771): options_cf_ref = [YL-W75]
Line 20 (ID=4772): options_cf_ref = [YL-BH70T]
Line 21 (ID=4776): options_cf_ref = [NOT SET]
Line 22 (ID=4749): options_cf_ref = [NOT SET]
Line 23 (ID=4773): options_cf_ref = [FP]
Line 24 (ID=4774): options_cf_ref = [DEP]
Line 25 (ID=4775): options_cf_ref = [PRESTA]

Simulating order creation (DRY RUN - no actual insert):

Building order lines from propal...
Line 0: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 1: fetch_optionals() called, options_cf_ref = [USGFLEX200H-EU0101F]
Line 2: fetch_optionals() called, options_cf_ref = [SECUEXTENDER-ZZ3Y05F]
Line 3: fetch_optionals() called, options_cf_ref = [3P1700UF]
Line 4: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 5: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 6: fetch_optionals() called, options_cf_ref = [DT.R31EF.00B]
Line 7: fetch_optionals() called, options_cf_ref = [24B3HA2]
Line 8: fetch_optionals() called, options_cf_ref = [3P700UF]
Line 9: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 10: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 11: fetch_optionals() called, options_cf_ref = [GS752TP-300EUS]
Line 12: fetch_optionals() called, options_cf_ref = [CAT6AS015MWH]
Line 13: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 14: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 15: fetch_optionals() called, options_cf_ref = [CPN07323]
Line 16: fetch_optionals() called, options_cf_ref = [CXV-YENT0008]
Line 17: fetch_optionals() called, options_cf_ref = [YL-T73W]
Line 18: fetch_optionals() called, options_cf_ref = [YL-W71H]
Line 19: fetch_optionals() called, options_cf_ref = [YL-W75]
Line 20: fetch_optionals() called, options_cf_ref = [YL-BH70T]
Line 21: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 22: fetch_optionals() called, options_cf_ref = [EMPTY]
Line 23: fetch_optionals() called, options_cf_ref = [FP]
Line 24: fetch_optionals() called, options_cf_ref = [DEP]
Line 25: fetch_optionals() called, options_cf_ref = [PRESTA]

Conclusion: If array_options is populated, Dolibarr should copy them.
The extrafields ARE being loaded correctly from propal lines.

Checking if copyproductref module is enabled:

MAIN_MODULE_COPYPRODUCTREF = 1 (1 = enabled)

DELETE THIS FILE!