page1 ReportPage1 PageHeader2 HorizontalLayout2 ImageItem1 HorizontalLayout2 company logo
VerticalLayout1 TextItem1 VerticalLayout1 <b>$D{company.type} $D{company.nom}</b><br>$D{company.act} TextItem11 VerticalLayout1 <table><tr><td><b>Adresse :</b> $D{company.adress}<br> <b>Télephone :</b> $D{company.tel} <br> <b>Fax :</b> $D{company.fax}<br> <b>E-mail :</b> $D{company.email} <br><b> Site web :</b> $D{company.web}</td><td><b>RIB :</b>$D{company.mobile}<br><b>CIB :</b>$D{company.facebook}</td><td > <b>RC :</b> $D{company.rc}<br> <b>AI :</b> $D{company.art_imp} <br> <b>NIF :</b> $D{company.mf} <br> <b>NIS :</b> $D{company.nis}</td></tr></table> HorizontalLayout2 PageHeader2 TextItem28 PageHeader2 Le : TextItem2 PageHeader2 Facture N° $S{fonction.STXT($D{doc.doc},2,500)} TextItem34 PageHeader2 <table><tr><td><b>Client :</b></td><td> $D{doc.cl}</td></tr> <tr><td><b>Adresse :</b></td><td> $D{doc.adr_fac}</td></tr> <tr><td><b>Téléphone : </b></td><td>$D{doc.tel}</td></tr> <tr><td><b>Fax : </b></td><td>$D{doc.fax}</td></tr> <tr><td><b>Email : </b></td><td>$D{doc.email}</td></tr> <tr><td><b>N° RC :</b></td><td> $D{doc.rc} </td></tr> <tr><td><b>N° AI :</b></td><td> $D{doc.ai} </td></tr> <tr><td><b>N° NIS :</b> </td><td>$D{doc.nis}</td></tr> <tr><td><b>N° NIF :</b> </td><td>$D{doc.mf}</td></tr></table> BarcodeItem2 PageHeader2 doc doc 1 TextItem29 PageHeader2 $D{doc.date} ReportPage1 det HorizontalLayout1 TextItem14 HorizontalLayout1 $D{stock.ref} TextItem15 HorizontalLayout1 $D{stock.des} TextItem17 HorizontalLayout1 $S{numberFormat($D{stock.qte},"f",2,"fr")} TextItem19 HorizontalLayout1 $S{numberFormat($D{stock.pu},"f",2,"fr")} TextItem16 HorizontalLayout1 $D{stock.tva} TextItem20 HorizontalLayout1 $S{numberFormat($D{stock.pt},"f",2,"fr")} det ReportPage1 stock PageFooter1 VerticalLayout38 HorizontalLayout4 TextItem4 HorizontalLayout4 Total HT : TextItem3 HorizontalLayout4 $S{numberFormat(SUM($D{stock.pt},"det"),"f",2,"fr")} VerticalLayout38 HorizontalLayout5 TextItem5 HorizontalLayout5 Remise : TextItem6 HorizontalLayout5 $S{numberFormat($D{doc.remise},"f",2,"fr")} VerticalLayout38 HorizontalLayout6 TextItem7 HorizontalLayout6 Total TVA : TextItem8 HorizontalLayout6 $S{numberFormat(SUM($D{stock.tot_tva},"det"),"f",2,"fr")} VerticalLayout38 pied_taxes TextItem33 pied_taxes $D{taxes.taxe} : TextItem38 pied_taxes $S{ if($D{taxes.taxe} == '') ReportPage1_pied_taxes.isVisible = 0; numberFormat($D{taxes.valeur},"f",2,"fr")} VerticalLayout38 HorizontalLayout7 TextItem27 HorizontalLayout7 Net à payer : TextItem13 HorizontalLayout7 $S{numberFormat($D{doc.ttc},"f",2,"fr")} VerticalLayout38 PageFooter1 VerticalLayout2 TextItem30 VerticalLayout2 $D{doc.obs}<br> Arrêter la présente facture à la somme de $S{fonction.nombreEnLettre($D{doc.ttc})} details_taxes HorizontalLayout41 TextItem41 HorizontalLayout41 Taxe $S{if($D{taxes.taxe} == '') ReportPage1_details_taxes.isVisible = 0;} TextItem43 HorizontalLayout41 Unité TextItem44 HorizontalLayout41 Contenance TextItem45 HorizontalLayout41 Montant details_taxes ligne_taxes TextItem46 ligne_taxes $D{taxes.taxe} TextItem47 ligne_taxes $D{taxes.unite} TextItem48 ligne_taxes $D{taxes.contenance} TextItem49 ligne_taxes $S{fonction.Nombre($D{taxes.Valeur})} details_taxes VerticalLayout2 reglements HorizontalLayout18 TextItem9 HorizontalLayout18 Date $S{ReportPage1_reglements.isVisible = $V{afficher_reglements}; } TextItem12 HorizontalLayout18 N° chèque TextItem18 HorizontalLayout18 Montant reglements ligne_paiement TextItem21 ligne_paiement $D{paiements.date} TextItem26 ligne_paiement $D{paiements.N° chèque} TextItem32 ligne_paiement $S{fonction.Nombre($D{paiements.Montant})} reglements VerticalLayout2 PageFooter1 ReportPage1 HorizontalLayout3 TextItem14 HorizontalLayout3 TextItem15 HorizontalLayout3 TextItem17 HorizontalLayout3 TextItem19 HorizontalLayout3 TextItem16 HorizontalLayout3 TextItem20 HorizontalLayout3 ReportPage1 DataHeaderBand1 HorizontalLayout40 TextItem24 HorizontalLayout40 Code TextItem40 HorizontalLayout40 Désignations TextItem22 HorizontalLayout40 Qte TextItem39 HorizontalLayout40 P.U HT TextItem37 HorizontalLayout40 TVA TextItem31 HorizontalLayout40 Montant HT DataHeaderBand1 ReportPage1 det PageFooter2 ReportPage1 datasources f QMYSQL $V{dossier} $V{utilisateur} $V{serveur} $V{port} company select * from comp limit 1 f stock select stock_out.*,pt*stock_out.tva/100 as tot_tva, prod_ajout.* from stock_out left join prod_ajout on prod_ajout.ref = stock_out.ref where stock_out.doc = $V{doc} f doc select fv.*, client.* from fv left join client on fv.cl = client.client where doc = $V{doc} f paiements select date Date, descr Libellé, num_cheque 'N° chèque', debit Montant from oper_caisse where ref = $V{doc} and rowid not in (select id from reg_associer) union all select reg_associer.date,'Tranche de paiement associée',oper_caisse.num_cheque,mnt from reg_associer inner join oper_caisse on reg_associer.id = oper_caisse.rowid where reg_associer.ref = $V{doc} f taxes SELECT taxe_article.taxe,stock_out.mnt_taxe,stock_out.contenance,taxes.unite,sum(stock_out.qte * stock_out.qte_emb * stock_out.mnt_taxe * stock_out.contenance) Valeur FROM stock_out INNER JOIN taxe_article ON stock_out.ref = taxe_article.ref INNER JOIN taxes ON taxes.libelle = taxe_article.taxe WHERE doc = $V{doc} GROUP BY taxes.libelle f ReportPage1_PageFooter1.beforeRender.connect(BR1) function BR1() { var tableBuilder = DatasourceFunctions.createTableBuilder(ReportPage1_ligne_paiement); tableBuilder.buildTable("paiements"); var tableTaxes = DatasourceFunctions.createTableBuilder(ReportPage1_ligne_taxes); tableTaxes.buildTable("taxes"); var tableTaxes = DatasourceFunctions.createTableBuilder(ReportPage1_details_taxes); tableTaxes.buildTable("taxes"); } ReportPage1_HorizontalLayout3.geometry.height+=LimeReport.getPageFreeSpace(ReportPage1); ReportPage1_HorizontalLayout3.geometry.y = ReportPage1_DataHeaderBand1.geometry.y;