/[papo]/papo/forms/components/alien_document.nebc
ViewVC logotype

Diff of /papo/forms/components/alien_document.nebc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by mhepp, Thu Oct 23 20:10:57 2003 UTC revision 1.14 by mhepp, Tue Oct 28 17:50:59 2003 UTC
# Line 21  $transport => '1' Line 21  $transport => '1'
21  $bundles => '1'  $bundles => '1'
22  $dto => '1'  $dto => '1'
23  $ctacte => '1'  $ctacte => '1'
24    $guide_number => '1'
25  </neb:Vars>  </neb:Vars>
26    
27    <datasource name="nil" cache="1"/>    <datasource name="nil" cache="1"/>
# Line 1419  order_by="_entity_data.name"> Line 1420  order_by="_entity_data.name">
1420      payBlock.ctaCteEntry = "0.00"      payBlock.ctaCteEntry = "0.00"
1421      <neb:Block>} else {</neb:Block>      <neb:Block>} else {</neb:Block>
1422            
     lQty = hack.a2f(alienItemBlock.qtyEntry,4)  
1423      lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4)      lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4)
1424      lItemPrice = round((lQty * lUnitPrice),2)      lItemPrice = round(lUnitPrice,2)
1425      alienItemBlock.itemNetoEntry = lItemPrice      alienItemBlock.itemNetoEntry = lItemPrice
1426      alienItemBlock.itemTotalEntry = lItemPrice      alienItemBlock.itemTotalEntry = lItemPrice
1427      sum = 0      sum = 0
# Line 1430  order_by="_entity_data.name"> Line 1430  order_by="_entity_data.name">
1430      for index in range(len(lRecords)):      for index in range(len(lRecords)):
1431       lRecord = lRecords[index]         lRecord = lRecords[index]  
1432       lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price"),4)       lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price"),4)
1433       lQty = hack.a2f(lRecord.getField("alien_product_item.qty"),4)       #lQty = hack.a2f(lRecord.getField("alien_product_item.qty"),4)
1434       lItemPrice = round((lQty * lUnitPrice),2)       lItemPrice = round(lUnitPrice,2)
1435       lTNeto += round(lItemPrice,2)       lTNeto += round(lItemPrice,2)
1436      alienDocumentBlock.totalEntry = lTNeto      alienDocumentBlock.totalEntry = lTNeto
1437      payBlock.cashEntry = lTNeto      payBlock.cashEntry = lTNeto
# Line 1467  order_by="_entity_data.name"> Line 1467  order_by="_entity_data.name">
1467        GConditions.GCField(like2,"number")        GConditions.GCField(like2,"number")
1468        GConditions.GCConst(like2,str(alienDocumentSearchBlock.numberSEntry)+" %")        GConditions.GCConst(like2,str(alienDocumentSearchBlock.numberSEntry)+" %")
1469    
1470        <neb:Block> if ($guide_number) {</neb:Block>
1471      if hack.emptyEntry(alienDocumentSearchBlock.guideNumerSEntry):      if hack.emptyEntry(alienDocumentSearchBlock.guideNumerSEntry):
1472        like3 = GConditions.GClike(tmpAnd)        like3 = GConditions.GClike(tmpAnd)
1473        GConditions.GCField(like3,"guide_number")        GConditions.GCField(like3,"guide_number")
1474        GConditions.GCConst(like3,str(alienDocumentSearchBlock.guideNumerSEntry)+" %")        GConditions.GCConst(like3,str(alienDocumentSearchBlock.guideNumerSEntry)+" %")
1475        <neb:Block>}</neb:Block>
1476    
1477      <neb:Block> if ($bundles) {</neb:Block>      <neb:Block> if ($bundles) {</neb:Block>
1478      if hack.emptyEntry(alienDocumentSearchBlock.bundlesSEntry):      if hack.emptyEntry(alienDocumentSearchBlock.bundlesSEntry):
# Line 1651  order_by="_entity_data.name"> Line 1653  order_by="_entity_data.name">
1653    <trigger name="productDeleteTrigger" type="NAMED">    <trigger name="productDeleteTrigger" type="NAMED">
1654      alienItemBlock.productCodeEntry = ""      alienItemBlock.productCodeEntry = ""
1655      alienItemBlock.productNameEntry = ""      alienItemBlock.productNameEntry = ""
1656        <neb:Block> if ($document ne "tax") {</neb:Block>
1657      alienItemBlock.qtyEntry = 0.00      alienItemBlock.qtyEntry = 0.00
1658        <neb:Block>}</neb:Block>
1659      alienItemBlock.unitPriceEntry = 0.00      alienItemBlock.unitPriceEntry = 0.00
1660      alienItemBlock.productEntry = ""      alienItemBlock.productEntry = ""
1661      alienItemBlock.taxAmountEntry = 0      alienItemBlock.taxAmountEntry = 0
# Line 1835  order_by="_entity_data.name"> Line 1839  order_by="_entity_data.name">
1839          <label name="dateLbl" text="Fecha" x="22" y="8" />          <label name="dateLbl" text="Fecha" x="22" y="8" />
1840          <entry field="date" name="dateSEntry" typecast="date"          <entry field="date" name="dateSEntry" typecast="date"
1841            rows="1" width="22" x="22" y="9"/>            rows="1" width="22" x="22" y="9"/>
1842          <label name="guideNumberLbl" text="Número de guía" x="45" y="8" />        
1843          <entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="9"/>        <neb:Block> if ($guide_number) {</neb:Block>
1844          <label name="guideNumberLbl" text="Número de guía" x="45" y="8" />
1845          <entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="9"/>
1846          <neb:Block>}</neb:Block>
1847    
1848          <neb:Block> if ($bundles) {</neb:Block>          <neb:Block> if ($bundles) {</neb:Block>
1849          <label name="bundlesLbl" text="Bultos" x="66" y="8" />          <label name="bundlesLbl" text="Bultos" x="66" y="8" />
# Line 1944  order_by="_entity_data.name"> Line 1951  order_by="_entity_data.name">
1951          <label name="invoiceTypeLbl" text="Tipo" x="48" y="8" />          <label name="invoiceTypeLbl" text="Tipo" x="48" y="8" />
1952          <entry name="invoiceTypeEntry" width="4" x="48" y="9" readonly="t" style="label"/>          <entry name="invoiceTypeEntry" width="4" x="48" y="9" readonly="t" style="label"/>
1953        <neb:Block>}</neb:Block>        <neb:Block>}</neb:Block>
1954          <neb:Block> if ($guide_number) {</neb:Block>
1955          <label name="guideNumberLbl" text="Número de guía" x="53" y="8" />          <label name="guideNumberLbl" text="Número de guía" x="53" y="8" />
1956          <entry field="alien_document.guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/>          <entry field="alien_document.guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/>
1957          <neb:Block>}</neb:Block>
1958          <neb:Block> if ($bundles) {</neb:Block>          <neb:Block> if ($bundles) {</neb:Block>
1959          <label name="bundlesLbl" text="Bultos" x="74" y="8" />          <label name="bundlesLbl" text="Bultos" x="74" y="8" />
1960          <entry field="alien_document.bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/>          <entry field="alien_document.bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/>
# Line 2020  order_by="_entity_data.name"> Line 2029  order_by="_entity_data.name">
2029    
2030          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/>          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/>
2031    
2032        <neb:Block> if ($document ne "tax") {</neb:Block>
2033          <label name="qtyLbl" text="Cantidad" x="43" y="13"/>          <label name="qtyLbl" text="Cantidad" x="43" y="13"/>
2034          <entry field="alien_product_item.qty" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="43" y="14" style="label" readonly="">          <entry field="alien_product_item.qty" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="43" y="14" style="label" readonly="">
2035          </entry>          </entry>
2036        <neb:Block>}</neb:Block>
2037    
2038          <label name="priceLbl" text="Precio" x="55" y="13"/>          <label name="priceLbl" text="Precio" x="55" y="13"/>
2039          <entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f"          <entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f"
# Line 2299  order_by="_entity_data.name"> Line 2310  order_by="_entity_data.name">
2310            <trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/>            <trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/>
2311          </entry>          </entry>
2312        <neb:Block>}</neb:Block>        <neb:Block>}</neb:Block>
2313          <neb:Block> if ($guide_number) {</neb:Block>
2314          <label name="guideNumberLbl" text="Número de guía" x="53" y="5" />          <label name="guideNumberLbl" text="Número de guía" x="53" y="5" />
2315          <entry field="guide_number" name="guideNumerEntry" width="20" x="53" y="6"/>          <entry field="guide_number" name="guideNumerEntry" width="20" x="53" y="6"/>
2316          <neb:Block>}</neb:Block>
2317          <neb:Block> if ($bundles) {</neb:Block>          <neb:Block> if ($bundles) {</neb:Block>
2318          <label name="bundlesLbl" text="Bultos" x="74" y="5" />          <label name="bundlesLbl" text="Bultos" x="74" y="5" />
2319          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="6"/>          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="6"/>
# Line 2386  order_by="_entity_data.name"> Line 2398  order_by="_entity_data.name">
2398          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="5" hidden=""/>          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="5" hidden=""/>
2399          <button name="productSearchButton" trigger="productSearchTrigger" label="Buscar" width="7" height="7" x="35" y="9"/>          <button name="productSearchButton" trigger="productSearchTrigger" label="Buscar" width="7" height="7" x="35" y="9"/>
2400    
2401          <neb:Block> if ($document ne "tax") {</neb:Block>
2402          <label name="qtyLbl" text="Cantidad" x="42" y="8"/>          <label name="qtyLbl" text="Cantidad" x="42" y="8"/>
2403          <entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="42" y="9">          <entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="42" y="9">
2404            <trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" />            <trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" />
2405          </entry>          </entry>
2406          <neb:Block>}</neb:Block>
2407  <!--         <label name="productLbl" text="Producto" x="15" y="3"/> -->  <!--         <label name="productLbl" text="Producto" x="15" y="3"/> -->
2408  <!--         <button x="32" y="3" trigger="productTrigger" width="3" label="..." -->  <!--         <button x="32" y="3" trigger="productTrigger" width="3" label="..." -->
2409  <!--           name="productBtn" height="1"/> -->  <!--           name="productBtn" height="1"/> -->

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26