I already SMS module create in Tally Developer 9.Working Properly but my requirement is multiple item select than message not proper way - tally

single item select:-
Example: "Dear Sir, your sales item name is mobile and price 100 Rs."
Multiple items select:- "Dear Sir, your sales item name is mobile, price 100 Rs 1 qty and laptop price 10000 Rs 1 qty"

Related

Data studio Pivot report and want to select only top 10 records

I have a pivot table in data studio where payments per customer is displayed as Total payments per customer and also i have one more dimension to show payments per hour for the same customers . Now i want to display only top 10 customers in the report based on their total values.
I had created one pivot table in data studio and selected row dimension= customer name, column dimension= payment time and metric=sum(amount) .
want to display top to customers only based on sum(amount) is this possible ?

Could anyone help in writing trigger for this scenario in salesforce

My customer purchased some drugs from my company then if the customer raises a case from email (inside email drug name and quantity will come from the customer ) then automatically the Total price of the drug with quantity should be sent automatically from salesforce org. I need the code using triggers. And in the Automatic Response email, the customer name should be merged saying Dear
drug name: paracetamol
quantity: 10
Price of Each: 5 Rs
total Price: 50 Rs
If the customer is Indian then it should send the price in Indian rupees 
If the customer is from the USA then it should send the price in US dollars 
And the customer should have a profile in salesforce org...

Is there a better way to design an E-commerce products database when the products can have multiple price lines?

I'm trying to develop a new products database for a client and I am having a hard time finding a solution to handle the many different prices a product can have.
Variables that can affect the price of a product:
region (where the customer lives).
customer type (whether they're a new customer or a registered customer).
order type (whether you want to purchase the item once or subscribe monthly).
store type (there were many store types, but now they're transitioning to one, but I don't know if they will add more in the future again so I want this to be flexible
Product Table
id
product_name
sku
description
1
Vanilla Protein Powder
1111
This is a description...
Attributes Table
id
associate_type
region
store
currency_code
order_type
1
2
1
11
usd
1
2
2
1
11
usd
2
Product Attributes Table
id
price
product_id
attribute_id
1
49.95
1
1
2
29.95
1
2
I was initially thinking this would be a good route to go, but the issue that arises is on the product page I want to display the price of the product if you want to purchase it once and the price if you wanted to subscribe. The same issue would happen if I also wanted to show a list of product cards on a product category page displaying both prices.
The issue I run into
When I write a query to get the correct products with the correct price lines, I would filter all the products by the variables mentioned above, but I will always want the subscription price and the one-time price, so in the query, I would have to include WHERE order_type = 1 AND order_type = 2 but doing this would return duplicate records of the product/ products because of the different prices for a one-time purchase and a subscription purchase.
Is there a better way to set up the tables I have so that the query would not return duplicate records of the product/ products? Or is there a way to write the query to handle this for me? Or do I even need to switch up my database design altogether?

Distinct count not giving expected result

I have fields for customer names, customer account numbers, date of previous orders, and order values. I want an alert to show which customers have ordered at least three times over the reporting period. We can have more than one invoice for a given delivery. The main report looks like:
Account Number Acct Name Order Date Order Total
1001 Fred Smith 1/2/2016 £1.06
1001 Fred Smith 1/2/2016 £2.34
1001 Fred Smith 8/2/2016 £5.42
2001 Aled Jones 1/2/2016 £2.90
2001 Aled Jones 8/2/2016 £3.45
I've tried concatenating the account number and order date in a column via function and running an alert based on its distinct count. (After converting the date to a string.) But it still doesn't generate a list of distinct items.
What I currently have in the final column is a function that concatenates the date and account number to give a unique field with {ORDR.CardCode} + Cstr({ORDR.DocDate}) - Which returns:
1001 1/2/2016
1001 1/2/2016
1001 8/2/2016
2001 1/2/2016
2001 8/2/2016
I want to generate alert based on this field via the distinct count function and a report of any customer who ordered at least twice in the report period.
DistinctCount ({#Concat code and date}) >2
Even after this I still don't get what I need. How can I get a list of every customer who has ordered in the report period for at least two times?
You have travelled half way... to achive continue from here.
USe the created formula {ORDR.CardCode} + Cstr({ORDR.DocDate}) to create a group.
place same formula in details and take count of the records in group footer
Now create a alert on group footer summation to get the desired result
Edit........
Since you need customer then add customer in concat fornula and then create group.
acctnamr+{ORDR.CardCode} + Cstr({ORDR.DocDate})
Now place the customer name in group header and follow process as explained above

Suppressed Data being calculated on a count

I am trying to get a count of records for a the Charge Group; however it is counting my suppressed data as well. I understand that suppressed data is only hidden and doesn't effect any calculation, but how can I adjust my formula so it doesn't take the suppressed data.
I attempted to do a running total field however I receive an error
A running total cannot refer to a print time formula Details: #Customer Drop Max Amount
Within the report there are multiple Trailer Charge Groups that are basically shippers and their destinations are marked as Drop Customers
I only want one record for two Drop Customers to be computed, so whenever another trailer falls into the record for Drop Customer I have to change the count field to show that their should only be one.
The formula field I am doing that for is Charge group count
IF {#TRAILER CHARGE GROUP} = 'INTCNEWNC' THEN Count ({TRAILER_CUSTOMER_ZONE.TRAILER_ID} , {#TRAILER CHARGE GROUP}) - 6
ELSE IF {#TRAILER CHARGE GROUP} <> 'INTCNEWNC' THEN Count ({TRAILER_CUSTOMER_ZONE.TRAILER_ID}, {#TRAILER CHARGE GROUP} )
I am using Crystal Reports XI on a DB2 server.
Thanks in advance!
edit: INTCNEWNC is the charge group, whereas ASHLADVNC and MARSBIVA are the drop customers. You can clearly see the individual counts for Drop customers are fine but the count for charge groups is where I am struggling.
1) Create running total fields for both the specific drop customer and charge group.
2) A formula field stating
IF CHARGEGROUP = 'MY CHARGE GROUP' then (rt.charge group) - (rt.drop customer 1) - (rt.drop customer 2) + 2 else count(trailer)