Enhance product import validation by adding checks for duplicate country and weight band entries. Update related error messages in properties file. Introduce new method to delete auto fees while retaining manual entries during rebill operations. Update front-end components to manage build mode changes and ensure proper handling of product lists during price set creation.
This commit is contained in:
@@ -91,6 +91,17 @@ export function isPriceEditableVersion(row) {
|
||||
return isDraftVersion(row) || isPendingVersion(row)
|
||||
}
|
||||
|
||||
/**
|
||||
* Build-mode cards stay visible; locked for enabled/expired versions (已生效/已失效).
|
||||
* Draft / pending / create wizard remain selectable.
|
||||
*/
|
||||
export function isBuildModeLockedVersion(rowOrStatus) {
|
||||
const s = rowOrStatus && typeof rowOrStatus === 'object' ? rowOrStatus.status : rowOrStatus
|
||||
if (s == null || s === '') return false
|
||||
const status = String(s)
|
||||
return status === VER_STATUS.EFFECT || status === VER_STATUS.EXPIRED
|
||||
}
|
||||
|
||||
export function nextVersionNo(versions) {
|
||||
const seqs = (versions || []).map(v => Number(v.versionSeq) || 0)
|
||||
const max = seqs.length ? Math.max.apply(null, seqs) : 0
|
||||
|
||||
Reference in New Issue
Block a user