I have added a custom field in woo commerce product for donation amount.Now i was to calculate total donation amount in from ordered product. anyone please help me with the code
Thank you
Related
I am working on an app that tracks invoices and the payments associated with those invoices, but have come across a problem.
An invoice can have many payments, and in the payments table I have the following columns: "amount_paid", "balance", "due_date".
What I am trying to do is show just the payment with the next upcoming "due_date" for each invoice.
Can anyone point me in the right direction?
Just get the next payment by date for each invoice, like so;
Payment.where(invoice_id: 1).order(due_date: :desc).first
Hope this helps.
I have customers that have several ship to addresses in netsuite. My problem is this, each one of those ship to addresses needs a different tax item. So if I were to enter a sales order and select the customer, I need some way that when I select a ship to(from the drop down) the tax item is filled in with the correct one. I have yet to find a way to link a certain ship to address to a certain tax item, not to mention have it fill in once the ship to address is selected on a sales order. Any help is appreciated.
If these tax items are just for your reference, then you can create a custom record type and store the reference shipto & taxitem.
Then you can use client script to populate the taxitem based on the shipto by querying the custom record type.
I am trying to add a sales tax adjustment to QuickBooks using QBFC but I cannot figure out how to accomplish this. Any ideas would be appreciated. In order to do this in QuickBooks you need to right click on a tax code and then select "Adjust Sales Tax Due"
Sales tax adjustments are journal entries, so you would use the JournalEntryAdd message to create one. In order to understand how to set up a tax adjustment: first, create a tax adjustment, then take a look at the journal entry you created by going to Company -> Make General Journal Entry, then set the List of Selected Journal Entries selector to "This Month". You should see the tax adjustment in the list. You can highlight it to see the debit and credit that was created by the adjustment, as well as the tax vendor assignment.
When I want to generate an invoice to an order following error is displayed:
"There has been an error:
An Invoice could not be generated. The purchase order does not have any applicable periods to be invoiced.
Verify the data of the purchase order or contact customer service to review your business rules."
I disabled pro-rating and I set following settings to plug-ins:
Invoice presentation
com.sapienter.jbilling.server.pluggableTask.InvoiceCompositionTask
Billing process: order periods calculation
com.sapienter.jbilling.server.pluggableTask.OrderPeriodTask
It is not working yet. Any Idea? help me quickly please.
Thanks a lot.
when you create order, you will see period filed on order screen which is one time or monthly.
select one time and try to create order. if you select monthly then only one invoice will create for that order because it is recurring order and then next bill set to next month.
if you want to create invoice again for same order then try to manage billing proces to next invoice date or update next bill date to curent month in purchase order table.
HI, I have a products model and a dealers model . I am creating an app in which a dealer selects a product and then he's routed to purchase order form . I want to create a dynamic multiplication of Products*Price = Total price i.e. when the form opens , he adds the quantity of the product and the default price is multiplied with no. of products to give total price.
What shall I do ?
Please guide. Thanks
There are a lot of good guides out there for Rails 3 and Unobtrusive Javascript (UJS). Here's one that starts you from the ground up:
http://net.tutsplus.com/tutorials/javascript-ajax/using-unobtrusive-javascript-and-ajax-with-rails-3/