From 102afa21c115e8c8b9333a326c3d1af08fe76faf Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期一, 22 一月 2024 22:08:58 +0800 Subject: [PATCH] backup0122 --- force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml b/force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml index 9eddb76..70a5d1e 100644 --- a/force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml +++ b/force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml @@ -2,14 +2,16 @@ <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>TotalPrice_N__c</fullName> <externalId>false</externalId> - <formula>if(isblank(TotalPrice__c), 0, + <formula>if(isblank(TotalPrice__c) && isblank(TotalPriceUnit__c), 0, if(isnumber(TotalPrice__c), VALUE(TotalPrice__c), -if(CONTAINS(TotalPrice__c, ','), VALUE(SUBSTITUTE(TotalPrice__c, ',', '')), 0) +if(CONTAINS(TotalPrice__c, ','), VALUE(SUBSTITUTE(TotalPrice__c, ',', '')), +if(isnumber(TotalPriceUnit__c), VALUE(TotalPriceUnit__c), +if(CONTAINS(TotalPriceUnit__c, ','), VALUE(SUBSTITUTE(TotalPriceUnit__c, ',', '')), 0))) ))</formula> <label>鏈」閲戦(鏁板瓧)</label> <precision>18</precision> <required>false</required> - <scale>2</scale> + <scale>0</scale> <trackTrending>false</trackTrending> <type>Number</type> <unique>false</unique> -- Gitblit v1.9.1