jaimex8
11/12/2015 - 8:23 AM

Starting mvt:do for adding basket:charge

Starting mvt:do for adding basket:charge

	  <mvt:if expr="g.customer:login EQ 'jsandoval'">
      &mvt:global:chargecounter;
<mvt:comment>
      <mvt:foreach iterator="charge" array="l.settings:basket:charges">
      <mvt:if expr="l.settings:charge:module_id EQ '90'">
      <mvt:do file="g.Module_Library_DB" name="g.null" value="BasketCharge_Update( l.basketcharge )" />
      <mvt:do file="g.Module_Library_DB" name="g.null" value="BasketCharge_Read( l.basketcharge )" />
      </mvt:if>
      </mvt:foreach>

      <mvt:assign name="l.basketcharge:basket_id" value="g.basket:basket_id" />
      <mvt:assign name="l.basketcharge:module_id" value="l.settings:store:tax_mod:id" />
      <mvt:assign name="l.basketcharge:type" value="'TAX'" />
      <mvt:assign name="l.basketcharge:descrip" value="'CA Sales Tax'" />
      <mvt:assign name="l.basketcharge:amount" value="g.basket:subtotal * 0.0875" />
      <mvt:assign name="l.basketcharge:disp_amt" value="g.basket:subtotal * 0.0875" />
      <mvt:assign name="l.basketcharge:tax_exempt" value="0" />

        <mvt:do file="g.Module_Library_DB" name="g.null" value="BasketCharge_Insert( l.basketcharge )" />
        <mvt:do file="g.Module_Library_DB" name="g.nullread" value="BasketCharge_Read( l.basketcharge )" />
        
        <mvt:comment><mvt:do file="g.Module_Library_DB" name="g.readnull" value="BasketChargeList_Load_Basket( g.basket:basket_id, l.basket:charges )" /></mvt:comment>
        <mvt:assign name="g.chargecounter" value="0" />
        <mvt:assign name="g.chargecounter" value="g.chargecounter + 1" />
        &mvt:global:chargecounter;
        
    <mvt:else>