avalara

Programmatically recalculate taxes with Acumatica

余生长醉 提交于 2021-01-29 10:58:45
问题 We have a custom checkbox on the SOOrderEntry screen which we'd like to use to change the tax jurisdiction on the sales order after somebody has entered line items. The reason for this is that if the customer is out of state but will be picking up the order at the store in person, they will need to pay the local taxes at the store location and not their state taxes. If the order was shipped, the taxes would be those for the customer's location. The issue we're having is that when we set the

Avalara: What is a “DateTime” valid format for the json date?

余生颓废 提交于 2019-12-11 06:11:58
问题 What is the correct JSON date format for Avalara? The following code: TransactionModel transaction = new TransactionBuilder(client, "COMPANY", DocumentType.SalesOrder, "myCompany.") .withDate(Calendar.getInstance().getTime()) .withAddress(TransactionAddressType.SingleLocation, null, null, null, null, null, zipCode, "US") .withLine( new BigDecimal(100.0), new BigDecimal(1), "P0000000") .Create(); throws an exception that does not indicate the correct format: com.google.gson.JsonSyntaxException