MARX#68227 DB40g BTW marge voor afrondfouten/methode

svn path=/Database/branches/DB40/; revision=52855
This commit is contained in:
Jos Groot Lipman
2021-09-01 08:09:06 +00:00
parent e1e736e324
commit 2b8dc064e7
4 changed files with 4 additions and 3 deletions

View File

@@ -14939,7 +14939,7 @@ AS
IF (l_kostprijs IS NOT NULL AND c_btwtabelwaarde_key IS NOT NULL)
THEN
l_btwbedrag := fin.getbtw_bedrag(l_kostprijs, c_btwtabelwaarde_key);
IF ABS(ROUND(l_btwbedrag,2) - ROUND(c_btw_bedrag,2)) > 0.01
IF ABS(ROUND(l_btwbedrag,2) - ROUND(c_btw_bedrag,2)) > fac.safe_to_number(fac.getsetting('fin_import_btwmarge'))
THEN
c_opmerking := c_opmerking || CHR(13) || 'BTW-bedrag bij regel ' || c_factuurregel || ': is op ' || l_btwbedrag || ' gezet';
c_factuur_statuses_key := 3; -- Incompleet

View File

@@ -121,6 +121,7 @@ DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_add2deeplinkurl'
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_primary_bedrijfkey' , 'number' , '-1' , 'bedrijf_key of this Service Organisation (for XD-module)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_secundarydomains' , 'json' , '' /* moet leeg!*/ , 'Object of related secondary domains {id: {name, url}} (for XD-module)')
DEFINE_SETTING('FIN', 0001, 'WEB_FACFAC', 'fin_import_app_key' , 'number' , '-1' , 'fac_import_app_key of customer ''FACTUUR'' import: -1=Facilitor standard')
DEFINE_SETTING('FIN', 0001, 'WEB_FACTAB', 'fin_import_btwmarge' , 'float' , '0.01' , 'Invoice import allowed BTW rounding margin')
DEFINE_SETTING('INS', 0001, 'WEB_FACFAC', 'mjb_enabled' , 'number' , '0' , 'Is Preventive Maintenance (MJOB) available {0=no | 1=yes}')
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'locfax_kenmerk_key' , 'number' , '-1' , NULL)
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'locphone_kenmerk_key' , 'number' , '-1' , NULL)

View File

@@ -3,7 +3,7 @@
##
## Project: FACILITOR
##
## (c) 1996-2021 Aareon Nederland B.V.
## (c) 1996-2019 Aareon Nederland B.V.
##
## Auteur: Ir. P.G. Feij
## $Revision$
@@ -61,7 +61,7 @@ PROJEXE=z:\Project\FACILITOR\BUILD
## New style using schemanumbers
##
CURRENTVERSION=39
NEXTVERSION=40e
NEXTVERSION=40g
FILEVERSION=
NEXTCAREVERSION=37
NEXTROOT=DB$(NEXTVERSION)$(FILEVERSION)