FIX: Propagate vat-reverse charge when supplier invoice is created from reception list

This commit is contained in:
Alexandre SPANGARO 2023-04-12 12:03:27 +02:00
parent 28c625dc6b
commit a2d9de14ac

View File

@ -2,7 +2,8 @@
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2010 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2016 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2016 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2023 Alexandre Spangaro <aspangaro@open-dsi.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -345,6 +346,9 @@ if (empty($reshook)) {
$objecttmp->remise_absolue = $remise_absolue;
$objecttmp->transport_mode_id = $transport_mode_id;
// if the VAT reverse-charge is activated by default in supplier card to resume the information
$objecttmp->vat_reverse_charge = $soc->vat_reverse_charge;
$objecttmp->fk_project = $rcp->fk_project;
//$objecttmp->multicurrency_code = $rcp->multicurrency_code;
if (empty($createbills_onebythird)) {