Skip to content

Commit

Permalink
Task techjoomla#53 feat: Vendor entity optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Thite committed Nov 13, 2019
1 parent 948ade7 commit c643db6
Show file tree
Hide file tree
Showing 11 changed files with 754 additions and 423 deletions.
28 changes: 14 additions & 14 deletions src/com_tjvendors/admin_language/en-GB/en-GB.com_tjvendors.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ COM_TJVENDORS_VENDOR_APPROVAL_DESC="Admin needs to approve new vendor created in
; Add vendor view
COM_TJVENDORS_TITLE_PERSONAL="Vendor Information"
COM_TJVENDORS_FORM_DESC_VENDOR_USER_ID="Select user"
COM_TJVENDORS_CURRENCY_RECORDS="Curreny is not present"
COM_TJVENDORS_CURRENCY_RECORDS="Currency is not present"
COM_TJVENDORS_FILE_UPLOAD_ALLOWED_EXTENSIONS="Allowed file extensions are - %s"
COM_TJVENDORS_WRONG_FILE_UPLOAD=" The uploaded file type is not allowed. Allowed file types are jpg, jpeg, png"
COM_TJVENDORS_TITLE_VENDORS="Vendors"
Expand Down Expand Up @@ -95,15 +95,15 @@ COM_TJVENDORS_SUCCESSFULLY="Record inserted successfully."
COM_TJVENDORS_ALREADY_EXISTED="User already existed."
COM_TJVENDORS_RECORD_DELETED="Record deleted successfully"
COM_TJVENDORS_ERR_DELETED="Error Deleting Records"
COM_TJVENDORS_SELECT_USER_RESET_ERROR="Plese Select the Vendor First"
COM_TJVENDORS_SELECT_USER_RESET_SUCCESS="Successfull Currency Reset : "
COM_TJVENDORS_SELECT_USER_RESET_ERROR="Please Select the Vendor First"
COM_TJVENDORS_SELECT_USER_RESET_SUCCESS="Successfully Currency Reset : "
COM_TJVENDORS_FORM_LBL_VENDOR_CLIENTS="Is a vendor for"
COM_TJVENDORS_DUPLICATE_CLIENT_ERROR="Registration for Duplicate Client not possible. Please Select New Client"
COM_TJVENDORS_DISPLAY_YOU_ARE_ALREADY_A_VENDOR_AS="You are already a vendor as"
COM_TJVENDORS_DISPLAY_DO_YOU_WANT_TO_ADD="Do you want to add "
COM_TJVENDORS_DISPLAY_AS_A_CLIENT=" as a client"
COM_TJVENDORS_VENDOR_LOGO_SIZE_VALIDATE="Upload an image within the specified size "
COM_TJVENDORS_VENDOR_LOGO_DIMENSIONS_VALIDATE=" Upload an image having dimentional value greater than "
COM_TJVENDORS_VENDOR_LOGO_DIMENSIONS_VALIDATE=" Upload an image having dimensional value greater than "
COM_TJVENDORS_VENDOR_LOGO_IMAGE_TYPE_VALIDATION="Upload an image in proper format."
COM_TJVENDORS_FORM_LBL_VENDOR_PAYMENT_GATEWAY="Choose Payment Gateway "
COM_TJVENDORS_TITLE_PAYMENT_DETAILS="Payment Gateway Details"
Expand Down Expand Up @@ -175,10 +175,10 @@ COM_TJVENDOR_EDIT_PAYOUT_SPECIFIC_COMM=" :Pay the Remaining Amount"
COM_TJVENDORS_PAYOUTS_ID="ID"
COM_TJVENDORS_VENDOR_APPROVAL="Enable vendor approval?"
COM_TJVENDORS_VENDOR_APPROVAL_DESC="Enabling this configuration will let the administrator approve or deny any vendor that has registered on the site. After the administrator has approved, the vendor will then have the create rights."
COM_TJVENDORS_PAYOUTS_PAID_UPTO="Paid Upto Date"
COM_TJVENDOR_PAYOUTS_BULK_PAYOUT_NOTICE="<strong>Bulk Payout</strong>: Enables you to make payout for a particular vendor against a currency for all the clients associated with that vendor. The pending amount and the paid upto date columns show you the amount against that vendor for all clients he has."
COM_TJVENDOR_PAYOUTS_SINGLE_CLIENT_PAYOUT_NOTICE="<strong>Single Client Payout</strong>: Enables you to make payout for a particular vendor against a currency for a specified client. The paid upto date amount and the pending amount that appears are for one client."
COM_TJVENDORS_PAYOUT_SUCCESSFULL_MESSAGE = "Payout Successsfully Done."
COM_TJVENDORS_PAYOUTS_PAID_UPTO="Paid Up-to Date"
COM_TJVENDOR_PAYOUTS_BULK_PAYOUT_NOTICE="<strong>Bulk Payout</strong>: Enables you to make payout for a particular vendor against a currency for all the clients associated with that vendor. The pending amount and the paid up-to date columns show you the amount against that vendor for all clients he has."
COM_TJVENDOR_PAYOUTS_SINGLE_CLIENT_PAYOUT_NOTICE="<strong>Single Client Payout</strong>: Enables you to make payout for a particular vendor against a currency for a specified client. The paid up-to date amount and the pending amount that appears are for one client."
COM_TJVENDORS_PAYOUT_SUCCESSFULL_MESSAGE = "Payout Successfully Done."
COM_TJVENDORS_PAYOUTS_BULK_LABEL= "Enter Payout Date Limit"
COM_TJVENDORS_PAYOUTS_BULK_DESCRIPTION="Enter the no of days before which the payout will be calculated. Example when there are credit entries throughout this month but you want to calculate the payout amount for the whole month excluding the 5 days before today."
COM_TJVENDORS_IMAGE_SIZE="Maximum Image Size for Vendor's Logo"
Expand Down Expand Up @@ -216,12 +216,12 @@ COM_TJVENDORS_STATUS_CREDIT_DONE="Credit done"
COM_TJVENDORS_BACK="Back"

;Clients
PLG_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID="Paypal Email Id"
PLG_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID_DESCRIPTION="Email id for paypal"
PLG_PAYPAL_PAYMENET_GATEWAY_PARAMETERS="Paypal plugin parameters"
PLG_ADAPTIVE_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID="Adaptive Paypal Email id"
PLG_PAYPAL_PRO_PAYMENET_GATEWAY_EMAIL_ID="Paypal Pro Email id"
PLG_ADAPTIVE_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID_DESCRIPTION="Enter the email id for paypal adaptive."
PLG_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID="PayPal Email Id"
PLG_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID_DESCRIPTION="Email id for PayPal"
PLG_PAYPAL_PAYMENET_GATEWAY_PARAMETERS="PayPal plugin parameters"
PLG_ADAPTIVE_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID="Adaptive PayPal Email id"
PLG_PAYPAL_PRO_PAYMENET_GATEWAY_EMAIL_ID="PayPal Pro Email id"
PLG_ADAPTIVE_PAYPAL_PAYMENET_GATEWAY_EMAIL_ID_DESCRIPTION="Enter the email id for PayPal adaptive."
COM_TJVENDOR_PAYMENT_DETAILS_DEFAULT="Select payment gateway"
; Generic
COM_TJVENDORS_SITEADMIN="Siteadmin"
Expand Down
2 changes: 1 addition & 1 deletion src/com_tjvendors/site/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TjvendorsController extends BaseController
*
* @since 1.0.0
*/
public function display($cachable = false, $urlparams = false)
public function display($cachable = false, $urlparams = array())
{
$view = Factory::getApplication()->input->getCmd('view', 'vendors');
Factory::getApplication()->input->set('view', $view);
Expand Down
6 changes: 6 additions & 0 deletions src/com_tjvendors/site/helpers/fronthelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ public static function getClientsForVendor($vendor_id)
/**
* Get vendor for that user
*
* @deprecated __DEPLOY_VERSION__ use the alternative method TJVendors::vendor()->loadByUserId
*
* @return integer
*/
public static function getvendor()
Expand Down Expand Up @@ -294,6 +296,8 @@ public static function getPaymentDetails($vendor_id, $client)
*
* @param string $client client
*
* @deprecated __DEPLOY_VERSION__ use the alternative method from TJVendorsVendor class
*
* @return mixed
*
* @since 1.1
Expand Down Expand Up @@ -634,6 +638,8 @@ public function getPaymentGatewayConfig($vendorId, $client = "", $global = true)
* @param string $client client
* @param integer $vendorId Venodor ID
*
* @deprecated __DEPLOY_VERSION__ use the alternative method TJVendors::vendor()->isAssociatedToClient
*
* @return Boolean Client exist or not
*
* @since 1.3.0
Expand Down
3 changes: 3 additions & 0 deletions src/com_tjvendors/site/includes/tjvendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
*
* This class perform the helpful operation required to TJVendors package
*
* @method TjvendorsVersion version()
* @method TjvendorsVendor vendor()
*
* @since __DEPLOY_VERSION__
*/
class TJVendors
Expand Down
Loading

0 comments on commit c643db6

Please sign in to comment.