Skip to content

Conversation

@nJung-godaddy
Copy link

Screen_recording_20250828_174157.mp4

@flongo-godaddy flongo-godaddy changed the base branch from master to feature-branch-commerce-service August 29, 2025 19:25
@flongo-godaddy flongo-godaddy changed the title Cp 4131 CP-4131: Tax List V2 Migration Aug 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@flongo-godaddy flongo-godaddy self-requested a review September 2, 2025 19:19
) : RecyclerAdapterItem<CatalogTax, TaxItemBinding>(item, onBinding)
val amountString: String = if (item.tax.amount != null) (
item.tax.amount?.amount?.value.toString() + ' ' + item.tax.amount?.amount?.currencyCode
) else "N/A",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be a localized string from R.string.*? Since we support multiple Locales

}


// Step 2: create tax association. Tax Association creates one-to-many relationship, one tax to many products/categories.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to keep the commented code or we can simply remove it?

private const val DEFAULT_TAX_PRODUCTS_PAGE_SIZE = 100
private const val DEFAULT_TAX_PRODUCTS_PAGE_OFFSET = 0
}
enum class DialogType{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting is a bit wrong in many places like here:

// Correct formatting:
enum class DialogType {
        ADD_CLASSIFICATION,
        ADD_OVERRIDE,
        REMOVE_CLASSIFICATION,
        REMOVE_OVERRIDE,
        NO_SHOW,
}

Here is the formatting that we should follow: https://kotlinlang.org/docs/coding-conventions.html#indentation

If you want to fix the formatting all at once, in Android Studio double press "Shift" button and then type "Reformat Code" action. When you select it, it will reformat the entire file correctly according to Kotlin Conventions

if (id.isNotNullOrBlank()) {
return@bindTo Toast.makeText(
requireContext(),
"Category with id [${id}] was updated",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a localized string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants