dolibarr  19.0.0-dev
Functions
invoice.php File Reference

Copyright (C) 2018 Andreu Bisquerra jove@.nosp@m.bisq.nosp@m.uerra.nosp@m..com Copyright (C) 2021 Nicolas ZABOURI info@.nosp@m.inov.nosp@m.ea-co.nosp@m.nsei.nosp@m.l.com More...

Go to the source code of this file.

Functions

if(empty($user->rights->takepos->run) &&!defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) if((getDolGlobalString('TAKEPOS_PHONE_BASIC_LAYOUT')==1 && $conf->browser->layout=='phone')||defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) fail ($message)
 Abort invoice creationg with a given error message. More...
 

Detailed Description

Copyright (C) 2018 Andreu Bisquerra jove@.nosp@m.bisq.nosp@m.uerra.nosp@m..com Copyright (C) 2021 Nicolas ZABOURI info@.nosp@m.inov.nosp@m.ea-co.nosp@m.nsei.nosp@m.l.com

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/.

Page to generate section with list of lines

Definition in file invoice.php.

Function Documentation

◆ fail()

if (empty( $user->rights->takepos->run) &&!defined( 'INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) if ((getDolGlobalString( 'TAKEPOS_PHONE_BASIC_LAYOUT')==1 &&$conf->browser->layout=='phone')||defined( 'INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) fail (   $message)

Abort invoice creationg with a given error message.

Parameters
string$messageMessage explaining the error to the user
Returns
void

Definition at line 88 of file invoice.php.