View Issue Details

IDProjectCategoryView StatusLast Update
0000118CAMAP/InterAMAP44CAMAPpublic2024-02-01 10:21
ReporterAmaury Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionopen 
PlatformGandiVPSOSDebianOS Version11
Product Versionv1.0.2.2 
Summary0000118: Erreur lors de la saisie d'une souscription
Description

Erreur lors de la saisie d'une souscription

Contexte:

  • Contrat variable
  • Mini / distri
  • Mini / contrat
  • 1 seule date de distri

Il semble que le pb vienne de la combinaison 1 seule distri ET mini par commande

Additional Information

src\service\SubscriptionService.hx +502

areVarOrdersValid()

Aucune commande dans cette souscription [stack]
Called from service/SubscriptionService.hx line 513
Called from service/SubscriptionService.hx line 995
Called from service/SubscriptionService.hx line 662
Called from service/SubscriptionService.hx line 661
Called from a C function
Called from controller/SubscriptionAdmin.hx line 159
Called from controller/SubscriptionAdmin.hx line 80
Called from a C function
Called from haxe/web/Dispatch.hx line 132
Called from haxe/web/Dispatch.hx line 131
Called from controller/ContractAdmin.hx line 818
Called from a C function
Called from haxe/web/Dispatch.hx line 132
Called from haxe/web/Dispatch.hx line 131
Called from controller/Main.hx line 268
Called from a C function
Called from haxe/web/Dispatch.hx line 132
Called from haxe/web/Dispatch.hx line 131
Called from sugoi/BaseApp.hx line 257
Called from sugoi/BaseApp.hx line 247
Called from a C function
Called from App.hx line 45
Called from sugoi/BaseApp.hx line 417
Called from sys/db/Transaction.hx line 32
TagsNo tags attached.

Activities

Amaury

2023-10-11 15:29

administrator   ~0000186

Last edited: 2023-10-11 15:30

     /*
     *  Checks if subscription orders meet all the catalog requirements.
     */
    public static function areVarOrdersValid( subscription:db.Subscription ) : Bool {

        var catalog = subscription.catalog;     

        if ( catalog.distribMinOrdersTotal == 0  && catalog.catalogMinOrdersTotal == 0 ) {
            //nothing to check
            return true;
        }

        //get orders in correct format
        var allOrders = getSubscriptionAllOrders(subscription);
        if(allOrders.length==0) throw "Aucune commande dans cette souscription";
        var ordersByDistrib = ordersToOrdersByDistrib(allOrders);

        checkVarOrders(ordersByDistrib,subscription);

        return true;
    }

MCZ

2024-01-26 17:10

developer   ~0000212

Contrat variable mini distri : 3 mini contrat : 3 1 distr C'est OK

Issue History

Date Modified Username Field Change
2023-09-05 15:19 Amaury New Issue
2023-09-05 15:19 Amaury Status new => assigned
2023-09-05 15:19 Amaury Assigned To => Amaury
2023-10-11 15:29 Amaury Note Added: 0000186
2023-10-11 15:29 Amaury Note Edited: 0000186
2023-10-11 15:30 Amaury Note Edited: 0000186
2024-01-24 15:16 Amaury Assigned To Amaury =>
2024-01-24 15:16 Amaury Status assigned => feedback
2024-01-26 17:10 MCZ Note Added: 0000212
2024-01-26 17:10 MCZ File Added: Var, Mini distri, contrat, 1 distr.png
2024-02-01 10:21 MCZ Status feedback => closed