diff --git a/htdocs/cashdesk/affIndex.php b/htdocs/cashdesk/affIndex.php
index 9235748e37c..6b1d13f719f 100644
--- a/htdocs/cashdesk/affIndex.php
+++ b/htdocs/cashdesk/affIndex.php
@@ -34,6 +34,8 @@ if ( $_SESSION['uid'] <= 0 )
exit;
}
+$langs->load("companies");
+$langs->load("compta");
$langs->load("cashdesk");
@@ -41,6 +43,8 @@ $langs->load("cashdesk");
* View
*/
+$form = new Form($db);
+
//header("Content-type: text/html; charset=UTF-8");
//header("Content-type: text/html; charset=".$conf->file->character_set_client);
diff --git a/htdocs/cashdesk/affPied.php b/htdocs/cashdesk/affPied.php
index b97b9108de1..efe56ac2762 100644
--- a/htdocs/cashdesk/affPied.php
+++ b/htdocs/cashdesk/affPied.php
@@ -22,8 +22,21 @@
*/
?>
+
-use_javascript_ajax) && empty($conf->dol_no_mouse_hover))
+{
+ print "\n\n";
+ print '' . "\n";
+}
+
printCommonFooter('private');
?>
diff --git a/htdocs/cashdesk/css/style.css b/htdocs/cashdesk/css/style.css
index 97c0e95a982..ab8d660fcf1 100644
--- a/htdocs/cashdesk/css/style.css
+++ b/htdocs/cashdesk/css/style.css
@@ -19,7 +19,6 @@ body {
color: #333;
margin: 0;
padding: 0;
- text-align: center;
}
p {
diff --git a/htdocs/cashdesk/facturation_verif.php b/htdocs/cashdesk/facturation_verif.php
index 95a129e88a5..d4bf53e01c5 100644
--- a/htdocs/cashdesk/facturation_verif.php
+++ b/htdocs/cashdesk/facturation_verif.php
@@ -28,11 +28,13 @@ require_once DOL_DOCUMENT_ROOT.'/cashdesk/class/Facturation.class.php';
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
+$action = GETPOST('action','alpha');
+
$obj_facturation = unserialize($_SESSION['serObjFacturation']);
unset ($_SESSION['serObjFacturation']);
-switch ( $_GET['action'] )
+switch($action)
{
default:
if ( $_POST['hdnSource'] != 'NULL' )
@@ -162,6 +164,16 @@ switch ( $_GET['action'] )
break;
+ case 'change_thirdparty': // We have clicked on button "Modify" a thirdparty
+ $newthirdpartyid = GETPOST('CASHDESK_ID_THIRDPARTY','int');
+ if ($newthirdpartyid > 0)
+ {
+ $_SESSION["CASHDESK_ID_THIRDPARTY"] = $newthirdpartyid;
+ }
+
+ $redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
+ break;
+
case 'ajout_article': // We have clicked on button "Add product"
if (! empty($obj_facturation->id)) // A product was previously selected and stored in session, so we can add it
diff --git a/htdocs/cashdesk/tpl/menu.tpl.php b/htdocs/cashdesk/tpl/menu.tpl.php
index 75347427bda..85de5ad9ab5 100644
--- a/htdocs/cashdesk/tpl/menu.tpl.php
+++ b/htdocs/cashdesk/tpl/menu.tpl.php
@@ -23,12 +23,12 @@ include_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
include_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
-if (!empty($_SESSION["CASHDESK_ID_THIRDPARTY"]))
+/*if (!empty($_SESSION["CASHDESK_ID_THIRDPARTY"]))
{
$company=new Societe($db);
$company->fetch($_SESSION["CASHDESK_ID_THIRDPARTY"]);
$companyLink = $company->getNomUrl(1);
-}
+}*/
if (!empty($_SESSION["CASHDESK_ID_BANKACCOUNT_CASH"]))
{
$bankcash=new Account($db);
@@ -59,6 +59,7 @@ if (!empty($_SESSION["CASHDESK_ID_WAREHOUSE"]) && ! empty($conf->stock->enabled)
$langs->load("cashdesk");
$langs->load("main");
+print "\n".''."\n";
print '';
+print "\n".''."\n";
diff --git a/htdocs/cashdesk/tpl/validation1.tpl.php b/htdocs/cashdesk/tpl/validation1.tpl.php
index bb6bd92c8bd..bb3d63a9e58 100644
--- a/htdocs/cashdesk/tpl/validation1.tpl.php
+++ b/htdocs/cashdesk/tpl/validation1.tpl.php
@@ -18,6 +18,7 @@
$langs->load("main");
$langs->load("bills");
+$langs->load("banks");
// Object $form must de defined
diff --git a/htdocs/langs/en_US/cashdesk.lang b/htdocs/langs/en_US/cashdesk.lang
index 69db60c0cc3..1f51f375e89 100644
--- a/htdocs/langs/en_US/cashdesk.lang
+++ b/htdocs/langs/en_US/cashdesk.lang
@@ -25,7 +25,7 @@ Difference=Difference
TotalTicket=Total ticket
NoVAT=No VAT for this sale
Change=Excess received
-BankToPay=Charge Account
+BankToPay=Account for payment
ShowCompany=Show company
ShowStock=Show warehouse
DeleteArticle=Click to remove this article