Ejemplo n.º 1
0
                // delete
                $q = transaksi_hapus($cid);
            }
        }
    }
    $fform->notif($q);
} else {
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
        $jtrans = $r['jenis'];
    } else {
        $r = array('rekkas' => 0);
        $r['tanggal'] = date("Y-m-d");
        $jtrans = JT_INCOME;
        $no = transaksi_newnomer();
        $r['nomer'] = $no['nomer'];
        $r['ct'] = $no['ct'];
        $pid = gpost('pembayaran');
        $pemb = pembayaran_getdata($pid);
        $r['rekkas'] = $pemb['rekkas'];
        $r['rekitem'] = $pemb['rekitem'];
        echo "rekitem:" . $pemb['rekitem'];
        $r['uraian'] = $pemb['uraian'];
        $r['nominal'] = $pemb['cicilan'];
    }
    $rekening = rekening_opt();
    $rekasbank = rekening_kasbank_opt();
    if ($opt != 'df') {
        $fform->title_style = 'background:#00c804;color:#fff;height:18px !important;padding:5px 10px 10px 10px !important;margin-bottom:5px';
    }
Ejemplo n.º 2
0
function transaksi_posting_auto($urai,$jur,$jt=JT_UMUM,$kat=0){
	$no=transaksi_newnomer();
	return transaksi_posting($no['nomer'],$no['ct'],date("Y-m-d"),$urai,$jur,$jt,$kat);
}