[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Calculo de campos
Página 1 de 1

Calculo de campos

Enviado: Outubro 25th, 2011, 1:24 pm
por Paulo Campregher
Olá como faço calcular campos número fracionario...
Tabela produtos
p_val_unit
p_margem
p_val_venda
valor unitario + margem de lucro = valor da venda do produto

Re: Calculo de campos

Enviado: Outubro 27th, 2011, 10:10 am
por Gustavo
Olá,

você tem que escolher um campo para ser calculado, no seu caso esse campo tem que ser o "p_val_venda".

O cálculo dele é o seguinte:

Result := CalcC(tabglobal.DNOME_TABELA.p_val_unit.conteudo, tabglobal.DNOME_TABELA.p_margem.conteudo, '+', 02);