<repo_name>tsolucio/coreBOSReceiveProducts<file_sep>/modules/Receiptcards/language/ro_ro.lang.php
<?php
/*+**********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ************************************************************************************/

$mod_strings = array(
	'Receiptcards' => 'Receipt Cards',
	'SINGLE_Receiptcards' => 'Receipt Card',
	'Receiptcards ID' => 'Receipt Cards ID',

	'LBL_MODULE_NAME'=>'Receipt Cards',
	'LBL_MODULE_TITLE'=>'Receipt Cards',
	'LBL_NEW_RECEIPTCARDS'=>'New Receipt Card',
	'LBL_RECEIPTCARDS'=>'Receipt Cards',
	'LBL_RECEIPTCARD'=>'Receipt Card',

	'LBL_RECEIPTCARDS_INFO'=>'Basic Information',
	'LBL_DESCRIPTION_INFO'=>'Description',
	'LBL_CUSTOM_INFORMATION' => 'Custom Information',
	'LBL_RELATED_PRODUCTS' => 'Products',
	'LBL_RECALCULATE_STOCK' => 'Recalculate Stock',

	'Receiptcards No' => 'Receipt Card No',
	'receiptcards' => 'Receipt Cards',
	'receiptcard' => 'Receipt Card',
	'Receiptcards' => 'Receipt Cards',

	'Delivery No' => 'Delivery No',
	'Adoption Date' => 'Date of receipt',

	'LBL_RECALCULATE_QUESTION'=>'Are you sure you want to calculate the actual quantity of products in stock?',
	'Related To'=>'Related To',
);
?>
<file_sep>/modules/Receiptcards/RecalculateStockAction.php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>TSolucio::coreBOS Customizations</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">@import url("themes/softed/style.css");br { display: block; margin: 2px; }</style>
</head><body class=small style="font-size: 12px; margin: 2px; padding: 2px; background-color:#f7fff3; ">
<table width="100%" border=0><tr><td><span style='color:red;float:right;margin-right:30px;'><h2>Proud member of the <a href='http://corebos.org'>coreBOS</a> family!</h2></span></td></tr></table>
<hr style="height: 1px">
<?php
// Turn on debugging level
$Vtiger_Utils_Log = true;

include_once 'vtlib/Vtiger/Module.php';
global $current_user,$adb;
set_time_limit(0);
ini_set('memory_limit', '1024M');

$mod_acc = Vtiger_Module::getInstance('Receiptcards');
$mod_acc->addLink('LISTVIEWBASIC', 'LBL_RECALCULATE_STOCK', 'javascript:recalculateStock()');
?><file_sep>/modules/Receiptcards/language/sk_sk.lang.php
<?php
/*+**********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ************************************************************************************/
$mod_strings = array(
	'LBL_MODULE_NAME'=>'Prijemky',
	'LBL_MODULE_TITLE'=>'Príjemky',
	'LBL_NEW_RECEIPTCARDS'=>'Nová príjemka',
	'LBL_RECEIPTCARDS'=>'Príjemky',
	'LBL_RECEIPTCARD'=>'Príjemka',

	'LBL_RECEIPTCARDS_INFO'=>'Základné informácie',
	'LBL_DESCRIPTION_INFO'=>'Popis',
	"LBL_RELATED_PRODUCTS"=>"Produkty",
	"LBL_RECALCULATE_STOCK"=>"Prepočítať sklad",

	'Receiptcards No' => 'Číslo príjemky',
	'receiptcards' => 'Príjemky',
	'receiptcard' => 'Príjemka',
	'Receiptcards'=>'Príjemky',

	'Delivery No'=>'Dodací list č.',
	'Adoption Date'=>'Dátum prijatia',

	'LBL_RECALCULATE_QUESTION'=>'Naozaj chcete prepočítať aktuálne množstvo produktov na sklade?',
	'Related To'=>'Vzťahujúce sa na',
);

?>
<file_sep>/modules/Receiptcards/Receiptcards.js
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ********************************************************************************/

var i18nReceiptcards = '';
ExecuteFunctions('getTranslatedStrings','i18nmodule=Receiptcards&tkeys=LBL_RECALCULATE_QUESTION').then(function (data) {
	i18nReceiptcards = JSON.parse(data);
});

function set_return(receiptcards_id, receiptcards_name) {
	window.opener.document.EditView.parent_name.value = receiptcards_name;
	window.opener.document.EditView.parent_id.value = receiptcards_id;
}

function set_return_specific(receiptcards_id, receiptcards_name) {
	var fldName = getOpenerObj('receiptcards_name');
	var fldId = getOpenerObj('receiptcards_id');
	fldName.value = receiptcards_name;
	fldId.value = receiptcards_id;
}

function recalculateStock() {
	recalculate = confirm(i18nReceiptcards.LBL_RECALCULATE_QUESTION);
	if (recalculate) {
		jQuery('#status').show();
		jQuery.ajax({
			method:'POST',
			url: 'index.php?module=Receiptcards&action=ReceiptcardsAjax&file=RecalculateStock'
		}).done(function (response) {
			jQuery('#status').hide();
		});
	}
	window.open(baseURL, "vtlibui10", WindowSettings);
}
<file_sep>/modules/Receiptcards/language/es_mx.lang.php
<?php
/*+**********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ************************************************************************************/
$mod_strings = array(
	'Receiptcards' => 'Recepción Productos',
	'SINGLE_Receiptcards' => 'Recepción Producto',
	'Receiptcards ID' => 'ID Recepción Producto',

	'LBL_MODULE_NAME'=>'Recepción Productos',
	'LBL_MODULE_TITLE'=>'Recepción Productos',
	'LBL_NEW_RECEIPTCARDS'=>'Nueva Recepción Producto',
	'LBL_RECEIPTCARDS'=>'Recepción Productos',
	'LBL_RECEIPTCARD'=>'Recepción Producto',

	'LBL_RECEIPTCARDS_INFO'=>'Información Recepción Producto',
	'LBL_DESCRIPTION_INFO'=>'Descripción',
	'LBL_CUSTOM_INFORMATION' => 'Información Personalizada',
	'LBL_RELATED_PRODUCTS' => 'Productos',
	'LBL_RECALCULATE_STOCK' => 'Actualizar Stock',

	'Receiptcards No' => 'Nº Recepción Producto',
	'receiptcards' => 'Recepción Productos',
	'receiptcard' => 'Recepción Producto',
	'Receiptcards' => 'Recepción Productos',

	'Delivery No'=>'Nº Entrega',
	'Adoption Date'=>'Fecha Recepción',

	'LBL_RECALCULATE_QUESTION'=>'¿Estás seguro que quieres recalcular y actualizar la cantidad de productos en stock?',
	'Related To'=>'Relacionado con',
);
?>
