Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
b832e80a
Commit
b832e80a
authored
7 years ago
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
c2e95cd6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
23 deletions
+27
-23
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+6
-5
Info.plist
XFFruit/Info.plist
+0
-0
PurchaseReceiveProductViewController.m
...rchase/Controllers/PurchaseReceiveProductViewController.m
+1
-1
NewReceiveProductViewController.m
...s/Receiving/Controllers/NewReceiveProductViewController.m
+4
-2
TransferPdtDetail.m
XFFruit/ViewControllers/Transfer/Models/TransferPdtDetail.m
+8
-7
NewCostViewController.m
...Controllers/Transport/Controllers/NewCostViewController.m
+3
-3
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+5
-5
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
b832e80a
...
...
@@ -1935,7 +1935,7 @@
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
NoticeBoltView.m
;
sourceTree
=
"<group>"
;
};
7DDFB1D460448C3B45118195
/* Pods.release.xcconfig */
=
{
isa
=
PBXFileReference
;
includeInIndex
=
1
;
lastKnownFileType
=
text.xcconfig
;
name
=
Pods.release.xcconfig
;
path
=
"Pods/Target Support Files/Pods/Pods.release.xcconfig"
;
sourceTree
=
"<group>"
;
};
86D33EC280C440156ED1B976
/* libPods.a */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
archive.ar
;
includeInIndex
=
0
;
path
=
libPods.a
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
copy 2.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
name
=
"XFFruit copy 2.app"
;
path
=
XFFruit_TEST.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
_TEST.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
XFFruit_TEST.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
8F0F9B6F1F2A3AE8004FB434
/* XFFruit_TEST.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
name
=
XFFruit_TEST.plist
;
path
=
/Users/Javen/Documents/MyProject/xffruit/XFFruit_TEST.plist
;
sourceTree
=
"<absolute>"
;
};
8F1523D11F21B2D4004ECC7B
/* PurchaseReceiveProductCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PurchaseReceiveProductCell.h
;
sourceTree
=
"<group>"
;
};
8F1523D21F21B2D4004ECC7B
/* PurchaseReceiveProductCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PurchaseReceiveProductCell.m
;
sourceTree
=
"<group>"
;
};
...
...
@@ -3784,7 +3784,7 @@
C1F6961C1AB870B400F9F5DD
/* XFFruitTests.xctest */
,
8FEE27391DB60B570099B596
/* XFFruit copy.app */
,
8F250CD81F2891C60031B4BC
/* XFFruit_DEV.app */
,
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
copy 2
.app */
,
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
_TEST
.app */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
...
...
@@ -3965,7 +3965,7 @@
);
name
=
XFFruit_TEST
;
productName
=
Cruiser
;
productReference
=
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
copy 2
.app */
;
productReference
=
8F0F9B6E1F2A3AE7004FB434
/* XFFruit
_TEST
.app */
;
productType
=
"com.apple.product-type.application"
;
};
8F250B721F2891C60031B4BC
/* XFFruit_DEV */
=
{
...
...
@@ -4057,6 +4057,7 @@
TargetAttributes
=
{
8F0F9A081F2A3AE7004FB434
=
{
DevelopmentTeam
=
W54V2VB863
;
ProvisioningStyle
=
Automatic
;
};
8F250B721F2891C60031B4BC
=
{
DevelopmentTeam
=
W54V2VB863
;
...
...
@@ -6159,7 +6160,7 @@
CODE_SIGN_IDENTITY
=
"iPhone Developer: jie zhang (9V9955H2BK)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
...
@@ -6186,7 +6187,7 @@
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Info.plist
View file @
b832e80a
No preview for this file type
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseReceiveProductViewController.m
View file @
b832e80a
...
...
@@ -11,7 +11,7 @@
#import "PurchaseReceiveProductCell.h"
#import "PurchaseBillProduct.h"
#define TableHeight 44
#define ShowHeight
17
0
#define ShowHeight
20
0
#define HeaderHeight 40
@interface
PurchaseReceiveProductViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
HeaderCellDelegate
>
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Receiving/Controllers/NewReceiveProductViewController.m
View file @
b832e80a
...
...
@@ -12,6 +12,7 @@
#import "ChooseProductViewController.h"
#import "ChooseProductUnitViewController.h"
#import "GeometryView.h"
#import "CalculateHelper.h"
#define LeftMargin 15
#define BtnHeight 44
#define TableRowHeight 46
...
...
@@ -157,8 +158,8 @@
self
.
noticeProduct
=
[[
TransferPdtDetail
alloc
]
init
];
}
self
.
noticeProduct
.
rctQty
=
[
NS
Number
numberWithFloat
:[
_shPackField
.
text
floatValue
]
];
self
.
noticeProduct
.
rctBaseQty
=
[
NS
Number
numberWithFloat
:[
_shBaseQuantityField
.
text
floatValue
]
];
self
.
noticeProduct
.
rctQty
=
[
NS
DecimalNumber
decimalNumberWithString
:
_shPackField
.
text
];
self
.
noticeProduct
.
rctBaseQty
=
[
NS
DecimalNumber
decimalNumberWithString
:
_shBaseQuantityField
.
text
];
self
.
noticeProduct
.
note
=
_noteTextView
.
text
;
return
YES
;
}
...
...
@@ -301,6 +302,7 @@
if
(
textField
==
_shPackField
)
{
if
(
_shPackField
.
text
.
length
>
0
)
{
//基础数量【实收】= 包装数量【实收】* 规格
// NSDecimalNumber *baseCount = [
float
baseCount
=
[
_shPackField
.
text
floatValue
]
*
[
self
.
noticeProduct
.
qpc
floatValue
];
_shBaseQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.2f"
,
baseCount
];
//总金额【实收】= 基础数量【实收】* 基础单价
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transfer/Models/TransferPdtDetail.m
View file @
b832e80a
...
...
@@ -7,7 +7,7 @@
//
#import "TransferPdtDetail.h"
#import "CalculateHelper.h"
@implementation
TransferPdtDetail
-
(
void
)
setPurchasePdt
:(
PurchaseBillProduct
*
)
purchasePdt
{
...
...
@@ -58,17 +58,18 @@
-
(
void
)
z_setRctQty
:
(
CGFloat
)
qty
{
//基础数量【实收】= 包装数量【实收】* 规格
float
baseCount
=
qty
*
[
self
.
qpc
floatValue
];
// float baseCount = qty * [self.qpc floatValue];
NSDecimalNumber
*
baseCount
=
[
CalculateHelper
calculateNum1
:
self
.
qpc
num2
:
@
(
qty
)
type
:
CalculateTypeMul
roundingType
:
NSRoundPlain
cutLenth
:
2
];
//总金额【实收】= 基础数量【实收】* 基础单价
float
total
=
0
;
NSDecimalNumber
*
total
=
[
NSDecimalNumber
decimalNumberWithString
:
@"0"
]
;
if
(
qty
==
[
self
.
qty
floatValue
])
{
total
=
[
self
.
total
float
Value
];
total
=
[
NSDecimalNumber
decimalNumberWithDecimal
:
self
.
total
.
decimal
Value
];
}
else
{
total
=
baseCount
*
[
self
.
price
floatValue
];
total
=
[
CalculateHelper
calculateNum1
:
baseCount
num2
:
self
.
price
type
:
CalculateTypeMul
roundingType
:
NSRoundPlain
cutLenth
:
2
];
}
self
.
rctQty
=
[
NSNumber
numberWithFloat
:
qty
];
self
.
rctBaseQty
=
[
NSNumber
numberWithFloat
:
baseCount
]
;
self
.
rctTotal
=
[
NSNumber
numberWithFloat
:
total
]
;
self
.
rctBaseQty
=
baseCount
;
self
.
rctTotal
=
total
;
}
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/NewCostViewController.m
View file @
b832e80a
...
...
@@ -139,9 +139,9 @@ typedef enum : NSUInteger {
}
self
.
accountDetail
.
accounttitle
=
_chooseCostLabel
.
text
;
self
.
accountDetail
.
accounttitlename
=
_chooseCostLabel
.
text
;
self
.
accountDetail
.
actualmoney
=
[
NS
Number
numberWithFloat
:[
_actualmoneyField
.
text
floatValue
]
];
self
.
accountDetail
.
paidmoney
=
[
NS
Number
numberWithFloat
:[
_paidmoneyField
.
text
floatValue
]
];
self
.
accountDetail
.
leftmoney
=
[
NS
Number
numberWithFloat
:[
_leftmoneyField
.
text
floatValue
]
];
self
.
accountDetail
.
actualmoney
=
[
NS
DecimalNumber
decimalNumberWithString
:
_actualmoneyField
.
text
];
self
.
accountDetail
.
paidmoney
=
[
NS
DecimalNumber
decimalNumberWithString
:
_paidmoneyField
.
text
];
self
.
accountDetail
.
leftmoney
=
[
NS
DecimalNumber
decimalNumberWithString
:
_leftmoneyField
.
text
];
self
.
accountDetail
.
note
=
_noteTextView
.
text
;
return
YES
;
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
b832e80a
...
...
@@ -533,12 +533,12 @@ typedef enum : NSUInteger {
billProduct
.
productUuid
=
shopDetail
.
product_uuid
;
billProduct
.
productCode
=
shopDetail
.
product_code
;
billProduct
.
productName
=
shopDetail
.
merchandise
;
billProduct
.
qpc
=
[
NS
Number
numberWithFloat
:[
shopDetail
.
packageSpecification
floatValue
]
];
billProduct
.
qpc
=
[
NS
DecimalNumber
decimalNumberWithString
:
shopDetail
.
packageSpecification
];
billProduct
.
unit
=
shopDetail
.
packageUnit
;
billProduct
.
qty
=
[
NS
Number
numberWithFloat
:[
shopDetail
.
packageQuantity
floatValue
]
];
billProduct
.
packprice
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
packageUnitPrice
floatValue
]]
;
billProduct
.
price
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
foundationUnitPrice
floatValue
]]
;
billProduct
.
baseQty
=
[
NS
Number
numberWithDouble
:[
shopDetail
.
foundationQuantity
doubleValue
]
];
billProduct
.
qty
=
[
NS
DecimalNumber
decimalNumberWithString
:
shopDetail
.
packageQuantity
];
billProduct
.
packprice
=
shopDetail
.
packageUnitPrice
;
billProduct
.
price
=
shopDetail
.
foundationUnitPrice
;
billProduct
.
baseQty
=
[
NS
DecimalNumber
decimalNumberWithString
:
shopDetail
.
foundationQuantity
];
billProduct
.
total
=
shopDetail
.
total
;
billProduct
.
note
=
shopDetail
.
remark
;
billProduct
.
qpcStr
=
shopDetail
.
packageQpcStr
?
shopDetail
.
packageQpcStr
:
@"无"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment