/[papo]/papo/forms/ivaSales.neb
ViewVC logotype

Diff of /papo/forms/ivaSales.neb

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

revision 1.2 by apronotti, Wed May 14 19:01:50 2003 UTC revision 1.3 by mhepp, Tue May 20 22:04:23 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1"?>  <?xml version="1.0" encoding="ISO-8859-1"?>
2  <!DOCTYPE form SYSTEM "gnue-forms.dtd">  <!DOCTYPE form SYSTEM "gnue-forms.dtd">
3    
4  <form title="Impresion I.V.A. Ventas" height="7" width="30">  <form title="Impresion I.V.A. Ventas" height="7" width="38">
5      <neb:Block>
6        use PAPO;
7        my $uniqed=0;
8      </neb:Block>
9    <datasource name="printDataSource" cache="1"/>    <datasource name="printDataSource" cache="1"/>
10    
11    <!-- Origen de datos que srive para calcular el total facturado -->    <!-- Origen de datos que srive para calcular el total facturado -->
# Line 170  Line 173 
173        </eq>        </eq>
174      </condition>      </condition>
175    </datasource>    </datasource>
176    <!--para buscar branch-->
177        
178      <neb:Sub neb:src="datasource.nebc" zot="../zot/PAPO-ER.zot" search="own_branch"
179      name="ownBranchSearchDataSource" database="papo"/>
180    
181    <datasource name="tmpInvToPayedDataSource" cache="1"/>    <datasource name="tmpInvToPayedDataSource" cache="1"/>
182    
183    <datasource name="invoiceToPayedDataSource" cache="1"/>    <datasource name="invoiceToPayedDataSource" cache="1"/>
184    
185    <trigger type="NAMED" name="printTrigger"><![CDATA[    <trigger type="NAMED" name="printTrigger">
186    
187  if not str(printBlock.printBox.startDateEntry).strip() \  if not str(printBlock.printBox.startDateEntry).strip() \
188     or not str(printBlock.printBox.startDateEntry).strip():     or not str(printBlock.printBox.startDateEntry).strip():
# Line 210  else: Line 217  else:
217    le = GConditions.GCle(tmpAnd)    le = GConditions.GCle(tmpAnd)
218    GConditions.GCField(le,"own_document.date")    GConditions.GCField(le,"own_document.date")
219    GConditions.GCConst(le,str(printBlock.printBox.endDateEntry))    GConditions.GCConst(le,str(printBlock.printBox.endDateEntry))
220      #condiciones por Branch
221      if str(printBlock.printBox.ownBranchIdSearch):
222       print str(printBlock.printBox.ownBranchIdSearch)
223       #condiciono relacion ownPos con ownBranch
224       #condiciono documentos emitidos por el pos
225       eq1 = GConditions.GCeq(tmpAnd)
226       GConditions.GCField(eq1,"_entity_relation_data.entity_to")
227       GConditions.GCField(eq1,"own_document.own_entity")
228       eq2 = GConditions.GCeq(tmpAnd)
229       GConditions.GCField(eq2,"_entity_relation_data.entity_from")
230       GConditions.GCConst(eq2,str(printBlock.printBox.ownBranchIdSearch))
231       #condiciono relacion del tipo own_pos del branch al que pertenece
232       eq3 = GConditions.GCeq(tmpAnd)
233       GConditions.GCField(eq3,"_entity_relation_data._table")
234       GConditions.GCField(eq3,"_relation_types_data.entity_relation")
235       eq4 = GConditions.GCeq(tmpAnd)
236       GConditions.GCField(eq4,"_relation_types_data.relation_type")
237       GConditions.GCConst(eq4,<neb:Inline>'"'.PAPO::posOfType.'"'</neb:Inline>)
238       # solo veo los datos actuales
239       null1 = GConditions.GCnull(tmpAnd)
240       GConditions.GCField(null1,"_relation_types_data._end_t")
241       null2 = GConditions.GCnull(tmpAnd)
242       GConditions.GCField(null2,"_entity_relation_data._end_t")
243      #/condiciones por Branch
244    productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)    productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)
245    more = productInvoiceResultSet.firstRecord()    more = productInvoiceResultSet.firstRecord()
246    
# Line 256  else: Line 286  else:
286    line += printing.printField("%0.2f".strip() % hack.a2f(totalIVA + totalNeto),14,'r')    line += printing.printField("%0.2f".strip() % hack.a2f(totalIVA + totalNeto),14,'r')
287    table.append(line)    table.append(line)
288    
289    hack.previewPrint(table)    printing.previewPrint(table,'xless')
290    
291      ]]></trigger>      </trigger>
292    
293    <trigger type="NAMED" name="cancelTrigger"><![CDATA[    <trigger type="NAMED" name="cancelTrigger"><![CDATA[
294  import hack  import hack
# Line 295  ownDocumentBlock.clear() Line 325  ownDocumentBlock.clear()
325    <page name="Impresion IVA Ventas">    <page name="Impresion IVA Ventas">
326    
327      <block datasource="printDataSource" name="printBlock">      <block datasource="printDataSource" name="printBlock">
328        <box height="8" label="Impresion IVA Ventas" name="printBox" width="25" x="1" y="1">        <box height="8" label="Impresion IVA Ventas" name="printBox" width="37" x="1" y="1">
329          <label name="startDateLbl" text="Desde : " x="1" y="1"/>          <label name="startDateLbl" text="Desde : " x="1" y="1"/>
330          <entry name="startDateEntry" typecast="date" x="9" y="1" width="12"/>          <entry name="startDateEntry" typecast="date" x="9" y="1" width="12"/>
331          <label name="startDateLbl" text="Hasta : " x="1" y="2"/>          <label name="endDateLbl" text="Hasta : " x="1" y="2"/>
332          <entry name="endDateEntry" typecast="date" x="9" y="2" width="12"/>          <entry name="endDateEntry" typecast="date" x="9" y="2"
333          <button name="printButton" trigger="printTrigger"          width="12"/>
334            label="Imprimir" width="20" height="1" x="2" y="4"/>          <label  text="sucursal :" x="1" y="3"/>
335            <entry  x="9" y="3" name="ownBranchIdSearch"  width="25" style="dropdown"
336              foreign_key="ownBranchSearchDataSource._entity_data._table"
337              foreign_key_description="_entity_data.name" />
338            <button name="printButton" trigger="printTrigger" label="Imprimir" width="20" height="1"
339              x="2"  y="5"/>
340        </box>        </box>
341      </block>      </block>
342        
343    </page>    </page>
344  </form>  </form>
345    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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