[
https://issues.apache.org/jira/browse/OFBIZ-12686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17598913#comment-17598913
]
Ingo Wolfmayr commented on OFBIZ-12686:
---------------------------------------
Hi Jacques,
but that is not in trunk.
[https://github.com/apache/ofbiz-framework/blob/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/tax/TaxAuthorityServices.java]
{code:java}
private static GenericValue getProductPrice(Delegator delegator, GenericValue
product, GenericValue productStore, String taxAuthGeoId,
String taxAuthPartyId) throws GenericEntityException {
return EntityQuery.use(delegator).from("ProductPrice")
.where("productId", product.get("productId"),
"taxAuthPartyId", taxAuthPartyId,
"taxAuthGeoId", taxAuthGeoId,
"productPricePurposeId", "PURCHASE",
"productStoreGroupId",
productStore.get("primaryStoreGroupId"))
.orderBy("-fromDate").filterByDate().queryFirst();
}{code}
Best regards,
Ingo
> Tax calculation not considering productStoreGroup
> -------------------------------------------------
>
> Key: OFBIZ-12686
> URL: https://issues.apache.org/jira/browse/OFBIZ-12686
> Project: OFBiz
> Issue Type: Bug
> Components: accounting, order
> Affects Versions: Upcoming Branch
> Reporter: Ingo Wolfmayr
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: 22.01.01
>
> Attachments: OFBIZ-12686-1.patch, OFBIZ-12686.patch, StoreForms.xml,
> taxCalc.patch, taxCalc2.patch, taxCalc3.patch
>
>
> For one product I have different prices according to the product store:
> B2C store: taxinPrice = Y
> B2B store: taxinPrice = N
> The tax calc service takes the most current price and ignores the product
> store.
> Therefore it may happen that SALES_TAX is calculated instead of VAT_TAX.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)