Currency : All ledger's listing mode , html , csv and pdf
This commit is contained in:
parent
fadfc9349a
commit
5dda688b9d
3 changed files with 30 additions and 13 deletions
|
|
@ -44,8 +44,9 @@ class Print_Ledger_Misc extends PDF
|
|||
$this->Cell(30,6,_('Piece'));
|
||||
$this->Cell(20,6,_('Interne'));
|
||||
$this->Cell(25,6,_('Tiers'));
|
||||
$this->Cell(80,6,_('Commentaire'));
|
||||
$this->Cell(15,6,_('Montant'));
|
||||
$this->Cell(60,6,_('Commentaire'));
|
||||
$this->Cell(20,6,_('Devise'),0,0,'R');
|
||||
$this->Cell(15,6,_('Montant'),0,0,'R');
|
||||
$this->Ln(6);
|
||||
|
||||
}
|
||||
|
|
@ -70,8 +71,10 @@ class Print_Ledger_Misc extends PDF
|
|||
*/
|
||||
function export()
|
||||
{
|
||||
$a_jrn=$this->ledger->get_rowSimple($_GET['from_periode'],
|
||||
$_GET['to_periode']);
|
||||
$http=new HttpInput();
|
||||
|
||||
$a_jrn=$this->ledger->get_rowSimple($http->get('from_periode','number'),
|
||||
$http->get('to_periode','number'));
|
||||
$this->SetFont('DejaVu', '', 6);
|
||||
if ( $a_jrn == null ) return;
|
||||
for ( $i=0;$i<count($a_jrn);$i++)
|
||||
|
|
@ -85,11 +88,12 @@ class Print_Ledger_Misc extends PDF
|
|||
$other=mb_substr($this->ledger->get_tiers($type,$a_jrn[$i]['jr_id']),0,25);
|
||||
$this->LongLine(25,5,$other,0,'L');
|
||||
$positive=$row['montant'];
|
||||
$this->LongLine(80,5,$row['comment'],0,'L');
|
||||
$this->LongLine(60,5,$row['comment'],0,'L');
|
||||
if ( $type == 'FIN' ) {
|
||||
$positive = $this->cn->get_value("select qf_amount from quant_fin ".
|
||||
" where jr_id=".$row['jr_id']);
|
||||
}
|
||||
$this->write_cell(20,5,nbm(bcadd($row['sum_ocvat_amount'],$row['sum_ocamount']),4).$row['cr_code_iso'],0,0,'R');
|
||||
$this->write_cell(15,5,nbm($positive),0,0,'R');
|
||||
$this->line_new(5);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue