[FogBugz #120] Promo commercant - ticket bloqué #182
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Assigned To: Frederik Benoist
Project: CAISSE
Area: awcaisse
Category: Bogue
Priority: A fixer impérativement
Event ID: 508
Date: 2013-04-04T12:47:59Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
If TicketL.pPromoCommercant.pIdPromoCommercant = PromoCommercant.pIdPromoCommercant Then
>> TicketL.pPromoCommercant = nothing et PromoCommercant = nothing donc on a
"La référence d'objet n'est pas définie à une instance d'un objet. à bTicketLigne.cTicketLigne.get_pMontantProduitPromo(cPromoCommercant PromoCommercant) dans C:\projets\DotSoft\CaisseAuto\bTicketLigne\cTicketLigne\cTicketLigne.vb:ligne 2495"
Il faut faire des tests isnot nothing
Event ID: 507
Date: 2013-04-04T12:46:06Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\bTicketLigne\cTicketLigne\cTicketLigne.vb
Private ReadOnly Property pMontantProduitPromo(ByVal PromoCommercant As cPromoCommercant) As Decimal
Get
pMontantProduitPromo = 0
Dim LstLigne As New ArrayList
For Each TicketL As cTicketLigne In Me.vLstLigneTicketTotal
If Not TicketL.pTicketLigneParent Is Nothing Then
Select Case TicketL.pTypLigneTicket
Case eTypLigneTicket.extension_garantie, eTypLigneTicket.produit_standard, eTypLigneTicket.indefini, eTypLigneTicket.Produit_Speciale
Case eTypLigneTicket.remise_commercant_ligne, eTypLigneTicket.remise_commercant_pied, eTypLigneTicket.Remise_Sous_Total
If TicketL.pPromoCommercant.pIdPromoCommercant = PromoCommercant.pIdPromoCommercant Then
If Not LstLigne.Contains(TicketL.pTicketLigneParent.pIdLigne) Then LstLigne.Add(TicketL.pTicketLigneParent.pIdLigne)
End If
End Select
End If
Next
For Each IdLigne As Integer In LstLigne
pMontantProduitPromo += Me.vLstLigneTicketTotal.pItem(IdLigne).pPrixBrutRemise(, , PromoCommercant) ' * Me.vLstLigneTicketTotal.pItem(IdLigne).pQuantite
Next
End Get
End Property
Event ID: 506
Date: 2013-04-04T12:45:02Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist
Event ID: 505
Date: 2013-04-04T12:45:02Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist