etranger
Wiec tak jak u góry gotowy jestem chętny zapłacić za wykonanie takiej malej modyfikacji. No chyba ze ktoś chce dla idei :)
Mam ja sobie program do prowadzenia malej firmy, ale szablony dokumentów są jak dla mnie do bani. Z tym ze to programem dostarczany jest również tzw. edytor szablonów. Ale ze program jest napisany przez pro dla pro, to niestety ale ja sobie mogę tylko delikatnie zmienić kilka nazw. Chciałbym zmienić wygląd na bazie dokumentu który sobie pokombinowałem w edytorze tekstu. Wzór ten używam ręcznie, ale jest to dla mnie trochę kłopotliwe (ciągle mylę numery dokumentów itp)
Fragment listingu jednego z dokumentów
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd…;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Szablon dokumentu dla documentKind==invoice</title>
<style>
body{margin:0px;padding:0px;}
* {font-size:12px;font-family:"Lucida Grande","Myriad Pro",Helvetica;}
h1,h2,h2,h4{margin:0;padding:0;font-weight:normal;}
h1{font-size:2.0em;}
h2{font-size:1.4em;}
h3{font-size:1.3em;}
h4{font-size:1.1em;}
table{width:100%;max-width:100%;min-width:100%;padding:0;margin:0;border-collapse:collapse;border:none;}
table td,table th{padding:0;margin:0;page-break-inside:avoid;}
/* tabelka zawierajaca etykiete i wartosc np sprzedawca i jego adres */
table.labelAndValue{margin-bottom:1em;}
table.labelAndValue tr td,
table.labelAndValue tr th{background:white;padding:0.3em;}
table.labelAndValue tr:first-child td,
table.labelAndValue tr:first-child th{background: #fefefe url(gradient.png) repeat-x scroll; padding-top:0.8em;margin:0; border-top:2px solid #ceced0; }
table.labelAndValue tr th{font-weight:normal;text-align:left;vertical-align:top;width:30%;}
table.labelAndValue tr td{font-weight:bold;text-align:left;vertical-align:top;}
#meta, #items, #header, #footer, #total, #remarks, #signatures{width:900px;}
/* @@header */
#header thead table.labelAndValue td,#header thead table.labelAndValue th{background:white;padding:0.2em;border:none;}
#doc-attrs h1,#doc-attrs h2{font-weight:bold;}
#doc-attrs h3{font-weight:bold;letter-spacing:3px;}
#doc-attrs table.labelAndValue td h3{margin:0;text-transform:uppercase;letter-spacing:0;}
#doc-attrs table.labelAndValue tr:nth-child(3) td h3{margin-top:1em;}
#logo-cell{text-align:right;vertical-align:top;width:50%}
#logo-cell img{margin:0 0 1em 0;max-width:350px;max-height:300px;}
#signatures img{margin:0;max-width:300px;max-height:300px;}
/* @@meta - dane sprzedawcy/kupujacego, terminy */
#meta {background:url(stripes.png);}
#meta td{vertical-align:top;}
#meta tr.spacer td{height:7px;}
#meta td.cell{background:white;width:50%;}
#seller, #purchaser{margin-bottom:1em;}
#seller tr td, #purchaser tr td{font-weight:normal;}
/* @@items - tableka z lista produktow i podsumowaniem vatu */
#items {background:#fefefe url(stripes.png);}
#items td,#items th{padding:0.6em;text-align:right;white-space:nowrap; page-break-inside:avoid; }
#items td,#items th{word-spacing:-2px;letter-spacing:-0.6px;}
#items tr.fade td, #items tr.fade th{background:#fefefe url(gradient.png) repeat-x;border-top:2px solid #ceced0;}
#items thead tr th{ height:3em; text-align:right;font-weight:normal; border-bottom:2px solid #ceced0;}
#items tr .name{text-align:left;white-space:normal;width:30%;}
#items tr th.name{white-space:nowrap;}
#items tr .pos{text-align:center;}
#items tr .correct{font-weight:bold;padding-left:0;padding-right:0;font-size:0.8em;vertical-align:middle;} /*bylo, winno być, roznica*/
#items thead th span{display:block;}
#items tbody td{border-bottom: 2px solid #ceced0;padding-top:1em;padding-bottom:1em;}
#items tbody td{vertical-align:top;}
#items tbody tr{background:white;}
#items tbody td.netValue, #items tbody td.grossValue{font-weight:bold;}
#items tfoot tr.spacer td{font-size:7px;}
#items tfoot tr .blank,#items tfoot tr.totals .blank{background:white;border-color:white;}
#items tfoot tr .label{text-align:right;padding-right:1em;}
#items tfoot tr .label h4{font-weight:bold;}
#items tfoot tr.vatDetails{background:white;}
#items tfoot tr.vatDetails td,
#items tfoot tr.vatDetails th{padding-top:0.1em;padding-bottom:0.1em;}
#items tfoot tr.fade td,#items tfoot tr.fade th{padding-top:1em;}
#total h1 strong{font-size:1.0em;}
#total p{margin:0;}
#remarks p{margin:0.5em auto;}
#signatures {background:url(stripes.png);margin-top:1.5em;}
#signatures td.spacer{background:white; width:5em;}
#signatures div{height: 12em;margin: 8px 0;background:white url(gradient.png) repeat-x;}
#signatures div p{padding-top:0.6em;padding-left:1em;margin:0;}
#documentKindBill #items td.name{width:50%;}
body.light #items,
body.light #items tr.fade td,
body.light #items tr.fade th,
body.light table.labelAndValue th,body.light table.labelAndValue td,
body.light #meta,
body.light #signatures,body.light #signatures div{background:transparent;}
body.light #logo-cell img{display:none;}
.draft-mark{color:white;background:#611;font-size:0.8em;padding:0.1em 0.5em;-webkit-border-radius:6px;}
body.draft #doc-attrs h2{color:#999;}
</style>
</head>
<!--
Cechy dla całego dokumentu sa nadawane za pomoca klasy dodanej do body, tj
* documentKindCode - documentKindRegularVatInvoice, documentKindProFormaInvoice, documentKindCorrectiveInvoice, documentKindCorrectiveNote, documentKindBill
* greenTemplate - dodaje klase 'light' wersja szablonu bez wypasu graficznego,logosa, podpisu
-->
<body id="{{documentKindCode}}" class="{{if greenTemplate}} light{{endif}}{{if draftDocument}} draft{{endif}}">
<table id="header" border="0" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td id="doc-attrs">
<h1>{{ formattedDocumentKind }}{{if
Mam ja sobie program do prowadzenia malej firmy, ale szablony dokumentów są jak dla mnie do bani. Z tym ze to programem dostarczany jest również tzw. edytor szablonów. Ale ze program jest napisany przez pro dla pro, to niestety ale ja sobie mogę tylko delikatnie zmienić kilka nazw. Chciałbym zmienić wygląd na bazie dokumentu który sobie pokombinowałem w edytorze tekstu. Wzór ten używam ręcznie, ale jest to dla mnie trochę kłopotliwe (ciągle mylę numery dokumentów itp)
Fragment listingu jednego z dokumentów
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd…;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Szablon dokumentu dla documentKind==invoice</title>
<style>
body{margin:0px;padding:0px;}
* {font-size:12px;font-family:"Lucida Grande","Myriad Pro",Helvetica;}
h1,h2,h2,h4{margin:0;padding:0;font-weight:normal;}
h1{font-size:2.0em;}
h2{font-size:1.4em;}
h3{font-size:1.3em;}
h4{font-size:1.1em;}
table{width:100%;max-width:100%;min-width:100%;padding:0;margin:0;border-collapse:collapse;border:none;}
table td,table th{padding:0;margin:0;page-break-inside:avoid;}
/* tabelka zawierajaca etykiete i wartosc np sprzedawca i jego adres */
table.labelAndValue{margin-bottom:1em;}
table.labelAndValue tr td,
table.labelAndValue tr th{background:white;padding:0.3em;}
table.labelAndValue tr:first-child td,
table.labelAndValue tr:first-child th{background: #fefefe url(gradient.png) repeat-x scroll; padding-top:0.8em;margin:0; border-top:2px solid #ceced0; }
table.labelAndValue tr th{font-weight:normal;text-align:left;vertical-align:top;width:30%;}
table.labelAndValue tr td{font-weight:bold;text-align:left;vertical-align:top;}
#meta, #items, #header, #footer, #total, #remarks, #signatures{width:900px;}
/* @@header */
#header thead table.labelAndValue td,#header thead table.labelAndValue th{background:white;padding:0.2em;border:none;}
#doc-attrs h1,#doc-attrs h2{font-weight:bold;}
#doc-attrs h3{font-weight:bold;letter-spacing:3px;}
#doc-attrs table.labelAndValue td h3{margin:0;text-transform:uppercase;letter-spacing:0;}
#doc-attrs table.labelAndValue tr:nth-child(3) td h3{margin-top:1em;}
#logo-cell{text-align:right;vertical-align:top;width:50%}
#logo-cell img{margin:0 0 1em 0;max-width:350px;max-height:300px;}
#signatures img{margin:0;max-width:300px;max-height:300px;}
/* @@meta - dane sprzedawcy/kupujacego, terminy */
#meta {background:url(stripes.png);}
#meta td{vertical-align:top;}
#meta tr.spacer td{height:7px;}
#meta td.cell{background:white;width:50%;}
#seller, #purchaser{margin-bottom:1em;}
#seller tr td, #purchaser tr td{font-weight:normal;}
/* @@items - tableka z lista produktow i podsumowaniem vatu */
#items {background:#fefefe url(stripes.png);}
#items td,#items th{padding:0.6em;text-align:right;white-space:nowrap; page-break-inside:avoid; }
#items td,#items th{word-spacing:-2px;letter-spacing:-0.6px;}
#items tr.fade td, #items tr.fade th{background:#fefefe url(gradient.png) repeat-x;border-top:2px solid #ceced0;}
#items thead tr th{ height:3em; text-align:right;font-weight:normal; border-bottom:2px solid #ceced0;}
#items tr .name{text-align:left;white-space:normal;width:30%;}
#items tr th.name{white-space:nowrap;}
#items tr .pos{text-align:center;}
#items tr .correct{font-weight:bold;padding-left:0;padding-right:0;font-size:0.8em;vertical-align:middle;} /*bylo, winno być, roznica*/
#items thead th span{display:block;}
#items tbody td{border-bottom: 2px solid #ceced0;padding-top:1em;padding-bottom:1em;}
#items tbody td{vertical-align:top;}
#items tbody tr{background:white;}
#items tbody td.netValue, #items tbody td.grossValue{font-weight:bold;}
#items tfoot tr.spacer td{font-size:7px;}
#items tfoot tr .blank,#items tfoot tr.totals .blank{background:white;border-color:white;}
#items tfoot tr .label{text-align:right;padding-right:1em;}
#items tfoot tr .label h4{font-weight:bold;}
#items tfoot tr.vatDetails{background:white;}
#items tfoot tr.vatDetails td,
#items tfoot tr.vatDetails th{padding-top:0.1em;padding-bottom:0.1em;}
#items tfoot tr.fade td,#items tfoot tr.fade th{padding-top:1em;}
#total h1 strong{font-size:1.0em;}
#total p{margin:0;}
#remarks p{margin:0.5em auto;}
#signatures {background:url(stripes.png);margin-top:1.5em;}
#signatures td.spacer{background:white; width:5em;}
#signatures div{height: 12em;margin: 8px 0;background:white url(gradient.png) repeat-x;}
#signatures div p{padding-top:0.6em;padding-left:1em;margin:0;}
#documentKindBill #items td.name{width:50%;}
body.light #items,
body.light #items tr.fade td,
body.light #items tr.fade th,
body.light table.labelAndValue th,body.light table.labelAndValue td,
body.light #meta,
body.light #signatures,body.light #signatures div{background:transparent;}
body.light #logo-cell img{display:none;}
.draft-mark{color:white;background:#611;font-size:0.8em;padding:0.1em 0.5em;-webkit-border-radius:6px;}
body.draft #doc-attrs h2{color:#999;}
</style>
</head>
<!--
Cechy dla całego dokumentu sa nadawane za pomoca klasy dodanej do body, tj
* documentKindCode - documentKindRegularVatInvoice, documentKindProFormaInvoice, documentKindCorrectiveInvoice, documentKindCorrectiveNote, documentKindBill
* greenTemplate - dodaje klase 'light' wersja szablonu bez wypasu graficznego,logosa, podpisu
-->
<body id="{{documentKindCode}}" class="{{if greenTemplate}} light{{endif}}{{if draftDocument}} draft{{endif}}">
<table id="header" border="0" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td id="doc-attrs">
<h1>{{ formattedDocumentKind }}{{if
IStal sie switch:)
