Skip to content
Snippets Groups Projects

E-all Vendors and PriceBooks

Merged yogeshwar requested to merge yogeshwar/vtigercrm:294671 into foreall
1 unresolved thread
15 files
+ 33
26
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -46,7 +46,7 @@
{assign var="listPriceValues" value=Products_Record_Model::getListPriceValues($productId)}
{if $MODULE eq 'PurchaseOrder'}
{assign var="listPriceValues" value=array()}
{assign var="purchaseCost" value="{if isset($data.$purchaseCost) && $data.$purchaseCost && $RECORD_CURRENCY_RATE && $data.$qty}{((float)$data.$purchaseCost) / ((float)$data.$qty * (float){$RECORD_CURRENCY_RATE})}{else}0{/if}"}
{assign var="purchaseCost" value="{if isset($data.$purchaseCost) && isset($data.$qty) && $data.$purchaseCost && $RECORD_CURRENCY_RATE && $data.$qty}{((float)$data.$purchaseCost) / ((float)$data.$qty * (float){$RECORD_CURRENCY_RATE})}{else}0{/if}"}
{foreach item=currency_details from=$CURRENCIES}
{append var='listPriceValues' value=$currency_details.conversionrate * $purchaseCost index=$currency_details.currency_id}
{/foreach}
Loading