locked
CRM plugin using Silverlight RRS feed

  • Question

  • Hi All,

    Iam working on Invoice item plugin where i need to calculate, tax rate, extended retail and resell price etc.

    resellPrice =(vendor cost*markup)+ vendor cost;

    Tax rate=((Resell price *Quantity)*(tax in %));

    Extended retail=((Tax rate+(Resell price *Quantity))-Manual discount);

    But extended retail is not saved in database.

    Please give me some suggestion.

    Thanks in Advance.


    blrSvsTech

    Saturday, October 13, 2012 1:06 PM

Answers

  •  Finally i found solution ....

    We can update Extended amount value even though it is not editable field..

    But we need to fill some fields like IsProductOverridden,IsPriceOverridden and PricingErrorCode as well ShipTo_FreightTermsCode and StateCode etc.

    Then it ll accept our calculated value..

    Thanks to all.

    • Marked as answer by blrSvsTech Monday, October 22, 2012 4:51 AM
    Monday, October 22, 2012 4:50 AM

All replies

  • Hi,

    I'm afraid it is not quite clear what the problem is. Are you using a Silverlight Web Resource or a Plugin?

    Can you provide some more information and can you please post some of your code, so that we can identify the problem?

    Greetings,

    Pavlos


    Please mark this reply as an answer and vote it as helpful if it helps you find a resolution to your problem.
    View my latest gallery contribution here.
    Visit my blog here.

    Saturday, October 13, 2012 1:15 PM
  • M using Silverlight web resource.

    M done with same kind of silverlight plugin for Order Item.

    There also used same calculation and working fine.

    I think i need to fill some mendatory fields to save Extended retail value to save in Metadata.

    And sory for the delay. m eagerly waiting for answer.

    Plz help

    Thanks


    blrSvsTech


    • Edited by blrSvsTech Monday, October 15, 2012 1:06 PM
    Monday, October 15, 2012 12:59 PM
  • If you are referring to the extendedamount attribute on the InvoiceDetail entity; it is documented in the SDK as NOT being Valid for Create or Update.  Presumably because it is a system calculated field, it cannot be manually updated.

    LogicalName

    SchemaName

    Type

    RequiredLevel

    IsCustomizable

    IsValidForCreate

    IsValidForRead

    IsValidForUpdate

    extendedamount

    ExtendedAmount

    Money

    None

    True

    False

    True

    False


    --pogo (pat) @ pogo69.wordpress.com

    Monday, October 15, 2012 11:33 PM
  • Yeh i agree that. But when i change other fields like vendor cost, mark up or quantity etc, extended amount value should change rt?

    But its not....

    And for Order detail and Quote entity also using same logic....there it is working fine

    and i filled the fields like IsProductOverridden,IsPriceOverridden and PricingErrorCode


    blrSvsTech


    • Edited by blrSvsTech Tuesday, October 16, 2012 7:43 AM
    • Marked as answer by blrSvsTech Monday, October 22, 2012 4:45 AM
    • Unmarked as answer by blrSvsTech Monday, October 22, 2012 4:46 AM
    Tuesday, October 16, 2012 4:41 AM
  •  Finally i found solution ....

    We can update Extended amount value even though it is not editable field..

    But we need to fill some fields like IsProductOverridden,IsPriceOverridden and PricingErrorCode as well ShipTo_FreightTermsCode and StateCode etc.

    Then it ll accept our calculated value..

    Thanks to all.

    • Marked as answer by blrSvsTech Monday, October 22, 2012 4:51 AM
    Monday, October 22, 2012 4:50 AM