Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed unneded files that came in the repo during the last commit

  • Loading branch information...
commit 5fe135addb879f2db9ac60556f6442350e4c84db 1 parent 790c5fa
@scaphilo authored
View
1  media/pdf/log.txt
@@ -1 +0,0 @@
-bash -c "fop -c /var/www/koalixcrm/media/uploads/templatefiles/fontconfig.xml -xml /var/www/koalixcrm/media/pdf/quote_2.xml -xsl /var/www/koalixcrm/media/uploads/templatefiles/quote.xsl -pdf /var/www/koalixcrm/media/pdf/quote_2.pdf"
View
BIN  media/pdf/quote_2.pdf
Binary file not shown
View
142 media/pdf/quote_2.xml
@@ -1,142 +0,0 @@
-<django-objects version="1.0">
- <object pk="2" model="crm.quote">
- <field type="DateField" name="validuntil">2011-09-30</field>
- <field type="CharField" name="status">I</field>
- </object>
- <object pk="2" model="crm.salescontract">
- <field to="crm.contract" name="contract" rel="ManyToOneRel">3</field>
- <field type="CharField" name="externalReference"/>
- <field type="DecimalField" name="discount">0.00</field>
- <field type="CharField" name="description">First offer in first contract :-)</field>
- <field type="DateField" name="lastPricingDate"><None/></field>
- <field type="DecimalField" name="lastCalculatedPrice"><None/></field>
- <field type="DecimalField" name="lastCalculatedTax"><None/></field>
- <field to="crm.customer" name="customer" rel="ManyToOneRel">1</field>
- <field to="auth.user" name="staff" rel="ManyToOneRel">1</field>
- <field to="crm.currency" name="currency" rel="ManyToOneRel">2</field>
- <field type="DateTimeField" name="dateofcreation">2011-09-30 23:53:34</field>
- <field type="DateTimeField" name="lastmodification">2011-09-30 23:44:24</field>
- <field to="auth.user" name="lastmodifiedby" rel="ManyToOneRel">1</field>
- </object>
- <object pk="1" model="crm.contact">
- <field type="CharField" name="name">Yann Brecht</field>
- <field type="DateTimeField" name="dateofcreation">2011-09-30 23:40:07</field>
- <field type="DateTimeField" name="lastmodification">2011-09-30 23:40:07</field>
- <field to="auth.user" name="lastmodifiedby" rel="ManyToOneRel">1</field>
- </object>
- <object pk="2" model="crm.currency">
- <field type="CharField" name="description">Swiss Franc</field>
- <field type="CharField" name="shortName">CHF</field>
- <field type="DecimalField" name="rounding">0.05</field>
- </object>
- <object pk="1" model="crm.salescontractposition">
- <field to="crm.salescontract" name="contract" rel="ManyToOneRel">2</field>
- </object>
- <object pk="1" model="crm.position">
- <field type="IntegerField" name="positionNumber">1</field>
- <field type="DecimalField" name="quantity">1.000</field>
- <field type="TextField" name="description">For changing the machine </field>
- <field type="DecimalField" name="discount">10.00</field>
- <field to="crm.product" name="product" rel="ManyToOneRel">1</field>
- <field to="crm.unit" name="unit" rel="ManyToOneRel">1</field>
- <field type="DateField" name="sentOn"><None/></field>
- <field to="crm.supplier" name="supplier" rel="ManyToOneRel"><None/></field>
- <field type="CharField" name="shipmentID"><None/></field>
- <field type="BooleanField" name="overwriteProductPrice">False</field>
- <field type="DecimalField" name="positionPricePerUnit"><None/></field>
- <field type="DateField" name="lastPricingDate"><None/></field>
- <field type="DecimalField" name="lastCalculatedPrice"><None/></field>
- <field type="DecimalField" name="lastCalculatedTax"><None/></field>
- </object>
- <object pk="1" model="crm.product">
- <field type="TextField" name="description">One man-hour work of one of our technicians</field>
- <field type="CharField" name="title">One man-hour of a technicians</field>
- <field type="IntegerField" name="productNumber">1</field>
- <field to="crm.unit" name="defaultunit" rel="ManyToOneRel">1</field>
- <field type="DateTimeField" name="dateofcreation">2011-09-30 23:46:30</field>
- <field type="DateTimeField" name="lastmodification">2011-09-30 23:46:30</field>
- <field to="auth.user" name="lastmodifiedby" rel="ManyToOneRel"><None/></field>
- <field to="crm.tax" name="tax" rel="ManyToOneRel">1</field>
- <field to="accounting.productcategorie" name="accoutingProductCategorie" rel="ManyToOneRel">1</field>
- </object>
- <object pk="1" model="crm.unit">
- <field type="CharField" name="description">Hour</field>
- <field type="CharField" name="shortName">h</field>
- <field to="crm.unit" name="isAFractionOf" rel="ManyToOneRel"><None/></field>
- <field type="IntegerField" name="fractionFactorToNextHigherUnit"><None/></field>
- </object>
- <object pk="1" model="auth.user">
- <field type="CharField" name="username">aaron</field>
- <field type="CharField" name="first_name"/>
- <field type="CharField" name="last_name"/>
- <field type="CharField" name="email">aaron.riedener@gmail.com</field>
- <field type="CharField" name="password">sha1$3ec80$726dac48302f455277dd00839e018a51d8a7f6c1</field>
- <field type="BooleanField" name="is_staff">True</field>
- <field type="BooleanField" name="is_active">True</field>
- <field type="BooleanField" name="is_superuser">True</field>
- <field type="DateTimeField" name="last_login">2011-09-30 23:16:54</field>
- <field type="DateTimeField" name="date_joined">2011-09-11 00:52:08</field>
- <field to="auth.group" name="groups" rel="ManyToManyRel"/>
- <field to="auth.permission" name="user_permissions" rel="ManyToManyRel"/>
- </object>
- <object pk="1" model="djangoUserExtension.userextension">
- <field to="auth.user" name="user" rel="ManyToOneRel">1</field>
- <field to="djangoUserExtension.templateset" name="defaultTemplateSet" rel="ManyToOneRel">1</field>
- <field to="crm.currency" name="defaultCurrency" rel="ManyToOneRel">1</field>
- </object>
- <object pk="1" model="crm.phoneaddress">
- <field type="CharField" name="phone">1293847</field>
- </object>
- <object pk="1" model="djangoUserExtension.templateset">
- <field type="CharField" name="organisationname">koalix Riedener</field>
- <field type="CharField" name="title">defaultTemplateSet</field>
- <field to="djangoUserExtension.xslfile" name="invoiceXSLFile" rel="ManyToOneRel">2</field>
- <field to="djangoUserExtension.xslfile" name="quoteXSLFile" rel="ManyToOneRel">3</field>
- <field to="djangoUserExtension.xslfile" name="purchaseconfirmationXSLFile" rel="ManyToOneRel">4</field>
- <field to="djangoUserExtension.xslfile" name="deilveryorderXSLFile" rel="ManyToOneRel">6</field>
- <field to="djangoUserExtension.xslfile" name="profitLossStatementXSLFile" rel="ManyToOneRel">5</field>
- <field to="djangoUserExtension.xslfile" name="balancesheetXSLFile" rel="ManyToOneRel">1</field>
- <field type="CharField" name="logo">logo.jpg</field>
- <field type="CharField" name="bankingaccountref">xx-xxxxxx-x</field>
- <field type="CharField" name="addresser">John Smit, Sample Company, 8976 Smallville</field>
- <field type="CharField" name="fopConfigurationFile">fontconfig.xml</field>
- <field type="TextField" name="footerTextsalesorders">Thank you for your interest in our company
- Best regards</field>
- <field type="TextField" name="headerTextsalesorders">According to your wishes the contract consists of the following positions:</field>
- <field type="TextField" name="headerTextpurchaseorders">We would like to order the following positions:</field>
- <field type="TextField" name="footerTextpurchaseorders">Best regards</field>
- <field type="CharField" name="pagefooterleft">Sample Company</field>
- <field type="CharField" name="pagefootermiddle">Sample Address</field>
- </object>
- <object pk="1" model="auth.user">
- <field type="CharField" name="username">aaron</field>
- <field type="CharField" name="first_name"/>
- <field type="CharField" name="last_name"/>
- <field type="CharField" name="email">aaron.riedener@gmail.com</field>
- <field type="CharField" name="password">sha1$3ec80$726dac48302f455277dd00839e018a51d8a7f6c1</field>
- <field type="BooleanField" name="is_staff">True</field>
- <field type="BooleanField" name="is_active">True</field>
- <field type="BooleanField" name="is_superuser">True</field>
- <field type="DateTimeField" name="last_login">2011-09-30 23:16:54</field>
- <field type="DateTimeField" name="date_joined">2011-09-11 00:52:08</field>
- <field to="auth.group" name="groups" rel="ManyToManyRel"/>
- <field to="auth.permission" name="user_permissions" rel="ManyToManyRel"/>
- </object>
- <object pk="2" model="crm.postaladdressforcontact">
- <field type="CharField" name="purpose">H</field>
- <field to="crm.contact" name="person" rel="ManyToOneRel">1</field>
- </object>
- <object pk="2" model="crm.postaladdress">
- <field type="CharField" name="prefix">H</field>
- <field type="CharField" name="name">Brecht</field>
- <field type="CharField" name="prename">Yann</field>
- <field type="CharField" name="addressline1">Hombrechtikonstrasse</field>
- <field type="CharField" name="addressline2"/>
- <field type="CharField" name="addressline3"/>
- <field type="CharField" name="addressline4"/>
- <field type="IntegerField" name="zipcode">8000</field>
- <field type="CharField" name="town">Z&#252;rich</field>
- <field type="CharField" name="state">ZH</field>
- <field type="CharField" name="country">CH</field>
- </object>
-<projectroot>/var/www/koalixcrm/</projectroot></django-objects>
View
226 media/uploads/templatefiles/balancesheet.xsl
@@ -1,226 +0,0 @@
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
-<xsl:template match ="koalixaccountingbalacesheet">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1.5cm"
- margin-bottom="0.5cm"
- margin-left="1.5cm"
- margin-right="1.5cm">
- <fo:region-body margin-top="10.5cm" margin-bottom="1.5cm"/>
- <fo:region-before extent="10.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:static-content flow-name="xsl-region-before" >
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18.0cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row height="2cm" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt">
- <fo:table-cell padding-bottom="3pt" >
- <fo:block text-align="left" >
- <fo:external-graphic content-width="6.0cm">
- <xsl:attribute name="src">
- <xsl:value-of select="headerpicture"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="13pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- font-weight="bold">
- Balanancesheet of <xsl:value-of select="organisationname"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after" >
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="15.0cm"/>
- <fo:table-column column-width="3.0cm"/>
- <fo:table-body>
- <fo:table-row border-top-color="black" border-top-style="solid" border-top-width="0.5pt">
- <fo:table-cell number-columns-spanned="2">
- <fo:block font-size="5pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold"
- >&#8201; </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="end">Page <fo:page-number/>/<fo:page-number-citation ref-id="last-page"/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
-
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt" >Assets</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-header font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Account Number
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Account
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Value
- </fo:block>
- </fo:table-cell>
- </fo:table-header>
- <xsl:choose>
- <xsl:when test="Account[accountType='A']/None">-</xsl:when>
- <xsl:otherwise>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <xsl:for-each select="Account[@accountType='A']">
- <xsl:sort select="AccountNumber" data-type="number"/>
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="AccountNumber"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="accountName"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(currentValue,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- </fo:table-body>
- </xsl:otherwise>
- </xsl:choose>
- </fo:table>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- padding-top="0.7cm">Liabilities</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans" >
- Account Number
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Account
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Value
- </fo:block>
- </fo:table-cell>
- <xsl:for-each select="Account[@accountType='L']">
- <xsl:sort select="AccountNumber" data-type="number"/>
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="AccountNumber"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="accountName"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(currentValue,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- padding-top="0.7cm">Profit/Loss</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:choose>
- <xsl:when test="ProfitLoss &gt; 0">
- Profit</xsl:when>
- <xsl:otherwise>
- Loss
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(ProfitLoss,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- id="last-page">-
- </fo:block>
- </fo:flow>
- <xsl:apply-templates/>
- </fo:page-sequence>
- </fo:root>
-</xsl:template>
-</xsl:stylesheet>
View
1  media/uploads/templatefiles/dejavusans-bold.xml
0 additions, 1 deletion not shown
View
1  media/uploads/templatefiles/dejavusans.xml
0 additions, 1 deletion not shown
View
438 media/uploads/templatefiles/deliveryorder.xsl
@@ -1,438 +0,0 @@
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
-<xsl:template match ="django-objects">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1.5cm"
- margin-bottom="0.5cm"
- margin-left="1.5cm"
- margin-right="1.5cm">
- <fo:region-body margin-top="10.5cm" margin-bottom="1.5cm"/>
- <fo:region-before extent="10.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:static-content flow-name="xsl-region-before" >
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18.0cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row height="2cm" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt">
- <fo:table-cell padding-bottom="3pt" >
- <fo:block text-align="left" >
- <fo:external-graphic src="/var/www/koalixcrm/logo.jpg" content-width="6.0cm"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table table-layout="fixed" width="100%" margin-top="1.5cm">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="7cm"/>
- <fo:table-column column-width="8cm"/>
- <fo:table-body font-size="7pt"
- font-family="BitstreamVeraSans">
- <fo:table-row >
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">Created at:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Customer Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Contract Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Tax Reference Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">IBAN Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Valid until:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Responsible</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Phone direct:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">E-mail direct:</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">
- <xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 9, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 6, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 1, 4)"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">CU-<xsl:value-of select="object[@model='crm.contact']/@pk"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">IN-<xsl:value-of select="object[@model='crm.salescontract']/field[@name='contract']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">none</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">IBANNUMBERHERE </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='validuntil'], 9, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='validuntil'], 6, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='validuntil'], 1, 4)"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='auth.user']/field[@name='first_name']"/>&#8201; <xsl:value-of select="object[@model='auth.user']/field[@name='last_name']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">+410564548887</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='auth.user']/field[@name='email']"/></fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- text-decoration="underline">Guest Guesterich</fo:block>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdressforcontact']/field[@name='purpose']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='prename']"/>&#8201; <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='name']"/>
- </fo:block>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline1']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline1']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline2']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline2']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline3']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline3']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline4']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline4']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='zipcode']"/> &#8201; <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='town']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="1.0cm">&#8201;
- </fo:block>
- <fo:block font-size="15pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- font-weight="bold">
- Delivery Order IN-<xsl:value-of select="object[@model='crm.salescontract']/@pk"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after" >
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="15.0cm"/>
- <fo:table-column column-width="3.0cm"/>
- <fo:table-body>
- <fo:table-row border-top-color="black" border-top-style="solid" border-top-width="0.5pt">
- <fo:table-cell number-columns-spanned="2">
- <fo:block font-size="5pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold"
- >&#8201; </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="start">Guest Guesterich &#8201; &#8201; &#8201; &#8201; Gueststreet &#8201; &#8201; &#8201; &#8201; Gueststreet &#8201; &#8201; &#8201; &#8201; +0454656787 &#8201; &#8201; &#8201; &#8201; </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="end">Page <fo:page-number/>/<fo:page-number-citation ref-id="last-page"/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
-
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt" >&#8201; </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="1.0cm"/>
- <fo:table-column column-width="8.4cm"/>
- <fo:table-column column-width="1.8cm"/>
- <fo:table-column column-width="2.5cm"/>
- <fo:table-column column-width="1.8cm"/>
- <fo:table-column column-width="2.5cm"/>
- <fo:table-header font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Pos.
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Description
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Quantity
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Price per Unit
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Discount
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Value
- </fo:block>
- </fo:table-cell>
- </fo:table-header>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <xsl:for-each select="object[@model='crm.position']">
- <xsl:sort select="field[@name=positionNumber]" data-type="number"/>
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="field[@name='positionNumber']"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="/object[@model='crm.product' and @pk='1']/field[@name='Title']"/>
- <xsl:choose>
- <xsl:when test="field[@name='description']">
- <xsl:value-of select="field[@name='description']"/></xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="field[@name='description']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='description'] = '0E-15'">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='quantity'], '#.##0,00', 'european')"/>&#8201; <xsl:value-of select="uomDescription"/>&#8201;
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='positionPricePerUnit']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='positionPricePerUnit'], '#.##0,00', 'european')"/>&#8201;<xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='discount']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='discount'], '#.##0,00', 'european')"/> %
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='lastCalculatedPrice'], '#.##0,00', 'european')"/>&#8201;<xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="6"><fo:block text-align="start" >&#8201;
- </fo:block></fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="2">
- <fo:block text-align="start" >&#8201;
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Subtotal
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedPrice'], '#.##0,00', 'european')"/>&#8201;<xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="2">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Tax.
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedTax']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedTax'], '#.##0,00', 'european')"/>&#8201;<xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="2">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" font-weight="bold">
- Total
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" font-weight="bold">
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']+object[@model='crm.salescontract']/field[@name='lastCalculatedTax'], '#.##0,00', 'european')"/>&#8201;<xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="0.5cm" >&#8201;
- </fo:block>
-
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt" >Best Regards
- </fo:block>
-
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="20pt" >&#8201;
- </fo:block>
-
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- id="last-page">Aaron Riedener
- </fo:block>
- </fo:flow>
- <xsl:apply-templates/>
- </fo:page-sequence>
- </fo:root>
-</xsl:template>
-</xsl:stylesheet>
View
164 media/uploads/templatefiles/fontconfig.xml
@@ -1,164 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ -->
-
-<!--
-
-This is an example configuration file for FOP.
-This file contains the same settings as the default values
-and will have no effect if used unchanged.
-
-Relative config url's will be resolved relative to
-the location of this file.
-
--->
-
-<!-- NOTE: This is the version of the configuration -->
-<fop version="1.0">
-
- <!-- Base URL for resolving relative URLs -->
- <base>.</base>
-
- <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
- <source-resolution>72</source-resolution>
- <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
- <target-resolution>72</target-resolution>
-
- <!-- Default page-height and page-width, in case
- value is specified as auto -->
-
- <!-- Information for specific renderers -->
- <!-- Uses renderer mime type for renderers -->
- <renderers>
- <renderer mime="application/pdf">
- <filterList>
- <!-- provides compression using zlib flate (default is on) -->
- <value>flate</value>
-
- <!-- encodes binary data into printable ascii characters (default off)
- This provides about a 4:5 expansion of data size -->
- <!-- <value>ascii-85</value> -->
-
- <!-- encodes binary data with hex representation (default off)
- This filter is not recommended as it doubles the data size -->
- <!-- <value>ascii-hex</value> -->
- </filterList>
-
- <fonts>
- <!-- embedded fonts -->
- <!--
- This information must exactly match the font specified
- in the fo file. Otherwise it will use a default font.
-
- For example,
- <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
- Arial-normal-normal font
- </fo:inline>
- for the font triplet specified by:
- <font-triplet name="Arial" style="normal" weight="bold"/>
-
- If you do not want to embed the font in the pdf document
- then do not include the "embed-url" attribute.
- The font will be needed where the document is viewed
- for it to be displayed properly.
-
- possible styles: normal | italic | oblique | backslant
- possible weights: normal | bold | 100 | 200 | 300 | 400
- | 500 | 600 | 700 | 800 | 900
- (normal = 400, bold = 700)
- -->
-
- <!--
- <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
- <font-triplet name="Arial" style="normal" weight="normal"/>
- <font-triplet name="ArialMT" style="normal" weight="normal"/>
- </font>
- <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
- <font-triplet name="Arial" style="normal" weight="bold"/>
- <font-triplet name="ArialMT" style="normal" weight="bold"/>
- </font>
- -->
- <font metrics-url="/var/www/koalixcrm/media/uploads/templatefiles/dejavusans.xml" kerning="yes" embed-url="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf">
- <font-triplet name="BitstreamVeraSans" style="normal" weight="normal"/>
- </font>
- <font metrics-url="/var/www/koalixcrm/media/uploads/templatefiles/dejavusans-bold.xml" kerning="yes" embed-url="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf">
- <font-triplet name="BitstreamVeraSans" style="normal" weight="bold"/>
- </font>
-
- </fonts>
-
- <!-- This option lets you specify additional options on an XML handler -->
- <!--xml-handler namespace="http://www.w3.org/2000/svg">
- <stroke-text>false</stroke-text>
- </xml-handler-->
-
- </renderer>
-
- <renderer mime="application/postscript">
- <!-- This option forces the PS renderer to rotate landscape pages -->
- <!--auto-rotate-landscape>true</auto-rotate-landscape-->
-
- <!-- This option lets you specify additional options on an XML handler -->
- <!--xml-handler namespace="http://www.w3.org/2000/svg">
- <stroke-text>false</stroke-text>
- </xml-handler-->
- </renderer>
-
- <renderer mime="application/vnd.hp-PCL">
- </renderer>
-
- <!-- MIF does not have a renderer
- <renderer mime="application/vnd.mif">
- </renderer>
- -->
-
- <renderer mime="image/svg+xml">
- <format type="paginated"/>
- <link value="true"/>
- <strokeText value="false"/>
- </renderer>
-
- <renderer mime="application/awt">
- </renderer>
-
- <renderer mime="image/png">
- <!--transparent-page-background>true</transparent-page-background-->
- </renderer>
-
- <renderer mime="image/tiff">
- <!--transparent-page-background>true</transparent-page-background-->
- <!--compression>CCITT T.6</compression-->
- </renderer>
-
- <renderer mime="text/xml">
- </renderer>
-
- <!-- RTF does not have a renderer
- <renderer mime="text/rtf">
- </renderer>
- -->
-
- <renderer mime="text/plain">
- <pageSize columns="80"/>
- </renderer>
-
- </renderers>
-
-</fop>
-
-
View
472 media/uploads/templatefiles/invoice.xsl
@@ -1,472 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8"/>
-<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
-<xsl:template match ="django-objects">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1.5cm"
- margin-bottom="0.5cm"
- margin-left="1.5cm"
- margin-right="1.5cm">
- <fo:region-body margin-top="10.5cm" margin-bottom="1.5cm"/>
- <fo:region-before extent="10.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:static-content flow-name="xsl-region-before" >
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18.0cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row height="2cm" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt">
- <fo:table-cell padding-bottom="3pt" >
- <fo:block text-align="left" >
- <fo:external-graphic content-width="6.0cm">
- <xsl:attribute name="src">
- <xsl:value-of select="projectroot"/><xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='logo']"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table table-layout="fixed" width="100%" margin-top="1.5cm">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="7cm"/>
- <fo:table-column column-width="8cm"/>
- <fo:table-body font-size="7pt"
- font-family="BitstreamVeraSans">
- <fo:table-row >
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">Created at:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Customer Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Contract Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Tax Ref Nr:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">IBAN:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Payable until:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Responsible Person:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Phone direkt:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">E-mail direkt:</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">
- <xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 9, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 6, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 1, 4)"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">CU-<xsl:value-of select="object[@model='crm.contact']/@pk"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">CO-<xsl:value-of select="object[@model='crm.salescontract']/field[@name='contract']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">none</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='bankingaccountref']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='payableuntil'], 9, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='payableuntil'], 6, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.invoice']/field[@name='payableuntil'], 1, 4)"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='auth.user']/field[@name='first_name']"/><xsl:text> </xsl:text> <xsl:value-of select="object[@model='auth.user']/field[@name='last_name']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='crm.phoneaddress']/field[@name='phone']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:value-of select="object[@model='auth.user']/field[@name='email']"/></fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="6pt"
- font-family="BitstreamVeraSans"
- text-decoration="underline"
- text-align="start"
- margin-bottom="0.5cm"><xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='addresser']"/></fo:block>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdressforcontact']/field[@name='purpose']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='prename']"/><xsl:text> </xsl:text> <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='name']"/>
- </fo:block>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline1']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline1']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline2']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline2']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline3']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline3']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="object[@model='crm.postaladdress']/field[@name='addressline4']">
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='addressline4']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left">
- <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='zipcode']"/> <xsl:text> </xsl:text> <xsl:value-of select="object[@model='crm.postaladdress']/field[@name='town']"/>
- </fo:block>
- </xsl:when>
- </xsl:choose>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="15pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- font-weight="bold"
- margin-top="1cm">
- Invoice IN-<xsl:value-of select="object[@model='crm.salescontract']/@pk"/>
- </fo:block>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- margin-top="1cm">
- <xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='headerTextsalesorders']"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after" >
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left"><xsl:text> </xsl:text> </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="15.0cm"/>
- <fo:table-column column-width="3.0cm"/>
- <fo:table-body>
- <fo:table-row border-top-color="black" border-top-style="solid" border-top-width="0.5pt">
- <fo:table-cell number-columns-spanned="2">
- <fo:block font-size="5pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold"
- ><xsl:text> </xsl:text> </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="start">
- <xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='pagefooterleft']"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='pagefootermiddle']"/></fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="end">Page <fo:page-number/>/<fo:page-number-citation ref-id="last-page"/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
-
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt" ><xsl:text> </xsl:text> </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="1.0cm"/>
- <fo:table-column column-width="6.6cm"/>
- <fo:table-column column-width="1.8cm"/>
- <fo:table-column column-width="1.8cm"/>
- <fo:table-column column-width="2.5cm"/>
- <fo:table-column column-width="1.8cm"/>
- <fo:table-column column-width="2.5cm"/>
- <fo:table-header font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Pos.
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Description
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Quantity
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Unit
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Price per Unit
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Discount
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Amount
- </fo:block>
- </fo:table-cell>
- </fo:table-header>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <xsl:for-each select="object[@model='crm.position']">
- <xsl:sort select="field[@name=positionNumber]" data-type="number"/>
- <fo:table-row >
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="field[@name='positionNumber']"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block-container max-width="6.0cm">
- <xsl:variable name ="productinthisposition" select="field[@name='product']"/>
- <fo:block text-align="start"
- font-weight="bold"
- font-size="9pt"
- font-family="BitstreamVeraSans"
- line-height="12pt">
- <xsl:value-of select="../object[@model='crm.product' and @pk=$productinthisposition]/field[@name='title']"/>
- </fo:block>
- <xsl:choose>
- <xsl:when test="../object[@model='crm.product' and @pk=$productinthisposition]/field[@name='description']/None">
- <fo:block text-align="start"
- font-size="7pt"
- font-family="BitstreamVeraSans"
- white-space-collapse="false">
- <xsl:value-of select="field[@name='description']"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block text-align="start"
- font-size="7pt"
- font-family="BitstreamVeraSans">
- <xsl:value-of select="../object[@model='crm.product' and @pk=$productinthisposition]/field[@name='description']"/>
- </fo:block>
- <fo:block text-align="start"
- font-size="7pt"
- font-family="BitstreamVeraSans"
- padding-top="0.1cm">
- <xsl:value-of select="field[@name='description']"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block-container>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='description'] = '0E-15'">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='quantity'], '#.##0,00', 'european')"/><xsl:text> </xsl:text> <xsl:value-of select="uomDescription"/><xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:variable name ="unitinthisposition" select="field[@name='unit']"/>
- <xsl:choose>
- <xsl:when test="field[../object[@model='crm.unit' and @pk=$unitinthisposition]/field[@name='shortName']/None]">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="../object[@model='crm.unit' and @pk=$unitinthisposition]/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='positionPricePerUnit']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='positionPricePerUnit'], '#.##0,00', 'european')"/><xsl:text> </xsl:text><xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='discount']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='discount'], '#.##0,00', 'european')"/> %
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(field[@name='lastCalculatedPrice'], '#.##0,00', 'european')"/><xsl:text> </xsl:text><xsl:value-of select="../object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="7"><fo:block text-align="start" margin-top="0.5cm"><xsl:text> </xsl:text>
- </fo:block></fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="3">
- <fo:block text-align="start" ><xsl:text> </xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Subtotal
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedPrice'], '#.##0,00', 'european')"/><xsl:text> </xsl:text><xsl:value-of select="object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="3">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Tax
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedTax']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedTax'], '#.##0,00', 'european')"/><xsl:text> </xsl:text><xsl:value-of select="object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together="always" keep-with-previous="always">
- <fo:table-cell number-columns-spanned="3">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" font-weight="bold">
- Total
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" font-weight="bold">
- <xsl:choose>
- <xsl:when test="object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']/None">-</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(object[@model='crm.salescontract']/field[@name='lastCalculatedPrice']+object[@model='crm.salescontract']/field[@name='lastCalculatedTax'], '#.##0,00', 'european')"/><xsl:text> </xsl:text><xsl:value-of select="object[@model='crm.currency']/field[@name='shortName']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- margin-top="1cm"
- id="last-page">
- <xsl:value-of select="object[@model='djangoUserExtention.templateset']/field[@name='footerTextsalesorders']"/>
- </fo:block>
- </fo:flow>
- <xsl:apply-templates/>
- </fo:page-sequence>
- </fo:root>
-</xsl:template>
-</xsl:stylesheet>
View
BIN  media/uploads/templatefiles/logo.jpg
Deleted file not rendered
View
227 media/uploads/templatefiles/profitlossstatement.xsl
@@ -1,227 +0,0 @@
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
-<xsl:template match ="koalixaccountingprofitlossstatement">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1.5cm"
- margin-bottom="0.5cm"
- margin-left="1.5cm"
- margin-right="1.5cm">
- <fo:region-body margin-top="10.5cm" margin-bottom="1.5cm"/>
- <fo:region-before extent="10.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:static-content flow-name="xsl-region-before" >
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18.0cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row height="2cm" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt">
- <fo:table-cell padding-bottom="3pt" >
- <fo:block text-align="left" >
- <fo:external-graphic content-width="6.0cm">
- <xsl:attribute name="src">
- <xsl:value-of select="headerpicture"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="13pt"
- font-family="BitstreamVeraSans"
- color="black"
- text-align="left"
- font-weight="bold">
- Erfolgsrechnung der koalix Riedener
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after" >
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="15.0cm"/>
- <fo:table-column column-width="3.0cm"/>
- <fo:table-body>
- <fo:table-row border-top-color="black" border-top-style="solid" border-top-width="0.5pt">
- <fo:table-cell number-columns-spanned="2">
- <fo:block font-size="5pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold"
- >&#8201; </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block font-size="8pt"
- font-family="BitstreamVeraSans"
- font-weight="bold"
- text-align="end">Seite <fo:page-number/>/<fo:page-number-citation ref-id="last-page"/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
-
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt" >Ertrag</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-header font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Kontonummer
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Konto
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Wert
- </fo:block>
- </fo:table-cell>
- </fo:table-header>
- <xsl:choose>
- <xsl:when test="Account[accountType='E']/None">-</xsl:when>
- <xsl:otherwise>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <xsl:for-each select="Account[@accountType='E']">
- <xsl:sort select="AccountNumber" data-type="number"/>
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="AccountNumber"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="accountName"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(currentValue,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- </fo:table-body>
- </xsl:otherwise>
- </xsl:choose>
- </fo:table>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- padding-top="0.7cm">Aufwand</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" font-size="9pt" line-height="9pt" font-weight="bold" font-family="BitstreamVeraSans" >
- Kontonummer
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- Konto
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- Wert
- </fo:block>
- </fo:table-cell>
- <xsl:for-each select="Account[@accountType='S']">
- <xsl:sort select="AccountNumber" data-type="number"/>
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="AccountNumber"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:value-of select="accountName"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(currentValue,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- </fo:table-body>
- </fo:table>
- <fo:block font-size="9pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- padding-top="0.7cm">Gewinn/Verlust</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="11cm"/>
- <fo:table-column column-width="3cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row keep-together="always">
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- <xsl:choose>
- <xsl:when test="ProfitLoss &gt; 0">
- Gewinn</xsl:when>
- <xsl:otherwise>
- Verlust
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="start" >
- </fo:block>
- </fo:table-cell>
- <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" padding="2.5pt">
- <fo:block text-align="end" >
- <xsl:value-of select="format-number(ProfitLoss,'#.##0,00', 'european')"/> CHF
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
-
- <fo:block font-size="10pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- line-height="13pt"
- id="last-page">-
- </fo:block>
- </fo:flow>
- <xsl:apply-templates/>
- </fo:page-sequence>
- </fo:root>
-</xsl:template>
-</xsl:stylesheet>
View
438 media/uploads/templatefiles/purchaseconfirmation.xsl
@@ -1,438 +0,0 @@
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
-<xsl:template match ="django-objects">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1.5cm"
- margin-bottom="0.5cm"
- margin-left="1.5cm"
- margin-right="1.5cm">
- <fo:region-body margin-top="10.5cm" margin-bottom="1.5cm"/>
- <fo:region-before extent="10.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:static-content flow-name="xsl-region-before" >
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18.0cm"/>
- <fo:table-body font-size="9pt"
- font-family="BitstreamVeraSans">
- <fo:table-row height="2cm" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt">
- <fo:table-cell padding-bottom="3pt" >
- <fo:block text-align="left" >
- <fo:external-graphic src="/var/www/koalixcrm/logo.jpg" content-width="6.0cm"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table table-layout="fixed" width="100%" margin-top="1.5cm">
- <fo:table-column column-width="3cm"/>
- <fo:table-column column-width="7cm"/>
- <fo:table-column column-width="8cm"/>
- <fo:table-body font-size="7pt"
- font-family="BitstreamVeraSans">
- <fo:table-row >
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">Erstelldatum:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Kundennummer:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Auftragsnummer:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">MwSt.-Nummer:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Postkonto:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Gültig bis:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Ansprechpartner:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">Telefon Direkt:</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">E-mail Direkt:</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left"
- font-weight="bold">
- <xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 9, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 6, 2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(object[@model='crm.salescontract']/field[@name='dateofcreation'], 1, 4)"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">KU-<xsl:value-of select="object[@model='crm.contact']/@pk"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">RE-<xsl:value-of select="object[@model='crm.salescontract']/field[@name='contract']"/></fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">&#8201; </fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">keine</fo:block>
- <fo:block font-size="7pt"
- font-family="BitstreamVeraSans"
- text-align="left">PC 000054545</fo