274 $group = $this->
db->get_next_seq(
"s_oa_group");
275 $seq = $this->
db->get_next_seq(
's_grpt');
278 $this->
internal = $internal;
289 $cust->get_by_qcode($e_client);
294 if (strpos($sposte,
',') != 0) {
295 $array = explode(
',', $sposte);
316 $tva_reverse = array();
323 for (
$i = 0;
$i < $nb_item;
$i++) {
326 if ( empty(${
'e_march'.$i}) || empty(${
'e_quant'.$i}) )
continue;
330 $fiche->get_by_qcode(${
"e_march" .
$i});
331 $amount_currency = bcmul(${
'e_march' .
$i .
'_price'}, ${
'e_quant' .
$i});
334 $amount=bcdiv($amount_currency,$p_currency_rate);
339 $acc_operation->date =
$e_date;
343 if (strpos($sposte,
',') != 0) {
344 $array = explode(
',', $sposte);
347 $poste_val = $sposte;
350 $acc_operation->poste = $poste_val;
351 $acc_operation->amount =
$amount;
352 $acc_operation->grpt =
$seq;
353 $acc_operation->jrn =
$p_jrn;
354 $acc_operation->type =
'c';
355 $acc_operation->periode = $tperiode;
358 $acc_operation->desc=strip_tags(${
"e_march".$i.
"_label"});
362 $acc_operation->desc=
null;
365 $acc_operation->qcode = ${
"e_march" .
$i};
368 $tot_debit=round(bcadd($tot_debit, abs(
$amount)),2);
371 $j_id = $acc_operation->insert_jrnx();
376 $idx_tva =$oTva->get_parameter(
"id");
378 $auto_reverse=$oTva->get_parameter(
"both_side");
380 $tva_item_currency = ${
'e_march' .
$i .
'_tva_amount'};
383 if (trim($tva_item_currency) ==
'' || ${
'e_march'.$i.
'_tva_amount'} == 0) {
384 $tva_item_currency = bcmul(
$amount, $oTva->get_parameter(
'rate'));
385 $tva_item=round($tva_item_currency,2);
387 $tva_item=bcdiv($tva_item_currency,$p_currency_rate);
388 $tva_item=round($tva_item,2);
390 $tva[$idx_tva]=(isset($tva[$idx_tva]))?$tva[$idx_tva]:0;
392 if ( $auto_reverse == 0)
394 $tva[$idx_tva]=bcadd($tva_item,$tva[$idx_tva]);
395 $tva[$idx_tva]=round($tva[$idx_tva],2);
396 $tot_tva = bcadd($tva_item, $tot_tva);
397 $tot_tva = round($tot_tva, 2);
402 $tva_item_currency = 0;
405 $tot_debit=round(bcadd($tot_debit, abs($n_both)),2);
406 $tva_reverse[$idx_tva]=(isset($tva_reverse[$idx_tva]))?$tva_reverse[$idx_tva]:0;
407 $tva_reverse[$idx_tva]=bcadd($tva_item,$tva_reverse[$idx_tva]);
408 $tva_reverse[$idx_tva]=round($tva_reverse[$idx_tva],2);
411 $tva[$idx_tva]=bcadd($tva_item,$tva[$idx_tva]);
412 $tva[$idx_tva]=round($tva[$idx_tva],2);
422 $nNeg = (${
"e_quant" .
$i} < 0) ? -1 : 1;
428 $dir=(${
'e_quant'.$i} < 0 ) ?
'd':
'c';
436 $op->set_currency_rate($p_currency_rate);
437 $op->oa_group = $group;
444 if (empty( ${
'e_march' .
$i .
'_price'} ) ) ${
'e_march' .
$i .
'_price'} = 0;
445 if (empty( ${
'e_march' .
$i } ) ) ${
'e_march' .
$i } = 0;
446 if (empty( ${
'e_quant' .
$i } ) ) ${
'e_quant' .
$i } = 0;
448 $price_euro=bcdiv(${
'e_march'.$i.
'_price'}, $p_currency_rate);
452 $r = $this->
db->exec_sql(
"select insert_quant_sold ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10)", array(
null,
458 $oTva->get_parameter(
"id"),
464 $tva_item_currency=0;
466 $r = $this->
db->exec_sql(
"select insert_quant_sold ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ", array(
null,
482 $operation_currency->oc_amount=$amount_currency;
483 $operation_currency->oc_vat_amount=$tva_item_currency;
484 $operation_currency->oc_price_unit=${
'e_march'.$i.
'_price'};
485 $operation_currency->j_id=
$j_id;
486 $operation_currency->insert();
487 $tot_amount_cur=round(bcadd($tot_amount_cur,$amount_currency,4),4);
488 $tot_amount_cur=round(bcadd($tot_amount_cur,$tva_item_currency,4),4);
493 $row=$this->
db->get_row(
"select ac_id,ac_label,ac_accounting
497 if ( ! empty (
$row )) {
501 $acc_operation->poste=
$row[
'ac_accounting'];
503 $acc_operation->grpt=
$seq;
504 $acc_operation->jrn=
$p_jrn;
505 $acc_operation->type=
'c';
506 $acc_operation->periode=$tperiode;
507 $acc_operation->desc=
$row[
'ac_label'];
509 $jrn_tax_sql->j_id=$acc_operation->insert_jrnx();
510 $jrn_tax_sql->ac_id=
$row[
'ac_id'];
511 $jrn_tax_sql->pcm_val=
$row[
'ac_accounting'];
512 $jrn_tax_sql->insert();
514 if (
$p_array[
'other_tax_amount'] < 0 ) {
518 $operation_currency->oc_amount=
$p_array[
'other_tax_amount'];
519 $operation_currency->oc_vat_amount=0;
520 $operation_currency->oc_price_unit=0;
521 $operation_currency->j_id=$jrn_tax_sql->j_id;
522 $operation_currency->insert();
530 $cust_amount = round($cust_amount,2);
531 if ( DEBUGNOALYSS > 1 ) {
532 echo __LINE__.
" cust_amount $cust_amount<br>";
533 echo __LINE__.
" tot_amount $tot_amount<br>";
534 echo __LINE__.
" tot_tva $tot_tva<br>";
539 $acc_operation->date =
$e_date;
540 $acc_operation->poste =
$poste;
541 $acc_operation->amount = $cust_amount;
542 $acc_operation->grpt =
$seq;
543 $acc_operation->jrn =
$p_jrn;
544 $acc_operation->type =
'd';
545 $acc_operation->periode = $tperiode;
546 $acc_operation->qcode = ${
"e_client"};
549 $tot_debit=bcadd($tot_debit, $cust_amount);
550 $tot_debit=round($tot_debit, 2);
552 $let_tiers = $acc_operation->insert_jrnx();
556 $operation_currency->oc_amount=$tot_amount_cur;
557 $operation_currency->oc_vat_amount=0;
558 $operation_currency->oc_price_unit=0;
559 $operation_currency->j_id=$let_tiers ;
560 $operation_currency->insert();
572 $poste_vat = $oTva->get_side(
'c');
576 $acc_operation->date =
$e_date;
577 $acc_operation->poste = $poste_vat;
578 $acc_operation->amount =
$value;
579 $acc_operation->grpt =
$seq;
580 $acc_operation->jrn =
$p_jrn;
581 $acc_operation->type =
'c';
582 $acc_operation->periode = $tperiode;
585 $tot_debit=bcadd($tot_debit, abs(
$value));
586 $tot_debit=round($tot_debit, 2);
588 if ( $oTva->get_parameter(
"both_side") == 1 &&
$value ==0 )
continue;
589 $acc_operation->insert_jrnx();
592 if ($oTva->get_parameter(
"both_side") == 1 ) {
594 $x=$oTva->get_parameter(
"tva_reverse_account");
596 $poste_vat =(trim($x??
"")==
"")? $oTva->get_side(
'd'):$x;
597 if ($poste_vat ==
'#') $poste_vat=$oTva->get_side(
'c');
600 $acc_operation->date =
$e_date;
601 $acc_operation->poste = $poste_vat;
602 $acc_operation->amount =
$value;
603 $acc_operation->grpt =
$seq;
604 $acc_operation->jrn =
$p_jrn;
605 $acc_operation->type =
'd';
606 $acc_operation->periode = $tperiode;
607 $acc_operation->insert_jrnx();
608 $tot_debit = bcadd($tot_debit,
$value);
609 $tot_debit = round($tot_debit, 2);
614 foreach ($tva_reverse as
$i =>
$value) {
616 $poste_vat = $oTva->get_side(
'c');
617 if ( $poste_vat ==
'#')
619 $poste_vat=$oTva->get_side(
'd');
623 $acc_operation->date =
$e_date;
624 $acc_operation->poste = $poste_vat;
625 $acc_operation->amount =
$value;
626 $acc_operation->grpt =
$seq;
627 $acc_operation->jrn =
$p_jrn;
628 $acc_operation->type =
'c';
629 $acc_operation->periode = $tperiode;
632 $tot_debit=bcadd($tot_debit, abs(
$value));
633 $tot_debit=round($tot_debit, 2);
635 $acc_operation->insert_jrnx();
638 $poste_vat = $oTva->get_side(
'd');
639 if ( $poste_vat ==
'#')
641 $poste_vat=$oTva->get_side(
'c');
644 $acc_operation->date =
$e_date;
645 $acc_operation->poste = $poste_vat;
646 $acc_operation->amount =
$value;
647 $acc_operation->grpt =
$seq;
648 $acc_operation->jrn =
$p_jrn;
649 $acc_operation->type =
'd';
650 $acc_operation->periode = $tperiode;
651 $acc_operation->insert_jrnx();
652 $tot_debit = bcadd($tot_debit,
$value);
653 $tot_debit = round($tot_debit, 2);
665 if ( DEBUGNOALYSS > 1 ) { echo __LINE__.
" tot_debit ".round($tot_debit,2).
"<br>"; }
667 $acc_operation->date =
$e_date;
668 $acc_operation->echeance = $e_ech;
669 $acc_operation->amount = abs(round($tot_debit, 2));
670 $acc_operation->desc = $e_comm;
671 $acc_operation->grpt =
$seq;
672 $acc_operation->jrn =
$p_jrn;
673 $acc_operation->periode = $tperiode;
674 $acc_operation->pj = $e_pj;
675 $acc_operation->mt = $mt;
676 $acc_operation->currency_id=$p_currency_code;
677 $acc_operation->currency_rate=$p_currency_rate;
678 $acc_operation->currency_rate_ref=$currency_rate_ref->get_rate();
680 if ( ! $this->
jr_id=$acc_operation->insert_jrn() ) {
681 throw new Exception (
_(
"Erreur de balance"),
EXC_BALANCE);
684 $this->pj = $acc_operation->update_receipt();
693 $this->
db->exec_sql(
"update jrn set jr_internal=$1 where jr_grpt_id = $2" ,[$internal,
$seq]);
697 $this->
db->exec_sql(
'update quant_sold set qs_internal = $1
698 where j_id in (select j_id from jrnx where j_grpt=$2)'
699 , array($internal,
$seq));
702 if (isset($_FILES[
'pj'])) {
704 $this->
db->save_receipt(
$seq);
707 if (isset(
$_POST[
'gen_invoice'])) {
709 $this->doc=HtmlInput::show_receipt_document($this->
jr_id,
h(
$file));
719 $pay_date=($mp_date==
"")?
$e_date:$mp_date;
727 $acseq = $this->
db->get_next_seq(
's_grpt');
728 $acjrn =
new Acc_Ledger($this->
db, $mp->get_parameter(
'ledger_target'));
729 $acinternal = $acjrn->compute_internal_code($acseq);
734 if ( $acjrn->get_type()==
'FIN') {
736 $acfiche=
new Fiche($this->
db,$acjrn->get_bank());
739 $fqcode = ${
'e_mp_qcode_' . $e_mp};
740 $acfiche =
new Fiche($this->
db);
741 $acfiche->get_by_qcode($fqcode);
746 $acc_pay->date = $pay_date;
750 if (strpos($sposte,
',') != 0) {
751 $array = explode(
',', $sposte);
754 $poste_val = $sposte;
757 $acompte_eur=bcdiv(
$acompte, $p_currency_rate);
759 $famount=bcsub($cust_amount,$acompte_eur);
760 $acc_pay->poste = $poste_val;
761 $acc_pay->qcode = $fqcode;
762 $acc_pay->amount = abs(round($famount, 2));
763 $acc_pay->desc =
null;
765 $acc_pay->grpt = $acseq;
766 $acc_pay->jrn = $mp->get_parameter(
'ledger_target');
767 $acc_pay->periode = $tperiode;
768 $acc_pay->type = ($famount >= 0) ?
'd' :
'c';
769 $let_pay=$acc_pay->insert_jrnx();
773 $acc_pay->date = $pay_date;
775 $acc_pay->qcode = $e_client;
776 $acc_pay->amount = abs(round($famount, 2));
777 $acc_pay->desc =
null;
778 $acc_pay->grpt = $acseq;
779 $acc_pay->jrn = $mp->get_parameter(
'ledger_target');
780 $acc_pay->periode = $tperiode;
781 $acc_pay->type = ($famount >= 0) ?
'c' :
'd';
782 $let_other = $acc_pay->insert_jrnx();
786 $operation_currency->oc_amount=bcsub($tot_amount_cur,
$acompte);
787 $operation_currency->oc_vat_amount=0;
788 $operation_currency->oc_price_unit=0;
789 $operation_currency->j_id=$let_other;
790 $operation_currency->insert();
794 $operation_currency->oc_amount=bcsub($tot_amount_cur,
$acompte);
795 $operation_currency->oc_vat_amount=0;
796 $operation_currency->oc_price_unit=0;
797 $operation_currency->j_id=$let_pay;
798 $operation_currency->insert();
801 $acc_pay->currency_id=$p_currency_code;
802 $acc_pay->currency_rate=$p_currency_rate;
803 $acc_pay->currency_rate_ref=$currency_rate_ref->get_rate();
808 $acjrn->grpt_id = $acseq;
809 $acc_pay->desc = (!isset($e_comm_paiement) ||
noalyss_strlentrim($e_comm_paiement) == 0) ? $e_comm : $e_comm_paiement;
810 $mp_jr_id = $acc_pay->insert_jrn();
811 $acjrn->update_internal_code($acinternal);
813 if ($acjrn->get_type()==
"ODS") {
814 $acc_pay->pj=$acjrn->guess_pj();
815 $acc_pay->update_receipt();
817 $r1 = $this->
get_id($internal);
818 $r2 = $this->
get_id($acinternal);
824 $oletter->insert_couple($let_tiers, $let_other);
828 $Res = $this->
db->exec_sql(
"update jrn set jr_rapt='paid' where jr_id=$1", array($r1));
832 $rec->set_jr_id($r1);
845 if (
$prop[
'jrn_def_type'] ==
'FIN') {
846 $ledger->insert_quant_fin($acfiche->id, $mp_jr_id, $cust->id, bcmul($famount, 1),$let_other);
852 if (isset(
$p_array[
'jrn_note_input']) && !empty(
$p_array[
'jrn_note_input'])) {
854 $acc_operation_note->setNote(
$p_array[
'jrn_note_input']);
855 $acc_operation_note->setOperation_id( $this->
jr_id);
856 $acc_operation_note->save();
858 }
catch (Exception
$e) {
860 $this->
db->rollback();
1350 $http->set_array([]);
1359 $str_add_button_tiers =
"";
1363 $str_add_button_tiers = $this->
add_card(
"deb",
"e_client");
1368 list ($l_date_start, $l_date_end) =
$oPeriode->get_date_limit(
$g_user->get_periode());
1374 $e_ech = (isset($e_ech)) ? $e_ech :
"";
1375 $e_comm = (isset($e_comm)) ? $e_comm :
"";
1378 $r.=dossier::hidden();
1379 $f_legend =
_(
'Client');
1381 $Echeance =
new IDate();
1382 $Echeance->setReadOnly(
false);
1384 $Echeance->tabindex = 2;
1386 $f_echeance = $Echeance->input(
'e_ech', $e_ech,
_(
'Echéance') .
$label);
1387 $Date =
new IDate();
1388 $Date->setReadOnly(
false);
1390 $f_date = $Date->input(
"e_date", $op_date);
1396 $l_user_per =
$g_user->get_periode();
1399 $period =
new IPeriod(
"period");
1402 $period->value =
$def;
1403 $period->type =
OPEN;
1405 $l_form_per = $period->input();
1406 }
catch (Exception
$e) {
1407 if (
$e->getCode() == 1) {
1408 throw new Exception(
_(
"Aucune période ouverte") );
1412 $f_periode =
'<td>' .
_(
"Période comptable") .
"</td> <td> $label " . $l_form_per .
'</td>';
1417 $add_js =
"update_receipt();";
1420 $add_js.=
'get_last_date();';
1422 $add_js.=
'update_name();';
1423 $add_js.=
'update_pay_method();';
1424 $add_js.=
'update_row("sold_item");';
1425 $add_js.=
'update_other_tax();';
1426 $add_js.=
'update_visibility_quantity();';
1430 throw new Exception(
_(
'Pas de journal disponible'));
1432 $wLedger->javascript =
"onChange='update_predef(\"ven\",\"f\",\"".$_REQUEST[
'ac'].
"\");$add_js'";
1437 $Commentaire =
new IText();
1438 $Commentaire->table = 0;
1439 $Commentaire->setReadOnly(
false);
1440 $Commentaire->size = (empty($e_comm))?60:strlen($e_comm)+5;
1441 $Commentaire->size = ($Commentaire->size<60)?60:$Commentaire->size;
1442 $Commentaire->tabindex = 3;
1446 $f_desc = $Commentaire->input(
"e_comm", $e_comm) ;
1458 $pj->setReadOnly(
true);
1465 $pj->value = (isset($e_pj)) ? $e_pj : $default_pj;
1466 $f_pj = $pj->input() . HtmlInput::hidden(
'e_pj_suggest', $default_pj);
1473 $e_client = ( isset($e_client) ) ? $e_client :
"";
1474 $e_client_label =
" ";
1479 $fClient =
new Fiche($this->
db);
1480 $fClient->get_by_qcode($e_client);
1481 $e_client_label = $fClient->strAttribut(
ATTR_DEF_NAME) .
' ' .
1489 $W1->name =
"e_client";
1491 $W1->value = $e_client;
1493 $W1->set_dblclick(
"fill_ipopcard(this);");
1494 $W1->set_attribute(
'ipopup',
'ipopcard');
1497 $W1->set_attribute(
'label',
'e_client_label');
1499 $W1->set_attribute(
'typecard',
'deb');
1502 $W1->set_callback(
'filter_card');
1503 $W1->set_function(
'fill_data');
1504 $W1->javascript = sprintf(
' onchange="fill_data_onchange(\'%s\');" ', $W1->name);
1505 $f_client_qcode = $W1->input();
1506 $client_label =
new ISpan();
1507 $client_label->table = 0;
1508 $f_client = $client_label->input(
"e_client_label", $e_client_label);
1509 $f_client_bt = $W1->search();
1514 $p_article = ( isset($nb_item)) ? $nb_item : $this->
get_min_row();
1515 $r.=$Hid->input(
"nb_item", $p_article);
1519 $f_legend_detail =
_(
"Détail articles vendus");
1523 for (
$i = 0;
$i < $p_article;
$i++) {
1526 $march = (isset(${
"e_march$i"})) ? ${
"e_march$i"} :
"";
1527 $march_price = (isset(${
"e_march" .
$i .
"_price"})) ? ${
"e_march" .
$i .
"_price"} :
"" ;
1528 if ($flag_tva ==
'Y') {
1529 $march_tva_id = (isset(${
"e_march$i" .
"_tva_id"})) ? ${
"e_march$i" .
"_tva_id"} :
"";
1530 $march_tva_amount = (isset(${
"e_march$i" .
"_tva_amount"})) ? ${
"e_march$i" .
"_tva_amount"} :
"";
1532 $march_label = (isset(${
"e_march" .
$i .
"_label"})) ? ${
"e_march" .
$i .
"_label"} :
"";
1537 $fMarch =
new Fiche($this->
db);
1538 $fMarch->get_by_qcode($march);
1540 if ($flag_tva ==
'Y') {
1541 if (!(isset(${
"e_march$i" .
"_tva_id"})))
1549 $W1->name =
"e_march" .
$i;
1550 $W1->value = $march;
1552 $W1->set_attribute(
'typecard',
'cred');
1553 $W1->set_dblclick(
"fill_ipopcard(this);");
1554 $W1->set_attribute(
'ipopup',
'ipopcard');
1557 $W1->set_attribute(
'label',
'e_march' .
$i .
'_label');
1559 $W1->set_attribute(
'price',
'e_march' .
$i .
'_price');
1561 $W1->set_attribute(
'tvaid',
'e_march' .
$i .
'_tva_id');
1563 $W1->set_callback(
'filter_card');
1564 $W1->set_function(
'fill_data');
1565 $W1->javascript = sprintf(
' onchange="fill_data_onchange(\'%s\');" ', $W1->name);
1567 $W1->readonly =
false;
1569 $array[
$i][
'quick_code'] = $W1->input();
1571 $array[
$i][
'card_add']=($add_card==TRUE)?$this->
add_card(
"cred", $W1->id):
"";
1574 if ($flag_tva ==
'Y')
1575 $array[
$i][
'hidden'].=HtmlInput::hidden(
'tva_march' .
$i, 0);
1577 $htva =
new INum(
'htva_march' .
$i);
1578 $htva->readOnly = 1;
1580 $array[
$i][
'htva'] = $htva->input();
1583 $tvac =
new INum(
'tvac_march' .
$i);
1587 $tvac->readOnly = 1;
1589 $array[
$i][
'tvac'] = $tvac->input();
1593 $Span=
new IText(
"e_march".
$i.
"_label");
1594 $Span->style=
'class="input_text label_item"';
1597 $Span=
new ISpan(
"e_march".
$i.
"_label");
1598 $Span->extra=
'class="label_item"';
1600 $Span->value = $march_label;
1601 $Span->setReadOnly(
false);
1604 $array[
$i][
'denom'] = $Span->input(
"e_march" .
$i .
"_label", $march_label);
1606 $Price =
new INum();
1607 $Price->setReadOnly(
false);
1609 $Price->javascript =
"onblur=\"format_number(this,4);clean_tva($i);compute_ledger($i)\"";
1610 $array[
$i][
'pu'] = $Price->input(
"e_march" .
$i .
"_price", $march_price);
1614 if ($flag_tva ==
'Y') {
1618 $Tva->in_table =
true;
1619 $Tva->set_attribute(
'compute',
$i);
1620 $Tva->set_filter(
"sale");
1622 $Tva->js =
'onblur="clean_tva(' .
$i .
');compute_ledger(' .
$i .
')"';
1623 $Tva->value = $march_tva_id;
1624 $array[
$i][
'tva'] = $Tva->input(
"e_march$i" .
"_tva_id");
1627 $wTva_amount =
new INum();
1628 $wTva_amount->readOnly =
false;
1629 $wTva_amount->size = 6;
1630 $wTva_amount->javascript =
"onblur='format_number(this);compute_ledger($i)'";
1631 $array[
$i][
'amount_tva'] = $wTva_amount->input(
"e_march" .
$i .
"_tva_amount", $march_tva_amount);
1635 $quant = (isset(${
"e_quant$i"})) ? ${
"e_quant$i"} :
"1";
1636 $Quantity =
new INum();
1638 $Quantity->setReadOnly(
false);
1639 $Quantity->size = 8;
1640 $Quantity->javascript =
"onchange=\"format_number(this,2);clean_tva($i);compute_ledger($i);\"";
1641 $array[
$i][
'quantity'] = $Quantity->input(
"e_quant" .
$i, $quant);
1643 $f_type =
_(
'Client');
1646 $currency_select = $this->
CurrencyInput(
"currency_code",
"p_currency_rate" ,
"p_currency_euro");
1647 $currency_select->selected=
$http->extract(
'p_currency_code',
'string',0);
1649 $currency_input=
new INum(
"p_currency_rate");
1650 $currency_input->id=
"p_currency_rate";
1651 $currency_input->prec=8;
1652 $currency_input->value=
$http->extract(
'p_currency_rate',
'string',1);
1653 $currency_input->javascript=
'onchange="format_number(this,4);CurrencyCompute(\'p_currency_rate\',\'p_currency_euro\');"';
1661 echo
'<div id="predef_form">';
1662 echo HtmlInput::hidden(
'p_jrn_predef', $this->
id);
1664 $op->set_jrn_type(
"VEN");
1665 $op->set_p_jrn($this->
id);
1666 $op->set_od_direct(
'f');
1667 $url=http_build_query(array(
'p_jrn_predef'=>$this->
id,
'ac'=>
$http->request(
'ac'),
1668 'gDossier'=>dossier::id()));
1669 echo
$op->form_get(
'do.php?'.
$url);
1671 $str_op_template=ob_get_contents();
1675 require_once NOALYSS_TEMPLATE.
'/form_ledger_detail.php';
1676 $form_ledger_detail=ob_get_contents();
1679 $r.=$form_ledger_detail;
1682 $r.=HtmlInput::hidden(
'jrn_type',
'VEN');
1685 $r.=
'<div id="additional_tax_div">';