FSN#37695 AiAi bij invoeren factuur bestelopdracht

svn path=/Website/trunk/; revision=30688
This commit is contained in:
Jos Groot Lipman
2016-09-13 09:14:22 +00:00
parent b5d751a198
commit 55de3a3b88

View File

@@ -1032,12 +1032,12 @@ fin = { func_enabled_factuur: // Wat mag ik zoal op deze specifieke factuur?
oRs.Close();
}
if (result.btwtabel_key)
if (result.btwtabel_key > 0)
{
result.btwtabel = fin.btwtabel_info(result.btwtabel_key);
}
if (result.lev_uit_key)
if (result.lev_uit_key > 0)
{
var result_getfe = fin.getfactuurexist(fin_factuur_nr, result.lev_uit_key, -1);
result.aantalfacturen = result_getfe.aantal;
@@ -1045,7 +1045,7 @@ fin = { func_enabled_factuur: // Wat mag ik zoal op deze specifieke factuur?
result.totaalbtwbedrag = result_getfe.totaalbtwbedrag;
}
if (fin_factuur.mldopdr_key)
if (fin_factuur.mldopdr_key > 0)
{
result.opdr_materiaal = fin.opdr_materiaal_info(fin_factuur.mldopdr_key);
}