IO-1478 Make CC Contract RO lines editable.
This commit is contained in:
@@ -53,6 +53,7 @@ export function ContractConvertToRo({
|
|||||||
const billingLines = [];
|
const billingLines = [];
|
||||||
if (contractLength > 0)
|
if (contractLength > 0)
|
||||||
billingLines.push({
|
billingLines.push({
|
||||||
|
manual_line:true,
|
||||||
unq_seq: 1,
|
unq_seq: 1,
|
||||||
line_no: 1,
|
line_no: 1,
|
||||||
line_ref: 1,
|
line_ref: 1,
|
||||||
@@ -70,6 +71,7 @@ export function ContractConvertToRo({
|
|||||||
contract.kmend - contract.kmstart - contract.dailyfreekm * contractLength;
|
contract.kmend - contract.kmstart - contract.dailyfreekm * contractLength;
|
||||||
if (mileageDiff > 0) {
|
if (mileageDiff > 0) {
|
||||||
billingLines.push({
|
billingLines.push({
|
||||||
|
manual_line:true,
|
||||||
unq_seq: 2,
|
unq_seq: 2,
|
||||||
line_no: 2,
|
line_no: 2,
|
||||||
line_ref: 2,
|
line_ref: 2,
|
||||||
@@ -86,6 +88,7 @@ export function ContractConvertToRo({
|
|||||||
|
|
||||||
if (values.refuelqty > 0) {
|
if (values.refuelqty > 0) {
|
||||||
billingLines.push({
|
billingLines.push({
|
||||||
|
manual_line:true,
|
||||||
unq_seq: 3,
|
unq_seq: 3,
|
||||||
line_no: 3,
|
line_no: 3,
|
||||||
line_ref: 3,
|
line_ref: 3,
|
||||||
@@ -101,6 +104,7 @@ export function ContractConvertToRo({
|
|||||||
}
|
}
|
||||||
if (values.applyCleanupCharge) {
|
if (values.applyCleanupCharge) {
|
||||||
billingLines.push({
|
billingLines.push({
|
||||||
|
manual_line:true,
|
||||||
unq_seq: 4,
|
unq_seq: 4,
|
||||||
line_no: 4,
|
line_no: 4,
|
||||||
line_ref: 4,
|
line_ref: 4,
|
||||||
@@ -117,6 +121,7 @@ export function ContractConvertToRo({
|
|||||||
if (contract.damagewaiver) {
|
if (contract.damagewaiver) {
|
||||||
//Add for cleanup fee.
|
//Add for cleanup fee.
|
||||||
billingLines.push({
|
billingLines.push({
|
||||||
|
manual_line:true,
|
||||||
unq_seq: 5,
|
unq_seq: 5,
|
||||||
line_no: 5,
|
line_no: 5,
|
||||||
line_ref: 5,
|
line_ref: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user