|  | 
			
				| Gets an accounting detail from the proposal. | 
			
				|  | 
			
				| 
						
							|  | VARIANT_BOOL GetDetail ( SHORT sIndex,
 VARIANT* pvAmountDocC,
 VARIANT* pvQuantity,
 VARIANT* pvValue1,
 VARIANT* pvAccount,
 VARIANT* pvRemark,
 VARIANT* pvText1
 )
 |  | 
			
				|  | 
			
				| 
						| Parameters |  | sIndex |  | [in] The index of the detail, starting from 0. |  | pvAmountDocC |  | [out] Returns a VARIANT, subtype DOUBLE, containing the amount (in document currency) of the detail. |  | pvQuantity |  | [out] Returns a VARIANT, subtype DOUBLE, containing the quantity of the detail. |  | pvValue1 |  | [out] Returns a VARIANT, subtype DOUBLE, containing the free value of the detail. |  | pvAccount |  | [out] Returns a VARIANT, subtype BSTR, containing the general account of the detail. |  | pvRemark |  | [out] Returns a VARIANT, subtype BSTR, containing the remark of the detail. |  | pvText1 |  | [out] Returns a VARIANT, subtype BSTR, containing the free text of the detail. |  |  |  | Return value |  | True if the detail with the given index exists, otherwise false. |  
							|  |  
							| See Also |  
							|  |  | 
			|  | 
			| Samples | 
			|  | 
			
				| 
						
							|  | C++ |  
							|  | // Retrieve all detail data of the current proposal
 VARIANT vAmountDocC, vQuantity, vValue1, vAccount, vRemark, vText1;
 short sNumDetails;
 
 pAccProp->PrepareProposal (paView);
 
 sNumDetails = pAccProp->GetNumDetails ();
 
 for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
 {
 if (pAccProp->GetDetail (sDetail, &vAmountDocC, &vQuantity, &vValue1, &vAccount, &vRemark, &vText1))
 {
 // Process data
 }
 }
 
 pAccProp->CancelProposal ();
 
 
 |  | 
			
				| 
						
							|  | C# |  
							|  | // Retrieve all detail data of the current proposal
 object oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1;
 short sNumDetails;
 
 oAccProp.PrepareProposal (ePrepareAction.paView);
 
 sNumDetails = oAccProp.GetNumDetails ();
 
 for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
 {
 if (oAccProp.GetDetail (sDetail, out oAmountDocC, out oQuantity, out oValue1, out oAccount, out oRemark, out oText1))
 {
 // Process data
 }
 }
 
 oAccProp.CancelProposal ();
 
 
 |  | 
			
				| 
						
							|  | VBS |  
							|  | ' Retrieve all detail data of the current proposal
 Dim oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1
 Dim sDetail, sNumDetails
 
 Call oAccProp.PrepareProposal(paView)
 
 sNumDetails = oAccProp.GetNumDetails()
 
 For sDetail = 0 To sNumDetails - 1
 If oAccProp.GetDetail(sDetail, oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1) Then
 ' Process data
 End If
 Next
 
 Call oAccProp.CancelProposal()
 
 
 |  | 
			
				| 
						
							|  | VB.NET |  
							|  | ' Retrieve all detail data of the current proposal
 Dim oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1 As Object
 Dim sNumDetails As Short
 
 oAccProp.PrepareProposal(ePrepareAction.paView)
 
 sNumDetails = oAccProp.GetNumDetails()
 
 For sDetail As Short = 0 To sNumDetails - 1
 If oAccProp.GetDetail(sDetail, oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1) Then
 ' Process data
 End If
 Next
 
 Call oAccProp.CancelProposal()
 
 
 |  |