Skip to content
Snippets Groups Projects
Commit 5ba58872 authored by angelo paglialonga's avatar angelo paglialonga
Browse files

getSelectedDefaultTaxMode #1561

parent 96b5d187
Loading
Loading
  • Contributor

    @angelo.paglialonga @prasad why add an empty function? isn't it better to remove the call to getSelectedDefaultTaxMode() here: https://code.vtiger.com/vtiger/vtigercrm/blob/master/include/Webservices/LineItem/VtigerInventoryOperation.php#L228 ?

    The function is not used anywhere else in the system. so why keep it?

  • Contributor

    Plus, you end up with an empty line items section:

    image

    Which is a far worse bug than the one being fixed!

  • Ruben A. Estrada @ruben.estrada

    mentioned in issue #1561 (closed)

    ·

    mentioned in issue #1561 (closed)

    Toggle commit list
  • angelo paglialonga @angelo.paglialonga ·
    Author Contributor

    Hi @ruben.estrada what kind of test did you do exactly to say that? Are you sure? This solution has been successfully applied in production systems for years.

  • Contributor

    @angelo.paglialonga your fix does delete the TaxType (Tax Mode in the image below) if you don't pass it in the fields provided to vtws_revise. Why? because your function provides an empty value which is used to overwrite whatever the current value is:

    image

    The line items do get deleted, but that is not related to your fix. That is another bug which should be fixed.

    The point of vtws_revise is to just provide fields you need to update without touching fields you don't want to change and without getting errors for not providing mandatory fields which are currently missing in the record.

    Please share your thoughts. My only goal here is to improve Vtiger. Nothing else.

  • Contributor

    Please ignore my previous comment, I didn't notice this commit had already changed the function: ea743825

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment