Documente Academic
Documente Profesional
Documente Cultură
Begin
Select M_CONSUMER_NO into v_can from Consumer_mast where M_CONSUMER_NO=P_CAN;
Exception
When no_data_found then
v_can:=null;
When Others then
v_can:=null;
End;
if P_DOCAMT <>(P_LEDGERAMT +P_OTHERAMT) then
raise tot_amount_except;
end if;
EXCEPTION
when tot_amount_except then
P_ERRMSG:='Document Amount should be equal to sum of Ledger and Non-Ledger
Amounts';
END SAVE_NONCONSUMER;
/