⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderitems.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 3 页
字号:
                      </tr>                    </table>                  </td>                  <td align="right" valign="top" nowrap>                    <div class="tabletext" nowrap><@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/> / <@ofbizCurrency amount=orderItem.unitListPrice isoCode=currencyUomId/></div>                  </td>                  <td align="right" valign="top" nowrap>                    <div class="tabletext" nowrap><@ofbizCurrency amount=Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemAdjustmentsTotal(orderItem, orderAdjustments, true, false, false) isoCode=currencyUomId/></div>                  </td>                  <td align="right" valign="top" nowrap>                    <#if orderItem.statusId != "ITEM_CANCELLED">                      <div class="tabletext" nowrap><@ofbizCurrency amount=Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemSubTotal(orderItem, orderAdjustments) isoCode=currencyUomId/></div>                    <#else>                      <div class="tabletext" nowrap><@ofbizCurrency amount=0.00 isoCode=currencyUomId/></div>                    </#if>                  </td>                  <td>&nbsp;</td>                  <td align="right" valign="top" nowrap>                    &nbsp;                  </td>                </#if>              </tr>              <#-- show info from workeffort -->              <#assign workOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment")?if_exists>              <#if workOrderItemFulfillments?has_content>                  <#list workOrderItemFulfillments as workOrderItemFulfillment>                      <#assign workEffort = workOrderItemFulfillment.getRelatedOneCache("WorkEffort")>                      <tr>                        <td>&nbsp;</td>                        <td colspan="9">                          <div class="tabletext">                            <#if orderItem.orderItemTypeId != "RENTAL_ORDER_ITEM">                              <b><i>Production Run</i>:</b>                              <a href="/manufacturing/control/ShowProductionRun?productionRunId=${workEffort.workEffortId}&externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${workEffort.workEffortId}</a>&nbsp;                            </#if>                            ${uiLabelMap.CommonFrom}: ${workEffort.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonTo}: ${workEffort.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.OrderNumberOfPersons}: ${workEffort.reservPersons?default("")}                          </div>                        </td>                      </tr>                      <#break><#-- need only the first one -->                  </#list>              </#if>              <#-- show linked order lines -->              <#if orderHeader?has_content && orderHeader.orderTypeId = "SALES_ORDER">                <#assign linkedOrderItems = orderItem.getRelated("SalesOrderItemAssociation")?if_exists>              <#else>                <#assign linkedOrderItems = orderItem.getRelated("PurchaseOrderItemAssociation")?if_exists>              </#if>              <#if linkedOrderItems?has_content>                <#list linkedOrderItems as linkedOrderItem>                  <#if orderHeader?has_content && orderHeader.orderTypeId = "SALES_ORDER">                    <#assign linkedOrderId = linkedOrderItem.purchaseOrderId>                    <#assign linkedOrderItemSeqId = linkedOrderItem.poItemSeqId>                  <#else>                    <#assign linkedOrderId = linkedOrderItem.salesOrderId>                    <#assign linkedOrderItemSeqId = linkedOrderItem.soItemSeqId>                  </#if>                  <tr>                    <td>&nbsp;</td>                    <td colspan="9">                      <div class="tabletext">                        <b><i>${uiLabelMap.OrderLinkedToOrderItem}</i>:</b>                        <a href="/ordermgr/control/orderview?orderId=${linkedOrderId}" class="buttontext" style="font-size: xx-small;">${linkedOrderId}/${linkedOrderItemSeqId}</a>&nbsp;                      </div>                    </td>                  </tr>                </#list>              </#if>              <#-- show linked requirements -->              <#assign linkedRequirements = orderItem.getRelated("OrderRequirementCommitment")?if_exists>              <#if linkedRequirements?has_content>                <#list linkedRequirements as linkedRequirement>                  <tr>                    <td>&nbsp;</td>                    <td colspan="9">                      <div class="tabletext">                        <b><i>${uiLabelMap.OrderLinkedToRequirement}</i>:</b>                        <a href="<@ofbizUrl>EditRequirement?requirementId=${linkedRequirement.requirementId}</@ofbizUrl>" class="buttontext" style="font-size: xx-small;">${linkedRequirement.requirementId}</a>&nbsp;                      </div>                    </td>                  </tr>                </#list>              </#if>              <#-- show linked quote -->              <#assign linkedQuote = orderItem.getRelatedOneCache("QuoteItem")?if_exists>              <#if linkedQuote?has_content>                <tr>                  <td>&nbsp;</td>                  <td colspan="9">                    <div class="tabletext">                      <b><i>${uiLabelMap.OrderLinkedToQuote}</i>:</b>                      <a href="<@ofbizUrl>EditQuoteItem?quoteId=${linkedQuote.quoteId}&quoteItemSeqId=${linkedQuote.quoteItemSeqId}</@ofbizUrl>" class="buttontext" style="font-size: xx-small;">${linkedQuote.quoteId}-${linkedQuote.quoteItemSeqId}</a>&nbsp;                    </div>                  </td>                </tr>              </#if>              <#-- now show adjustment details per line item -->              <#assign orderItemAdjustments = Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemAdjustmentList(orderItem, orderAdjustments)>              <#if orderItemAdjustments?exists && orderItemAdjustments?has_content>                <#list orderItemAdjustments as orderItemAdjustment>                  <#assign adjustmentType = orderItemAdjustment.getRelatedOneCache("OrderAdjustmentType")>                  <tr>                    <td align="right" colspan="2">                      <div class="tabletext" style="font-size: xx-small;">                        <b><i>${uiLabelMap.OrderAdjustment}</i>:</b> <b>${adjustmentType.description}</b>:                        ${orderItemAdjustment.description?if_exists}                         <#if orderItemAdjustment.comments?has_content>(${orderItemAdjustment.comments?default("")})</#if>                        <#if orderItemAdjustment.productPromoId?has_content><a href="/catalog/control/EditProductPromo?productPromoId=${orderItemAdjustment.productPromoId}&externalLoginKey=${externalLoginKey}">${orderItemAdjustment.getRelatedOne("ProductPromo").getString("promoName")}</a></#if>                        <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">                          <#if orderItemAdjustment.primaryGeoId?has_content>                            <#assign primaryGeo = orderItemAdjustment.getRelatedOneCache("PrimaryGeo")/>                            <b>${uiLabelMap.OrderJurisdiction}:</b> ${primaryGeo.geoName} [${primaryGeo.abbreviation?if_exists}]                            <#if orderItemAdjustment.secondaryGeoId?has_content>                              <#assign secondaryGeo = orderItemAdjustment.getRelatedOneCache("SecondaryGeo")/>                              (<b>${uiLabelMap.CommonIn}:</b> ${secondaryGeo.geoName} [${secondaryGeo.abbreviation?if_exists}])                            </#if>                          </#if>                          <#if orderItemAdjustment.sourcePercentage?exists><b>${uiLabelMap.OrderRate}:</b> ${orderItemAdjustment.sourcePercentage?string("0.######")}</#if>                          <#if orderItemAdjustment.customerReferenceId?has_content><b>${uiLabelMap.OrderCustomerTaxId}:</b> ${orderItemAdjustment.customerReferenceId}</#if>                          <#if orderItemAdjustment.exemptAmount?exists><b>${uiLabelMap.OrderExemptAmount}:</b> ${orderItemAdjustment.exemptAmount}</#if>                        </#if>                      </div>                    </td>                    <td>&nbsp;</td>                    <td>&nbsp;</td>                    <td align="right">                      <div class="tabletext" style="font-size: xx-small;">                        <@ofbizCurrency amount=Static["org.ofbiz.order.order.OrderReadHelper"].calcItemAdjustment(orderItemAdjustment, orderItem) isoCode=currencyUomId/>                      </div>                     </td>                    <td>&nbsp;</td>                  </tr>                </#list>              </#if>              <#-- now show price info per line item -->              <#assign orderItemPriceInfos = orderReadHelper.getOrderItemPriceInfos(orderItem)>              <#if orderItemPriceInfos?exists && orderItemPriceInfos?has_content>                <tr><td>&nbsp;</td></tr>                <#list orderItemPriceInfos as orderItemPriceInfo>                  <tr>                    <td align="right" colspan="2">                      <div class="tabletext" style="font-size: xx-small;"><b><i>${uiLabelMap.ProductPriceRuleNameId}</i>:</b> [${orderItemPriceInfo.productPriceRuleId?if_exists}:${orderItemPriceInfo.productPriceActionSeqId?if_exists}] ${orderItemPriceInfo.description?if_exists}</div>                    </td>                    <td>&nbsp;</td>                    <td align="right">                      <div class="tabletext" style="font-size: xx-small;">                        <@ofbizCurrency amount=orderItemPriceInfo.modifyAmount isoCode=currencyUomId/>                      </div>                    </td>                    <td>&nbsp;</td>                    <td>&nbsp;</td>                  </tr>                </#list>              </#if>              <#-- now show survey information per line item -->              <#assign orderItemSurveyResponses = Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemSurveyResponse(orderItem)>              <#if orderItemSurveyResponses?exists && orderItemSurveyResponses?has_content>                <#list orderItemSurveyResponses as survey>                  <tr>                    <td align="right" colspan="2">                      <div class="tabletext" style="font-size: xx-small;">                        <b><i>${uiLabelMap.CommonSurveys}</i>:</b>                          <a href="/content/control/ViewSurveyResponses?surveyResponseId=${survey.surveyResponseId}&surveyId=${survey.surveyId}<#if survey.partyId?exists>&partyId=${survey.partyId}</#if>&externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${survey.surveyId}</a>                      </div>                    </td>                    <td>&nbsp;</td>                    <td>&nbsp;</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -