<commit_before><#--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<@section>   
      <@menu type="button">
      <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
        <#if shoppingCart.getOrderPartyId() == "_NA_" || (shoppingCart.size() == 0)>
          <@menuitem type="link" text=uiLabelMap.OrderFinalizeOrder disabled=true class="+${styles.action_nav!} ${styles.action_complete!}"/>
        <#else>
          <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=purchase&finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false") text=uiLabelMap.OrderFinalizeOrder class="+${styles.action_nav!} ${styles.action_complete!}" />
        </#if>
      <#else>
        <#if shoppingCart.size() == 0>
          <@menuitem type="link" text=uiLabelMap.OrderQuickFinalizeOrder disabled=true class="+${styles.action_nav!} ${styles.action_complete!}" />
          <@menuitem type="link" text=uiLabelMap.OrderFinalizeOrderDefault disabled=true class="+${styles.action_nav!} ${styles.action_complete!}" />
          <@menuitem type="link" text=uiLabelMap.OrderFinalizeOrder disabled=true class="+${styles.action_nav!} ${styles.action_complete!}" />
        <#else>
          <@menuitem type="link" href=makeOfbizUrl("quickcheckout") text=uiLabelMap.OrderQuickFinalizeOrder class="+${styles.action_nav!} ${styles.action_complete!}" />
          <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=default") text=uiLabelMap.OrderFinalizeOrderDefault class="+${styles.action_nav!} ${styles.action_complete!}" />
          <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=init") text=uiLabelMap.OrderFinalizeOrder class="+${styles.action_nav!} ${styles.action_complete!}" />
        </#if>
      </#if>

      <#if (shoppingCart.size() > 0)>
        <@menuitem type="link" href="javascript:document.cartform.submit()" text=uiLabelMap.OrderRecalculateOrder class="+${styles.action_run_session!} ${styles.action_update!}" />
        <@menuitem type="link" href="javascript:removeSelected();" text=uiLabelMap.OrderRemoveSelected class="+${styles.action_run_session!} ${styles.action_remove!}" />
      <#else>
        <@menuitem type="link" text=uiLabelMap.OrderRecalculateOrder disabled=true class="+${styles.action_run_session!} ${styles.action_update!}" />
        <@menuitem type="link" text=uiLabelMap.OrderRemoveSelected disabled=true class="+${styles.action_run_session!} ${styles.action_remove!}" />
      </#if>
      <@menuitem type="link" href=makeOfbizUrl("emptycart") text=uiLabelMap.OrderClearOrder class="+${styles.action_run_session!} ${styles.action_clear!}" />
    </@menu>
</@section><commit_msg>orderentry: OrderEntryTabBar.ftl: fix order and simplify<commit_after><#--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<@section>   
    <@menu type="button">
      <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
        <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=purchase&finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false") text=uiLabelMap.OrderFinalizeOrder 
          class="+${styles.action_nav!} ${styles.action_complete!}" disabled=(shoppingCart.getOrderPartyId() == "_NA_" || (shoppingCart.size() == 0))/>
      <#else>
        <@menuitem type="link" href=makeOfbizUrl("quickcheckout") text=uiLabelMap.OrderQuickFinalizeOrder class="+${styles.action_nav!} ${styles.action_complete!}" disabled=(shoppingCart.size() == 0)/>
        <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=init") text=uiLabelMap.OrderFinalizeOrder class="+${styles.action_nav!} ${styles.action_complete!}" disabled=(shoppingCart.size() == 0)/>
        <@menuitem type="link" href=makeOfbizUrl("finalizeOrder?finalizeMode=default") text=uiLabelMap.OrderFinalizeOrderDefault class="+${styles.action_nav!} ${styles.action_complete!}" disabled=(shoppingCart.size() == 0)/>
      </#if>
      <@menuitem type="link" href="javascript:document.cartform.submit()" text=uiLabelMap.OrderRecalculateOrder class="+${styles.action_run_session!} ${styles.action_update!}" disabled=(shoppingCart.size() == 0)/>
      <@menuitem type="link" href="javascript:removeSelected();" text=uiLabelMap.OrderRemoveSelected class="+${styles.action_run_session!} ${styles.action_remove!}" disabled=(shoppingCart.size() == 0)/>
      <@menuitem type="link" href=makeOfbizUrl("emptycart") text=uiLabelMap.OrderClearOrder class="+${styles.action_run_session!} ${styles.action_clear!}" />
    </@menu>
</@section>
{'fraction_non_alphanumeric': 0.1664917069074113, 'fraction_numerical': 0.0018895653999580096, 'mean_word_length': 6.0265486725663715, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6718881', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1494, 'n_words': 225}