Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
bdc.bdcloud.fr /
core /
tpl /
Delete
Unzip
Name
Size
Permission
Date
Action
README
123
B
-rwxr-x---
2023-04-04 15:50
admin_extrafields_add.tpl.php
16.18
KB
-rwxr-x---
2023-04-04 15:50
admin_extrafields_edit.tpl.php
19.13
KB
-rwxr-x---
2023-04-04 15:50
advtarget.tpl.php
23.16
KB
-rwxr-x---
2023-04-04 15:50
ajaxrow.tpl.php
5.09
KB
-rwxr-x---
2023-04-04 15:50
bloc_comment.tpl.php
5.04
KB
-rwxr-x---
2023-04-04 15:50
bloc_showhide.tpl.php
3.16
KB
-rwxr-x---
2023-04-04 15:50
card_presend.tpl.php
14.83
KB
-rwxr-x---
2023-04-04 15:50
commonfields_add.tpl.php
3.37
KB
-rwxr-x---
2023-04-04 15:50
commonfields_edit.tpl.php
3.66
KB
-rwxr-x---
2023-04-04 15:50
commonfields_view.tpl.php
6.81
KB
-rwxr-x---
2023-04-04 15:50
contacts.tpl.php
13.49
KB
-rwxr-x---
2023-04-04 15:50
document_actions_post_headers.tpl.php
4.41
KB
-rwxr-x---
2023-04-04 15:50
error.tpl.php
779
B
-rwxr-x---
2023-04-04 15:50
extrafields_add.tpl.php
1.8
KB
-rwxr-x---
2023-04-04 15:50
extrafields_edit.tpl.php
1.61
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_input.tpl.php
3.01
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_param.tpl.php
1.86
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_sql.tpl.php
3.14
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_title.tpl.php
2.04
KB
-rwxr-x---
2023-04-04 15:50
filemanager.tpl.php
13.61
KB
-rwxr-x---
2023-04-04 15:50
footer.tpl.php
779
B
-rwxr-x---
2023-04-04 15:50
header.tpl.php
787
B
-rwxr-x---
2023-04-04 15:50
list_print_total.tpl.php
1.41
KB
-rwxr-x---
2023-04-04 15:50
login.tpl.php
18.33
KB
-rwxr-x---
2023-04-04 15:50
massactions_pre.tpl.php
16.28
KB
-rwxr-x---
2023-04-04 15:50
notes.tpl.php
6.64
KB
-rwxr-x---
2023-04-04 15:50
object_discounts.tpl.php
6.1
KB
-rwxr-x---
2023-04-04 15:50
objectline_create.tpl.php
49.86
KB
-rwxr-x---
2023-04-04 15:50
objectline_edit.tpl.php
22.5
KB
-rwxr-x---
2023-04-04 15:50
objectline_title.tpl.php
7.88
KB
-rwxr-x---
2023-04-04 15:50
objectline_view.tpl.php
22.83
KB
-rwxr-x---
2023-04-04 15:50
objectlinked_lineimport.tpl.php
3.35
KB
-rwxr-x---
2023-04-04 15:50
onlinepaymentlinks.tpl.php
7.85
KB
-rwxr-x---
2023-04-04 15:50
originproductline.tpl.php
2.31
KB
-rwxr-x---
2023-04-04 15:50
passwordforgotten.tpl.php
11.04
KB
-rwxr-x---
2023-04-04 15:50
passwordreset.tpl.php
12.42
KB
-rwxr-x---
2023-04-04 15:50
resource_add.tpl.php
2.62
KB
-rwxr-x---
2023-04-04 15:50
resource_view.tpl.php
3.9
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2018 ATM Consulting <support@atm-consulting.fr> * Copyright (C) 2021 Frédéric France <frederic.france@netlogic.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 * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * * Needs the following variables defined: * $object Proposal, order, invoice (including supplier versions) * $thirdparty Thirdparty of object * $absolute_discount Amount of fixed discounts available * $absolute_creditnote Amount of credit notes available * $discount_type 0 => Customer discounts, 1 => Supplier discounts * $cannotApplyDiscount Set it to prevent form to apply discount * $backtopage URL to come back to from discount modification pages */ print '<!-- BEGIN object_discounts.tpl.php -->'."\n"; $objclassname = get_class($object); $isInvoice = in_array($object->element, array('facture', 'invoice', 'facture_fourn', 'invoice_supplier')); $isNewObject = empty($object->id) && empty($object->rowid); // Clean variables not defined if (!isset($absolute_discount)) { $absolute_discount = 0; } if (!isset($absolute_creditnote)) { $absolute_creditnote = 0; } // Relative and absolute discounts $addrelativediscount = '<a href="'.DOL_URL_ROOT.'/comm/remise.php?id='.$thirdparty->id.'&backtopage='.$backtopage.'&action=create&token='.newToken().'">'.$langs->trans("EditRelativeDiscount").'</a>'; $addabsolutediscount = '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$thirdparty->id.'&backtopage='.$backtopage.'&action=create&token='.newToken().'">'.$langs->trans("EditGlobalDiscounts").'</a>'; $viewabsolutediscount = '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$thirdparty->id.'&backtopage='.$backtopage.'">'.$langs->trans("ViewAvailableGlobalDiscounts").'</a>'; $fixedDiscount = $thirdparty->remise_percent; if (!empty($discount_type)) { $fixedDiscount = $thirdparty->remise_supplier_percent; } if ($fixedDiscount > 0) { $translationKey = (!empty($discount_type)) ? 'HasRelativeDiscountFromSupplier' : 'CompanyHasRelativeDiscount'; print $langs->trans($translationKey, $fixedDiscount).'.'; } else { $translationKey = (!empty($discount_type)) ? 'HasNoRelativeDiscountFromSupplier' : 'CompanyHasNoRelativeDiscount'; print '<span class="opacitymedium hideonsmartphone">'.$langs->trans($translationKey).'.</span>'; } if ($isNewObject) { print ' ('.$addrelativediscount.')'; } // Is there is commercial discount or down payment available ? if ($absolute_discount > 0) { if (!empty($cannotApplyDiscount) || !$isInvoice || $isNewObject || $object->statut > $objclassname::STATUS_DRAFT || $object->type == $objclassname::TYPE_CREDIT_NOTE || $object->type == $objclassname::TYPE_DEPOSIT) { $translationKey = !empty($discount_type) ? 'HasAbsoluteDiscountFromSupplier' : 'CompanyHasAbsoluteDiscount'; $text = $langs->trans($translationKey, price($absolute_discount), $langs->transnoentities("Currency".$conf->currency)).'.'; if ($isInvoice && !$isNewObject && $object->statut > $objclassname::STATUS_DRAFT && $object->type != $objclassname::TYPE_CREDIT_NOTE && $object->type != $objclassname::TYPE_DEPOSIT) { $text = $form->textwithpicto($text, $langs->trans('AbsoluteDiscountUse')); } if ($isNewObject) { $text .= ' ('.$addabsolutediscount.')'; } if ($isNewObject) { print '<br>'.$text; } else { print '<div class="inline-block clearboth">'.$text.'</div>'; } } else { // Discount available of type fixed amount (not credit note) $more = '('.$addabsolutediscount.')'; $form->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, GETPOST('discountid'), 'remise_id', $thirdparty->id, $absolute_discount, $filterabsolutediscount, $resteapayer, $more, 0, $discount_type); } } // Is there credit notes availables ? if ($absolute_creditnote > 0) { // If validated, we show link "add credit note to payment" if (!empty($cannotApplyDiscount) || !$isInvoice || $isNewObject || $object->statut != $objclassname::STATUS_VALIDATED || $object->type == $objclassname::TYPE_CREDIT_NOTE) { $translationKey = !empty($discount_type) ? 'HasCreditNoteFromSupplier' : 'CompanyHasCreditNote'; $text = $langs->trans($translationKey, price($absolute_creditnote), $langs->transnoentities("Currency".$conf->currency)).'.'; if ($isInvoice && !$isNewObject && $object->statut == $objclassname::STATUS_DRAFT && $object->type != $objclassname::TYPE_DEPOSIT) { $text = $form->textwithpicto($text, $langs->trans('CreditNoteDepositUse')); } if ($absolute_discount <= 0 || $isNewObject) { $text .= ' ('.$addabsolutediscount.')'; } if ($isNewObject) { print '<br>'.$text; } else { print '<div class="inline-block clearboth">'.$text.'</div>'; } } else { // We can add a credit note on a down payment or standard invoice or situation invoice // There is credit notes discounts available $more = $isInvoice && !$isNewObject ? ' ('.$viewabsolutediscount.')' : ''; $form->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, 0, 'remise_id_for_payment', $thirdparty->id, $absolute_creditnote, $filtercreditnote, 0, $more, 0, $discount_type); // We allow credit note even if amount is higher } } if ($absolute_discount <= 0 && $absolute_creditnote <= 0) { $translationKey = !empty($discount_type) ? 'HasNoAbsoluteDiscountFromSupplier' : 'CompanyHasNoAbsoluteDiscount'; print '<br class="hideonsmartphone"><span class="opacitymedium hideonsmartphone">'.$langs->trans($translationKey).'.</span>'; if ($isInvoice && $object->statut == $objclassname::STATUS_DRAFT && $object->type != $objclassname::TYPE_CREDIT_NOTE && $object->type != $objclassname::TYPE_DEPOSIT) { print ' ('.$addabsolutediscount.')'; } } print '<!-- END template -->';