Body: <p>I created two line items with different "Tax-Deductible" option in financial type (one type with yes other with no) but its not calculated correct in contribution Non-deductible Amount field. Can webform manage it? What would be the correct way to create it?</p>
  
  <p><a href="https://i.sstatic.net/Ncv1o.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ncv1o.png" alt="Sample Financial type with tax deductible"></a></p>
  
  <p>It seems that it always assigns the value based on the type of financing assigned to the contribution page associated with the webform.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T09:27:31.500Z
Comments.Text: I dont think that is possible.
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T13:14:39.560Z
Comments.Text: Yes it is - this is a bug. We've not run into it b/c our CDN Tax Receipts extension code only checks the Non-Deductible amount if a Contribution Amount is indeed of a Financial Type that is TaxDeductible (i.e. TaxReceiptable). How are you using this field?
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T14:28:42.800Z
Comments.Text: Well, the idea is update the "Non-deductible Amount" value in contribution depending on the financial type based on whether a contact wants to deduct or not. Im my case the financial types are based on this
Comments.UserDisplayName: Cesar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T14:49:46.480Z
Comments.Text: I don't understand "whether Contact wants to deduct or not"? That field in Core is meant for Charitable Tax Receipting purposes -> to calculate the Eligible Amount for on the Tax Receipt.
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T16:42:25.537Z
Comments.Text: The problem is that the input is coming from a Webform. The final user chooses "yes" or "no" whether he/she wants to deduct the contribution and by choosing he/she determines which financial type is used (a deductible one for "yes" a non deductible one for "no".  So we need to be able to choose the correct financial type from the webform. The field "Non-deductible Amount" is updated with all financial types asociated with line items, but always take "tax-deductible" associated in contribution page / financial type but not with financial types asociated in line item.
Comments.UserDisplayName: Cesar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-24T16:52:32.157Z
Comments.Text: What does user “chooses whether or not they want to deduct the Contribution” mean? Deduct from what?
Comments.UserDisplayName: KarinG - Semper IT
Tags: <civicontribute><webform-civicrm>
Title: Can webform manage two types of financing and correctly calculate the Tax-Deductible in the contribution?
ThreadText: # Can webform manage two types of financing and correctly calculate the Tax-Deductible in the contribution?
  
  (Asked by: username_0 on 2019-10-24)
  
  I created two line items with different "Tax-Deductible" option in financial type (one type with yes other with no) but its not calculated correct in contribution Non-deductible Amount field. Can webform manage it? What would be the correct way to create it?
  
  [![Sample Financial type with tax deductible](https://i.sstatic.net/Ncv1o.png)](https://i.sstatic.net/Ncv1o.png)
  
  It seems that it always assigns the value based on the type of financing assigned to the contribution page associated with the webform.
  
  **Tags:** civicontribute, webform-civicrm
  
  > **Comments:**
  > **username_1**: I dont think that is possible.  
  > **username_2**: Yes it is - this is a bug. We've not run into it b/c our CDN Tax Receipts extension code only checks the Non-Deductible amount if a Contribution Amount is indeed of a Financial Type that is TaxDeductible (i.e. TaxReceiptable). How are you using this field?  
  > **username_0**: Well, the idea is update the "Non-deductible Amount" value in contribution depending on the financial type based on whether a contact wants to deduct or not. Im my case the financial types are based on this  
  > **username_2**: I don't understand "whether Contact wants to deduct or not"? That field in Core is meant for Charitable Tax Receipting purposes -> to calculate the Eligible Amount for on the Tax Receipt.  
  > **username_0**: The problem is that the input is coming from a Webform. The final user chooses "yes" or "no" whether he/she wants to deduct the contribution and by choosing he/she determines which financial type is used (a deductible one for "yes" a non deductible one for "no".  So we need to be able to choose the correct financial type from the webform. The field "Non-deductible Amount" is updated with all financial types asociated with line items, but always take "tax-deductible" associated in contribution page / financial type but not with financial types asociated in line item.  
  > **username_2**: What does user “chooses whether or not they want to deduct the Contribution” mean? Deduct from what?  
  
  ---
  
  ## 0 answers
  
  