--- facturalux-0.4.orig/base/forms/factura.ui
+++ facturalux-0.4/base/forms/factura.ui
@@ -0,0 +1,1366 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>formFactura</class>
+<widget class="QWidget">
+    <property name="name">
+        <cstring>formFactura</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>851</width>
+            <height>660</height>
+        </rect>
+    </property>
+    <property name="caption">
+        <string>Facturas</string>
+    </property>
+    <grid>
+        <property name="name">
+            <cstring>unnamed</cstring>
+        </property>
+        <property name="margin">
+            <number>11</number>
+        </property>
+        <property name="spacing">
+            <number>6</number>
+        </property>
+        <widget class="QTabWidget" row="0" column="0">
+            <property name="name">
+                <cstring>TabWidget11</cstring>
+            </property>
+            <widget class="QWidget">
+                <property name="name">
+                    <cstring>tab</cstring>
+                </property>
+                <attribute name="title">
+                    <string>Resumen Conceptos</string>
+                </attribute>
+                <grid>
+                    <property name="name">
+                        <cstring>unnamed</cstring>
+                    </property>
+                    <property name="margin">
+                        <number>11</number>
+                    </property>
+                    <property name="spacing">
+                        <number>6</number>
+                    </property>
+                    <widget class="QFrame" row="0" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Frame3</cstring>
+                        </property>
+                        <property name="frameShape">
+                            <enum>Box</enum>
+                        </property>
+                        <property name="frameShadow">
+                            <enum>Plain</enum>
+                        </property>
+                        <grid>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>11</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel" row="0" column="0">
+                                <property name="name">
+                                    <cstring>TextLabel1</cstring>
+                                </property>
+                                <property name="font">
+                                    <font>
+                                        <family>Helvetica [Urw]</family>
+                                        <pointsize>18</pointsize>
+                                        <bold>1</bold>
+                                    </font>
+                                </property>
+                                <property name="frameShape">
+                                    <enum>MShape</enum>
+                                </property>
+                                <property name="frameShadow">
+                                    <enum>MShadow</enum>
+                                </property>
+                                <property name="text">
+                                    <string>FACTURA Nº :</string>
+                                </property>
+                                <property name="textFormat">
+                                    <enum>AutoText</enum>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB" row="0" column="3">
+                                <property name="name">
+                                    <cstring>FLFieldDB17</cstring>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>130</width>
+                                        <height>0</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>hora</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flfactura</cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB" row="0" column="2">
+                                <property name="name">
+                                    <cstring>FLFieldDB2</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>0</hsizetype>
+                                        <vsizetype>1</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>150</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="focusPolicy">
+                                    <enum>StrongFocus</enum>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>fecha</cstring>
+                                </property>
+                            </widget>
+                            <widget class="QLabel" row="0" column="1">
+                                <property name="name">
+                                    <cstring>numero</cstring>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>140</width>
+                                        <height>0</height>
+                                    </size>
+                                </property>
+                                <property name="font">
+                                    <font>
+                                        <family>Helvetica [Urw]</family>
+                                        <pointsize>18</pointsize>
+                                        <bold>1</bold>
+                                    </font>
+                                </property>
+                                <property name="text">
+                                    <string>#</string>
+                                </property>
+                                <property name="textFormat">
+                                    <enum>AutoText</enum>
+                                </property>
+                                <property name="alignment">
+                                    <set>AlignVCenter|AlignLeft</set>
+                                </property>
+                            </widget>
+                        </grid>
+                    </widget>
+                    <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout4</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>codemporig</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>170</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>codemporig</cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB3</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>310</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>nombre</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flempresas</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codemporig</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codempresa</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout5</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>codalmorig</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>170</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>codalmorig</cstring>
+                                </property>
+                                <property name="fieldRelationSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="foreignFieldSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchField" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchForeign" stdset="0">
+                                    <string></string>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB3_2</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>310</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>nombre</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flalmacenes</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codalmorig</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codalmacen</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout8_2</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB5</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>170</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>codvendedor</cstring>
+                                </property>
+                                <property name="fieldRelationSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="foreignFieldSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchField" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchForeign" stdset="0">
+                                    <string></string>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB5_2</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>310</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>nombre</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flvendedores</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codvendedor</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codvendedor</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout6</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>170</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring></cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring></cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB12</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>130</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>nombre</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flempresas</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codempresa</cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB9</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>111</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="focusPolicy">
+                                    <enum>NoFocus</enum>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>cifnif</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flempresas</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codempresa</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout8</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>codalmdest</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>170</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>codalmdest</cstring>
+                                </property>
+                                <property name="fieldRelationSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="foreignFieldSearch" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchField" stdset="0">
+                                    <string></string>
+                                </property>
+                                <property name="searchForeign" stdset="0">
+                                    <string></string>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB3_2_3</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>310</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>nombre</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flalmacenes</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codalmdest</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codalmacen</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="2">
+                        <property name="name">
+                            <cstring>Layout5_2</cstring>
+                        </property>
+                        <grid>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QPushButton" row="0" column="1">
+                                <property name="name">
+                                    <cstring>PushButton3</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Borrar Articulo</string>
+                                </property>
+                            </widget>
+                            <widget class="QPushButton" row="0" column="2">
+                                <property name="name">
+                                    <cstring>PushButton4</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Editar Articulo</string>
+                                </property>
+                            </widget>
+                            <widget class="QPushButton" row="0" column="0">
+                                <property name="name">
+                                    <cstring>PushButton6_2</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Añadir Articulo</string>
+                                </property>
+                            </widget>
+                            <widget class="FLTableDB" row="1" column="0" rowspan="1" colspan="3">
+                                <property name="name">
+                                    <cstring>lineasfactura</cstring>
+                                </property>
+                                <property name="focusPolicy">
+                                    <enum>TabFocus</enum>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>fllineasfactura</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>idfactura</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>idfactura</cstring>
+                                </property>
+                            </widget>
+                        </grid>
+                    </widget>
+                    <widget class="QLayoutWidget" row="7" column="2">
+                        <property name="name">
+                            <cstring>Layout4_2_2</cstring>
+                        </property>
+                        <vbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QPushButton">
+                                <property name="name">
+                                    <cstring>addAlbaran</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Añadir Articulos desde Albaran</string>
+                                </property>
+                            </widget>
+                            <widget class="FLTableDB">
+                                <property name="name">
+                                    <cstring>albaran</cstring>
+                                </property>
+                                <property name="focusPolicy">
+                                    <enum>TabFocus</enum>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>flalbaranes</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>codempdest</cstring>
+                                </property>
+                            </widget>
+                        </vbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="8" column="0">
+                        <property name="name">
+                            <cstring>Layout4_2</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel1_2</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Base Imponible:</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>baseimp</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>#base</string>
+                                </property>
+                                <property name="alignment">
+                                    <set>AlignVCenter|AlignRight</set>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="9" column="0">
+                        <property name="name">
+                            <cstring>Layout5_3</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel3</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Impuestos:</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>totimp</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>#Impuestos</string>
+                                </property>
+                                <property name="alignment">
+                                    <set>AlignVCenter|AlignRight</set>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget" row="10" column="0">
+                        <property name="name">
+                            <cstring>Layout6_2</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel6</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Promociones:</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>totprom</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>#totprom</string>
+                                </property>
+                                <property name="alignment">
+                                    <set>AlignVCenter|AlignRight</set>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLCDNumber" row="8" column="1" rowspan="3" colspan="2">
+                        <property name="name">
+                            <cstring>total</cstring>
+                        </property>
+                        <property name="sizePolicy">
+                            <sizepolicy>
+                                <hsizetype>5</hsizetype>
+                                <vsizetype>5</vsizetype>
+                                <horstretch>0</horstretch>
+                                <verstretch>0</verstretch>
+                            </sizepolicy>
+                        </property>
+                        <property name="paletteForegroundColor">
+                            <color>
+                                <red>85</red>
+                                <green>255</green>
+                                <blue>0</blue>
+                            </color>
+                        </property>
+                        <property name="paletteBackgroundColor">
+                            <color>
+                                <red>0</red>
+                                <green>0</green>
+                                <blue>0</blue>
+                            </color>
+                        </property>
+                        <property name="palette">
+                            <palette>
+                                <active>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>170</red>
+                                        <green>255</green>
+                                        <blue>127</blue>
+                                    </color>
+                                    <color>
+                                        <red>127</red>
+                                        <green>255</green>
+                                        <blue>63</blue>
+                                    </color>
+                                    <color>
+                                        <red>42</red>
+                                        <green>127</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>57</red>
+                                        <green>170</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>128</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                </active>
+                                <disabled>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>170</red>
+                                        <green>255</green>
+                                        <blue>127</blue>
+                                    </color>
+                                    <color>
+                                        <red>110</red>
+                                        <green>255</green>
+                                        <blue>38</blue>
+                                    </color>
+                                    <color>
+                                        <red>42</red>
+                                        <green>127</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>57</red>
+                                        <green>170</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>128</red>
+                                        <green>128</green>
+                                        <blue>128</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>128</red>
+                                        <green>128</green>
+                                        <blue>128</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>128</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>0</green>
+                                        <blue>255</blue>
+                                    </color>
+                                </disabled>
+                                <inactive>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>85</red>
+                                        <green>255</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>170</red>
+                                        <green>255</green>
+                                        <blue>127</blue>
+                                    </color>
+                                    <color>
+                                        <red>110</red>
+                                        <green>255</green>
+                                        <blue>38</blue>
+                                    </color>
+                                    <color>
+                                        <red>42</red>
+                                        <green>127</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>57</red>
+                                        <green>170</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>0</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>128</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>255</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>0</red>
+                                        <green>0</green>
+                                        <blue>255</blue>
+                                    </color>
+                                    <color>
+                                        <red>255</red>
+                                        <green>0</green>
+                                        <blue>255</blue>
+                                    </color>
+                                </inactive>
+                            </palette>
+                        </property>
+                        <property name="font">
+                            <font>
+                                <pointsize>32</pointsize>
+                            </font>
+                        </property>
+                        <property name="frameShadow">
+                            <enum>Sunken</enum>
+                        </property>
+                        <property name="smallDecimalPoint">
+                            <bool>false</bool>
+                        </property>
+                        <property name="numDigits">
+                            <number>15</number>
+                        </property>
+                        <property name="segmentStyle">
+                            <enum>Filled</enum>
+                        </property>
+                        <property name="value" stdset="0">
+                            <number>0</number>
+                        </property>
+                        <property name="intValue" stdset="0">
+                            <number>0</number>
+                        </property>
+                    </widget>
+                    <widget class="QLayoutWidget" row="6" column="0" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>Layout9</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>110</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB11</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>141</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>descripcion</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>fldivisas</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                            </widget>
+                            <widget class="FLFieldDB">
+                                <property name="name">
+                                    <cstring>FLFieldDB12_2</cstring>
+                                </property>
+                                <property name="sizePolicy">
+                                    <sizepolicy>
+                                        <hsizetype>1</hsizetype>
+                                        <vsizetype>0</vsizetype>
+                                        <horstretch>0</horstretch>
+                                        <verstretch>0</verstretch>
+                                    </sizepolicy>
+                                </property>
+                                <property name="minimumSize">
+                                    <size>
+                                        <width>220</width>
+                                        <height>28</height>
+                                    </size>
+                                </property>
+                                <property name="fieldName">
+                                    <cstring>tasaconv</cstring>
+                                </property>
+                                <property name="tableName">
+                                    <cstring>fldivisas</cstring>
+                                </property>
+                                <property name="foreignField">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                                <property name="fieldRelation">
+                                    <cstring>coddivisa</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                </grid>
+            </widget>
+            <widget class="QWidget">
+                <property name="name">
+                    <cstring>tab</cstring>
+                </property>
+                <attribute name="title">
+                    <string>Formas de Pago</string>
+                </attribute>
+                <grid>
+                    <property name="name">
+                        <cstring>unnamed</cstring>
+                    </property>
+                    <property name="margin">
+                        <number>11</number>
+                    </property>
+                    <property name="spacing">
+                        <number>6</number>
+                    </property>
+                    <widget class="FLFieldDB" row="0" column="1" rowspan="1" colspan="3">
+                        <property name="name">
+                            <cstring>descripcionformapago</cstring>
+                        </property>
+                        <property name="fieldName">
+                            <cstring>descripcion</cstring>
+                        </property>
+                        <property name="tableName">
+                            <cstring>flformaspago</cstring>
+                        </property>
+                        <property name="foreignField">
+                            <cstring>codformapago</cstring>
+                        </property>
+                        <property name="fieldRelation">
+                            <cstring>codformapago</cstring>
+                        </property>
+                    </widget>
+                    <widget class="FLFieldDB" row="0" column="0">
+                        <property name="name">
+                            <cstring>codformapago</cstring>
+                        </property>
+                        <property name="fieldName">
+                            <cstring>codformapago</cstring>
+                        </property>
+                    </widget>
+                    <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+                        <property name="name">
+                            <cstring>TextLabel1_2_4</cstring>
+                        </property>
+                        <property name="font">
+                            <font>
+                                <bold>1</bold>
+                            </font>
+                        </property>
+                        <property name="text">
+                            <string>Pagos pendientes:</string>
+                        </property>
+                    </widget>
+                    <widget class="QLabel" row="1" column="2" rowspan="1" colspan="2">
+                        <property name="name">
+                            <cstring>TextLabel2_3</cstring>
+                        </property>
+                        <property name="text">
+                            <string>Los pagos a dia 0 no son contabilizados como pagos pendientes.</string>
+                        </property>
+                    </widget>
+                    <widget class="FLTableDB" row="2" column="0" rowspan="1" colspan="4">
+                        <property name="name">
+                            <cstring>lineaspagopendientes_3</cstring>
+                        </property>
+                        <property name="tableName">
+                            <cstring>flpagospendientes</cstring>
+                        </property>
+                        <property name="foreignField">
+                            <cstring>idfactura</cstring>
+                        </property>
+                        <property name="fieldRelation">
+                            <cstring>idfactura</cstring>
+                        </property>
+                    </widget>
+                    <widget class="QLabel" row="3" column="0">
+                        <property name="name">
+                            <cstring>TextLabel1_3_4</cstring>
+                        </property>
+                        <property name="font">
+                            <font>
+                                <pointsize>18</pointsize>
+                                <bold>1</bold>
+                            </font>
+                        </property>
+                        <property name="text">
+                            <string>Total a pagar ahora:</string>
+                        </property>
+                    </widget>
+                    <spacer row="3" column="1" rowspan="1" colspan="2">
+                        <property name="name" stdset="0">
+                            <cstring>Spacer1_3</cstring>
+                        </property>
+                        <property name="orientation">
+                            <enum>Horizontal</enum>
+                        </property>
+                        <property name="sizeType">
+                            <enum>Expanding</enum>
+                        </property>
+                        <property name="sizeHint">
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget class="QLCDNumber" row="3" column="3">
+                        <property name="name">
+                            <cstring>LCDNumber2_3</cstring>
+                        </property>
+                        <property name="sizePolicy">
+                            <sizepolicy>
+                                <hsizetype>0</hsizetype>
+                                <vsizetype>0</vsizetype>
+                                <horstretch>0</horstretch>
+                                <verstretch>0</verstretch>
+                            </sizepolicy>
+                        </property>
+                        <property name="paletteForegroundColor">
+                            <color>
+                                <red>0</red>
+                                <green>255</green>
+                                <blue>0</blue>
+                            </color>
+                        </property>
+                        <property name="paletteBackgroundColor">
+                            <color>
+                                <red>0</red>
+                                <green>0</green>
+                                <blue>0</blue>
+                            </color>
+                        </property>
+                        <property name="numDigits">
+                            <number>11</number>
+                        </property>
+                        <property name="segmentStyle">
+                            <enum>Filled</enum>
+                        </property>
+                    </widget>
+                </grid>
+            </widget>
+        </widget>
+    </grid>
+</widget>
+<connections>
+    <connection>
+        <sender>PushButton6_2</sender>
+        <signal>clicked()</signal>
+        <receiver>lineasfactura</receiver>
+        <slot>insertRecord()</slot>
+    </connection>
+    <connection>
+        <sender>PushButton3</sender>
+        <signal>clicked()</signal>
+        <receiver>lineasfactura</receiver>
+        <slot>deleteRecord()</slot>
+    </connection>
+    <connection>
+        <sender>PushButton4</sender>
+        <signal>clicked()</signal>
+        <receiver>lineasfactura</receiver>
+        <slot>editRecord()</slot>
+    </connection>
+    <connection>
+        <sender>addAlbaran</sender>
+        <signal>clicked()</signal>
+        <receiver>formFactura</receiver>
+        <slot>addAlbaran()</slot>
+    </connection>
+</connections>
+<slots>
+    <slot>addAlbaran()</slot>
+</slots>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
