task #10501: Can use point of sale with different bank accounts
This commit is contained in:
parent
7c2d6d646a
commit
4f444c1ea6
@ -65,7 +65,7 @@ print '<div class="menu_bloc">';
|
|||||||
print '<ul class="menu">';
|
print '<ul class="menu">';
|
||||||
print '<li class="menu_choix1"><a href="affIndex.php?menu=facturation&id=NOUV"><span>'.$langs->trans("NewSell").'</span></a></li>';
|
print '<li class="menu_choix1"><a href="affIndex.php?menu=facturation&id=NOUV"><span>'.$langs->trans("NewSell").'</span></a></li>';
|
||||||
|
|
||||||
print '<li class="menu_choix2"><a href="deconnexion.php"><span>'.$langs->trans("BackOffice").'</span></a></li>';
|
print '<li class="menu_choix2"><a href=".."><span>'.$langs->trans("BackOffice").'</span></a></li>';
|
||||||
|
|
||||||
print '<li class="menu_choix0">'.$langs->trans("User").': '.$_SESSION['prenom'].' '.$_SESSION['nom'].' <a href="deconnexion.php">'.$logout.'</a><br>';
|
print '<li class="menu_choix0">'.$langs->trans("User").': '.$_SESSION['prenom'].' '.$_SESSION['nom'].' <a href="deconnexion.php">'.$logout.'</a><br>';
|
||||||
print $langs->trans("CashDeskThirdParty").': '.$companyLink.'<br>';
|
print $langs->trans("CashDeskThirdParty").': '.$companyLink.'<br>';
|
||||||
|
|||||||
@ -15,7 +15,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-->
|
-->
|
||||||
<fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Summary"); ?></legend>
|
<fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Summary"); ?></legend>
|
||||||
|
|
||||||
@ -39,9 +40,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
?>
|
?>
|
||||||
<tr><td class="resume_label"><?php echo $langs->trans("TotalTTC"); ?> </td><td><?php echo price2num($obj_facturation->prix_total_ttc(),'MT').' '.$conf->monnaie; ?></td></tr>
|
<tr><td class="resume_label"><?php echo $langs->trans("TotalTTC"); ?> </td><td><?php echo price2num($obj_facturation->prix_total_ttc(),'MT').' '.$conf->monnaie; ?></td></tr>
|
||||||
<tr><td class="resume_label"><?php echo $langs->trans("PaymentMode"); ?> </td><td>
|
<tr><td class="resume_label"><?php echo $langs->trans("PaymentMode"); ?> </td><td>
|
||||||
<?php
|
<?php
|
||||||
switch ($obj_facturation->mode_reglement())
|
switch ($obj_facturation->mode_reglement())
|
||||||
{
|
{
|
||||||
case 'ESP':
|
case 'ESP':
|
||||||
echo $langs->trans("Cash");
|
echo $langs->trans("Cash");
|
||||||
$filtre='courant=2';
|
$filtre='courant=2';
|
||||||
@ -52,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
echo $langs->trans("CreditCard");
|
echo $langs->trans("CreditCard");
|
||||||
$filtre='courant=1';
|
$filtre='courant=1';
|
||||||
if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB))
|
if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB))
|
||||||
$selected = $conf->global->CASHDESK_ID_BANKACCOUNT_CB;
|
$selected = $conf->global->CASHDESK_ID_BANKACCOUNT_CB;
|
||||||
break;
|
break;
|
||||||
case 'CHQ':
|
case 'CHQ':
|
||||||
echo $langs->trans("Cheque");
|
echo $langs->trans("Cheque");
|
||||||
@ -64,16 +65,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
echo $langs->trans("Reported");
|
echo $langs->trans("Reported");
|
||||||
$filtre='courant=1 OR courant=2';
|
$filtre='courant=1 OR courant=2';
|
||||||
$selected='';
|
$selected='';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$filtre='courant=1 OR courant=2';
|
$filtre='courant=1 OR courant=2';
|
||||||
$selected='';
|
$selected='';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Affichage des infos en fonction du mode de paiement
|
// Affichage des infos en fonction du mode de paiement
|
||||||
if ( $obj_facturation->mode_reglement() == 'DIF' ) {
|
if ( $obj_facturation->mode_reglement() == 'DIF' ) {
|
||||||
|
|
||||||
@ -99,10 +100,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<form id="frmValidation" class="formulaire2" method="post" action="validation_verif.php?action=valide_facture">
|
<form id="frmValidation" class="formulaire2" method="post" action="validation_verif.php?action=valide_facture">
|
||||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
||||||
<p class="note_label">
|
<p class="note_label">
|
||||||
<?php
|
<?php
|
||||||
echo $langs->trans("BankToPay"). "<br>";
|
echo $langs->trans("BankToPay"). "<br>";
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
$html->select_comptes($selected,'cashdeskbank',0,$filtre);
|
$html->select_comptes($selected,'cashdeskbank',0,$filtre);
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<p class="note_label"><?php echo $langs->trans("Notes"); ?><br><textarea class="textarea_note" name="txtaNotes"></textarea></p>
|
<p class="note_label"><?php echo $langs->trans("Notes"); ?><br><textarea class="textarea_note" name="txtaNotes"></textarea></p>
|
||||||
|
|||||||
@ -32,6 +32,4 @@ NoVAT=Sense IVA per aquesta venda
|
|||||||
Change=Canvi
|
Change=Canvi
|
||||||
CalTip=Feu clic per veure el calendari
|
CalTip=Feu clic per veure el calendari
|
||||||
CashDeskSetupStock=La configuració decrementa l'estoc en la creació de factures, però no ha indicat magatzem.<br>Canvieu la configuració del mòdul estoc, o esculli un magatzem
|
CashDeskSetupStock=La configuració decrementa l'estoc en la creació de factures, però no ha indicat magatzem.<br>Canvieu la configuració del mòdul estoc, o esculli un magatzem
|
||||||
BankToPay=Compte de cobrament
|
BankToPay=Compte de cobrament
|
||||||
ShowCompany=Veure empresa
|
|
||||||
ShowStock=Veure magatzem
|
|
||||||
@ -32,6 +32,4 @@ NoVAT=No VAT for this sale
|
|||||||
Change=Excess received
|
Change=Excess received
|
||||||
CalTip=Click to view the calendar
|
CalTip=Click to view the calendar
|
||||||
CashDeskSetupStock=You ask to decrease stock on invoice creation but warehouse for this is was not defined<br>Change stock module setup, or choose a warehouse
|
CashDeskSetupStock=You ask to decrease stock on invoice creation but warehouse for this is was not defined<br>Change stock module setup, or choose a warehouse
|
||||||
BankToPay=Charge Account
|
BankToPay=Charge Account
|
||||||
ShowCompany=Show company
|
|
||||||
ShowStock=Show warehouse
|
|
||||||
@ -32,6 +32,4 @@ NoVAT=Sin IVA en esta venta
|
|||||||
Change=Cambio
|
Change=Cambio
|
||||||
CalTip=Haga clic para ver el calendario
|
CalTip=Haga clic para ver el calendario
|
||||||
CashDeskSetupStock=La configuración decrementa el stock en la creación de facturas, pero no ha indicado almacén.<br>Cambie la configuración del módulo stock, o escoja un almacén
|
CashDeskSetupStock=La configuración decrementa el stock en la creación de facturas, pero no ha indicado almacén.<br>Cambie la configuración del módulo stock, o escoja un almacén
|
||||||
BankToPay=Cuenta de cobro
|
BankToPay=Cuenta de cobro
|
||||||
ShowCompany=Ver empresa
|
|
||||||
ShowStock=Ver almacén
|
|
||||||
@ -32,6 +32,4 @@ NoVAT=Pas de TVA pour cette vente
|
|||||||
Change=Rendu
|
Change=Rendu
|
||||||
CalTip=Cliquez pour afficher le calendrier
|
CalTip=Cliquez pour afficher le calendrier
|
||||||
CashDeskSetupStock=La configuration du module stock demande une réduction du stock sur facturation, mais vous n'avez pas spécifiez d'entrepôt. Vous devez modifier la configuration du module stock ou choisir un entrepôt.
|
CashDeskSetupStock=La configuration du module stock demande une réduction du stock sur facturation, mais vous n'avez pas spécifiez d'entrepôt. Vous devez modifier la configuration du module stock ou choisir un entrepôt.
|
||||||
BankToPay=Compte à créditer
|
BankToPay=Compte à créditer
|
||||||
ShowCompany=Voir société
|
|
||||||
ShowStock=Voir entrepôt
|
|
||||||
Loading…
Reference in New Issue
Block a user